2015-07-24 01:38:35 +00:00
|
|
|
import data.nat
|
2015-10-14 19:27:09 +00:00
|
|
|
open nat algebra
|
2015-07-24 01:38:35 +00:00
|
|
|
|
|
|
|
example (a b c : nat) : a = 2 → b = 3 → a + b + c = c + 5 :=
|
|
|
|
begin
|
|
|
|
intro h1 h2,
|
|
|
|
have H : a + b = 2 + b, by rewrite h1,
|
|
|
|
have H : a + b = 2 + 3, by rewrite -h2; exact H,
|
|
|
|
have H : a + b = 5, from H,
|
|
|
|
rewrite H,
|
|
|
|
state,
|
|
|
|
rewrite add.comm
|
|
|
|
end
|