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

15 lines
316 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