18 lines
331 B
Text
18 lines
331 B
Text
import tools.tactic logic
|
|
open tactic
|
|
|
|
theorem foo1 (A : Type) (a b c : A) (Hab : a = b) (Hbc : b = c) : a = c :=
|
|
begin
|
|
apply eq.trans,
|
|
rename Hab Foo,
|
|
apply Foo,
|
|
apply Hbc,
|
|
end
|
|
|
|
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
|