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.Global.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Global.Assembly |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M52.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 8 | -/ |
| 9 | |
| 10 | /-! |
| 11 | # M52 checked global-certificate assembly |
| 12 | |
| 13 | Natural-language theorem: construct one global surgery schedule and, for every |
| 14 | already given finite controlled flow on `[0,T)` satisfying the Definition 15.8 |
| 15 | terminal event policy, source controls and schedule bounds, extend that same |
| 16 | flow to `[0,∞)` while preserving the |
| 17 | global controls. Separately, for every nonempty compact normalized initial |
| 18 | metric with no embedded projective plane of trivial normal bundle, and every |
| 19 | positive non-increasing control function bounded by that schedule, construct |
| 20 | a complete changing-carrier global surgery-flow certificate. The certificate |
| 21 | is identified with the M51 schedule's actual flow, schedule, and control |
| 22 | function, and retains the canonical, noncollapsing, pinching, admissibility, |
| 23 | volume, local-finiteness, and permanent-empty properties. Its retained M51 |
| 24 | schedule and checked `terminalPolicy` adapter give the same-flow event policy. |
| 25 | Its surgery scale uses the source quantity `rho = delta * r`. |
| 26 | |
| 27 | M51 owns the compatible finite/global construction and retains the selected |
| 28 | M49 loss certificate on its actual flow. The checked M52 assembly uses that |
| 29 | output for all four volume fields and passes through the same-flow extension |
| 30 | branch. M51's admitted global construction remains for later proof work. |
| 31 | The same schedule also retains the caller's positive bound on doubled setup |
| 32 | epsilon, chosen before the initial metric and control function. |
| 33 | |
| 34 | Source: Morgan--Tian Theorem 15.9 and Corollary 15.10, printed pp. 363--366, |
| 35 | with the changing-carrier construction in Section 15.4 and finite-prefix |
| 36 | completion in Section 17.2, pp. 356--366 and 408--411 (arXiv V2 lines |
| 37 | 16813--16849 and 18857--18957). The corrected surgery-volume scaling from |
| 38 | M49 remains an upstream obligation. |
| 39 | |
| 40 | This numbered entry is now a logical adapter with no admission. The substantive |
| 41 | Theorem 15.9 construction remains in M51, and volume evolution/loss in M49. |
| 42 | Earlier milestone files are read-only for later collaborators. |
| 43 | -/ |
| 44 | |
| 45 | set_option autoImplicit false |
| 46 | |
| 47 | universe u |
| 48 | |
| 49 | namespace PoincareMT |
| 50 | |
| 51 | theorem repairedGlobalFlow : RepairedGlobalFlowTheory.{u} := by |
| 52 | refine ⟨?_⟩ |
| 53 | intro B28 E34 U35 S36 P44 L15 U43 S45 N46 C47 E48 P48 V49 F50 G51 epsilon_bound hpositive |
| 54 | obtain ⟨K, schedule, hepsilon, extend, start⟩ := |
| 55 | G51.uniform_schedule B28 E34 U35 S36 P44 L15 U43 S45 N46 C47 E48 P48 V49 F50 |
| 56 | epsilon_bound hpositive |
| 57 | refine ⟨K, schedule, hepsilon, extend, ?_⟩ |
| 58 | intro M _ _ _ _ _ _ _ _ _ _ N hprojective delta hantitone hpositive hcutoff |
| 59 | obtain ⟨G, hK, hschedule, hdelta⟩ := |
| 60 | start N hprojective delta hantitone hpositive hcutoff |
| 61 | obtain ⟨R, hR⟩ := m52GlobalFlowDataFromSchedule G |
| 62 | refine ⟨R, ?_, ?_, ?_⟩ |
| 63 | · rw [hR] |
| 64 | exact hK |
| 65 | · rw [hR] |
| 66 | exact hschedule |
| 67 | · rw [hR] |
| 68 | exact hdelta |
| 69 | |
| 70 | end PoincareMT |