The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V23. Manifolds and bundles

Mathlib.Geometry.Manifold.Riemannian.Basic

24 declarations and 6 deprecated aliases. Mathlib docs Β· Source

Riemannian manifolds

A Riemannian manifold M is a real manifold such that its tangent spaces are endowed with an inner product, depending smoothly on the point, and such that M has an emetric space structure for which the distance is the infimum of lengths of paths.

We register a Prop-valued typeclass IsRiemannianManifold I M recording this fact, building on top of [EMetricSpace M] [RiemannianBundle (fun (x : M) ↦ TangentSpace I x)].

We show that an inner product vector space, with the associated canonical Riemannian metric, satisfies the predicate IsRiemannianManifold π“˜(ℝ, E) E.

In a general manifold with a Riemannian metric, we define the associated extended distance in the manifold, and show that it defines the same topology as the pre-existing one. Therefore, one may endow the manifold with an emetric space structure, see EMetricSpace.ofRiemannianMetric. By definition, it then satisfies the predicate IsRiemannianManifold I M.

The following code block is the standard way to say "Let M be a C^∞ Riemannian manifold".

open scoped Bundle
variable
  {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
  {H : Type*} [TopologicalSpace H] {I : ModelWithCorners ℝ E H}
  {M : Type*} [EMetricSpace M] [ChartedSpace H M] [IsManifold I ∞ M]
  [RiemannianBundle (fun (x : M) ↦ TangentSpace I x)]
  [IsContMDiffRiemannianBundle I ∞ E (fun (x : M) ↦ TangentSpace I x)]
  [IsRiemannianManifold I M]

To register a C^n manifold for a general n, one should replace [IsManifold I ∞ M] with [IsManifold I n M] [IsManifold I 1 M], where the second one is needed to ensure that the tangent bundle is well behaved (not necessary when n is concrete like 2 or 3 as there are automatic instances for these cases). One can require whatever regularity one wants in the IsContMDiffRiemannianBundle instance above, for example [IsContMDiffRiemannianBundle I n E (fun (x : M) ↦ TangentSpace I x)], and one should also add [IsContinuousRiemannianBundle E (fun (x : M) ↦ TangentSpace I x)] (as above, Lean cannot infer the latter from the former as it cannot guess n).

Riemannian structure on an inner product vector space

We endow an inner product vector space with the canonical Riemannian metric, given by the inner product of the vector space in each of the tangent spaces, and we show that this construction satisfies the IsRiemannianManifold π“˜(ℝ, E) E predicate, i.e., the extended distance between two points is the infimum of the length of paths between these points.

Constructing a distance from a Riemannian structure

Let M be a real manifold with a Riemannian structure. We construct the associated distance and show that the associated topology coincides with the pre-existing topology. Therefore, one may endow M with an emetric space structure, called EMetricSpace.ofRiemannianMetric. Moreover, we show that in this case the resulting emetric space satisfies the predicate IsRiemannianManifold I M.

Showing that the distance topology coincides with the pre-existing topology is not trivial. The two inclusions are proved respectively in eventually_riemannianEDist_lt and setOfPred_riemannianEDist_lt_subset_nhds.

For the first one, we have to show that points which are close for the topology are at small distance. For this, we use the path between the two points which is the pullback of the segment in the extended chart, and argue that it is short because the images are close in the extended chart.

For the second one, we have to show that any neighborhood of x contains all the points y with riemannianEDist x y < c for some c > 0. For this, we argue that a short path from x to y remains short in the extended chart, and therefore it doesn't have the time to exit the image of the neighborhood in the extended chart.

class IsRiemannianManifold E3 #

{E : Type u_1} β†’
  [inst : NormedAddCommGroup E] β†’
    [inst_1 : NormedSpace ℝ E] β†’
      {H : Type u_2} β†’
        [inst_2 : TopologicalSpace H] β†’
          (I : ModelWithCorners ℝ E H) β†’
            (M : Type u_3) β†’
              [inst_3 : TopologicalSpace M] β†’
                [PseudoEMetricSpace M] β†’
                  [inst_5 : ChartedSpace H M] β†’ [Bundle.RiemannianBundle fun x ↦ TangentSpace I x] β†’ Prop

Consider a manifold in which the tangent spaces are already endowed with an inner product, and the space is already endowed with an extended distance. We say that this is a Riemannian manifold if the distance is given by the infimum of the lengths of C^1 paths, measured using the norm in the tangent spaces.

This is a Prop-valued typeclass, on top of existing data.

If you need to construct a distance using a Riemannian structure, see EMetricSpace.ofRiemannianMetric.

ctor IsRiemannianManifold.mk E0 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  {I : ModelWithCorners ℝ E H} {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : PseudoEMetricSpace M]
  [inst_5 : ChartedSpace H M] [inst_6 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x],
  (βˆ€ (x y : M), edist x y = Manifold.riemannianEDist I x y) β†’ IsRiemannianManifold I M

theorem IsRiemannianManifold.out E1 #

βˆ€ {E : Type u_1} {inst : NormedAddCommGroup E} {inst_1 : NormedSpace ℝ E} {H : Type u_2} {inst_2 : TopologicalSpace H}
  {I : ModelWithCorners ℝ E H} {M : Type u_3} {inst_3 : TopologicalSpace M} {inst_4 : PseudoEMetricSpace M}
  {inst_5 : ChartedSpace H M} {inst_6 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x}
  [self : IsRiemannianManifold I M] (x y : M), edist x y = Manifold.riemannianEDist I x y

def riemannianMetricVectorSpace E1 #

(F : Type u_4) β†’
  [inst : NormedAddCommGroup F] β†’
    [inst_1 : InnerProductSpace ℝ F] β†’
      Bundle.ContMDiffRiemannianMetric (modelWithCornersSelf ℝ F) ⊀ F fun x ↦ TangentSpace (modelWithCornersSelf ℝ F) x

The standard Riemannian metric on a vector space with an inner product, given by this inner product on each tangent space.

instance instRiemannianBundleTangentSpaceRealModelWithCornersSelf E0 #

{F : Type u_4} β†’
  [inst : NormedAddCommGroup F] β†’
    [inst_1 : InnerProductSpace ℝ F] β†’ Bundle.RiemannianBundle fun x ↦ TangentSpace (modelWithCornersSelf ℝ F) x

theorem norm_tangentSpace_vectorSpace E1 #

βˆ€ {F : Type u_4} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}
  {v : TangentSpace (modelWithCornersSelf ℝ F) x}, β€–vβ€– = β€–(NormedSpace.fromTangentSpace x) vβ€–

theorem nnNorm_tangentSpace_vectorSpace E1 #

βˆ€ {F : Type u_4} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}
  {v : TangentSpace (modelWithCornersSelf ℝ F) x}, β€–vβ€–β‚Š = β€–(NormedSpace.fromTangentSpace x) vβ€–β‚Š

theorem eNorm_tangentSpace_vectorSpace E1 #

βˆ€ {F : Type u_4} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}
  {v : TangentSpace (modelWithCornersSelf ℝ F) x}, β€–vβ€–β‚‘ = β€–(NormedSpace.fromTangentSpace x) vβ€–β‚‘

theorem lintegral_fderiv_lineMap_eq_edist E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {x y : E},
  ∫⁻ (t : ℝ) in Set.Icc 0 1, β€–(fderivWithin ℝ (⇑(ContinuousAffineMap.lineMap x y)) (Set.Icc 0 1) t) 1β€–β‚‘ = edist x y

instance instIsRiemannianManifoldModelWithCornersSelfReal E0 #

βˆ€ {F : Type u_4} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F],
  IsRiemannianManifold (modelWithCornersSelf ℝ F) F

An inner product vector space is a Riemannian manifold, i.e., the distance between two points is the infimum of the lengths of paths between these points.

def normedAddCommGroupTangentSpaceVectorSpace E1 #

{E : Type u_1} β†’
  [inst : NormedAddCommGroup E] β†’
    [inst_1 : NormedSpace ℝ E] β†’ (x : E) β†’ NormedAddCommGroup (TangentSpace (modelWithCornersSelf ℝ E) x)

Register on the tangent space to a normed vector space the same NormedAddCommGroup structure as in the vector space.

Should not be a global instance, as it does not coincide definitionally with the Riemannian structure for inner product spaces, but can be activated locally.

def normedSpaceTangentSpaceVectorSpace E1 #

{E : Type u_1} β†’
  [inst : NormedAddCommGroup E] β†’
    [inst_1 : NormedSpace ℝ E] β†’ (x : E) β†’ NormedSpace ℝ (TangentSpace (modelWithCornersSelf ℝ E) x)

Register on the tangent space to a normed vector space the same NormedSpace structure as in the vector space.

Should not be a global instance, as it does not coincide definitionally with the Riemannian structure for inner product spaces, but can be activated locally.

theorem eventually_norm_mfderiv_extChartAt_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0, βˆ€αΆ  (y : M) in nhds x, β€–mfderiv% ↑(extChartAt I x) yβ€– < C

theorem eventually_eNorm_mfderiv_extChartAt_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0, βˆ€αΆ  (y : M) in nhds x, β€–mfderiv% ↑(extChartAt I x) yβ€–β‚‘ < ↑C

theorem eventually_norm_mfderivWithin_symm_extChartAt_comp_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0, βˆ€αΆ  (y : M) in nhds x, β€–mfderiv[Set.range ↑I] ↑(extChartAt I x).symm (↑(extChartAt I x) y)β€– < C

theorem eventually_norm_mfderivWithin_symm_extChartAt_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0,
    βˆ€αΆ  (y : E) in nhdsWithin (↑(extChartAt I x) x) (Set.range ↑I), β€–mfderiv[Set.range ↑I] ↑(extChartAt I x).symm yβ€– < C

theorem eventually_eNorm_mfderivWithin_symm_extChartAt_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0,
    βˆ€αΆ  (y : E) in nhdsWithin (↑(extChartAt I x) x) (Set.range ↑I),
      β€–mfderiv[Set.range ↑I] ↑(extChartAt I x).symm yβ€–β‚‘ < ↑C

theorem eventually_riemannianEDist_le_edist_extChartAt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M),
  βˆƒ C > 0, βˆ€αΆ  (y : M) in nhds x, Manifold.riemannianEDist I x y ≀ ↑C * edist (↑(extChartAt I x) x) (↑(extChartAt I x) y)

Around any point x, the Riemannian distance between two points is controlled by the distance in the extended chart. In other words, the extended chart is locally Lipschitz.

theorem eventually_riemannianEDist_lt E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] (x : M) {c : ENNReal},
  0 < c β†’ βˆ€αΆ  (y : M) in nhds x, Manifold.riemannianEDist I x y < c

If points are close for the topology, then their Riemannian distance is small.

theorem setOfPred_riemannianEDist_lt_subset_nhds E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] [RegularSpace M] {x : M} {s : Set M},
  s ∈ nhds x β†’ βˆƒ c > 0, {y | Manifold.riemannianEDist I x y < ↑c} βŠ† s

Any neighborhood of x contains all the points which are close enough to x for the Riemannian distance, ℝβ‰₯0 version.

theorem setOfPred_riemannianEDist_lt_subset_nhds' E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] [RegularSpace M] {x : M} {s : Set M},
  s ∈ nhds x β†’ βˆƒ c > 0, {y | Manifold.riemannianEDist I x y < c} βŠ† s

Any neighborhood of x contains all the points which are close enough to x for the Riemannian distance, ℝβ‰₯0∞ version.

def PseudoEMetricSpace.ofRiemannianMetric E1 #

{E : Type u_1} β†’
  [inst : NormedAddCommGroup E] β†’
    [inst_1 : NormedSpace ℝ E] β†’
      {H : Type u_2} β†’
        [inst_2 : TopologicalSpace H] β†’
          (I : ModelWithCorners ℝ E H) β†’
            (M : Type u_3) β†’
              [inst_3 : TopologicalSpace M] β†’
                [inst_4 : ChartedSpace H M] β†’
                  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] β†’
                    [inst_6 : IsManifold I 1 M] β†’
                      [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] β†’
                        [RegularSpace M] β†’ PseudoEMetricSpace M

The pseudoemetric space structure associated to a Riemannian metric on a manifold. Designed so that the topology is defeq to the original one.

This should only be used when constructing data in specific situations. To develop the theory, one should rather assume that there is an already existing emetric space structure, which satisfies additionally the predicate IsRiemannianManifold I M.

instance instIsRiemannianManifold E0 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {H : Type u_2} [inst_2 : TopologicalSpace H]
  (I : ModelWithCorners ℝ E H) {M : Type u_3} [inst_3 : TopologicalSpace M] [inst_4 : ChartedSpace H M]
  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] [inst_6 : IsManifold I 1 M]
  [inst_7 : IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] [inst_8 : RegularSpace M], IsRiemannianManifold I M

Given a manifold with a Riemannian metric, consider the associated Riemannian distance. Then by definition the distance is the infimum of the length of paths between the points, i.e., the manifold satisfies the IsRiemannianManifold I M predicate.

def EMetricSpace.ofRiemannianMetric E1 #

{E : Type u_1} β†’
  [inst : NormedAddCommGroup E] β†’
    [inst_1 : NormedSpace ℝ E] β†’
      {H : Type u_2} β†’
        [inst_2 : TopologicalSpace H] β†’
          (I : ModelWithCorners ℝ E H) β†’
            (M : Type u_3) β†’
              [inst_3 : TopologicalSpace M] β†’
                [inst_4 : ChartedSpace H M] β†’
                  [inst_5 : Bundle.RiemannianBundle fun x ↦ TangentSpace I x] β†’
                    [inst_6 : IsManifold I 1 M] β†’
                      [IsContinuousRiemannianBundle E fun x ↦ TangentSpace I x] β†’ [T3Space M] β†’ EMetricSpace M

The emetric space structure associated to a Riemannian metric on a manifold. Designed so that the topology is defeq to the original one.

This should only be used when constructing data in specific situations. To develop the theory, one should rather assume that there is an already existing emetric space structure, which satisfies additionally the predicate IsRiemannianManifold I M.

Deprecated aliases

NameNew nameSince
enorm_tangentSpace_vectorSpaceeNorm_tangentSpace_vectorSpace2026-11-06
eventually_enorm_mfderivWithin_symm_extChartAt_lteventually_eNorm_mfderivWithin_symm_extChartAt_lt2026-11-06
eventually_enorm_mfderiv_extChartAt_lteventually_eNorm_mfderiv_extChartAt_lt2026-11-06
nnnorm_tangentSpace_vectorSpacennNorm_tangentSpace_vectorSpace2026-10-31
setOf_riemannianEDist_lt_subset_nhdssetOfPred_riemannianEDist_lt_subset_nhds2026-07-09
setOf_riemannianEDist_lt_subset_nhds'setOfPred_riemannianEDist_lt_subset_nhds'2026-07-09