Skip to content

Commit 106cea4

Browse files
committed
chore: rename some OpenPartialHomeomorph declarations (#39565)
In the review of #39084, a few suggested renames relating to `OpenPartialHomeomorph` came up which I am doing in this PR.
1 parent a03ffc4 commit 106cea4

16 files changed

Lines changed: 58 additions & 43 deletions

File tree

Mathlib/Analysis/InnerProductSpace/Calculus.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ theorem contDiffOn_univBall_symm :
389389
unfold univBall; split_ifs with h
390390
· refine contDiffOn_univUnitBall_symm.comp (contDiff_unitBallBall_symm h).contDiffOn ?_
391391
rw [← unitBallBall_source c r h, ← unitBallBall_target c r h]
392-
apply OpenPartialHomeomorph.symm_mapsTo
392+
apply OpenPartialHomeomorph.mapsTo_symm
393393
· exact contDiffOn_id.sub contDiffOn_const
394394

395395
end OpenPartialHomeomorph

Mathlib/Geometry/Manifold/ContMDiff/Defs.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ theorem contMDiffWithinAt_iff_target :
271271
ContinuousWithinAt f s x :=
272272
and_iff_left_of_imp <| (continuousAt_extChartAt _).comp_continuousWithinAt
273273
simp_rw [cont, ContDiffWithinAtProp, extChartAt, OpenPartialHomeomorph.extend,
274-
PartialEquiv.coe_trans, ModelWithCorners.toPartialEquiv_coe, OpenPartialHomeomorph.coe_coe,
275-
modelWithCornersSelf_coe, chartAt_self_eq, OpenPartialHomeomorph.refl_apply, id_comp]
274+
PartialEquiv.coe_trans, ModelWithCorners.toPartialEquiv_coe,
275+
OpenPartialHomeomorph.coe_toPartialEquiv, modelWithCornersSelf_coe, chartAt_self_eq,
276+
OpenPartialHomeomorph.refl_apply, id_comp]
276277
rfl
277278

278279
theorem contMDiffAt_iff_target {x : M} :

Mathlib/Geometry/Manifold/ContMDiffMFDeriv.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ lemma contMDiff_equivTangentBundleProd_symm :
456456
with p hp
457457
-- now we have to check that the original map coincides locally with `pM` read in target chart.
458458
simp only [prodChartedSpace_chartAt, OpenPartialHomeomorph.prod_toPartialEquiv,
459-
PartialEquiv.prod_source, Set.mem_prod, TangentBundle.mem_chart_source_iff] at hp
459+
PartialEquiv.prod_source, mem_prod, TangentBundle.mem_chart_source_iff] at hp
460460
let φ (x : E) := I ((chartAt H a.proj) ((chartAt H p.1.proj).symm (I.symm x)))
461461
have D0 : DifferentiableWithinAt 𝕜 φ (Set.range I) (I ((chartAt H p.1.proj) p.1.proj)) := by
462462
apply ContDiffWithinAt.differentiableWithinAt _ one_ne_zero
@@ -495,7 +495,7 @@ lemma contMDiff_equivTangentBundleProd_symm :
495495
with p hp
496496
-- now we have to check that the original map coincides locally with `pM'` read in target chart.
497497
simp only [prodChartedSpace_chartAt, OpenPartialHomeomorph.prod_toPartialEquiv,
498-
PartialEquiv.prod_source, Set.mem_prod, TangentBundle.mem_chart_source_iff] at hp
498+
PartialEquiv.prod_source, mem_prod, TangentBundle.mem_chart_source_iff] at hp
499499
let φ (x : E') := I' ((chartAt H' b.proj) ((chartAt H' p.2.proj).symm (I'.symm x)))
500500
have D0 : DifferentiableWithinAt 𝕜 φ (Set.range I') (I' ((chartAt H' p.2.proj) p.2.proj)) := by
501501
apply ContDiffWithinAt.differentiableWithinAt _ one_ne_zero

Mathlib/Geometry/Manifold/Instances/Icc.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ lemma contMDiff_subtype_coe_Icc : CMDiff n (fun (z : Icc x y) ↦ (z : ℝ)) :=
7676
suffices ContDiffWithinAt ℝ n _ (range ↑(𝓡∂ 1)) _ by simpa
7777
split_ifs with hz
7878
· simp? [IccLeftChart, Function.comp_def, modelWithCornersEuclideanHalfSpace] says
79-
simp only [IccLeftChart, Fin.isValue, OpenPartialHomeomorph.mk_coe_symm,
79+
simp only [IccLeftChart, Fin.isValue, OpenPartialHomeomorph.coe_mk_symm,
8080
PartialEquiv.coe_symm_mk, modelWithCornersEuclideanHalfSpace, ModelWithCorners.mk_symm,
8181
Function.comp_def, Function.update_self, ModelWithCorners.mk_coe,
82-
OpenPartialHomeomorph.mk_coe]
82+
OpenPartialHomeomorph.coe_mk]
8383
rw [Subtype.range_val_subtype]
8484
have : ContDiff ℝ n (fun (z : EuclideanSpace ℝ (Fin 1)) ↦ z 0 + x) := by fun_prop
8585
apply this.contDiffWithinAt.congr_of_eventuallyEq_of_mem; swap
@@ -92,10 +92,10 @@ lemma contMDiff_subtype_coe_Icc : CMDiff n (fun (z : Icc x y) ↦ (z : ℝ)) :=
9292
linarith
9393
· simp only [not_lt] at hz
9494
simp? [IccRightChart, Function.comp_def, modelWithCornersEuclideanHalfSpace] says
95-
simp only [IccRightChart, Fin.isValue, OpenPartialHomeomorph.mk_coe_symm,
95+
simp only [IccRightChart, Fin.isValue, OpenPartialHomeomorph.coe_mk_symm,
9696
PartialEquiv.coe_symm_mk, modelWithCornersEuclideanHalfSpace, ModelWithCorners.mk_symm,
9797
Function.comp_def, Function.update_self, ModelWithCorners.mk_coe,
98-
OpenPartialHomeomorph.mk_coe]
98+
OpenPartialHomeomorph.coe_mk]
9999
rw [Subtype.range_val_subtype]
100100
have : ContDiff ℝ n (fun (z : EuclideanSpace ℝ (Fin 1)) ↦ y - z 0) := by fun_prop
101101
apply this.contDiffWithinAt.congr_of_eventuallyEq_of_mem; swap

Mathlib/Geometry/Manifold/Instances/Sphere.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ instance EuclideanSpace.instIsManifoldSphere
411411
PartialEquiv.symm_source, stereographic'_target, stereographic'_source]
412412
simp only [modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm,
413413
Set.range_id, Set.inter_univ, Set.univ_inter, Set.compl_singleton_eq, Set.preimage_setOf_eq]
414-
simp only [id, comp_apply, OpenPartialHomeomorph.coe_coe_symm,
414+
simp only [id, comp_apply, OpenPartialHomeomorph.coe_toPartialEquiv_symm,
415415
innerSL_apply_apply, Ne, sphere_ext_iff, real_inner_comm (v' : E)]
416416
rfl)
417417

Mathlib/Geometry/Manifold/IsManifold/ExtChartAt.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ lemma isInvertible_fderivWithin_extendCoordChange (hn : n ≠ 0)
408408
· exact I.uniqueDiffOn_extendCoordChange_source _ (φ.map_source hx)
409409
· exact (φ.left_inv hx ▸ ((hφ _ hx).differentiableWithinAt hn) :)
410410
· exact (hφ' _ (φ.map_source hx)).differentiableWithinAt hn
411-
· exact φ.symm_mapsTo
411+
· exact φ.mapsTo_symm
412412
· exact I.uniqueDiffOn_extendCoordChange_source _ (φ.map_source hx)
413413
· rw [← fderivWithin_comp, fderivWithin_congr' φ.leftInvOn.eqOn hx, fderivWithin_id]
414414
· exact I.uniqueDiffOn_extendCoordChange_source _ hx

Mathlib/Geometry/Manifold/LocalDiffeomorph.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def IsLocalDiffeomorph.diffeomorphOfBijective
340340
have aux (x) : EqOn g (Φ x).symm (Φ x).target :=
341341
eqOn_of_leftInvOn_of_rightInvOn (fun x' _ ↦ hgInverse.1 x')
342342
(LeftInvOn.congr_left ((Φ x).toOpenPartialHomeomorph).rightInvOn
343-
((Φ x).toOpenPartialHomeomorph).symm_mapsTo (hyp x).2.symm)
343+
((Φ x).toOpenPartialHomeomorph).mapsTo_symm (hyp x).2.symm)
344344
(fun _y hy ↦ (Φ x).map_target hy)
345345
exact {
346346
toFun := f

Mathlib/Geometry/Manifold/LocalInvariantProperties.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ theorem liftPropOn_indep_chart [HasGroupoid M G] [HasGroupoid M' G'] (he : e ∈
337337
(hf : f ∈ G'.maximalAtlas M') (h : LiftPropOn P g s) {y : H}
338338
(hy : y ∈ e.target ∩ e.symm ⁻¹' (s ∩ g ⁻¹' f.source)) :
339339
P (f ∘ g ∘ e.symm) (e.symm ⁻¹' s) y := by
340-
convert! ((hG.liftPropWithinAt_indep_chart he (e.symm_mapsTo hy.1) hf hy.2.2).1 (h _ hy.2.1)).2
340+
convert! ((hG.liftPropWithinAt_indep_chart he (e.mapsTo_symm hy.1) hf hy.2.2).1 (h _ hy.2.1)).2
341341
rw [e.right_inv hy.1]
342342

343343
theorem liftPropWithinAt_inter' (ht : t ∈ 𝓝[s] x) :

Mathlib/Geometry/Manifold/MFDeriv/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ theorem mdifferentiableWithinAt_iff_target :
223223
ContinuousWithinAt f s x :=
224224
and_iff_left_of_imp <| (continuousAt_extChartAt _).comp_continuousWithinAt
225225
simp_rw [cont, DifferentiableWithinAtProp, extChartAt, OpenPartialHomeomorph.extend,
226-
PartialEquiv.coe_trans,
227-
ModelWithCorners.toPartialEquiv_coe, OpenPartialHomeomorph.coe_coe, modelWithCornersSelf_coe,
228-
chartAt_self_eq, OpenPartialHomeomorph.refl_apply]
226+
PartialEquiv.coe_trans, ModelWithCorners.toPartialEquiv_coe,
227+
OpenPartialHomeomorph.coe_toPartialEquiv, modelWithCornersSelf_coe, chartAt_self_eq,
228+
OpenPartialHomeomorph.refl_apply]
229229
rfl
230230

231231
theorem mdifferentiableAt_iff_target {x : M} :

Mathlib/Geometry/Manifold/VectorBundle/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ theorem contMDiffWithinAt_totalSpace {f : M → TotalSpace F E} {s : Set M} {x
188188
((FiberBundle.continuous_proj F E).continuousWithinAt.comp hf (mapsTo_image f s))
189189
((Trivialization.open_baseSet _).mem_nhds (mem_baseSet_trivializationAt F E _))
190190
refine EventuallyEq.contMDiffWithinAt_iff (eventually_of_mem h1 fun x hx => ?_) ?_
191-
· simp_rw [Function.comp, OpenPartialHomeomorph.coe_coe, Trivialization.coe_coe]
191+
· simp_rw [Function.comp, OpenPartialHomeomorph.coe_toPartialEquiv, Trivialization.coe_coe]
192192
rw [Trivialization.coe_fst']
193193
exact hx
194194
· simp only [mfld_simps]
@@ -498,7 +498,7 @@ theorem contMDiffOn (e : Trivialization F (π F E)) [MemTrivializationAtlas e] :
498498

499499
theorem contMDiffOn_symm (e : Trivialization F (π F E)) [MemTrivializationAtlas e] :
500500
ContMDiffOn (IB.prod 𝓘(𝕜, F)) (IB.prod 𝓘(𝕜, F)) n e.toOpenPartialHomeomorph.symm e.target := by
501-
rw [e.contMDiffOn_iff e.toOpenPartialHomeomorph.symm_mapsTo]
501+
rw [e.contMDiffOn_iff e.toOpenPartialHomeomorph.mapsTo_symm]
502502
refine ⟨contMDiffOn_fst.congr fun x hx ↦ e.proj_symm_apply hx,
503503
contMDiffOn_snd.congr fun x hx ↦ ?_⟩
504504
rw [e.apply_symm_apply hx]

0 commit comments

Comments
 (0)