Documentation

Lightlike.Regge.Geodesic.DistExpansion

The expansion of the squared distance for nearby points #

For a Riemannian coordinate metric g on an open U ⊆ ℝⁿ and a compact K ⊆ U, the squared distance of (U, g) satisfies, uniformly for x ∈ K,

d(x, x + w)² = F_x(w) + O(‖w‖⁵),

where F_x(w) = g(w, w) + ½ ∂_w g(w, w) + ⅙ ∂_w ∂_w g(w, w) - (1/12) g(Γ(w, w), Γ(w, w)) is the quartic jet distJet of Expansion.lean (all coefficients at x).

theorem Lightlike.Geodesic.distJet_zero {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} (x : Fin n → ℝ) :
distJet g x 0 = 0

The jet vanishes at w = 0.

theorem Lightlike.Geodesic.le_mul_dist_of_le_mul_length {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {a k : ℝ} (hk : 0 < k) {x y : Fin n → ℝ} (hne : ∃ (c : ℝ → Fin n → ℝ), IsAdmissible U c x y) (hlen : ∀ (c : ℝ → Fin n → ℝ), IsAdmissible U c x y → a ≤ k * length g c 0 1) :
a ≤ k * dist g U x y

A lower bound a ≤ k L(c) for the length of every admissible curve from x to y gives a ≤ k d(x, y), provided some admissible curve exists.

theorem Lightlike.Geodesic.LocalJet.distJet_ge_half {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {u : Fin n → ℝ} (hu : ‖u‖ ≤ 1) (hul : B ^ 3 * ‖u‖ ≤ l / 2) :
l / 2 * ‖u‖ ^ 2 ≤ distJet g x u

Where B³ ‖u‖ ≤ l / 2, the jet is at least (l / 2) ‖u‖².

theorem Lightlike.Geodesic.LocalJet.sqrt_le_length_of_calib {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {Φ : (Fin n → ℝ) → ℝ} {Φ' : (Fin n → ℝ) → (Fin n → ℝ) → ℝ} (hΦd : ∀ {W : ℝ → Fin n → ℝ} {W' : Fin n → ℝ} {t : ℝ}, HasDerivAt W W' t → HasDerivAt (fun (s : ℝ) => Φ (W s)) (Φ' (W t) W') t) (hΦ0 : Φ 0 = 0) {ρ k : ℝ} (hk : 0 ≤ k) (hρ : ρ ≤ δ) (hpos : ∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → 0 ≤ Φ u) (hcal : ∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → ∀ (v : Fin n → ℝ), |Φ' u v| ≤ 2 * √(Φ u) * √(normSq g (x + u) v) * k) {c : ℝ → Fin n → ℝ} (hc : ContDiff ℝ 1 c) (hc0 : c 0 = x) {T : ℝ} (hT : 0 ≤ T) (hball : ∀ t ∈ Set.Icc 0 T, ‖c t - x‖ ≤ ρ) :
√(Φ (c T - x)) ≤ k * length g c 0 T

Calibration along a curve, for any calibrated jet. Let Φ vanish at 0, have derivative Φ' along curves, and on the ball of radius ρ ≤ δ be nonnegative and calibrated with constant k ≥ 0: |Φ'(u)(v)| ≤ 2 √Φ(u) ‖v‖_{g(x+u)} k. Then a C¹ curve starting at x that stays in the ball of radius ρ about x has length at least √Φ(c T - x) / k on [0, T].

theorem Lightlike.Geodesic.LocalJet.distJet_calib {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {ρ : ℝ} (hρ : ρ ≤ δ) (hρl : B ^ 3 * ρ ≤ l / 2) :
(∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → 0 ≤ distJet g x u) ∧ ∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → ∀ (v : Fin n → ℝ), |distJetDeriv g x u v| ≤ 2 * √(distJet g x u) * √(normSq g (x + u) v) * (1 + calibConst B l * ρ ^ 3)

On the ball of radius ρ ≤ δ with B³ ρ ≤ l / 2, the quartic jet F_x is nonnegative and calibrated with constant 1 + κ ρ³ (κ = calibConst B l).

theorem Lightlike.Geodesic.LocalJet.sqrt_distJet_le_length {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {ρ : ℝ} (hρ : ρ ≤ δ) (hρl : B ^ 3 * ρ ≤ l / 2) {c : ℝ → Fin n → ℝ} (hc : ContDiff ℝ 1 c) (hc0 : c 0 = x) {T : ℝ} (hT : 0 ≤ T) (hball : ∀ t ∈ Set.Icc 0 T, ‖c t - x‖ ≤ ρ) :
√(distJet g x (c T - x)) ≤ (1 + calibConst B l * ρ ^ 3) * length g c 0 T

Calibration along a curve: a C¹ curve starting at x that stays in the ball of radius ρ about x (with ρ ≤ δ and B³ ρ ≤ l / 2) has length at least √F_x(c T - x) / (1 + κ ρ³) on [0, T], where κ = calibConst B l.

theorem Lightlike.Geodesic.LocalJet.length_ge_of_exit {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {ρ : ℝ} (hρ0 : 0 < ρ) (hρ : ρ ≤ δ) {c : ℝ → Fin n → ℝ} {y : Fin n → ℝ} (hc : IsAdmissible U c x y) {t₀ : ℝ} (ht₀ : t₀ ∈ Set.Icc 0 1) (hexit : ρ ≤ ‖c t₀ - x‖) :
√l * ρ ≤ length g c 0 1

Leaving the ball costs length: an admissible curve from x that reaches the sphere of radius ρ ≤ δ about x has length at least √l ρ.

theorem Lightlike.Geodesic.LocalJet.sqrt_le_length_of_calib_admissible {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {Φ : (Fin n → ℝ) → ℝ} {Φ' : (Fin n → ℝ) → (Fin n → ℝ) → ℝ} (hΦd : ∀ {W : ℝ → Fin n → ℝ} {W' : Fin n → ℝ} {t : ℝ}, HasDerivAt W W' t → HasDerivAt (fun (s : ℝ) => Φ (W s)) (Φ' (W t) W') t) (hΦ0 : Φ 0 = 0) {ρ k : ℝ} (hρ0 : 0 < ρ) (hρ : ρ ≤ δ) (hk1 : 1 ≤ k) (hpos : ∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → 0 ≤ Φ u) (hcal : ∀ (u : Fin n → ℝ), ‖u‖ ≤ ρ → ∀ (v : Fin n → ℝ), |Φ' u v| ≤ 2 * √(Φ u) * √(normSq g (x + u) v) * k) {w : Fin n → ℝ} (hΦw : Φ w ≤ l * ρ ^ 2) {c : ℝ → Fin n → ℝ} (hc : IsAdmissible U c x (x + w)) :
√(Φ w) ≤ k * length g c 0 1

The lower bound for one curve, for any calibrated jet: if Φ is calibrated with constant k ≥ 1 on the ball of radius ρ (as in sqrt_le_length_of_calib) and Φ(w) ≤ l ρ², then every admissible curve from x to x + w has length at least √Φ(w) / k. A curve that leaves the ball is longer than √l ρ ≥ √Φ(w).

theorem Lightlike.Geodesic.LocalJet.sqrt_distJet_le_length_of_admissible {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {A : ℝ} (hA : 1 ≤ A) (hAl : 2 * B ^ 3 ≤ l * A) {w : Fin n → ℝ} (hw : A * ‖w‖ ≤ δ) (hwl : B ^ 3 * (A * ‖w‖) ≤ l / 2) {c : ℝ → Fin n → ℝ} (hc : IsAdmissible U c x (x + w)) :
√(distJet g x w) ≤ (1 + calibConst B l * (A * ‖w‖) ^ 3) * length g c 0 1

The lower bound for one curve: with A ≥ 1, 2 B³ ≤ l A and the ball of radius A ‖w‖ inside the region of LocalJet and of the calibration, every admissible curve from x to x + w has length at least √F_x(w) / (1 + κ (A ‖w‖)³).

theorem Lightlike.Geodesic.LocalJet.sqrt_distJet_le_dist {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {A : ℝ} (hA : 1 ≤ A) (hAl : 2 * B ^ 3 ≤ l * A) {w : Fin n → ℝ} (hw : A * ‖w‖ ≤ δ) (hwl : B ^ 3 * (A * ‖w‖) ≤ l / 2) (hne : ∃ (c : ℝ → Fin n → ℝ), IsAdmissible U c x (x + w)) :
√(distJet g x w) ≤ (1 + calibConst B l * (A * ‖w‖) ^ 3) * dist g U x (x + w)

The lower bound for the distance: under the hypotheses of sqrt_distJet_le_length_of_admissible, if some admissible curve joins x and x + w, then √F_x(w) ≤ (1 + κ (A ‖w‖)³) d(x, x + w).

The upper bound: a trial curve #

noncomputable def Lightlike.Geodesic.trial {n : ℕ} (g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ) (x w : Fin n → ℝ) (t : ℝ) :
Fin n → ℝ

The trial curve x + t w + ½ t (1 - t) Γ_x(w, w) from x to x + w; it solves the geodesic equation c'' + Γ_x(c', c') = 0 to second order.

Equations
Instances For
    noncomputable def Lightlike.Geodesic.trialVel {n : ℕ} (g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ) (x w : Fin n → ℝ) (t : ℝ) :
    Fin n → ℝ

    The velocity w + ½ (1 - 2t) Γ_x(w, w) of the trial curve.

    Equations
    Instances For
      noncomputable def Lightlike.Geodesic.trialPoly {n : ℕ} (g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ) (x w : Fin n → ℝ) (t : ℝ) :

      The main part of the energy density of the trial curve: the terms of order at most four in w of g(c', c'), with the metric replaced by its Taylor polynomial at x.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        noncomputable def Lightlike.Geodesic.trialRem {n : ℕ} (g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ) (x w : Fin n → ℝ) (t : ℝ) :

        The remainder of the energy density of the trial curve: the Taylor remainder of the metric and the terms of order at least five in w.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Lightlike.Geodesic.trial_sub {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} (x w : Fin n → ℝ) (t : ℝ) :
          trial g x w t - x = t • w + (t * (1 - t) / 2) • chr g x w w

          The trial curve minus its starting point.

          theorem Lightlike.Geodesic.contDiff_trial {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} (x w : Fin n → ℝ) :
          ContDiff ℝ 1 (trial g x w)

          The trial curve is C¹ (it is a polynomial in t).

          theorem Lightlike.Geodesic.hasDerivAt_trial {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} (x w : Fin n → ℝ) (t : ℝ) :
          HasDerivAt (trial g x w) (trialVel g x w t) t

          The derivative of the trial curve.

          theorem Lightlike.Geodesic.normSq_trial_eq {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} (x w : Fin n → ℝ) (t : ℝ) :
          normSq g (trial g x w t) (trialVel g x w t) = trialPoly g x w t + trialRem g x w t

          The energy density of the trial curve splits into its main part and the remainder.

          theorem Lightlike.Geodesic.mul_le_of_abs_coef_le_one {c X b : ℝ} (hc : |c| ≤ 1) (hX : |X| ≤ b) :
          c * X ≤ b

          c X ≤ b when |c| ≤ 1 and |X| ≤ b.

          theorem Lightlike.Geodesic.abs_mul_le_one_of {a b : ℝ} (ha : |a| ≤ 1) (hb : |b| ≤ 1) :
          |a * b| ≤ 1

          Products of numbers of absolute value at most 1.

          theorem Lightlike.Geodesic.abs_sq_le_one_of {a : ℝ} (ha : |a| ≤ 1) :
          |a ^ 2| ≤ 1

          Squares of numbers of absolute value at most 1.

          theorem Lightlike.Geodesic.integral_trialShape (A0 A1 A2 A3 A4 A5 A6 K : ℝ) :
          ∫ (t : ℝ) in 0..1, A0 + (1 - 2 * t) / 2 * A1 + ((1 - 2 * t) / 2) ^ 2 * A2 + t * A3 + t * ((1 - 2 * t) / 2) * A4 + t * (1 - t) / 2 * A5 + 1 / 2 * t ^ 2 * A6 + K = A0 + A2 / 12 + A3 / 2 - A4 / 12 + A5 / 12 + A6 / 6 + K

          The integral of the main part, for arbitrary coefficients.

          theorem Lightlike.Geodesic.LocalJet.norm_le_one_of {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) :

          With 2 B ‖w‖ ≤ δ we have ‖w‖ ≤ 1.

          theorem Lightlike.Geodesic.LocalJet.add_sq_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw1 : ‖w‖ ≤ 1) :
          ‖w‖ + B * ‖w‖ ^ 2 ≤ 2 * B * ‖w‖

          ‖w‖ + B ‖w‖² ≤ 2 B ‖w‖ for ‖w‖ ≤ 1.

          theorem Lightlike.Geodesic.LocalJet.norm_trial_sub_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) {t : ℝ} (ht : t ∈ Set.Icc 0 1) :
          ‖trial g x w t - x‖ ≤ 2 * B * ‖w‖

          On [0, 1] the trial curve stays in the ball of radius 2 B ‖w‖ about x.

          theorem Lightlike.Geodesic.LocalJet.norm_trialVel_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) {t : ℝ} (ht : t ∈ Set.Icc 0 1) :
          ‖trialVel g x w t‖ ≤ 2 * B * ‖w‖

          On [0, 1] the speed of the trial curve is at most 2 B ‖w‖ (sup norm).

          theorem Lightlike.Geodesic.LocalJet.trialRem_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) {t : ℝ} (ht : t ∈ Set.Icc 0 1) :
          trialRem g x w t ≤ 51 * (B ^ 6 * ‖w‖ ^ 5)

          The remainder of the trial curve is at most 51 B⁶ ‖w‖⁵ on [0, 1].

          theorem Lightlike.Geodesic.sub_sq_le_of_sqrt_le {F d k : ℝ} (hF : 0 ≤ F) (hk : 1 ≤ k) (h : √F ≤ k * d) :
          F - d ^ 2 ≤ 2 * (k - 1) * F

          F - d² ≤ 2 (k - 1) F when √F ≤ k d with k ≥ 1.

          theorem Lightlike.Geodesic.LocalJet.isAdmissible_trial {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) :
          IsAdmissible U (trial g x w) x (x + w)

          The trial curve is an admissible curve from x to x + w when 2 B ‖w‖ ≤ δ.

          theorem Lightlike.Geodesic.LocalJet.intervalIntegrable_normSq_trial {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) :
          IntervalIntegrable (fun (t : ℝ) => normSq g (trial g x w t) (deriv (trial g x w) t)) MeasureTheory.volume 0 1

          The energy density of the trial curve is integrable on [0, 1].

          theorem Lightlike.Geodesic.LocalJet.energy_trial_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) :
          energy g (trial g x w) 0 1 ≤ distJet g x w + 51 * (B ^ 6 * ‖w‖ ^ 5)

          The energy of the trial curve is at most F_x(w) + 51 B⁶ ‖w‖⁵.

          theorem Lightlike.Geodesic.LocalJet.dist_sq_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} {x : Fin n → ℝ} {B δ l : ℝ} (hg : IsRiemMetric g U) (h : LocalJet g U x B δ l) {w : Fin n → ℝ} (hw : 2 * B * ‖w‖ ≤ δ) :
          dist g U x (x + w) ^ 2 ≤ distJet g x w + 51 * (B ^ 6 * ‖w‖ ^ 5)

          The upper bound: d(x, x + w)² ≤ F_x(w) + 51 B⁶ ‖w‖⁵ when 2 B ‖w‖ ≤ δ.

          theorem Lightlike.Geodesic.IsRiemMetric.dist_sq_expansion {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} (hg : IsRiemMetric g U) {K : Set (Fin n → ℝ)} (hK : IsCompact K) (hKU : K ⊆ U) :
          ∃ (C : ℝ) (r : ℝ), 0 < r ∧ ∀ x ∈ K, ∀ (w : Fin n → ℝ), ‖w‖ ≤ r → |dist g U x (x + w) ^ 2 - distJet g x w| ≤ C * ‖w‖ ^ 5

          The expansion of the squared distance for nearby points. For a Riemannian coordinate metric g on U and a compact K ⊆ U there are C and r > 0 such that for x ∈ K and ‖w‖ ≤ r, |d(x, x + w)² - F_x(w)| ≤ C ‖w‖⁵, with F_x(w) = g(w, w) + ½ ∂_w g(w, w) + ⅙ ∂_w ∂_w g(w, w) - (1/12) g(Γ(w, w), Γ(w, w)) at x (distJet).

          The expansion about the midpoint #

          noncomputable def Lightlike.Geodesic.midJet {n : ℕ} (g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ) (m Δ : Fin n → ℝ) :

          The jet of the squared distance about the midpoint m of two points with difference Δ: g(Δ, Δ) + (1/24) ∂_Δ ∂_Δ g(Δ, Δ) - (1/12) g(Γ(Δ, Δ), Γ(Δ, Δ)), all at m.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem Lightlike.Geodesic.dot_mulVec_eq_nest {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (p q : Fin n → ℝ) :
            p ⬝ᵥ M.mulVec q = ∑ i : Fin n, p i * ∑ j : Fin n, q j * M i j

            p ⬝ (M q) = Σ_i p_i Σ_j q_j M_ij.

            theorem Lightlike.Geodesic.hasDerivAt_wsum {n : ℕ} {a : Fin n → ℝ} {F : Fin n → ℝ → ℝ} {F' : Fin n → ℝ} {s : ℝ} (h : ∀ (k : Fin n), HasDerivAt (F k) (F' k) s) :
            HasDerivAt (fun (s : ℝ) => ∑ k : Fin n, a k * F k s) (∑ k : Fin n, a k * F' k) s

            Differentiating Σ_k a_k F_k(s) term by term.

            theorem Lightlike.Geodesic.abs_wsum_le {n : ℕ} {a b : Fin n → ℝ} {B : ℝ} (hb : ∀ (k : Fin n), |b k| ≤ B) :
            |∑ k : Fin n, a k * b k| ≤ ↑n * ‖a‖ * B

            |Σ_k a_k b_k| ≤ n ‖a‖ B if |b_k| ≤ B.

            theorem Lightlike.Geodesic.abs_midComb_le {ψ0 ψ1 ψ2 ψ3 : ℝ → ℝ} {K : ℝ} (d0 : ∀ s ∈ Set.Icc (-1 / 2) 0, HasDerivAt ψ0 (ψ1 s) s) (d1 : ∀ s ∈ Set.Icc (-1 / 2) 0, HasDerivAt ψ1 (ψ2 s) s) (d2 : ∀ s ∈ Set.Icc (-1 / 2) 0, HasDerivAt ψ2 (ψ3 s) s) (hb : ∀ s ∈ Set.Icc (-1 / 2) 0, |ψ3 s| ≤ K) :
            |ψ0 (-1 / 2) + 1 / 2 * ψ1 (-1 / 2) + 1 / 6 * ψ2 (-1 / 2) - ψ0 0 - 1 / 24 * ψ2 0| ≤ K / 3

            The one-variable identity behind the midpoint form: expanding about 0, ψ(-½) + ½ ψ'(-½) + ⅙ ψ''(-½) = ψ(0) + ψ''(0)/24 up to K/3 if the third derivative is bounded by K on [-½, 0] (the coefficient of ψ''(0) is ⅛ - ¼ + ⅙ = 1/24).

            theorem Lightlike.Geodesic.abs_jetPoly_mid_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} (hg : IsCoordMetric g U) {m Δ : Fin n → ℝ} {M : ℝ} (hseg : ∀ s ∈ Set.Icc (-1 / 2) 0, m + s • Δ ∈ U) (hM : ∀ s ∈ Set.Icc (-1 / 2) 0, ∀ (i j k l p : Fin n), |pd p (pd l (pd k fun (y : Fin n → ℝ) => g y i j)) (m + s • Δ)| ≤ M) :
            |Δ ⬝ᵥ (g (m - (1 / 2) • Δ)).mulVec Δ + 1 / 2 * Δ ⬝ᵥ (dmat g (m - (1 / 2) • Δ) Δ).mulVec Δ + 1 / 6 * Δ ⬝ᵥ (ddmat g (m - (1 / 2) • Δ) Δ Δ).mulVec Δ - Δ ⬝ᵥ (g m).mulVec Δ - 1 / 24 * Δ ⬝ᵥ (ddmat g m Δ Δ).mulVec Δ| ≤ ↑n ^ 5 * M * ‖Δ‖ ^ 5 / 3

            The polynomial part about the midpoint. If the third partial derivatives of g are bounded by M on the segment from m - Δ/2 to m, then the polynomial part of distJet at m - Δ/2 differs from g(Δ, Δ) + (1/24) ∂_Δ ∂_Δ g(Δ, Δ) at m by at most n⁵ M ‖Δ‖⁵ / 3.

            theorem Lightlike.Geodesic.abs_chrTerm_sub_le {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} (hg : IsCoordMetric g U) {m w Δ : Fin n → ℝ} {M : ℝ} (hM0 : 0 ≤ M) (hseg : ∀ s ∈ Set.Icc 0 1, m + s • w ∈ U) (hM : ∀ s ∈ Set.Icc 0 1, ∀ (i j k l : Fin n), |g (m + s • w) i j| ≤ M ∧ |pd k (fun (y : Fin n → ℝ) => g y i j) (m + s • w)| ≤ M ∧ |christoffel g i j k (m + s • w)| ≤ M ∧ |pd l (christoffel g i j k) (m + s • w)| ≤ M) :
            |chr g (m + w) Δ Δ ⬝ᵥ (g (m + w)).mulVec (chr g (m + w) Δ Δ) - chr g m Δ Δ ⬝ᵥ (g m).mulVec (chr g m Δ Δ)| ≤ 3 * ↑n ^ 7 * M ^ 3 * ‖w‖ * ‖Δ‖ ^ 4

            The Christoffel term at nearby points. If on the segment from m to m + w the entries of g, their first partial derivatives, the Christoffel symbols and their first partial derivatives are bounded by M, then g(Γ(Δ, Δ), Γ(Δ, Δ)) at m + w and at m differ by at most 3 n⁷ M³ ‖w‖ ‖Δ‖⁴.

            theorem Lightlike.Geodesic.IsRiemMetric.dist_sq_expansion_midpoint {n : ℕ} {g : (Fin n → ℝ) → Matrix (Fin n) (Fin n) ℝ} {U : Set (Fin n → ℝ)} (hg : IsRiemMetric g U) {K : Set (Fin n → ℝ)} (hK : IsCompact K) (hKU : K ⊆ U) :
            ∃ (C : ℝ) (r : ℝ), 0 < r ∧ ∀ m ∈ K, ∀ (Δ : Fin n → ℝ), ‖Δ‖ ≤ r → |dist g U (m - (1 / 2) • Δ) (m + (1 / 2) • Δ) ^ 2 - midJet g m Δ| ≤ C * ‖Δ‖ ^ 5

            The expansion of the squared distance about the midpoint. For a Riemannian coordinate metric g on U and a compact K ⊆ U there are C and r > 0 such that for m ∈ K and ‖Δ‖ ≤ r, |d(m - Δ/2, m + Δ/2)² - g(Δ, Δ) - Q_m(Δ)| ≤ C ‖Δ‖⁵, with the quartic form Q_m(Δ) = (1/24) ∂_Δ ∂_Δ g(Δ, Δ) - (1/12) g(Γ(Δ, Δ), Γ(Δ, Δ)) at m (midJet). About the midpoint there is no cubic term.