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.Variation.Geometry.MinimumBarrier |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Attainment |
| 3 | |
| 4 | /-! |
| 5 | # Attained reduced-length minima on ancient surfaces |
| 6 | |
| 7 | The original ancient-solution hypotheses give both attainment and the sharp |
| 8 | dimension-two bound. Morgan--Tian, Theorem 7.10 and Claim 7.11, pp. 154-156. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | namespace PoincareMT.AncientKappaSolution |
| 16 | |
| 17 | variable {M : Type*} [TopologicalSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 19 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 20 | [SecondCountableTopology M] [ConnectedSpace M] |
| 21 | |
| 22 | /-- Every positive backward time has an attained spatial reduced-length minimum at most one. -/ |
| 23 | theorem exists_reducedLength_minimizer_le_one (K : AncientKappaSolution 2 M) |
| 24 | (p : M) {τ : ℝ} (hτ : 0 < τ) : |
| 25 | ∃ q : M, (∀ y : M, reducedLength K.flow 0 p q τ ≤ reducedLength K.flow 0 p y τ) ∧ |
| 26 | reducedLength K.flow 0 p q τ ≤ 1 := by |
| 27 | obtain ⟨q, hq⟩ := K.exists_reducedLength_eq_spatialInfimum p hτ |
| 28 | exact ⟨q, fun y ↦ hq.trans_le (K.spatialReducedLengthInfimum_le p y τ), |
| 29 | hq.trans_le (K.spatialReducedLengthInfimum_le_one p hτ)⟩ |
| 30 | |
| 31 | end PoincareMT.AncientKappaSolution |