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.Generalized.ReducedGeometry.Regularity.PositiveStart.PositiveStartDifferential |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Regularity.Hessian.HessianIndexComparison |
| 3 | |
| 4 | /-! |
| 5 | # The positive-start actual Hessian comparison |
| 6 | |
| 7 | The proved raw contact and realized actual fields give the endpoint |
| 8 | Hessian upper bound without a whole-spacetime finite-value assumption. |
| 9 | Morgan-Tian Lemma 6.40 and Proposition 6.43, pp. 126-128. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff intervalIntegral |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T a b : ℝ} {x y : G.Point} {p : M14BackwardPath G T a b x y} |
| 24 | {R : M14SquareRootPath G p} |
| 25 | |
| 26 | /-- Every smooth initial-zero actual field bounds the Hessian of |
| 27 | smooth raw reduced length at a minimizing endpoint, for arbitrary |
| 28 | nonnegative start, Lemma 6.40, pp. 126-127. -/ |
| 29 | theorem positiveStart_hessian_le_pullback_index |
| 30 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 31 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (hp : M14IsMinimizing p) |
| 33 | (U : Set G.Point) (hU : IsOpen U) (hy : y ∈ U) |
| 34 | (hf : ContMDiffOn (spacetimeModel n) (𝓘(ℝ, ℝ)) ∞ |
| 35 | (M14ReducedLengthAt G T a x) U) |
| 36 | (hq : G.spacetime.timeFunction (R.curve (Real.sqrt b)) = T - b) |
| 37 | {Y : ∀ r, G.Horizontal (R.curve r)} |
| 38 | (EY : M14PullbackExtension G R.curve (M14SqrtParameterInterval a b) Y) |
| 39 | (hleft : Y (Real.sqrt a) = 0) : |
| 40 | M14ReducedLengthHessianPairing G ⟨R.curve (Real.sqrt b), hq⟩ |
| 41 | (M14ReducedLengthAt G T a x) (Y (Real.sqrt b)) (Y (Real.sqrt b)) ≤ |
| 42 | (∫ r in Real.sqrt a..Real.sqrt b, pullbackIndexPairDensity R EY EY r) / |
| 43 | (2 * Real.sqrt b) := by |
| 44 | have hs : Real.sqrt b ∈ M14SqrtParameterInterval a b := |
| 45 | ⟨Real.sqrt_le_sqrt p.tau_lt.le, le_rfl⟩ |
| 46 | have hpoint : R.curve (Real.sqrt b) = y := by |
| 47 | rw [R.agrees _ hs, Real.sq_sqrt (p.tau_nonneg.trans p.tau_lt.le), p.curve_end] |
| 48 | have hRU : R.curve (Real.sqrt b) ∈ U := by rwa [hpoint] |
| 49 | have hY := pullbackExtension_field_contMDiffOn EY (R.smooth.mono R.interval_subset) |
| 50 | obtain ⟨V, hfix, hfield, _⟩ := |
| 51 | exists_initialFixed_variation_of_smooth_horizontalField R hM12 Y hY hleft |
| 52 | obtain ⟨D⟩ := exists_variationDerivativeData V |
| 53 | have hgap := isLocalMin_variationAction_gap_of_smooth_minimizing hM12 V hp hfix U hU hy hf |
| 54 | have h := variation_hessian_le_index hCoordinates hM04 hM12 V D hp hfix |
| 55 | (M14ReducedLengthAt G T a x) U hU hRU hf hgap |
| 56 | (positiveStart_horizontal_differential hCoordinates hM12 hp U hU hy hf) hq |
| 57 | rwa [secondVariationIndexForm_eq_of_field V D EY hfield, hfield _ hs] at h |
| 58 | |
| 59 | end PoincareMT.M14 |