lean2/tests/lean/run/rename_tac.lean
2014-11-26 19:02:11 -08:00

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