lean2/tests/lean/run/imp_curly.lean

11 lines
251 B
Text
Raw Normal View History

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