lean2/tests/lua/ind_tricky.lua
Leonardo de Moura cb000eda13 refactor(kernel): store binder_infor in local constants
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-30 11:37:46 -07:00

17 lines
433 B
Lua

local env = environment()
local tricky = Const("tricky")
local P = Local("P", Bool)
env = add_inductive(env,
"tricky", Bool,
"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)