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.Continuation.Branch |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.RegularHistory |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Statements/M33BranchContinuation.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open scoped Manifold ContDiff Bundle ENNReal Topology BigOperators intervalIntegral |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | |
| 19 | structure RepairedBranchContinuationTheory : Prop where |
| 20 | regular_history : ∀ (F : SurgeryFlowData.{u}) (W : M33RegularHistoryWindow F), |
| 21 | Nonempty (M33RegularHistoryData W) |
| 22 | continuation : ∀ {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 24 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M], |
| 26 | ∀ {F : SurgeryFlowData.{u}} {T : ℝ}, |
| 27 | ∀ I : RepairedContinuationInput F T, |
| 28 | ∀ {G : GeneralizedRicciFlowData.{u}}, |
| 29 | ∀ H : SingularTimeAssumptions G T M, |
| 30 | ∀ L : RepairedSingularRegularLimitData H, |
| 31 | ∀ N : RepairedHornSelectionData H, |
| 32 | RepairedContinuationLimitBridge H L N I → |
| 33 | Nonempty (RepairedBranchContinuationData I) |
| 34 | |
| 35 | end PoincareMT |