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.Surgery.Singular.LimitTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.HornTheory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Calibration.HeightRestriction |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | /-- One threshold for Theorem 11.19 and the geometric Corollary 11.36 |
| 14 | selector, chosen before every reference manifold and both constants. -/ |
| 15 | theorem m31M32UniformCalibration |
| 16 | (L31 : RepairedSingularRegularLimitTheory.{u}) |
| 17 | (L32 : RepairedHornSelectionTheory.{u}) |
| 18 | (A : RepairedNeckCapTopologyTheory.{u}) : |
| 19 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ terminalAccuracyFactor * epsilon₀ ≤ A.epsilon₀ ∧ |
| 20 | (∀ {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 22 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 23 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 24 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ}, |
| 25 | ∀ H : SingularTimeAssumptions F T M, |
| 26 | H.epsilon ≤ epsilon₀ → Nonempty (RepairedSingularRegularLimitData H)) ∧ |
| 27 | (∀ epsilon C analyticConstant : ℝ, |
| 28 | 0 < epsilon → epsilon ≤ epsilon₀ → 0 < C → 0 < analyticConstant → |
| 29 | Nonempty (M32DeepHornScaleSelection.{u} epsilon C analyticConstant)) := by |
| 30 | obtain ⟨e31, he31, hA, limit⟩ := L31.limit A |
| 31 | obtain ⟨e32, he32, _, selector⟩ := L32.scale_selection |
| 32 | refine ⟨min e31 e32, lt_min he31 he32, ?_, ?_, ?_⟩ |
| 33 | · exact (mul_le_mul_of_nonneg_left (min_le_left e31 e32) |
| 34 | terminalAccuracyFactor_pos.le).trans hA |
| 35 | · intro M _ _ _ _ _ _ _ _ F T H he |
| 36 | exact limit H (he.trans (min_le_left e31 e32)) |
| 37 | · intro epsilon C analyticConstant he he0 hC hAnalytic |
| 38 | apply selector epsilon C analyticConstant he |
| 39 | (he0.trans (min_le_right e31 e32)) hC hAnalytic A |
| 40 | exact (mul_le_mul_of_nonneg_left |
| 41 | (he0.trans (min_le_left e31 e32)) terminalAccuracyFactor_pos.le).trans hA |
| 42 | |
| 43 | end PoincareMT |