Skip to content

Commit e86c4a1

Browse files
committed
chore: rename OpenPartialHomeomorph.to_isOpenEmbedding (#41854)
As requested in a PR review [here](#41045 (comment)). I also included a correction of a different docstring.
1 parent 19f249b commit e86c4a1

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

Mathlib/Geometry/Manifold/Instances/Sphere.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ theorem range_stereographic_symm (hv : ‖v‖ = 1) (hv' : v ∈ sphere 0 1 := b
307307

308308
lemma isOpenEmbedding_stereographic_symm (hv : ‖v‖ = 1) :
309309
Topology.IsOpenEmbedding (stereographic hv).symm :=
310-
(stereographic hv).symm.to_isOpenEmbedding (by simp)
310+
(stereographic hv).symm.isOpenEmbedding (by simp)
311311

312312
end StereographicProjection
313313

Mathlib/Topology/OpenPartialHomeomorph/Basic.lean

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public import Mathlib.Topology.Sets.Opens
1515
## Main definitions
1616
1717
* `OpenPartialHomeomorph.refl`: the identity open partial homeomorphism
18-
* `Topology.IsOpenEmbedding.toOpenPartialHomeomorph`: construct a partial homeomorphism from an
19-
open embedding
18+
* `Topology.IsOpenEmbedding.toOpenPartialHomeomorph`: construct an open partial homeomorphism from
19+
an open embedding
2020
-/
2121

2222
@[expose] public section
@@ -224,10 +224,12 @@ theorem isOpenEmbedding_restrict : IsOpenEmbedding (e.source.restrict e) := by
224224

225225
/-- An open partial homeomorphism whose source is all of `X` defines an open embedding of `X` into
226226
`Y`. The converse is also true; see `IsOpenEmbedding.toOpenPartialHomeomorph`. -/
227-
theorem to_isOpenEmbedding (h : e.source = Set.univ) : IsOpenEmbedding e :=
227+
theorem isOpenEmbedding (h : e.source = Set.univ) : IsOpenEmbedding e :=
228228
e.isOpenEmbedding_restrict.comp
229229
((Homeomorph.setCongr h).trans <| Homeomorph.Set.univ X).symm.isOpenEmbedding
230230

231+
@[deprecated (since := "2026-07-17")] alias to_isOpenEmbedding := isOpenEmbedding
232+
231233
end OpenPartialHomeomorph
232234

233235
/-!
@@ -239,7 +241,7 @@ variable (f : X → Y) (h : IsOpenEmbedding f)
239241

240242
/-- An open embedding of `X` into `Y`, with `X` nonempty, defines an open partial homeomorphism
241243
whose source is all of `X`. The converse is also true; see
242-
`OpenPartialHomeomorph.to_isOpenEmbedding`. -/
244+
`OpenPartialHomeomorph.isOpenEmbedding`. -/
243245
@[simps! (attr := mfld_simps) -fullyApplied apply source target]
244246
noncomputable def toOpenPartialHomeomorph [Nonempty X] : OpenPartialHomeomorph X Y :=
245247
OpenPartialHomeomorph.ofContinuousOpen (h.isEmbedding.injective.injOn.toPartialEquiv f univ)

0 commit comments

Comments
 (0)