2014-01-01 21:52:25 +00:00
|
|
|
Import Int.
|
2013-11-15 23:55:15 +00:00
|
|
|
Variables x y z : Int
|
|
|
|
Variable f : Int -> Int -> Int
|
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-11-15 23:55:15 +00:00
|
|
|
local t = parse_lean("fun w, f w (f y 0)")
|
|
|
|
print(t)
|
|
|
|
assert(t:closed())
|
|
|
|
local n, d, b = t:fields()
|
|
|
|
print(b)
|
|
|
|
assert(not b:closed())
|
|
|
|
local env = get_environment()
|
2013-12-30 01:04:06 +00:00
|
|
|
assert(env:find_object("Int"):get_name() == name("Int"))
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|