blob: af136a6b3b9aac0443814016f51ec8d35a00817e [file] [edit]
theorem tst1 (x y z : Nat) : y = z → x = x → x = y → x = z :=
by {
intro h1 h2 h3;
revert h2;
intro h2;
exact Eq.trans h3 h1
}
theorem tst2 (x y z : Nat) : y = z → x = x → x = y → x = z :=
by {
intro h1 h2 h3;
revert y;
intro y hb ha;
exact Eq.trans ha hb
}
theorem tst3 (x y z : Nat) : y = z → x = x → x = y → x = z := by
intros
revert ‹x = y›
intro ha
exact Eq.trans ha ‹y = z›