This PR eliminates uses of `intros x y z` (with arguments) and updates the `intros` docstring to suggest that `intro x y z` should be used instead. The `intros` tactic is historical, and can be traced all the way back to Lean 2, when `intro` could only introduce a single hypothesis. Since 2020, the `intro` tactic has superceded it. The `intros` tactic (without arguments) is currently still useful.
23 lines
434 B
Text
23 lines
434 B
Text
|
||
|
||
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›
|