The chart distance is Mathlib's Riemannian distance #
The remainder of step 1 of RC6a. An open set U ⊆ ℝⁿ is a manifold in Mathlib
(TopologicalSpace.Opens, modelled on ℝⁿ), and a Riemannian metric g on U
(IsRiemMetric g U) makes its tangent bundle a Riemannian bundle: the inner product on the tangent
space at x is g_x(v, w) = v ⬝ g(x) w. Mathlib's Manifold.riemannianEDist is then the infimum
of the lengths of C¹ paths in U, measured with these norms. This file proves that it agrees
with the distance dist g U of Metric.lean, so that the expansion of the squared distance
(DistExpansion.lean) is a statement about Mathlib's Riemannian distance.
The two definitions differ in two details, both handled here. Mathlib's paths are defined on
[0, 1] and are C¹ as maps of manifolds with boundary; IsAdmissible asks for a C¹ map on all
of ℝ that stays in U on [0, 1]. And dist is a real infimum, so it is the junk value 0
when no admissible curve joins the two points, where riemannianEDist is ⊤.
Definitions #
bilin A: the bilinear form(v, w) ↦ v ⬝ A wof a matrix, as a continuous bilinear map.IsRiemMetric.riemannianMetric,IsRiemMetric.riemannianBundle: the Riemannian structure of the tangent bundle ofUgiven byg. It depends ong, so it is not a global instance; the statements install it withletI.
Main results #
IsRiemMetric.enorm_tangent: the norm of a tangent vector is√(g_x(v, v)).mfderiv_eq_deriv: the manifold derivative of a curve inUis its ordinary derivative.IsRiemMetric.pathELength_eq: Mathlib's length of a curve islength g.IsRiemMetric.riemannianEDist_eq_iInf:riemannianEDistis the infimum of the lengths of admissible curves.IsRiemMetric.riemannianEDist_eq: if an admissible curve joinsxandy, thenriemannianEDist x y = dist g U x y; otherwiseriemannianEDist x y = ⊤(IsRiemMetric.riemannianEDist_eq_top).IsRiemMetric.dist_eq_toReal_riemannianEDist:dist g U x y = (riemannianEDist x y).toReal, with no hypothesis.IsRiemMetric.exists_isAdmissible,IsRiemMetric.riemannianEDist_eq_of_isPreconnected: on a connectedUany two points are joined by an admissible curve, so the two distances agree everywhere.
The Riemannian bundle of g #
The Riemannian metric of g on the tangent bundle of U: at x the inner product
g_x(v, w) = v ⬝ g(x) w. It is positive definite because g is, and it defines the topology of
ℝⁿ on each tangent space because g(x) ≥ λ |·|² for some λ > 0.
Equations
- hg.riemannianMetric = { inner := fun (x : ↥U) => Lightlike.Geodesic.bilin (g ↑x), symm := ⋯, pos := ⋯, continuousAt := ⋯, isVonNBounded := ⋯ }
Instances For
The tangent bundle of U as a Riemannian bundle with the metric g. It is not a global
instance (it depends on g); statements install it with letI.
Equations
- hg.riemannianBundle = { g := hg.riemannianMetric }
Instances For
In the Riemannian bundle of g the norm of a tangent vector v at x is √(g_x(v, v)).
The manifold derivative of a curve γ in U, applied to 1, is the ordinary derivative of
the curve in ℝⁿ: the charts of U are restrictions of the identity.
Lengths and distances #
Mathlib's length is length g. If a curve γ in U agrees near every point of
(0, 1) with a C¹ curve c that stays in U on [0, 1], then Mathlib's length of γ on
[0, 1] is the length length g c 0 1.
Mathlib's Riemannian distance is at most the length of every admissible curve.
If Mathlib's Riemannian distance is less than r, some admissible curve is shorter than r.
Mathlib provides a C¹ path on all of ℝ (constant near the endpoints); in ℝⁿ it is an
admissible curve.
Mathlib's Riemannian distance is the infimum of the lengths of admissible curves, with no
hypothesis on x and y (the infimum of the empty family is ⊤).
If no admissible curve joins x and y, Mathlib's Riemannian distance is ⊤ (while
dist g U x y is the junk value 0).
The chart distance is Mathlib's Riemannian distance. If an admissible curve joins x
and y, then riemannianEDist x y = dist g U x y for the Riemannian bundle of g on U.
dist g U x y = (riemannianEDist x y).toReal for all x, y ∈ U: when no admissible curve
exists, both sides are 0.
Connected domains #
An admissible curve in V is admissible in every larger set.
On a connected U Mathlib's Riemannian distance is finite. Points of a small ball are joined
by a segment, and the relation "finite distance" is transitive (Mathlib's triangle inequality),
so it holds on all of the connected set U.
On a connected U any two points are joined by an admissible curve, so dist g U takes no
junk values there.
The chart distance is Mathlib's Riemannian distance on a connected U, for all
x, y ∈ U.