lean4-htt/tests/lean/run/imp_curly.lean
2016-06-10 18:29:41 -07:00

11 lines
282 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.

exit
import data.nat.basic
open nat
theorem zero_left (n : ) : 0 + n = n :=
nat.induction_on n
!nat.add_zero
(take m IH, show 0 + succ m = succ m, from
calc
0 + succ m = succ (0 + m) : by rewrite add_succ
... = succ m : by rewrite IH)