2013-12-30 21:35:37 +00:00
|
|
|
Import int.
|
2013-11-15 23:55:15 +00:00
|
|
|
Variables x y z : Int
|
|
|
|
Variable f : Int -> Int -> Int
|
|
|
|
|
|
|
|
(**
|
|
|
|
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"))
|
2013-11-15 23:55:15 +00:00
|
|
|
parse_lean_cmds([[
|
|
|
|
Eval 10 + 20
|
|
|
|
Check x + y
|
|
|
|
Variable g : Int -> Int
|
|
|
|
]])
|
|
|
|
|
|
|
|
**)
|
|
|
|
|
|
|
|
Check g (f x 10)
|