lean4-htt/old_tests/tests/lean/1299.lean
2018-04-10 12:56:55 -07:00

20 lines
377 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