The areas / V23. Manifolds and bundles
Mathlib.Geometry.Manifold.Instances.Sphere
48 declarations and 2 deprecated aliases. Mathlib docs · Source
Manifold structure on the sphere
This file defines stereographic projection from the sphere in an inner product space E, and uses
it to put an analytic manifold structure on the sphere.
Main results
For a unit vector v in E, the definition stereographic gives the stereographic projection
centred at v, an open partial homeomorphism from the sphere to (ℝ ∙ v)ᗮ (the orthogonal
complement of v).
For finite-dimensional E, we then construct an analytic manifold instance on the sphere; the
charts here are obtained by composing the open partial homeomorphisms stereographic with arbitrary
isometries from (ℝ ∙ v)ᗮ to Euclidean space.
We prove two lemmas about C^n maps:
contMDiff_coe_spherestates that the coercion map from the sphere intoEis analytic; this is a useful tool for constructing smooth maps from the sphere.contMDiff.codRestrict_spherestates that a map from a manifold into the sphere isC^mif its lift to a map toEisC^m; this is a useful tool for constructingC^mmaps to the sphere.
As an application we prove contMDiffNegSphere, that the antipodal map is analytic.
Finally, we equip the Circle (defined in Analysis.Complex.Circle to be the sphere in ℂ
centred at 0 of radius 1) with the following structure:
- a charted space with model space
EuclideanSpace ℝ (Fin 1)(inherited fromMetric.Sphere) - an analytic Lie group with model with corners
𝓡 1
We furthermore show that Circle.exp (defined in Analysis.Complex.Circle to be the natural
map fun t ↦ exp (t * I) from ℝ to Circle) is analytic.
Implementation notes
The model space for the charted space instance is EuclideanSpace ℝ (Fin n), where n is a
natural number satisfying the typeclass assumption [Fact (finrank ℝ E = n + 1)]. This may seem a
little awkward, but it is designed to circumvent the problem that the literal expression for the
dimension of the model space (up to definitional equality) determines the type. If one used the
naive expression EuclideanSpace ℝ (Fin (finrank ℝ E - 1)) for the model space, then the sphere in
ℂ would be a manifold with model space EuclideanSpace ℝ (Fin (2 - 1)) but not with model space
EuclideanSpace ℝ (Fin 1).
TODO
Relate the stereographic projection to the inversion of the space.
Construction of the stereographic projection
Charted space structure on the sphere
In this section we construct a charted space structure on the unit sphere in a finite-dimensional
real inner product space E; that is, we show that it is locally homeomorphic to the Euclidean
space of dimension one less than E.
The restriction to finite dimension is for convenience. The most natural ChartedSpace
structure for the sphere uses the stereographic projection from the antipodes of a point as the
canonical chart at this point. However, the codomain of the stereographic projection constructed
in the previous section is (ℝ ∙ v)ᗮ, the orthogonal complement of the vector v in E which is
the "north pole" of the projection, so a priori these charts all have different codomains.
So it is necessary to prove that these codomains are all continuously linearly equivalent to a fixed normed space. This could be proved in general by a simple case of Gram-Schmidt orthogonalization, but in the finite-dimensional case it follows more easily by dimension-counting.
Analytic manifold structure on the sphere
theorem OrthonormalBasis.fromOrthogonalSpanSingleton.congr_simp E1 #
∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
(n : ℕ) [inst_3 : Fact (Module.finrank 𝕜 E = n + 1)] {v : E} (hv : v ≠ 0),
OrthonormalBasis.fromOrthogonalSpanSingleton n hv = OrthonormalBasis.fromOrthogonalSpanSingleton n hv
theorem stereoInvFun.congr_simp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1)
(w w_1 : ↥(ℝ ∙ v)ᗮ), w = w_1 → stereoInvFun hv w = stereoInvFun hv w_1
theorem stereographic.congr_simp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
stereographic hv = stereographic hv
theorem stereographic'.congr_simp E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (n : ℕ)
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v v_1 : ↑(Metric.sphere 0 1)),
v = v_1 → stereographic' n v = stereographic' n v_1
def stereoToFun E1 #
{E : Type u_1} → [inst : NormedAddCommGroup E] → [inst_1 : InnerProductSpace ℝ E] → (v : E) → E → ↥(ℝ ∙ v)ᗮ
Stereographic projection, forward direction. This is a map from an inner product space E to
the orthogonal complement of an element v of E. It is smooth away from the affine hyperplane
through v parallel to the orthogonal complement. It restricts on the sphere to the stereographic
projection.
theorem stereoToFun_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (x : E),
stereoToFun v x = (2 / (1 - ((innerSL ℝ) v) x)) • (ℝ ∙ v)ᗮ.orthogonalProjectionOnto x
theorem contDiffOn_stereoToFun E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} {n : WithTop ℕ∞},
ContDiffOn ℝ n (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}
theorem continuousOn_stereoToFun E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E},
ContinuousOn (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}
def stereoInvFunAux E0 #
{E : Type u_1} → [inst : NormedAddCommGroup E] → [InnerProductSpace ℝ E] → E → E → E
Auxiliary function for the construction of the reverse direction of the stereographic
projection. This is a map from the orthogonal complement of a unit vector v in an inner product
space E to E; we will later prove that it takes values in the unit sphere.
For most purposes, use stereoInvFun, not stereoInvFunAux.
theorem stereoInvFunAux_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (w : E),
stereoInvFunAux v w = (‖w‖ ^ 2 + 4)⁻¹ • (4 • w + (‖w‖ ^ 2 - 4) • v)
theorem stereoInvFunAux_mem E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E},
‖v‖ = 1 → ∀ {w : E}, w ∈ (ℝ ∙ v)ᗮ → stereoInvFunAux v w ∈ Metric.sphere 0 1
theorem hasFDerivAt_stereoInvFunAux E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (v : E),
HasFDerivAt (stereoInvFunAux v) (ContinuousLinearMap.id ℝ E) 0
theorem hasFDerivAt_stereoInvFunAux_comp_coe E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (v : E),
HasFDerivAt (stereoInvFunAux v ∘ Subtype.val) (ℝ ∙ v)ᗮ.subtypeL 0
theorem contDiff_stereoInvFunAux E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} {m : WithTop ℕ∞},
ContDiff ℝ m (stereoInvFunAux v)
def stereoInvFun E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
[inst_1 : InnerProductSpace ℝ E] → {v : E} → ‖v‖ = 1 → ↥(ℝ ∙ v)ᗮ → ↑(Metric.sphere 0 1)
Stereographic projection, reverse direction. This is a map from the orthogonal complement of a
unit vector v in an inner product space E to the unit sphere in E.
theorem stereoInvFun_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1) (w : ↥(ℝ ∙ v)ᗮ),
↑(stereoInvFun hv w) = (‖w‖ ^ 2 + 4)⁻¹ • (4 • ↑w + (‖w‖ ^ 2 - 4) • v)
theorem stereoInvFun_ne_north_pole E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1) (w : ↥(ℝ ∙ v)ᗮ),
stereoInvFun hv w ≠ ⟨v, ⋯⟩
theorem continuous_stereoInvFun E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
Continuous (stereoInvFun hv)
theorem stereo_left_inv E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1)
{x : ↑(Metric.sphere 0 1)}, ↑x ≠ v → stereoInvFun hv (stereoToFun v ↑x) = x
theorem stereo_right_inv E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1) (w : ↥(ℝ ∙ v)ᗮ),
stereoToFun v ↑(stereoInvFun hv w) = w
def stereographic E3 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
[inst_1 : InnerProductSpace ℝ E] → {v : E} → ‖v‖ = 1 → OpenPartialHomeomorph ↑(Metric.sphere 0 1) ↥(ℝ ∙ v)ᗮ
Stereographic projection from the unit sphere in E, centred at a unit vector v in E;
this is the version as an open partial homeomorphism.
theorem stereographic_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1)
(x : ↑(Metric.sphere 0 1)), ↑(stereographic hv) x = (2 / (1 - inner ℝ v ↑x)) • (ℝ ∙ v)ᗮ.orthogonalProjectionOnto ↑x
theorem stereographic_source E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
(stereographic hv).source = {⟨v, ⋯⟩}ᶜ
theorem stereographic_target E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
(stereographic hv).target = Set.univ
theorem stereographic_apply_neg E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (v : ↑(Metric.sphere 0 1)),
↑(stereographic ⋯) (-v) = 0
theorem stereographic_neg_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (v : ↑(Metric.sphere 0 1)),
↑(stereographic ⋯) v = 0
theorem surjective_stereographic E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
Function.Surjective ↑(stereographic hv)
theorem range_stereographic_symm E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1)
(hv' : autoParam (v ∈ Metric.sphere 0 1) range_stereographic_symm._auto_1),
Set.range ↑(stereographic hv).symm = {⟨v, hv'⟩}ᶜ
theorem isOpenEmbedding_stereographic_symm E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {v : E} (hv : ‖v‖ = 1),
Topology.IsOpenEmbedding ↑(stereographic hv).symm
def stereographic' E1 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
[inst_1 : InnerProductSpace ℝ E] →
(n : ℕ) →
[Fact (Module.finrank ℝ E = n + 1)] →
↑(Metric.sphere 0 1) → OpenPartialHomeomorph (↑(Metric.sphere 0 1)) (EuclideanSpace ℝ (Fin n))
Variant of the stereographic projection, for the sphere in an n + 1-dimensional inner product
space E. This version has codomain the Euclidean space of dimension n, and is obtained by
composing the original stereographic projection (stereographic) with an arbitrary linear isometry
from (ℝ ∙ v)ᗮ to the Euclidean space.
theorem stereographic'_source E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v : ↑(Metric.sphere 0 1)), (stereographic' n v).source = {v}ᶜ
theorem stereographic'_target E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v : ↑(Metric.sphere 0 1)), (stereographic' n v).target = Set.univ
instance EuclideanSpace.instChartedSpaceSphere E0 #
{E : Type u_1} →
[inst : NormedAddCommGroup E] →
[inst_1 : InnerProductSpace ℝ E] →
{n : ℕ} → [Fact (Module.finrank ℝ E = n + 1)] → ChartedSpace (EuclideanSpace ℝ (Fin n)) ↑(Metric.sphere 0 1)
The unit sphere in an n + 1-dimensional inner product space E is a charted space
modelled on the Euclidean space of dimension n.
instance instChartedSpaceEuclideanSpaceRealFinElemHAddNatOfNatSphere E0 #
(n : ℕ) → ChartedSpace (EuclideanSpace ℝ (Fin n)) ↑(Metric.sphere 0 1)
theorem sphere_ext_iff E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] (u v : ↑(Metric.sphere 0 1)),
u = v ↔ inner ℝ ↑u ↑v = 1
theorem stereographic'_symm_apply E0 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v : ↑(Metric.sphere 0 1)) (x : EuclideanSpace ℝ (Fin n)),
↑(↑(stereographic' n v).symm x) =
have U := (OrthonormalBasis.fromOrthogonalSpanSingleton n ⋯).repr;
(‖↑(U.symm x)‖ ^ 2 + 4)⁻¹ • 4 • ↑(U.symm x) + (‖↑(U.symm x)‖ ^ 2 + 4)⁻¹ • (‖↑(U.symm x)‖ ^ 2 - 4) • ↑v
instance EuclideanSpace.instIsManifoldSphere E3 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)],
IsManifold (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) ⊤ ↑(Metric.sphere 0 1)
The unit sphere in an n + 1-dimensional inner product space E is an analytic manifold,
modelled on the Euclidean space of dimension n.
instance instIsManifoldRealEuclideanSpaceFinModelWithCornersSelfTopWithTopENatElemHAddNatOfNatSphere E0 #
∀ (n : ℕ), IsManifold (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) ⊤ ↑(Metric.sphere 0 1)
theorem contMDiff_coe_sphere E3 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {m : WithTop ℕ∞} {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)],
ContMDiff (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) (modelWithCornersSelf ℝ E) m Subtype.val
The inclusion map (i.e., coe) from the sphere in E to E is analytic.
theorem ContMDiff.codRestrict_sphere E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {m : WithTop ℕ∞} {F : Type u_2}
[inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {H : Type u_3} [inst_4 : TopologicalSpace H]
{I : ModelWithCorners ℝ F H} {M : Type u_4} [inst_5 : TopologicalSpace M] [inst_6 : ChartedSpace H M]
[IsManifold I m M] {n : ℕ} [inst_8 : Fact (Module.finrank ℝ E = n + 1)] {f : M → E},
ContMDiff I (modelWithCornersSelf ℝ E) m f →
∀ (hf' : ∀ (x : M), f x ∈ Metric.sphere 0 1),
ContMDiff I (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) m (Set.codRestrict f (Metric.sphere 0 1) hf')
If a C^m function f : M → E, where M is some manifold, takes values in the
sphere, then it restricts to a C^m function from M to the sphere.
theorem contMDiff_neg_sphere E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {m : WithTop ℕ∞} {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)],
ContMDiff (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin n))) m
fun x ↦ -x
The antipodal map is analytic.
theorem range_mvfderiv_subtypeVal E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v : ↑(Metric.sphere 0 1)), (↑(d% Subtype.val v)).range = (ℝ ∙ ↑v)ᗮ
Consider the differential of the inclusion of the sphere in E at the point v as a continuous
linear map from TangentSpace (𝓡 n) v to E. The range of this map is the orthogonal complement
of v in E.
theorem injective_mvfderiv_subtypeVal_sphere E1 #
∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] {n : ℕ}
[inst_2 : Fact (Module.finrank ℝ E = n + 1)] (v : ↑(Metric.sphere 0 1)), Function.Injective ⇑(d% Subtype.val v)
Consider the differential of the inclusion of the sphere in E at the point v as a continuous
linear map from TangentSpace (𝓡 n) v to E. This map is injective.
theorem finrank_real_complex_fact' E1 #
Fact (Module.finrank ℝ ℂ = 1 + 1)
Local instance to help the typeclass system to figure out 1 + 1 = 2.
instance instChartedSpaceEuclideanSpaceRealFinOfNatNatCircle E0 #
ChartedSpace (EuclideanSpace ℝ (Fin 1)) Circle
The unit circle in ℂ is a charted space modelled on EuclideanSpace ℝ (Fin 1). This
follows by definition from the corresponding result for Metric.Sphere.
instance instIsManifoldRealEuclideanSpaceFinOfNatNatModelWithCornersSelfTopWithTopENatCircle E0 #
IsManifold (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin 1))) ⊤ Circle
instance instLieGroupRealEuclideanSpaceFinOfNatNatModelWithCornersSelfTopWithTopENatCircle E0 #
LieGroup (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin 1))) ⊤ Circle
The unit circle in ℂ is an analytic Lie group.
theorem contMDiff_circleExp E1 #
∀ {m : WithTop ℕ∞},
ContMDiff (modelWithCornersSelf ℝ ℝ) (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin 1))) m ⇑Circle.exp
The map fun t ↦ exp (t * I) from ℝ to the unit circle in ℂ is analytic.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
mfderiv_coe_sphere_injective | injective_mvfderiv_subtypeVal_sphere | 2026-08-02 |
range_mfderiv_coe_sphere | range_mvfderiv_subtypeVal | 2026-08-02 |