lean2/tests/lua/expr10.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

8 lines
273 B
Lua

local env = environment()
local f = Local("f", mk_arrow(Bool, Bool, Bool))
local a = Local("a", Bool)
local b = Local("b", Bool)
local x = Local("x", Bool)
local t = Fun(f, a, b, f(Fun(x, x)(b), a))
print(env:normalize(t))
assert(env:normalize(t) == Fun(f, a, b, f(b, a)))