lean2/tests/lean/run/refine3.lean

15 lines
277 B
Text
Raw Normal View History

import data.nat.basic
open nat algebra
theorem zero_left (n : ) : 0 + n = n :=
nat.induction_on n
!add_zero
(take m IH,
begin
refine
(calc
0 + succ m = succ (0 + m) : _
... = succ m : IH),
esimp
end)