lean4-htt/tests/lean/run/revert1.lean
2021-11-29 10:06:15 -08:00

23 lines
437 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

theorem tst1 (x y z : Nat) : y = z → x = x → x = y → x = z :=
by {
intros 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 {
intros h1 h2 h3;
revert y;
intros 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