lean4-htt/tests/lean/trace_kabstract.lean
Leonardo de Moura 36c7d46c34 feat(library/tactic): add options trace.rewrite and trace.kabstract for debugging rewrite tactic
See #1480

@semorrison We can now use the following commands to trace the rewrite
tactic
```lean
set_option trace.rewrite true
set_option trace.kabstract true
```

When these options are used, Lean will pretty print the subterm selected
by the rewrite tactic. That is, the subterm that will be rewritten.
This option may help you diagnose what is going on.
2017-03-27 18:18:20 -07:00

8 lines
157 B
Text

set_option trace.rewrite true
set_option trace.kabstract true
example (f : nat → nat) (a b : nat) (h : f a = a) : f (f a) = a :=
begin
rw h,
rw h
end