lean4-htt/tests/lean/run/1787.lean
Kyle Miller 7fa1a8b114
chore: eliminate uses of intros x y z (#9983)
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.
2025-08-19 06:09:13 +00:00

13 lines
417 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.

open Function
def Set (α : Type u) := α → Prop
example {α : Type u}
(f : α → Type (max u v))
(U : α) (hU : f U = Set (Sigma f)) :
let g : Set (Sigma f) → Sigma f := fun (s : Set (Sigma f)) => ⟨U, cast hU.symm s⟩
∀ ⦃s t : Set (Sigma f)⦄,
g s = g t → cast hU (g s).snd = cast hU (g t).snd :=
by
intro g s t h
congr -- reduces to `(g s).snd = (g t).snd`, not `g s = g t`