2014-06-27 14:49:48 -07:00
|
|
|
local env = environment()
|
|
|
|
local A = Local("A", Type)
|
2014-10-02 16:54:56 -07:00
|
|
|
env = add_decl(env, mk_constant_assumption("eq", Pi(A, mk_arrow(A, A, Prop))))
|
2014-06-27 14:49:48 -07:00
|
|
|
local eq = Const("eq")
|
2014-07-10 18:59:03 +01:00
|
|
|
local a = mk_local("a", "a", A)
|
|
|
|
local b = mk_local("b", "a", A)
|
2014-06-27 14:49:48 -07:00
|
|
|
local H = Local("H", eq(A, a, b))
|
2014-07-01 20:43:53 -07:00
|
|
|
local m = mk_metavar("m", Pi(A, a, b, H, eq(A, a, b)))(A, a, b, H)
|
|
|
|
print(to_proof_state(m, eq(A, a, b)))
|
|
|
|
local s = to_proof_state(m, eq(A, a, b))
|
2014-07-01 16:11:19 -07:00
|
|
|
local g = s:goals():head()
|
|
|
|
print(g)
|