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.Induction.NoncollapseData |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Provider |
| 3 | |
| 4 | /-! |
| 5 | # The old-prefix constants in Proposition 16.1 |
| 6 | |
| 7 | Morgan--Tian, pp. 367-368 and 391-394. These choices precede the new |
| 8 | surgery radius and every observed flow. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | -- Preserve the native and retained-slice tangent instances in these data. |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | open scoped Manifold ContDiff Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | /-- The fixed action budget used on pp. 393-394. It depends only on the |
| 23 | old prefix. Comparison paths have a factor-two margin below this budget. -/ |
| 24 | noncomputable def actionBudget {K : MetricSurgeryConstants} |
| 25 | (p : SurgeryParameterPrefix K) : ℝ := |
| 26 | 8 * Real.sqrt (surgeryEpochStart (p.i + 1)) * (1 + surgeryEpochStart (p.i + 1)) |
| 27 | |
| 28 | /-- Proposition 16.1's constant is fixed before the next radius and the flow. |
| 29 | The factor eight is the half-radius loss in the Theorem 8.1 application. -/ |
| 30 | noncomputable def configurationKappa {K : MetricSurgeryConstants} |
| 31 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 32 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) : ℝ := |
| 33 | min (p.kappa (Fin.last p.i)) (min (p.kappa 0) (U.kappa / 8)) |
| 34 | |
| 35 | /-- Positivity of the common constant in Proposition 16.1, p. 367. -/ |
| 36 | theorem configurationKappa_pos {K : MetricSurgeryConstants} |
| 37 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 38 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) : |
| 39 | 0 < configurationKappa p U := |
| 40 | lt_min (p.kappa_pos _) (lt_min (p.kappa_pos _) (div_pos U.kappa_pos (by norm_num))) |
| 41 | |
| 42 | /-- The new constant is at most the old final constant, Proposition 16.1. -/ |
| 43 | theorem configurationKappa_le_last {K : MetricSurgeryConstants} |
| 44 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 45 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) : |
| 46 | configurationKappa p U ≤ p.kappa (Fin.last p.i) := min_le_left _ _ |
| 47 | |
| 48 | /-- The common constant includes the initial seed, Remark 16.2, p. 368. -/ |
| 49 | theorem configurationKappa_le_seed {K : MetricSurgeryConstants} |
| 50 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 51 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) : |
| 52 | configurationKappa p U ≤ p.kappa 0 := |
| 53 | (min_le_right _ _).trans (min_le_left _ _) |
| 54 | |
| 55 | /-- Theorem 8.1's half-radius constant dominates the chosen constant. -/ |
| 56 | theorem configurationKappa_le_uniform {K : MetricSurgeryConstants} |
| 57 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 58 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) : |
| 59 | configurationKappa p U ≤ U.kappa / 8 := |
| 60 | (min_le_right _ _).trans (min_le_right _ _) |
| 61 | |
| 62 | end PoincareMT.Proofs.M46 |