2014-05-20 11:53:58 -07:00
|
|
|
local env = environment()
|
2014-07-22 09:43:18 -07:00
|
|
|
local f = Local("f", mk_arrow(Prop, Prop, Prop))
|
|
|
|
local a = Local("a", Prop)
|
|
|
|
local b = Local("b", Prop)
|
|
|
|
local x = Local("x", Prop)
|
2014-06-30 09:14:55 -07:00
|
|
|
local t = Fun(f, a, b, f(Fun(x, x)(b), a))
|
2014-05-20 11:53:58 -07:00
|
|
|
print(env:normalize(t))
|
2014-06-30 09:14:55 -07:00
|
|
|
assert(env:normalize(t) == Fun(f, a, b, f(b, a)))
|