lean4-htt/tests/lean/set_opt_tac.lean
2016-07-29 13:03:23 -07:00

15 lines
314 B
Text

open tactic bool
example (a b : nat) (H : a + b = 0) : a = a :=
by do
H ← get_local `H,
t ← infer_type H,
trace t,
set_bool_option `pp.all tt,
trace "after pp.all true",
trace t,
rfl ← mk_const `rfl,
apply rfl
print "set_bool_option tactic does not affect other commands"
check (0:nat) + 1