lean2/tests/lua/expr10.lua
Leonardo de Moura 5eaf04518b refactor(*): rename Bool to Prop
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-22 09:43:18 -07:00

8 lines
273 B
Lua

local env = environment()
local f = Local("f", mk_arrow(Prop, Prop, Prop))
local a = Local("a", Prop)
local b = Local("b", Prop)
local x = Local("x", Prop)
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)))