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.CurveShortening.Ramp.LocalFlow.Embedded.CurvatureJetSpatial |
| 2 | |
| 3 | /-! |
| 4 | # The second spatial derivative of actual pushed curvature |
| 5 | |
| 6 | The order-zero pushed-jet estimate supplies the derivative bound used |
| 7 | to recover the first curvature jet of the C2 limit. MT2007 Claim 19.1, |
| 8 | p. 437, Lemma 19.24, pp. 454-455; |
| 9 | `2026-09-22-c2-curvature-second-spatial-bound.md`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | namespace PoincareMT.M63 |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | [T2Space M] {ι : Type v} [Fintype ι] {a b : ℝ} |
| 24 | |
| 25 | local notation "W" => EuclideanSpace ℝ ι |
| 26 | |
| 27 | /-- The actual second ordinary derivative of pushed curvature is |
| 28 | controlled by the first two intrinsic jets and speed derivatives. |
| 29 | MT2007 Claim 19.1, p. 437; curvature-second-spatial derivation. -/ |
| 30 | theorem embeddedCurvature_second_spatial_derivative_bound |
| 31 | (F : RicciFlow n M (Icc a b)) (c : ℝ → ℝ → M) |
| 32 | (hc : M62ShrinkingCurve F c) {e : M → W} |
| 33 | (he : ContMDiff (𝓡 n) 𝓘(ℝ, W) ∞ e) |
| 34 | {t : ℝ} (ht : t ∈ Ioo a b) (x : ℝ) |
| 35 | {E1 E2 E3 : ℝ} (hE1 : 0 ≤ E1) (hE2 : 0 ≤ E2) (hE3 : 0 ≤ E3) |
| 36 | (hde : ∀ V : TangentSpace (𝓡 n) (c x t), |
| 37 | Norm.norm (E := W) (mfderiv (𝓡 n) 𝓘(ℝ, W) e (c x t) V) ≤ |
| 38 | E1 * (F.metric t).tangentNorm (c x t) V) |
| 39 | (hE : ∀ V Z : TangentSpace (𝓡 n) (c x t), |
| 40 | ‖coordinateHessian (F.connection t) e (c x t) V Z‖ ≤ |
| 41 | E2 * (F.metric t).tangentNorm (c x t) V * (F.metric t).tangentNorm (c x t) Z) |
| 42 | (hT : ∀ V Y Z : TangentSpace (𝓡 n) (c x t), |
| 43 | ‖WithLp.toLp 2 (fun k : ι => (F.connection t).covariantTensorDerivative |
| 44 | (fun q w => (F.connection t).hessian (fun z => e z k) q (w 0) (w 1)) |
| 45 | (c x t) ![V, Y, Z])‖ ≤ |
| 46 | E3 * (F.metric t).tangentNorm (c x t) V * (F.metric t).tangentNorm (c x t) Y * |
| 47 | (F.metric t).tangentNorm (c x t) Z) : |
| 48 | let eta : ℝ → W := fun y => |
| 49 | mfderiv (𝓡 n) 𝓘(ℝ, W) e (c y t) (m62CurvatureVector F c t y) |
| 50 | let v := curveSpeed F c t x |
| 51 | let k := m62Curvature F c t x |
| 52 | let h1 := (F.metric t).tangentNorm (c x t) (m63CurvatureJet F c 1 t x) |
| 53 | let h2 := (F.metric t).tangentNorm (c x t) (m63CurvatureJet F c 2 t x) |
| 54 | ‖deriv (deriv eta) x‖ ≤ |
| 55 | |deriv (curveSpeed F c t) x| * (E2 * k + E1 * h1) + |
| 56 | v ^ 2 * (E3 * k + E2 * k ^ 2 + 2 * E2 * h1 + E1 * h2) := by |
| 57 | have hb := embeddedCurvatureJet_second_spatial_derivative_bound F c hc he 0 ht x |
| 58 | hE1 hE2 hE3 hde hE hT |
| 59 | dsimp only at hb ⊢ |
| 60 | simpa only [m63CurvatureJet, m62Curvature, RiemannianMetric.tangentNorm, |
| 61 | m62CurvatureSquared, pow_two, mul_assoc] using hb |
| 62 | |
| 63 | end PoincareMT.M63 |