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.ReducedVolume.Minimum.MinimumAttainment |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.MinimumBarrierComparison |
| 3 | |
| 4 | /-! |
| 5 | # The sharp reduced-length minimum bound |
| 6 | |
| 7 | Morgan-Tian Theorem 7.10 and Claim 7.11, pp. 154-156. Produced compact |
| 8 | sublevels and the initial infimum limit supply the hypotheses of the |
| 9 | upper-barrier comparison, including attainment of the spatial minimum. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | [ConnectedSpace M] [T3Space M] |
| 24 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 25 | |
| 26 | /-- The actual spatial minimum exists and is at most half the dimension. -/ |
| 27 | theorem reducedLength_minimum_bound |
| 28 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 29 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 30 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 31 | (p : M) {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 32 | ∃ q : M, (∀ y : M, reducedLength F T p q τ ≤ reducedLength F T p y τ) ∧ |
| 33 | reducedLength F T p q τ ≤ (n : ℝ) / 2 := by |
| 34 | obtain ⟨G⟩ := hDifferential.exponential_geometry p |
| 35 | obtain ⟨hcont, hattain⟩ := reducedLength_minimum_data hL G hDifferential hwindow hcurvature |
| 36 | exact reducedLength_minimum_bound_of_attainment hL G hDifferential (hτ.trans hmax) |
| 37 | hT hwindow hcurvature hcont hattain hτ hmax |
| 38 | |
| 39 | end PoincareMT.ReducedVolume |