2014-06-27 21:49:48 +00:00
|
|
|
local env = environment()
|
|
|
|
local A = Local("A", Type)
|
|
|
|
env = add_decl(env, mk_var_decl("eq", Pi(A, mk_arrow(A, A, Bool))))
|
|
|
|
local eq = Const("eq")
|
|
|
|
local a = Local("a", A)
|
|
|
|
local b = Local("b", A)
|
|
|
|
local H = Local("H", eq(A, a, b))
|
2014-06-30 16:14:55 +00:00
|
|
|
local m = mk_metavar("m", Pi(A, a, b, H, eq(A, a, b)))
|
2014-06-27 21:49:48 +00:00
|
|
|
print(to_proof_state(m))
|
2014-07-01 23:11:19 +00:00
|
|
|
local s = to_proof_state(m)
|
|
|
|
local g = s:goals():head()
|
|
|
|
print(g)
|