lean4-htt/tests/lean/1299.lean
2017-03-09 18:41:19 -08:00

20 lines
371 B
Text

open tactic expr
def d1 : true = true := by do
trace (("a", "a")),
prt ← to_expr `(true = true),
add_decl (declaration.ax `new_ax [] prt),
l ← to_expr `(new_ax),
apply l
#check d1
#print d1
theorem d2 : true = true := by do
trace (("a", "a")),
prt ← to_expr `(true = true),
add_decl (declaration.ax `new_ax2 [] prt),
l ← to_expr `(new_ax2),
apply l
#print d2