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.PersistenceTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cutoff.UniformCutoff |
| 3 | |
| 4 | /-! |
| 5 | # The repaired cap-persistence package |
| 6 | |
| 7 | The supplied M34, M35 and M36 packages and the proved cutoff-first |
| 8 | operation construct the exact frozen persistence data. Morgan--Tian, |
| 9 | Proposition 16.5, pp. 370-375; M44 derivation 113. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.M44 |
| 17 | |
| 18 | /-- Every initial metric receives the frozen cap-persistence data |
| 19 | from the authorized analytic services and supplied M34, M35 and M36 |
| 20 | theories. Source: Proposition 16.5, pp. 370-375; M44 derivation 113. -/ |
| 21 | theorem exists_repaired_cap_persistence_data |
| 22 | (P : M44CapPersistencePredecessors.{u}) |
| 23 | (E : RepairedStandardCapExistenceTheory) |
| 24 | (U : RepairedStandardCapUniquenessTheory) |
| 25 | (S : RepairedMetricSurgeryTheory.{u}) (g0 : StandardInitialMetric) : |
| 26 | Nonempty (RepairedCapPersistenceData.{u} g0) := by |
| 27 | obtain ⟨standard⟩ := E.existence g0 |
| 28 | obtain ⟨unique⟩ := U.estimates g0 standard |
| 29 | obtain ⟨surgery⟩ := S.surgery g0 |
| 30 | refine ⟨{ standard_cap := standard |
| 31 | standard_cap_uniqueness := ⟨unique⟩ |
| 32 | metric_surgery := surgery |
| 33 | proposition_16_5 := ?_ }⟩ |
| 34 | intro p rNext hg hr _hrUpper A eta theta hA heta htheta htheta1 |
| 35 | have hmodel : ∃ model : RepairedStandardCapExistenceData p.setup.standard_initial, |
| 36 | Nonempty (RepairedStandardCapUniquenessData p.setup.standard_initial model) := by |
| 37 | rw [hg] |
| 38 | exact ⟨standard, ⟨unique⟩⟩ |
| 39 | obtain ⟨model, ⟨modelUnique⟩⟩ := hmodel |
| 40 | exact exists_cap_persistence_cutoff P p.setup model modelUnique |
| 41 | (surgeryEpochStart (p.i - 1)) rNext A eta theta hr hA heta htheta htheta1 |
| 42 | |
| 43 | end PoincareMT.M44 |