Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.RicciFlow.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Basic |
| 3 | import PoincareLib.Geometry.Riemannian.ScalarOperators |
| 4 | import PoincareLib.Geometry.Riemannian.Tensor.Operations |
| 5 | import Mathlib.Analysis.InnerProductSpace.Dual |
| 6 | import Mathlib.Geometry.Manifold.MFDeriv.NormedSpace |
| 7 | import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection |
| 8 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic |
| 9 | |
| 10 | /-! |
| 11 | # Backward-time L-geometry |
| 12 | |
| 13 | The ordinary-flow specialization of Morgan-Tian Chapters 6-7 uses the selected |
| 14 | metric and connection at every time. Actual derivatives along curves include |
| 15 | the explicit parameter derivative of a locally smooth extension. The older |
| 16 | conditional spatial-extension API remains available for Chapter 19. |
| 17 | |
| 18 | Variations and Jacobi fields have smooth square-root-time representatives near |
| 19 | the closed geometric interval. The corrected Jacobi operator retains the time |
| 20 | variation of the connection, as checked against Claim 6.34 and Proposition 6.33. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | |
| 25 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT |
| 30 | |
| 31 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 33 | [IsManifold (𝓡 n) ∞ M] |
| 34 | |
| 35 | /-- The tangent velocity of a parameterized curve. -/ |
| 36 | noncomputable def curveVelocity (γ : ℝ → M) (τ : ℝ) : TangentSpace (𝓡 n) (γ τ) := |
| 37 | (mfderiv (𝓘(ℝ, ℝ)) (𝓡 n) γ τ) 1 |
| 38 | |
| 39 | /-- A local smooth extension of a field along a curve. -/ |
| 40 | structure SmoothAlongCurveExtensionOn (I : Set ℝ) (γ : ℝ → M) |
| 41 | (Y : ∀ τ, TangentSpace (𝓡 n) (γ τ)) where |
| 42 | extension : ∀ τ, τ ∈ I → Cₛ^∞⟮(𝓡 n); EuclideanSpace ℝ (Fin n), |
| 43 | (TangentSpace (𝓡 n) : M → Type _)⟯ |
| 44 | agrees_near : ∀ τ (hτ : τ ∈ I), ∃ δ > 0, ∀ σ ∈ I, |σ - τ| < δ → |
| 45 | extension τ hτ (γ σ) = Y σ |
| 46 | |
| 47 | /-- Pointwise smooth spatial sections realizing a tangent field along a curve. -/ |
| 48 | structure PointwiseSectionExtensionOn (I : Set ℝ) (γ : ℝ → M) |
| 49 | (Y : ∀ τ, TangentSpace (𝓡 n) (γ τ)) where |
| 50 | extension : ∀ τ, τ ∈ I → Cₛ^∞⟮(𝓡 n); EuclideanSpace ℝ (Fin n), |
| 51 | (TangentSpace (𝓡 n) : M → Type _)⟯ |
| 52 | agrees_at : ∀ τ (hτ : τ ∈ I), extension τ hτ (γ τ) = Y τ |
| 53 | |
| 54 | /-- The metric covariant derivative of an along-curve field in a prescribed direction. -/ |
| 55 | noncomputable def alongCovariantDerivative {J : Set ℝ} (F : RicciFlow n M J) |
| 56 | (time : ℝ → ℝ) (γ : ℝ → M) |
| 57 | (Y : ∀ τ, TangentSpace (𝓡 n) (γ τ)) |
| 58 | (I : Set ℝ) (E : SmoothAlongCurveExtensionOn I γ Y) |
| 59 | (V : ∀ τ, TangentSpace (𝓡 n) (γ τ)) (τ : ℝ) (hτ : τ ∈ I) : |
| 60 | TangentSpace (𝓡 n) (γ τ) := |
| 61 | (F.connection (time τ)).connection (E.extension τ hτ) (γ τ) (V τ) |
| 62 | |
| 63 | /-- The velocity within the actual parameter domain. -/ |
| 64 | noncomputable def curveVelocityWithin (γ : ℝ → M) (I : Set ℝ) (s : ℝ) : |
| 65 | TangentSpace (𝓡 n) (γ s) := |
| 66 | (mfderivWithin (𝓘(ℝ, ℝ)) (𝓡 n) γ I s) 1 |
| 67 | |
| 68 | /-- A smooth extension on a neighborhood of the parameterized graph. -/ |
| 69 | structure ParametricAlongCurveExtensionOn (I : Set ℝ) (γ : ℝ → M) |
| 70 | (Y : ∀ s, TangentSpace (𝓡 n) (γ s)) where |
| 71 | extension : ℝ → (x : M) → TangentSpace (𝓡 n) x |
| 72 | domain : Set (ℝ × M) |
| 73 | open_domain : IsOpen domain |
| 74 | graph_mem : ∀ s ∈ I, (s, γ s) ∈ domain |
| 75 | smooth : ContMDiffOn ((𝓘(ℝ, ℝ)).prod (𝓡 n)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 76 | (fun z : ℝ × M ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) |
| 77 | z.2 (extension z.1 z.2)) domain |
| 78 | agrees : ∀ s ∈ I, extension s (γ s) = Y s |
| 79 | |
| 80 | /-- The pullback connection derivative, including explicit parameter dependence. -/ |
| 81 | noncomputable def pullbackCovariantDerivative {J : Set ℝ} (F : RicciFlow n M J) |
| 82 | (time : ℝ → ℝ) (γ : ℝ → M) |
| 83 | (Y : ∀ s, TangentSpace (𝓡 n) (γ s)) (I : Set ℝ) |
| 84 | (E : ParametricAlongCurveExtensionOn I γ Y) (s : ℝ) : |
| 85 | TangentSpace (𝓡 n) (γ s) := |
| 86 | deriv (fun r ↦ E.extension r (γ s)) s + |
| 87 | (F.connection (time s)).connection (E.extension s) (γ s) |
| 88 | (curveVelocityWithin (n := n) γ I s) |
| 89 | |
| 90 | /-- The scalar-curvature differential on the selected time slice. -/ |
| 91 | noncomputable def scalarCurvatureDifferential {J : Set ℝ} (F : RicciFlow n M J) |
| 92 | (time : ℝ → ℝ) (γ : ℝ → M) (τ : ℝ) : |
| 93 | TangentSpace (𝓡 n) (γ τ) →L[ℝ] ℝ := |
| 94 | mvfderiv (𝓡 n) (fun y ↦ (F.connection (time τ)).scalarCurvature y) (γ τ) |
| 95 | |
| 96 | /-- The backward-time L-integrand `√τ (R + |X|²)`. -/ |
| 97 | noncomputable def backwardLIntegrand {J : Set ℝ} (F : RicciFlow n M J) |
| 98 | (T : ℝ) (γ : ℝ → M) (τ : ℝ) : ℝ := |
| 99 | Real.sqrt τ * ((F.connection (T - τ)).scalarCurvature (γ τ) + |
| 100 | (F.metric (T - τ)).inner (γ τ) (curveVelocity (n := n) γ τ) |
| 101 | (curveVelocity (n := n) γ τ)) |
| 102 | |
| 103 | /-- Backward-time L-length, using the signed interval integral. -/ |
| 104 | noncomputable def backwardLLength {J : Set ℝ} (F : RicciFlow n M J) |
| 105 | (T τ₁ τ₂ : ℝ) (γ : ℝ → M) : ℝ := |
| 106 | ∫ τ in τ₁..τ₂, backwardLIntegrand F T γ τ |
| 107 | |
| 108 | /-- A curve whose time coordinate is the backward-time parameter `τ`. -/ |
| 109 | structure BackwardTimePath {J : Set ℝ} (F : RicciFlow n M J) |
| 110 | (T τ₁ τ₂ : ℝ) where |
| 111 | curve : ℝ → M |
| 112 | nonnegative : 0 ≤ τ₁ |
| 113 | ordered : τ₁ < τ₂ |
| 114 | terminal_mem : T ∈ J |
| 115 | time_mem : ∀ τ ∈ Set.Icc τ₁ τ₂, T - τ ∈ J |
| 116 | continuous : ContinuousOn curve (Set.Icc τ₁ τ₂) |
| 117 | regular : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 curve (Set.Ioo τ₁ τ₂) |
| 118 | l_integrable : IntervalIntegrable (backwardLIntegrand F T curve) |
| 119 | MeasureTheory.volume τ₁ τ₂ |
| 120 | |
| 121 | /-- The actual Euler residual, used only at positive interior backward times. -/ |
| 122 | noncomputable def backwardEulerResidual {J : Set ℝ} (F : RicciFlow n M J) |
| 123 | (T : ℝ) (γ : ℝ → M) (I : Set ℝ) |
| 124 | (E : ParametricAlongCurveExtensionOn I γ (curveVelocityWithin (n := n) γ I)) |
| 125 | (τ : ℝ) (W : TangentSpace (𝓡 n) (γ τ)) : ℝ := |
| 126 | (F.metric (T - τ)).inner (γ τ) |
| 127 | (pullbackCovariantDerivative F (fun r ↦ T - r) γ |
| 128 | (curveVelocityWithin (n := n) γ I) I E τ) W - |
| 129 | (1 / 2 : ℝ) * scalarCurvatureDifferential F (fun r ↦ T - r) γ τ W + |
| 130 | (1 / (2 * τ) : ℝ) * (F.metric (T - τ)).inner (γ τ) |
| 131 | (curveVelocityWithin (n := n) γ I τ) W + |
| 132 | 2 * (F.connection (T - τ)).ricci (γ τ) (curveVelocityWithin (n := n) γ I τ) W |
| 133 | |
| 134 | /-- The paired Euler equation at one parameter. -/ |
| 135 | def backwardEulerLagrange {J : Set ℝ} (F : RicciFlow n M J) |
| 136 | (T : ℝ) (γ : ℝ → M) (I : Set ℝ) |
| 137 | (E : ParametricAlongCurveExtensionOn I γ (curveVelocityWithin (n := n) γ I)) (τ : ℝ) : Prop := |
| 138 | ∀ W : TangentSpace (𝓡 n) (γ τ), backwardEulerResidual F T γ I E τ W = 0 |
| 139 | |
| 140 | /-- The interior Euler equation with actual derivative data. -/ |
| 141 | def IsBackwardLGeodesic {J : Set ℝ} (F : RicciFlow n M J) |
| 142 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) : Prop := |
| 143 | ∃ E : ParametricAlongCurveExtensionOn (Set.Ioo τ₁ τ₂) p.curve |
| 144 | (curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂)), |
| 145 | ∀ τ ∈ Set.Ioo τ₁ τ₂, |
| 146 | backwardEulerLagrange F T p.curve (Set.Ioo τ₁ τ₂) E τ |
| 147 | |
| 148 | /-- The square-root reparameterization used to regularize the equation at `τ = 0`. -/ |
| 149 | def squareReparameterizedCurve (γ : ℝ → M) : ℝ → M := fun s ↦ γ (s ^ 2) |
| 150 | |
| 151 | /-- The closed parameter interval after the square-root change of variable. -/ |
| 152 | def sqrtParameterInterval (τ₁ τ₂ : ℝ) : Set ℝ := |
| 153 | Set.Icc (Real.sqrt τ₁) (Real.sqrt τ₂) |
| 154 | |
| 155 | /-- A smooth representative near the closed square-root-time interval. -/ |
| 156 | structure SqrtRegularPath {J : Set ℝ} {F : RicciFlow n M J} |
| 157 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) where |
| 158 | curve : ℝ → M |
| 159 | domain : Set ℝ |
| 160 | open_domain : IsOpen domain |
| 161 | interval_subset : sqrtParameterInterval τ₁ τ₂ ⊆ domain |
| 162 | smooth : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ curve domain |
| 163 | agrees : ∀ s ∈ sqrtParameterInterval τ₁ τ₂, curve s = p.curve (s ^ 2) |
| 164 | |
| 165 | /-- The nonsingular Euler residual, paired with an actual tangent vector. -/ |
| 166 | noncomputable def regularizedEulerResidual {J : Set ℝ} (F : RicciFlow n M J) |
| 167 | (T : ℝ) (α : ℝ → M) (I : Set ℝ) |
| 168 | (E : ParametricAlongCurveExtensionOn I α (curveVelocityWithin (n := n) α I)) |
| 169 | (s : ℝ) (W : TangentSpace (𝓡 n) (α s)) : ℝ := |
| 170 | (F.metric (T - s ^ 2)).inner (α s) |
| 171 | (pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) α |
| 172 | (curveVelocityWithin (n := n) α I) I E s) W - |
| 173 | 2 * s ^ 2 * scalarCurvatureDifferential F (fun r ↦ T - r ^ 2) α s W + |
| 174 | 4 * s * (F.connection (T - s ^ 2)).ricci |
| 175 | (α s) (curveVelocityWithin (n := n) α I s) W |
| 176 | |
| 177 | /-- The regularized Euler equation at an included parameter. -/ |
| 178 | def regularizedLGeodesicEquation {J : Set ℝ} (F : RicciFlow n M J) |
| 179 | (T : ℝ) (α : ℝ → M) (I : Set ℝ) |
| 180 | (E : ParametricAlongCurveExtensionOn I α (curveVelocityWithin (n := n) α I)) (s : ℝ) : Prop := |
| 181 | ∀ W : TangentSpace (𝓡 n) (α s), regularizedEulerResidual F T α I E s W = 0 |
| 182 | |
| 183 | /-- An actual square-root-time Euler solution, including one-sided endpoints. -/ |
| 184 | structure RegularizedLGeodesicData {J : Set ℝ} {F : RicciFlow n M J} |
| 185 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) where |
| 186 | path : SqrtRegularPath p |
| 187 | velocity_extension : ParametricAlongCurveExtensionOn (sqrtParameterInterval τ₁ τ₂) |
| 188 | path.curve (curveVelocityWithin (n := n) path.curve (sqrtParameterInterval τ₁ τ₂)) |
| 189 | equation : ∀ s ∈ sqrtParameterInterval τ₁ τ₂, |
| 190 | regularizedLGeodesicEquation F T path.curve (sqrtParameterInterval τ₁ τ₂) |
| 191 | velocity_extension s |
| 192 | |
| 193 | /-- A backward-time path is L-minimizing between its fixed endpoints. -/ |
| 194 | def IsMinimizingBackwardLPath {J : Set ℝ} (F : RicciFlow n M J) |
| 195 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) : Prop := |
| 196 | ∀ q : BackwardTimePath F T τ₁ τ₂, |
| 197 | q.curve τ₁ = p.curve τ₁ → q.curve τ₂ = p.curve τ₂ → |
| 198 | backwardLLength F T τ₁ τ₂ p.curve ≤ backwardLLength F T τ₁ τ₂ q.curve |
| 199 | |
| 200 | /-- A general variation smooth in square-root time near the closed interval. -/ |
| 201 | structure LVariation {J : Set ℝ} (F : RicciFlow n M J) |
| 202 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) where |
| 203 | family : ℝ → ℝ → M |
| 204 | at_zero : ∀ τ, family τ 0 = p.curve τ |
| 205 | radius : ℝ |
| 206 | radius_pos : 0 < radius |
| 207 | squareFamily : ℝ → ℝ → M |
| 208 | squareDomain : Set (ℝ × ℝ) |
| 209 | square_open : IsOpen squareDomain |
| 210 | square_contains : sqrtParameterInterval τ₁ τ₂ ×ˢ Set.Ioo (-radius) radius ⊆ squareDomain |
| 211 | square_smooth : ContMDiffOn ((𝓘(ℝ, ℝ)).prod (𝓘(ℝ, ℝ))) (𝓡 n) ∞ |
| 212 | (fun z : ℝ × ℝ ↦ squareFamily z.1 z.2) squareDomain |
| 213 | square_agrees : ∀ s ∈ sqrtParameterInterval τ₁ τ₂, |
| 214 | ∀ u ∈ Set.Ioo (-radius) radius, squareFamily s u = family (s ^ 2) u |
| 215 | l_integrable : ∀ u ∈ Set.Ioo (-radius) radius, |
| 216 | IntervalIntegrable (backwardLIntegrand F T (fun τ ↦ family τ u)) |
| 217 | MeasureTheory.volume τ₁ τ₂ |
| 218 | |
| 219 | /-- The open neighborhood of the variation parameter zero. -/ |
| 220 | def LVariation.parameterDomain {J : Set ℝ} {F : RicciFlow n M J} |
| 221 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 222 | (V : LVariation F T τ₁ τ₂ p) : Set ℝ := Set.Ioo (-V.radius) V.radius |
| 223 | |
| 224 | /-- The smooth representative of the base curve supplied by a variation. -/ |
| 225 | def LVariation.baseSquareCurve {J : Set ℝ} {F : RicciFlow n M J} |
| 226 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 227 | (V : LVariation F T τ₁ τ₂ p) : ℝ → M := fun s ↦ V.squareFamily s 0 |
| 228 | |
| 229 | /-- A variation whose initial endpoint is fixed throughout its parameter neighborhood. -/ |
| 230 | structure InitialFixedLVariation {J : Set ℝ} (F : RicciFlow n M J) |
| 231 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) |
| 232 | extends LVariation F T τ₁ τ₂ p where |
| 233 | fixed_left : ∀ u ∈ Set.Ioo (-radius) radius, family τ₁ u = p.curve τ₁ |
| 234 | |
| 235 | /-- A variation fixing both endpoints throughout its parameter neighborhood. -/ |
| 236 | structure FixedEndpointLVariation {J : Set ℝ} (F : RicciFlow n M J) |
| 237 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) |
| 238 | extends InitialFixedLVariation F T τ₁ τ₂ p where |
| 239 | fixed_right : ∀ u ∈ Set.Ioo (-radius) radius, family τ₂ u = p.curve τ₂ |
| 240 | |
| 241 | /-- The original L-length of a variation slice. -/ |
| 242 | noncomputable def variationLLength {J : Set ℝ} {F : RicciFlow n M J} |
| 243 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 244 | (V : LVariation F T τ₁ τ₂ p) (u : ℝ) : ℝ := |
| 245 | backwardLLength F T τ₁ τ₂ (fun τ ↦ V.family τ u) |
| 246 | |
| 247 | /-- The variation field, with its basepoint identified by the actual family equality. -/ |
| 248 | noncomputable def variationField {J : Set ℝ} {F : RicciFlow n M J} |
| 249 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 250 | (V : LVariation F T τ₁ τ₂ p) (τ : ℝ) : TangentSpace (𝓡 n) (p.curve τ) := |
| 251 | (V.at_zero τ) ▸ curveVelocity (fun u ↦ V.family τ u) 0 |
| 252 | |
| 253 | /-- The variation field along the smooth square-root representative. -/ |
| 254 | noncomputable def squareVariationField {J : Set ℝ} {F : RicciFlow n M J} |
| 255 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 256 | (V : LVariation F T τ₁ τ₂ p) (s : ℝ) : |
| 257 | TangentSpace (𝓡 n) (V.baseSquareCurve s) := |
| 258 | curveVelocity (fun u ↦ V.squareFamily s u) 0 |
| 259 | |
| 260 | /-- Actual derivative data used in both variation formulas. -/ |
| 261 | structure LVariationDerivativeData {J : Set ℝ} {F : RicciFlow n M J} |
| 262 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 263 | (V : LVariation F T τ₁ τ₂ p) where |
| 264 | velocity_extension : ParametricAlongCurveExtensionOn (sqrtParameterInterval τ₁ τ₂) |
| 265 | V.baseSquareCurve (curveVelocityWithin (n := n) V.baseSquareCurve (sqrtParameterInterval τ₁ τ₂)) |
| 266 | variation_extension : ParametricAlongCurveExtensionOn (sqrtParameterInterval τ₁ τ₂) |
| 267 | V.baseSquareCurve (squareVariationField V) |
| 268 | endpoint_extension : ∀ s ∈ sqrtParameterInterval τ₁ τ₂, |
| 269 | ParametricAlongCurveExtensionOn V.parameterDomain (V.squareFamily s) |
| 270 | (curveVelocityWithin (n := n) (V.squareFamily s) V.parameterDomain) |
| 271 | |
| 272 | /-- The first-variation boundary term, retaining the actual limit at backward time zero. -/ |
| 273 | noncomputable def firstVariationBoundaryTerm {J : Set ℝ} {F : RicciFlow n M J} |
| 274 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 275 | (V : LVariation F T τ₁ τ₂ p) : ℝ := |
| 276 | let B := fun s ↦ (F.metric (T - s ^ 2)).inner (V.baseSquareCurve s) |
| 277 | (curveVelocityWithin (n := n) V.baseSquareCurve (sqrtParameterInterval τ₁ τ₂) s) |
| 278 | (squareVariationField V s) |
| 279 | B (Real.sqrt τ₂) - B (Real.sqrt τ₁) |
| 280 | |
| 281 | /-- The regularized residual contribution to first variation. -/ |
| 282 | noncomputable def firstVariationResidualIntegral {J : Set ℝ} {F : RicciFlow n M J} |
| 283 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 284 | (V : LVariation F T τ₁ τ₂ p) (D : LVariationDerivativeData V) : ℝ := |
| 285 | ∫ s in Real.sqrt τ₁..Real.sqrt τ₂, |
| 286 | -regularizedEulerResidual F T V.baseSquareCurve (sqrtParameterInterval τ₁ τ₂) |
| 287 | D.velocity_extension s (squareVariationField V s) |
| 288 | |
| 289 | /-- The actual covariant acceleration of a variation endpoint at its fixed flow time. -/ |
| 290 | noncomputable def variationEndpointAcceleration {J : Set ℝ} {F : RicciFlow n M J} |
| 291 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 292 | (V : LVariation F T τ₁ τ₂ p) (D : LVariationDerivativeData V) |
| 293 | (s : ℝ) (hs : s ∈ sqrtParameterInterval τ₁ τ₂) : |
| 294 | TangentSpace (𝓡 n) (V.baseSquareCurve s) := |
| 295 | pullbackCovariantDerivative F (fun _ ↦ T - s ^ 2) (V.squareFamily s) |
| 296 | (curveVelocityWithin (n := n) (V.squareFamily s) V.parameterDomain) V.parameterDomain |
| 297 | (D.endpoint_extension s hs) 0 |
| 298 | |
| 299 | /-- Both acceleration boundary terms in the second variation of an Euler path. -/ |
| 300 | noncomputable def secondVariationBoundaryTerm {J : Set ℝ} {F : RicciFlow n M J} |
| 301 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 302 | (V : LVariation F T τ₁ τ₂ p) (D : LVariationDerivativeData V) : ℝ := |
| 303 | let B := fun s (hs : s ∈ sqrtParameterInterval τ₁ τ₂) ↦ |
| 304 | (F.metric (T - s ^ 2)).inner (V.baseSquareCurve s) |
| 305 | (curveVelocityWithin (n := n) V.baseSquareCurve (sqrtParameterInterval τ₁ τ₂) s) |
| 306 | (variationEndpointAcceleration V D s hs) |
| 307 | B (Real.sqrt τ₂) ⟨Real.sqrt_le_sqrt (le_of_lt p.ordered), le_rfl⟩ - |
| 308 | B (Real.sqrt τ₁) ⟨le_rfl, Real.sqrt_le_sqrt (le_of_lt p.ordered)⟩ |
| 309 | |
| 310 | /-- The covariant Ricci derivative with the differentiation direction first. -/ |
| 311 | noncomputable def ricciDerivativePairing {g : RiemannianMetric n M} |
| 312 | (D : LeviCivitaData g) (x : M) (U V W : TangentSpace (𝓡 n) x) : ℝ := |
| 313 | D.covariantTensorDerivative D.ricciEvaluation x ![U, V, W] |
| 314 | |
| 315 | /-- The backward-time connection variation tensor paired using its metric. -/ |
| 316 | noncomputable def backwardConnectionVariationPairing {g : RiemannianMetric n M} |
| 317 | (D : LeviCivitaData g) (x : M) (U V W : TangentSpace (𝓡 n) x) : ℝ := |
| 318 | ricciDerivativePairing D x U V W + ricciDerivativePairing D x V U W - |
| 319 | ricciDerivativePairing D x W U V |
| 320 | |
| 321 | /-- The expanded regularized index density from Morgan-Tian Proposition 6.33. -/ |
| 322 | noncomputable def secondVariationIndexDensity {J : Set ℝ} {F : RicciFlow n M J} |
| 323 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 324 | (V : LVariation F T τ₁ τ₂ p) (D : LVariationDerivativeData V) (s : ℝ) : ℝ := |
| 325 | let x := V.baseSquareCurve s |
| 326 | let A := curveVelocityWithin (n := n) V.baseSquareCurve (sqrtParameterInterval τ₁ τ₂) s |
| 327 | let Y := squareVariationField V s |
| 328 | let DY := pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) |
| 329 | V.baseSquareCurve (squareVariationField V) (sqrtParameterInterval τ₁ τ₂) |
| 330 | D.variation_extension s |
| 331 | let connection := F.connection (T - s ^ 2) |
| 332 | (F.metric (T - s ^ 2)).inner x DY DY + connection.curvatureTensor x Y A A Y + |
| 333 | 2 * s ^ 2 * connection.hessian connection.scalarCurvature x Y Y - |
| 334 | 4 * s * ricciDerivativePairing connection x Y A Y + |
| 335 | 2 * s * ricciDerivativePairing connection x A Y Y |
| 336 | |
| 337 | /-- The expanded second-variation index integral. -/ |
| 338 | noncomputable def secondVariationIndexForm {J : Set ℝ} {F : RicciFlow n M J} |
| 339 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 340 | (V : LVariation F T τ₁ τ₂ p) (D : LVariationDerivativeData V) : ℝ := |
| 341 | ∫ s in Real.sqrt τ₁..Real.sqrt τ₂, secondVariationIndexDensity V D s |
| 342 | |
| 343 | /-- A field and its first pullback derivative with smooth representatives near the interval. -/ |
| 344 | structure SqrtRegularField {J : Set ℝ} {F : RicciFlow n M J} |
| 345 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 346 | (R : SqrtRegularPath p) (Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)) where |
| 347 | field : ∀ s, TangentSpace (𝓡 n) (R.curve s) |
| 348 | agrees : ∀ s (hs : s ∈ sqrtParameterInterval τ₁ τ₂), |
| 349 | field s = (R.agrees s hs).symm ▸ Y (s ^ 2) |
| 350 | extension : ParametricAlongCurveExtensionOn (sqrtParameterInterval τ₁ τ₂) R.curve field |
| 351 | derivative_extension : ParametricAlongCurveExtensionOn (sqrtParameterInterval τ₁ τ₂) R.curve |
| 352 | (pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) R.curve field |
| 353 | (sqrtParameterInterval τ₁ τ₂) extension) |
| 354 | |
| 355 | /-- The actual first covariant derivative of a square-root regular field. -/ |
| 356 | noncomputable def SqrtRegularField.firstDerivative {J : Set ℝ} {F : RicciFlow n M J} |
| 357 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 358 | {R : SqrtRegularPath p} {Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)} |
| 359 | (Q : SqrtRegularField R Y) (s : ℝ) : TangentSpace (𝓡 n) (R.curve s) := |
| 360 | pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) R.curve Q.field |
| 361 | (sqrtParameterInterval τ₁ τ₂) Q.extension s |
| 362 | |
| 363 | /-- The actual repeated pullback derivative, including the connection's time dependence. -/ |
| 364 | noncomputable def SqrtRegularField.secondDerivative {J : Set ℝ} {F : RicciFlow n M J} |
| 365 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 366 | {R : SqrtRegularPath p} {Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)} |
| 367 | (Q : SqrtRegularField R Y) (s : ℝ) : TangentSpace (𝓡 n) (R.curve s) := |
| 368 | pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) R.curve Q.firstDerivative |
| 369 | (sqrtParameterInterval τ₁ τ₂) Q.derivative_extension s |
| 370 | |
| 371 | /-- The corrected regularized Jacobi operator paired against an actual tangent vector. -/ |
| 372 | noncomputable def regularizedJacobiResidual {J : Set ℝ} {F : RicciFlow n M J} |
| 373 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 374 | (R : RegularizedLGeodesicData p) {Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)} |
| 375 | (Q : SqrtRegularField R.path Y) (s : ℝ) |
| 376 | (W : TangentSpace (𝓡 n) (R.path.curve s)) : ℝ := |
| 377 | let x := R.path.curve s |
| 378 | let A := curveVelocityWithin (n := n) R.path.curve (sqrtParameterInterval τ₁ τ₂) s |
| 379 | let connection := F.connection (T - s ^ 2) |
| 380 | (F.metric (T - s ^ 2)).inner x (Q.secondDerivative s) W + |
| 381 | connection.curvatureTensor x (Q.field s) A W A - |
| 382 | 2 * s * backwardConnectionVariationPairing connection x A (Q.field s) W - |
| 383 | 2 * s ^ 2 * connection.hessian connection.scalarCurvature x (Q.field s) W + |
| 384 | 4 * s * ricciDerivativePairing connection x (Q.field s) A W + |
| 385 | 4 * s * connection.ricci x (Q.firstDerivative s) W |
| 386 | |
| 387 | /-- An initial-zero Jacobi field along an actual Euler path, with no terminal-zero constraint. -/ |
| 388 | def IsLJacobiField {J : Set ℝ} (F : RicciFlow n M J) |
| 389 | (T τ₁ τ₂ : ℝ) (p : BackwardTimePath F T τ₁ τ₂) |
| 390 | (Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)) : Prop := |
| 391 | ∃ R : RegularizedLGeodesicData p, ∃ Q : SqrtRegularField R.path Y, |
| 392 | Y τ₁ = 0 ∧ ∀ s ∈ sqrtParameterInterval τ₁ τ₂, |
| 393 | ∀ W : TangentSpace (𝓡 n) (R.path.curve s), regularizedJacobiResidual R Q s W = 0 |
| 394 | |
| 395 | /-- The prescribed square-root-time initial derivative, with its actual initial basepoint. -/ |
| 396 | def HasLJacobiInitialDerivative {J : Set ℝ} {F : RicciFlow n M J} |
| 397 | {T τ₁ τ₂ : ℝ} {p : BackwardTimePath F T τ₁ τ₂} |
| 398 | (R : RegularizedLGeodesicData p) (Y : ∀ τ, TangentSpace (𝓡 n) (p.curve τ)) |
| 399 | (Z : TangentSpace (𝓡 n) (p.curve τ₁)) : Prop := |
| 400 | ∃ Q : SqrtRegularField R.path Y, |
| 401 | let hbase : R.path.curve (Real.sqrt τ₁) = p.curve τ₁ := |
| 402 | (R.path.agrees (Real.sqrt τ₁) |
| 403 | ⟨le_rfl, Real.sqrt_le_sqrt (le_of_lt p.ordered)⟩).trans |
| 404 | (congrArg p.curve (Real.sq_sqrt p.nonnegative)) |
| 405 | Q.firstDerivative (Real.sqrt τ₁) = hbase.symm ▸ Z |
| 406 | |
| 407 | /-- Completeness and a uniform curvature bound on a time set. -/ |
| 408 | def CompleteBoundedCurvatureOn {J : Set ℝ} (F : RicciFlow n M J) |
| 409 | (I : Set ℝ) [T3Space M] : Prop := |
| 410 | (∀ t ∈ I, MetricComplete (F.metric t)) ∧ |
| 411 | ∃ K : ℝ, 0 ≤ K ∧ ∀ t ∈ I, ∀ x : M, |
| 412 | |(F.connection t).curvatureTensorNorm x| ≤ K |
| 413 | |
| 414 | /-- The reduced length, totalized at nonpositive backward time. -/ |
| 415 | noncomputable def reducedLength {J : Set ℝ} (F : RicciFlow n M J) |
| 416 | (T : ℝ) (p q : M) (τ : ℝ) : ℝ := |
| 417 | if _hτ : 0 < τ then |
| 418 | sInf {L : ℝ | |
| 419 | ∃ path : BackwardTimePath F T 0 τ, |
| 420 | path.curve 0 = p ∧ path.curve τ = q ∧ |
| 421 | L = backwardLLength F T 0 τ path.curve} / (2 * Real.sqrt τ) |
| 422 | else 0 |
| 423 | |
| 424 | end PoincareMT |