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.ReducedGeometry.LGeometry.Path.RegularizedAction |
| 2 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 3 | import Mathlib.Analysis.SpecialFunctions.Sqrt |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/BackwardEulerTransport.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 7 | |
| 8 | |
| 9 | /-! |
| 10 | # Transport of the regularized Euler equation |
| 11 | |
| 12 | The extension in backward time is obtained by composing with the square root |
| 13 | and multiplying the vector field by the inverse velocity factor. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.LGeometry |
| 26 | |
| 27 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 29 | [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | theorem parametricExtension_differentiableAt_time {I : Set ℝ} {γ : ℝ → M} |
| 32 | {Y : ∀ s, TangentSpace (𝓡 n) (γ s)} |
| 33 | (E : ParametricAlongCurveExtensionOn I γ Y) {s : ℝ} {x : M} |
| 34 | (h : (s, x) ∈ E.domain) : DifferentiableAt ℝ (fun r ↦ E.extension r x) s := by |
| 35 | let : NormedAddCommGroup (TangentSpace (𝓡 n) x) := |
| 36 | inferInstanceAs (NormedAddCommGroup (EuclideanSpace ℝ (Fin n))) |
| 37 | let : NormedSpace ℝ (TangentSpace (𝓡 n) x) := |
| 38 | inferInstanceAs (NormedSpace ℝ (EuclideanSpace ℝ (Fin n))) |
| 39 | let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) x |
| 40 | have hx : x ∈ e.baseSet := mem_baseSet_trivializationAt _ _ _ |
| 41 | have hmap := (E.smooth _ h).contMDiffAt (E.open_domain.mem_nhds h) |
| 42 | have hslice : ContMDiffAt (𝓘(ℝ, ℝ)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 43 | (fun r ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) x |
| 44 | (E.extension r x)) s := |
| 45 | hmap.comp s (f := fun r : ℝ ↦ (r, x)) (contMDiffAt_id.prodMk contMDiffAt_const) |
| 46 | have hc : ContDiffAt ℝ ∞ |
| 47 | (fun r ↦ e.continuousLinearMapAt ℝ x (E.extension r x)) s := by |
| 48 | simpa only [e.continuousLinearMapAt_apply_of_mem ℝ hx] using |
| 49 | (Bundle.contMDiffAt_totalSpace.mp hslice).2.contDiffAt |
| 50 | have hi := (e.symmL ℝ x).contDiff.contDiffAt.comp s hc |
| 51 | simpa only [Function.comp_def, e.symmL_continuousLinearMapAt hx] using |
| 52 | hi.differentiableAt (by norm_num) |
| 53 | |
| 54 | theorem parametricExtension_contMDiffAt_space {I : Set ℝ} {γ : ℝ → M} |
| 55 | {Y : ∀ s, TangentSpace (𝓡 n) (γ s)} |
| 56 | (E : ParametricAlongCurveExtensionOn I γ Y) {s : ℝ} {x : M} |
| 57 | (h : (s, x) ∈ E.domain) : |
| 58 | ContMDiffAt (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ |
| 59 | (fun y ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) y |
| 60 | (E.extension s y)) x := |
| 61 | ((E.smooth _ h).contMDiffAt (E.open_domain.mem_nhds h)).comp x |
| 62 | (contMDiffAt_const.prodMk contMDiffAt_id) |
| 63 | |
| 64 | theorem parametricExtension_contMDiffAt_smul_reparam {I : Set ℝ} {γ : ℝ → M} |
| 65 | {Y : ∀ s, TangentSpace (𝓡 n) (γ s)} |
| 66 | (E : ParametricAlongCurveExtensionOn I γ Y) {f c : ℝ → ℝ} {z : ℝ × M} |
| 67 | (h : (f z.1, z.2) ∈ E.domain) |
| 68 | (hf : ContDiffAt ℝ ∞ f z.1) (hc : ContDiffAt ℝ ∞ c z.1) : |
| 69 | ContMDiffAt ((𝓘(ℝ, ℝ)).prod (𝓡 n)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 70 | (fun w : ℝ × M ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) w.2 |
| 71 | (c w.1 • E.extension (f w.1) w.2)) z := by |
| 72 | let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) z.2 |
| 73 | have hmap := ((E.smooth _ h).contMDiffAt (E.open_domain.mem_nhds h)).comp z |
| 74 | ((hf.contMDiffAt.comp z contMDiffAt_fst).prodMk contMDiffAt_snd) |
| 75 | apply Bundle.contMDiffAt_totalSpace.mpr |
| 76 | refine ⟨contMDiffAt_snd, ?_⟩ |
| 77 | have hcoord := (Bundle.contMDiffAt_totalSpace.mp hmap).2 |
| 78 | have hprod := (hc.contMDiffAt.comp z contMDiffAt_fst).smul hcoord |
| 79 | apply hprod.congr_of_eventuallyEq |
| 80 | have hnear : ∀ᶠ w : ℝ × M in 𝓝 z, w.2 ∈ e.baseSet := |
| 81 | continuous_snd.continuousAt (e.open_baseSet.mem_nhds |
| 82 | (mem_baseSet_trivializationAt _ _ _)) |
| 83 | filter_upwards [hnear] with w hw |
| 84 | change (e ⟨w.2, c w.1 • E.extension (f w.1) w.2⟩).2 = |
| 85 | c w.1 • (e ⟨w.2, E.extension (f w.1) w.2⟩).2 |
| 86 | simp only [← e.continuousLinearMapAt_apply_of_mem ℝ hw, map_smul] |
| 87 | |
| 88 | theorem squarePath_velocityWithin {J : Set ℝ} {F : RicciFlow n M J} |
| 89 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) {s : ℝ} |
| 90 | (hs : s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) : |
| 91 | curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 92 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) s = |
| 93 | (2 * s) • curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂) (s ^ 2) := by |
| 94 | have hτ := (sq_mem_backward_interior p.nonnegative hs).2 |
| 95 | have hreg := (p.regular _ hτ).contMDiffAt (isOpen_Ioo.mem_nhds hτ) |
| 96 | simp only [curveVelocityWithin, mfderivWithin_of_mem_nhds (isOpen_Ioo.mem_nhds hs), |
| 97 | mfderivWithin_of_mem_nhds (isOpen_Ioo.mem_nhds hτ)] |
| 98 | exact curveVelocity_comp_sq (hreg.mdifferentiableAt one_ne_zero) |
| 99 | |
| 100 | theorem sqrt_mem_square_interior {a b τ : ℝ} (ha : 0 ≤ a) |
| 101 | (hτ : τ ∈ Set.Ioo a b) : |
| 102 | 0 < τ ∧ Real.sqrt τ ∈ Set.Ioo (Real.sqrt a) (Real.sqrt b) := by |
| 103 | have hpos := ha.trans_lt hτ.1 |
| 104 | exact ⟨hpos, Real.sqrt_lt_sqrt ha hτ.1, Real.sqrt_lt_sqrt hpos.le hτ.2⟩ |
| 105 | |
| 106 | /-- The actual extension after changing from square-root time to backward time. -/ |
| 107 | noncomputable def backwardExtensionOfSquare {J : Set ℝ} {F : RicciFlow n M J} |
| 108 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) |
| 109 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 110 | (squareReparameterizedCurve p.curve) |
| 111 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 112 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) : |
| 113 | ParametricAlongCurveExtensionOn (Set.Ioo τ₁ τ₂) p.curve |
| 114 | (curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂)) where |
| 115 | extension τ y := (2 * Real.sqrt τ)⁻¹ • E.extension (Real.sqrt τ) y |
| 116 | domain := {z : ℝ × M | 0 < z.1 ∧ (Real.sqrt z.1, z.2) ∈ E.domain} |
| 117 | open_domain := (isOpen_lt continuous_const continuous_fst).inter |
| 118 | (E.open_domain.preimage ((Real.continuous_sqrt.comp continuous_fst).prodMk continuous_snd)) |
| 119 | graph_mem τ hτ := by |
| 120 | have hs := sqrt_mem_square_interior p.nonnegative hτ |
| 121 | refine ⟨hs.1, ?_⟩ |
| 122 | simpa only [squareReparameterizedCurve, Real.sq_sqrt hs.1.le] using |
| 123 | E.graph_mem _ hs.2 |
| 124 | smooth z hz := by |
| 125 | apply ContMDiffAt.contMDiffWithinAt |
| 126 | apply parametricExtension_contMDiffAt_smul_reparam E |
| 127 | (f := Real.sqrt) (c := fun τ ↦ (2 * Real.sqrt τ)⁻¹) hz.2 |
| 128 | (Real.contDiffAt_sqrt hz.1.ne') |
| 129 | exact (contDiffAt_const.mul (Real.contDiffAt_sqrt hz.1.ne')).inv |
| 130 | (mul_ne_zero (by norm_num) (Real.sqrt_pos.mpr hz.1).ne') |
| 131 | agrees τ hτ := by |
| 132 | have hs := sqrt_mem_square_interior p.nonnegative hτ |
| 133 | have hsq := Real.sq_sqrt hs.1.le |
| 134 | have he := E.agrees _ hs.2 |
| 135 | change E.extension (Real.sqrt τ) (p.curve ((Real.sqrt τ) ^ 2)) = _ at he |
| 136 | have hv := squarePath_velocityWithin p hs.2 |
| 137 | rw [hv, hsq] at he |
| 138 | rw [he, smul_smul, inv_mul_cancel₀, one_smul] |
| 139 | exact mul_ne_zero (by norm_num) (Real.sqrt_pos.mpr hs.1).ne' |
| 140 | |
| 141 | theorem backwardExtensionOfSquare_deriv {J : Set ℝ} {F : RicciFlow n M J} |
| 142 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) |
| 143 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 144 | (squareReparameterizedCurve p.curve) |
| 145 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 146 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) {s : ℝ} |
| 147 | (hs : s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) : |
| 148 | (4 * s ^ 2) • deriv |
| 149 | (fun r ↦ (backwardExtensionOfSquare p E).extension r (p.curve (s ^ 2))) (s ^ 2) = |
| 150 | deriv (fun r ↦ E.extension r (p.curve (s ^ 2))) s - |
| 151 | (2 : ℝ) • curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂) (s ^ 2) := by |
| 152 | let : NormedAddCommGroup (TangentSpace (𝓡 n) (p.curve (s ^ 2))) := |
| 153 | inferInstanceAs (NormedAddCommGroup (EuclideanSpace ℝ (Fin n))) |
| 154 | let : NormedSpace ℝ (TangentSpace (𝓡 n) (p.curve (s ^ 2))) := |
| 155 | inferInstanceAs (NormedSpace ℝ (EuclideanSpace ℝ (Fin n))) |
| 156 | have hpos := (sq_mem_backward_interior p.nonnegative hs).1 |
| 157 | have hs0 := hpos.ne' |
| 158 | have hsqrt : HasDerivAt Real.sqrt (2 * s)⁻¹ (s ^ 2) := by |
| 159 | simpa only [Real.sqrt_sq hpos.le, one_div] using |
| 160 | Real.hasDerivAt_sqrt (pow_ne_zero 2 hs0) |
| 161 | have hinv : HasDerivAt (fun r : ℝ ↦ (2 * Real.sqrt r)⁻¹) |
| 162 | (-(2 * (2 * s)⁻¹) / (2 * s) ^ 2) (s ^ 2) := by |
| 163 | convert! (hsqrt.const_mul 2).inv (by simp [Real.sqrt_sq hpos.le, hs0]) using 1 |
| 164 | simp only [Real.sqrt_sq hpos.le] |
| 165 | have htime := parametricExtension_differentiableAt_time E (E.graph_mem s hs) |
| 166 | have he : HasDerivAt (fun r ↦ E.extension r (p.curve (s ^ 2))) |
| 167 | (deriv (fun r ↦ E.extension r (p.curve (s ^ 2))) s) (Real.sqrt (s ^ 2)) := by |
| 168 | simpa only [Real.sqrt_sq hpos.le, squareReparameterizedCurve] using htime.hasDerivAt |
| 169 | have hd : deriv |
| 170 | (fun r ↦ (2 * Real.sqrt r)⁻¹ • E.extension (Real.sqrt r) (p.curve (s ^ 2))) |
| 171 | (s ^ 2) = |
| 172 | (2 * s)⁻¹ • (2 * s)⁻¹ • deriv (fun r ↦ E.extension r (p.curve (s ^ 2))) s + |
| 173 | (-(2 * (2 * s)⁻¹) / (2 * s) ^ 2) • E.extension s (p.curve (s ^ 2)) := by |
| 174 | simpa only [Pi.smul_def', Function.comp_def, Real.sqrt_sq hpos.le] using |
| 175 | (hinv.smul (he.scomp (s ^ 2) hsqrt)).deriv |
| 176 | have hagree := E.agrees s hs |
| 177 | rw [squarePath_velocityWithin p hs] at hagree |
| 178 | change E.extension s (p.curve (s ^ 2)) = _ at hagree |
| 179 | have hc₁ : (4 * s ^ 2) * ((2 * s)⁻¹ * (2 * s)⁻¹) = 1 := by |
| 180 | field_simp [hs0] |
| 181 | ring |
| 182 | have hc₂ : (4 * s ^ 2) * (-(2 * (2 * s)⁻¹) / (2 * s) ^ 2 * (2 * s)) = -2 := by |
| 183 | field_simp [hs0] |
| 184 | ring |
| 185 | change (4 * s ^ 2) • deriv |
| 186 | (fun r ↦ (2 * Real.sqrt r)⁻¹ • E.extension (Real.sqrt r) (p.curve (s ^ 2))) (s ^ 2) = _ |
| 187 | rw [hd] |
| 188 | simp only [hagree, smul_add, smul_smul, |
| 189 | hc₁, hc₂, one_smul, neg_smul, sub_eq_add_neg] |
| 190 | |
| 191 | theorem backwardExtensionOfSquare_connection {J : Set ℝ} {F : RicciFlow n M J} |
| 192 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) |
| 193 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 194 | (squareReparameterizedCurve p.curve) |
| 195 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 196 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) {s : ℝ} |
| 197 | (hs : s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) : |
| 198 | (4 * s ^ 2) • (F.connection (T - s ^ 2)).connection |
| 199 | ((backwardExtensionOfSquare p E).extension (s ^ 2)) (p.curve (s ^ 2)) |
| 200 | (curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂) (s ^ 2)) = |
| 201 | (F.connection (T - s ^ 2)).connection (E.extension s) (p.curve (s ^ 2)) |
| 202 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 203 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) s) := by |
| 204 | have hpos := (sq_mem_backward_interior p.nonnegative hs).1 |
| 205 | have hspace := (parametricExtension_contMDiffAt_space E (E.graph_mem s hs)).mdifferentiableAt |
| 206 | (by norm_num) |
| 207 | have hcov := (F.connection (T - s ^ 2)).connection.isCovariantDerivativeOn.smul_const |
| 208 | (2 * s)⁻¹ hspace |
| 209 | dsimp only [squareReparameterizedCurve] at hcov |
| 210 | change (4 * s ^ 2) • (F.connection (T - s ^ 2)).connection |
| 211 | (fun y ↦ (2 * Real.sqrt (s ^ 2))⁻¹ • E.extension (Real.sqrt (s ^ 2)) y) |
| 212 | (p.curve (s ^ 2)) _ = _ |
| 213 | rw [Real.sqrt_sq hpos.le, squarePath_velocityWithin p hs] |
| 214 | change (4 * s ^ 2) • (F.connection (T - s ^ 2)).connection |
| 215 | ((2 * s)⁻¹ • E.extension s) (p.curve (s ^ 2)) _ = _ |
| 216 | rw [hcov] |
| 217 | simp only [smul_apply, map_smul, smul_smul] |
| 218 | congr 1 |
| 219 | field_simp [hpos.ne'] |
| 220 | ring |
| 221 | |
| 222 | theorem pullbackCovariantDerivative_square_transport {J : Set ℝ} {F : RicciFlow n M J} |
| 223 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) |
| 224 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 225 | (squareReparameterizedCurve p.curve) |
| 226 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 227 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) {s : ℝ} |
| 228 | (hs : s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) : |
| 229 | pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) |
| 230 | (squareReparameterizedCurve p.curve) |
| 231 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 232 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂))) |
| 233 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) E s = |
| 234 | (2 : ℝ) • curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂) (s ^ 2) + |
| 235 | (4 * s ^ 2) • pullbackCovariantDerivative F (fun r ↦ T - r) p.curve |
| 236 | (curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂)) |
| 237 | (Set.Ioo τ₁ τ₂) (backwardExtensionOfSquare p E) (s ^ 2) := by |
| 238 | simp only [pullbackCovariantDerivative, smul_add] |
| 239 | rw [backwardExtensionOfSquare_deriv p E hs, backwardExtensionOfSquare_connection p E hs] |
| 240 | abel |
| 241 | |
| 242 | theorem ricci_smul_left_of_curvatureTheory (hM04 : RicciFlowCurvatureTheory.{u}) |
| 243 | {g : RiemannianMetric n M} (D : LeviCivitaData g) (x : M) |
| 244 | (c : ℝ) (v w : TangentSpace (𝓡 n) x) : |
| 245 | D.ricci x (c • v) w = c * D.ricci x v w := by |
| 246 | obtain ⟨A, hA⟩ := ((hM04.tensor_calculus n M g D).2.1).1 x |
| 247 | have heval : ∀ v w : TangentSpace (𝓡 n) x, D.ricci x v w = A ![v, w] := by |
| 248 | intro v w |
| 249 | simpa only [LeviCivitaData.ricciEvaluation, Matrix.cons_val_zero, |
| 250 | Matrix.cons_val_one] using hA ![v, w] |
| 251 | rw [heval, heval] |
| 252 | simpa only [smul_eq_mul, Matrix.vecCons] using A.cons_smul ![w] c v |
| 253 | |
| 254 | theorem regularizedEulerResidual_square_transport (hM04 : RicciFlowCurvatureTheory.{u}) |
| 255 | {J : Set ℝ} {F : RicciFlow n M J} |
| 256 | {T τ₁ τ₂ : ℝ} (p : BackwardTimePath F T τ₁ τ₂) |
| 257 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 258 | (squareReparameterizedCurve p.curve) |
| 259 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 260 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) {s : ℝ} |
| 261 | (hs : s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 262 | (W : TangentSpace (𝓡 n) (p.curve (s ^ 2))) : |
| 263 | regularizedEulerResidual F T (squareReparameterizedCurve p.curve) |
| 264 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) E s W = |
| 265 | (4 * s ^ 2) * backwardEulerResidual F T p.curve (Set.Ioo τ₁ τ₂) |
| 266 | (backwardExtensionOfSquare p E) (s ^ 2) W := by |
| 267 | have hs0 := (sq_mem_backward_interior p.nonnegative hs).1.ne' |
| 268 | let G := (F.metric (T - s ^ 2)).inner (p.curve (s ^ 2)) |
| 269 | let X := curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂) (s ^ 2) |
| 270 | let A := pullbackCovariantDerivative F (fun r ↦ T - r) p.curve |
| 271 | (curveVelocityWithin (n := n) p.curve (Set.Ioo τ₁ τ₂)) |
| 272 | (Set.Ioo τ₁ τ₂) (backwardExtensionOfSquare p E) (s ^ 2) |
| 273 | have hmetric : G ((2 : ℝ) • X + (4 * s ^ 2) • A) W = |
| 274 | 2 * G X W + (4 * s ^ 2) * G A W := by |
| 275 | rw [G.map_add, G.map_smul, G.map_smul] |
| 276 | rfl |
| 277 | unfold regularizedEulerResidual backwardEulerResidual |
| 278 | rw [pullbackCovariantDerivative_square_transport p E hs, squarePath_velocityWithin p hs] |
| 279 | rw [ricci_smul_left_of_curvatureTheory hM04] |
| 280 | unfold scalarCurvatureDifferential squareReparameterizedCurve |
| 281 | rw [hmetric] |
| 282 | field_simp [hs0] |
| 283 | ring |
| 284 | |
| 285 | /-- A regularized Euler extension produces the frozen backward Euler witness. -/ |
| 286 | theorem isBackwardLGeodesic_of_regularizedEuler_extension {J : Set ℝ} |
| 287 | {F : RicciFlow n M J} {T τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 288 | (p : BackwardTimePath F T τ₁ τ₂) |
| 289 | (E : ParametricAlongCurveExtensionOn (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) |
| 290 | (squareReparameterizedCurve p.curve) |
| 291 | (curveVelocityWithin (n := n) (squareReparameterizedCurve p.curve) |
| 292 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)))) |
| 293 | (heq : ∀ s ∈ Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂), |
| 294 | regularizedLGeodesicEquation F T (squareReparameterizedCurve p.curve) |
| 295 | (Set.Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) E s) : |
| 296 | IsBackwardLGeodesic F T τ₁ τ₂ p := by |
| 297 | refine ⟨backwardExtensionOfSquare p E, ?_⟩ |
| 298 | intro τ hτ W |
| 299 | have hs := sqrt_mem_square_interior p.nonnegative hτ |
| 300 | have hsq := Real.sq_sqrt hs.1.le |
| 301 | have hr := regularizedEulerResidual_square_transport hM04 p E hs.2 W |
| 302 | rw [heq _ hs.2 W, hsq] at hr |
| 303 | exact (mul_eq_zero.mp hr.symm).resolve_left (mul_ne_zero (by norm_num) hs.1.ne') |
| 304 | |
| 305 | end PoincareMT.LGeometry |