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.Schedules.Constants.UniformCalibration |
| 2 | |
| 3 | /-! |
| 4 | # Common singular-limit and horn-selection threshold |
| 5 | |
| 6 | Morgan--Tian, Section 15.1.1, pp. 354-355, uses Lemma 11.28 and |
| 7 | Corollary 11.36 at a common accuracy. This applies the existing lower |
| 8 | milestone construction and records Appendix A's numerical upper bound. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.M45 |
| 18 | |
| 19 | /-- Lemma 11.28 and Corollary 11.36, as used on pp. 354-355, with |
| 20 | the actual Appendix A threshold retained before all later constants. -/ |
| 21 | theorem commonThresholdServices |
| 22 | (h31 : RepairedSingularRegularLimitTheory.{u}) |
| 23 | (h32 : RepairedHornSelectionTheory.{u}) |
| 24 | (A : RepairedNeckCapTopologyTheory.{u}) : |
| 25 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ terminalAccuracyFactor * epsilon₀ ≤ A.epsilon₀ ∧ |
| 26 | 2 * epsilon₀ ≤ 1 / 200 ∧ |
| 27 | (∀ {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 29 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 30 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 31 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ}, |
| 32 | ∀ H : SingularTimeAssumptions F T M, |
| 33 | H.epsilon ≤ epsilon₀ → Nonempty (RepairedSingularRegularLimitData H)) ∧ |
| 34 | (∀ epsilon C analyticConstant : ℝ, |
| 35 | 0 < epsilon → epsilon ≤ epsilon₀ → 0 < C → 0 < analyticConstant → |
| 36 | Nonempty (M32DeepHornScaleSelection.{u} epsilon C analyticConstant)) := by |
| 37 | obtain ⟨epsilon₀, hpos, hA, hlimit, hselector⟩ := |
| 38 | m31M32UniformCalibration h31 h32 A |
| 39 | have htwo : 2 * epsilon₀ ≤ terminalAccuracyFactor * epsilon₀ := |
| 40 | mul_le_mul_of_nonneg_right two_le_terminalAccuracyFactor hpos.le |
| 41 | exact ⟨epsilon₀, hpos, hA, htwo.trans (hA.trans A.epsilon₀_le_one_two_hundred), |
| 42 | hlimit, hselector⟩ |
| 43 | |
| 44 | end PoincareMT.M45 |