2014-06-28 01:51:55 +00:00
|
|
|
local env = environment()
|
|
|
|
local A = Local("A", Type)
|
2014-10-02 23:54:56 +00:00
|
|
|
env = add_decl(env, mk_constant_assumption("eq", Pi(A, mk_arrow(A, A, Prop))))
|
2014-06-28 01:51:55 +00:00
|
|
|
local eq = Const("eq")
|
|
|
|
local a = Local("a", A)
|
|
|
|
local b = Local("b", A)
|
|
|
|
local H = Local("H", eq(A, a, b))
|
2014-07-02 03:43:53 +00:00
|
|
|
local m = mk_metavar("m", Pi(A, a, b, H, eq(A, a, b)))(A, a, b, H)
|
|
|
|
local s = to_proof_state(m, eq(A, a, b))
|
2014-06-28 01:51:55 +00:00
|
|
|
local t = Then(Append(trace_tac("tst1a"), trace_tac("tst1b")),
|
|
|
|
trace_tac("tst2"),
|
|
|
|
Append(trace_tac("tst3"), assumption_tac()))
|
|
|
|
for r in t(env, s) do
|
|
|
|
print("Solution:")
|
|
|
|
print(r)
|
|
|
|
print("---------")
|
|
|
|
end
|