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

15 lines
293 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 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 : by rewrite IH),
esimp
end)