2014-11-30 21:16:01 -08:00
|
|
|
import logic
|
2014-10-14 18:19:34 -07:00
|
|
|
open tactic
|
|
|
|
|
2014-11-26 19:02:11 -08:00
|
|
|
theorem foo1 (A : Type) (a b c : A) (Hab : a = b) (Hbc : b = c) : a = c :=
|
2014-10-14 18:19:34 -07:00
|
|
|
begin
|
|
|
|
apply eq.trans,
|
|
|
|
rename Hab Foo,
|
2014-10-22 18:11:09 -07:00
|
|
|
apply Foo,
|
|
|
|
apply Hbc,
|
2014-10-14 18:19:34 -07:00
|
|
|
end
|
2014-11-26 19:02:11 -08:00
|
|
|
|
|
|
|
theorem foo2 (A : Type) (a b c : A) (Hab : a = b) (Hbc : b = c) : a = c :=
|
|
|
|
begin
|
|
|
|
apply eq.trans,
|
|
|
|
Hab ↦ Foo,
|
|
|
|
apply Foo,
|
|
|
|
apply Hbc,
|
|
|
|
end
|