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.Limit |
| 2 | import PoincareLib.Topology.Manifold.NeckCap.Theory |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Statements/M31SingularRegularLimit.lean` at |
| 6 | `0bf00434d6783c9fed79b6a8fa3a8349cfc78335`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/terminal-accuracy-contract.json`. |
| 8 | -/ |
| 9 | |
| 10 | /-! |
| 11 | # M31 repaired singular-time regular-limit statement |
| 12 | |
| 13 | Given the Appendix A theory, choose a positive epsilon threshold below its |
| 14 | threshold divided by `terminalAccuracyFactor` and small enough for |
| 15 | Proposition 2.19. For every generalized |
| 16 | flow and finite singular time satisfying Assumptions 11.18 with epsilon below |
| 17 | that chosen threshold, construct the complete regular-limit certificate. |
| 18 | The chosen bound precedes the reference manifold, flow and terminal time, |
| 19 | so it remains valid when surgery changes the manifold. A bare numeric cap |
| 20 | ceiling does not replace this source calibration. |
| 21 | |
| 22 | Source: Morgan--Tian, Chapter 11 opening, printed p. 267; Theorem 11.19 and |
| 23 | Lemma 11.28, printed pp. 279--287. The printed conclusion uses doubled |
| 24 | epsilon; the formal conclusion uses `terminalAccuracyFactor * epsilon`, since |
| 25 | the cap case of Proposition 9.79(3) does not deliver a factor two (revision of |
| 26 | 2026-09-22, see `terminalAccuracyFactor`). |
| 27 | -/ |
| 28 | |
| 29 | set_option autoImplicit false |
| 30 | |
| 31 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 32 | |
| 33 | universe u |
| 34 | |
| 35 | namespace PoincareMT |
| 36 | |
| 37 | structure RepairedSingularRegularLimitTheory : Prop where |
| 38 | limit : ∀ A : RepairedNeckCapTopologyTheory.{u}, |
| 39 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ terminalAccuracyFactor * epsilon₀ ≤ A.epsilon₀ ∧ |
| 40 | ∀ {M : Type u} [TopologicalSpace M] |
| 41 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 42 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 43 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 44 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ}, |
| 45 | ∀ H : SingularTimeAssumptions F T M, |
| 46 | H.epsilon ≤ epsilon₀ → |
| 47 | Nonempty (RepairedSingularRegularLimitData H) |
| 48 | |
| 49 | end PoincareMT |