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.ReducedLength.Minimum.Variational.AncientAction |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variational.Recovery.Ancient |
| 3 | |
| 4 | /-! |
| 5 | # Attainment of ancient-surface reduced-length minima |
| 6 | |
| 7 | An actual weak action limit has smooth recovery with fixed endpoints. |
| 8 | Consequently its terminal point attains the reduced-length spatial infimum, |
| 9 | without assuming smoothness of the limiting path. This supplies the |
| 10 | attainment step in Morgan--Tian, Claim 7.11, pp. 155--156. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Manifold ContDiff Bundle Topology intervalIntegral |
| 18 | |
| 19 | namespace PoincareMT.AncientKappaSolution |
| 20 | |
| 21 | open ReducedLengthMinimum ReducedLengthMinimum.Variational |
| 22 | |
| 23 | variable {M : Type*} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 25 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 26 | [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | |
| 28 | /-- The spatial reduced-length infimum is attained under the original ancient hypotheses. -/ |
| 29 | theorem exists_reducedLength_eq_spatialInfimum (K : AncientKappaSolution 2 M) |
| 30 | (p : M) {tau : ℝ} (htau : 0 < tau) : |
| 31 | ∃ q : M, reducedLength K.flow 0 p q tau = K.spatialReducedLengthInfimum p tau := by |
| 32 | classical |
| 33 | let : MetricSpace M := referenceMetricSpace (K.flow.metric 0) |
| 34 | obtain ⟨γ, m, t, x, Q, w, hγ, hγ0, ht, ht0, htend, hQ, hprimitive, hbound⟩ := |
| 35 | K.exists_spatial_minimizing_weak_action p htau |
| 36 | have hle := K.reducedLength_le_finite_chart_action htau t ht ht0 htend |
| 37 | γ hγ.continuousOn x |
| 38 | (fun i s hs => (hQ i).2.2 (interior_subset ((hQ i).2.1 (mem_image_of_mem γ hs)))) |
| 39 | w hprimitive |
| 40 | have hmin : reducedLength K.flow 0 p (γ (Real.sqrt tau)) tau ≤ |
| 41 | K.spatialReducedLengthInfimum p tau := by |
| 42 | apply (mul_le_mul_iff_right₀ (show 0 < 2 * Real.sqrt tau by positivity)).mp |
| 43 | simpa only [hγ0] using hle.trans hbound |
| 44 | exact ⟨γ (Real.sqrt tau), le_antisymm hmin (K.spatialReducedLengthInfimum_le p _ tau)⟩ |
| 45 | |
| 46 | /-- Every positive backward time has a spatial minimizing endpoint. -/ |
| 47 | theorem exists_reducedLength_minimizer (K : AncientKappaSolution 2 M) |
| 48 | (p : M) {tau : ℝ} (htau : 0 < tau) : |
| 49 | ∃ q : M, ∀ y : M, reducedLength K.flow 0 p q tau ≤ reducedLength K.flow 0 p y tau := by |
| 50 | obtain ⟨q, hq⟩ := K.exists_reducedLength_eq_spatialInfimum p htau |
| 51 | exact ⟨q, fun y => hq.le.trans (K.spatialReducedLengthInfimum_le p y tau)⟩ |
| 52 | |
| 53 | end PoincareMT.AncientKappaSolution |