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.StandardCap.Existence.InitialMetric.Existence |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.MaximalExistence |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Curvature.Positive |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.RotationInvariance |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Asymptotics.AsymptoticCertificate |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.NoncollapsingCertificate |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Basic.CylinderAtlas |
| 8 | |
| 9 | /-! |
| 10 | # Assembly conditional on the unit lifetime lower bound |
| 11 | |
| 12 | Every field uses the same supplied initial metric and actual maximal |
| 13 | flow. The sole remaining hypothesis is the lifetime lower bound; the |
| 14 | proved cylinder upper bound gives equality with one. |
| 15 | Source: Morgan-Tian Theorems 12.5 and 12.29, pp. 295-297, 324-325; |
| 16 | conditional entry assembly derivation in the M34 task records. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | /-- All frozen standard-cap existence fields for the same actual maximal |
| 24 | flow, conditional only on its unit lifetime lower bound (Theorem 12.29). -/ |
| 25 | theorem repairedStandardCapExistenceData_of_lifetime_ge_one |
| 26 | (P : M34StandardCapPredecessors) {g0 : StandardInitialMetric} |
| 27 | (F : MaximalStandardCapFlow g0) (hlifetime : 1 ≤ F.base.lifetime) : |
| 28 | Nonempty (RepairedStandardCapExistenceData g0) := by |
| 29 | obtain ⟨E0⟩ := standardCapEstimate_exists g0 |
| 30 | obtain ⟨A⟩ := nonempty_standardCylinderAtlas |
| 31 | exact ⟨{ |
| 32 | atlas := A |
| 33 | flow := F |
| 34 | lifetime_one := le_antisymm |
| 35 | (partialStandardCapFlow_lifetime_le_one P.curvature E0 F.base) hlifetime |
| 36 | complete := fun _ ht => partialFlow_complete F.base P.curvature ht |
| 37 | positive_sectional := partialFlow_positiveSectional P.curvature E0 F.base |
| 38 | nonnegative_sectional := partialFlow_nonnegativeSectionalCurvature P.curvature E0 F.base |
| 39 | rotation_invariant := fun _ ht => |
| 40 | partialStandardCapFlow_rotation_invariant P.curvature E0 F.base g0.cylindrical_end ht |
| 41 | initial_estimate := E0 |
| 42 | asymptotic := fun _ ht _ he => standardFlowAsymptoticCertificate_exists P.curvature E0 F A he ht |
| 43 | noncollapsing := standardFlow_noncollapsingCertificate F P |
| 44 | }⟩ |
| 45 | |
| 46 | /-- The final existence theory follows from the unit lifetime lower bound |
| 47 | for actual maximal flows, with all other fields already constructed |
| 48 | (Theorems 12.5 and 12.29). -/ |
| 49 | theorem repairedStandardCapExistenceTheory_of_lifetime_ge_one |
| 50 | (P : M34StandardCapPredecessors) |
| 51 | (hlifetime : ∀ (g0 : StandardInitialMetric) (F : MaximalStandardCapFlow g0), |
| 52 | 1 ≤ F.base.lifetime) : RepairedStandardCapExistenceTheory where |
| 53 | initial_metric := standardInitialMetric_exists |
| 54 | existence := by |
| 55 | intro g0 |
| 56 | obtain ⟨F, _⟩ := maximalStandardCapFlow_exists P g0 |
| 57 | exact repairedStandardCapExistenceData_of_lifetime_ge_one P F (hlifetime g0 F) |
| 58 | |
| 59 | end PoincareMT.M34 |