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.Extinction.Global.ProfileAlgebra |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Global.InitialWidth |
| 3 | |
| 4 | /-! |
| 5 | # A time determined by the fixed initial width |
| 6 | |
| 7 | Morgan--Tian Theorem 18.1, printed p. 432, chooses the comparison time from |
| 8 | the initial width before considering a component path reaching that time. |
| 9 | The global certificate places this nonnegative time in the flow domain. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 21 | {W : RepairedEventChildWitness D.flow} |
| 22 | {ancestry : RepairedFiniteAncestryData D.flow W} |
| 23 | |
| 24 | /-- The observation time for the negative-profile argument in Morgan--Tian |
| 25 | Theorem 18.1, p. 432. It depends only on the fixed initial width. -/ |
| 26 | noncomputable def m71ExtinctionTime (Q : M71FiniteContinuationService D W ancestry) : ℝ := |
| 27 | ((2 + m71InitialWidth Q / (2 * Real.pi)) ^ 4 - 1) / 4 |
| 28 | |
| 29 | /-- The observation time in Morgan--Tian Theorem 18.1, p. 432, is nonnegative. -/ |
| 30 | theorem m71ExtinctionTime_nonneg (Q : M71FiniteContinuationService D W ancestry) : |
| 31 | 0 ≤ m71ExtinctionTime Q := |
| 32 | (m71ProfileAlgebra_neg (m71InitialWidth Q) (m71InitialWidth_nonneg Q)).1 |
| 33 | |
| 34 | /-- The global flow domain contains the chosen observation time, using the |
| 35 | all-time certificate in Morgan--Tian Theorem 15.9, pp. 363-364. -/ |
| 36 | theorem m71ExtinctionTime_mem |
| 37 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 39 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 40 | [SecondCountableTopology M] [CompactSpace M] |
| 41 | {N : NormalizedInitialMetric (M := M)} {G : RepairedGlobalFlowData N} |
| 42 | (input : M71GlobalExtinctionInput N G) : |
| 43 | m71ExtinctionTime input.continuation ∈ input.D.flow.time_domain := by |
| 44 | rw [input.flow_eq, G.certificate.time_domain_eq] |
| 45 | exact m71ExtinctionTime_nonneg input.continuation |
| 46 | |
| 47 | end PoincareMT |