4ba097a141
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
22 lines
402 B
Text
22 lines
402 B
Text
import Int.
|
|
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()
|
|
assert(env:find_object("Int"):get_name() == name("Int"))
|
|
parse_lean_cmds([[
|
|
eval 10 + 20
|
|
check x + y
|
|
variable g : Int -> Int
|
|
]])
|
|
|
|
*)
|
|
|
|
check g (f x 10)
|