lean4-htt/tests/lean/run/focus.lean
2017-11-03 12:58:48 -07:00

12 lines
No EOL
338 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open nat
example (n m : ) : n + m = m + n :=
begin
induction m with m IHm,
focus { induction n with n IHn,
focus { reflexivity },
focus { exact congr_arg succ IHn }},
focus { apply eq.trans (congr_arg succ IHm),
clear IHm, induction n with n IHn,
focus { reflexivity },
focus { exact congr_arg succ IHn }}
end