8743394627
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
17 lines
438 B
Lua
17 lines
438 B
Lua
local env = environment()
|
|
|
|
local tricky = Const("tricky")
|
|
local P = Local("P", Prop)
|
|
|
|
env = add_inductive(env,
|
|
"tricky", Prop,
|
|
"C", mk_arrow(Pi(P, mk_arrow(P, P)), tricky))
|
|
|
|
function display_type(env, t)
|
|
print(tostring(t) .. " : " .. tostring(type_checker(env):check(t)))
|
|
end
|
|
|
|
env = env:add_universe("u")
|
|
local tricky_rec = Const({"tricky", "rec"}, {0})
|
|
|
|
display_type(env, tricky_rec)
|