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.UnifiedTheory |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Proofs/M43.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M43 logical continuation-branch assembly |
| 11 | |
| 12 | The M41 and M42 services select a terminal constructor on one supplied M33 |
| 13 | branch. This entry packages their result in the existing disjoint sum. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /- |
| 23 | Fix M41 and M42 services, a preterminal input I, and one concrete M33 branch |
| 24 | B. Return the nonempty or vanishing certificate for exactly I and B inside |
| 25 | RepairedUnifiedContinuationData. Each certificate retains its operation, |
| 26 | constructor equality, post-terminal interval, admissibility and pinching. |
| 27 | |
| 28 | Logical derivation: inspect I's supplied controlled-core status. Apply M41 |
| 29 | in the nonempty case and M42 in the empty case, then insert the obtained |
| 30 | witness into the appropriate Sum constructor. No branch is reselected. |
| 31 | |
| 32 | This is a logical assembly, not an independent Morgan--Tian theorem. |
| 33 | The geometric continuation remains the M33 obligation from Lemma 15.11 |
| 34 | (printed p. 364) and the degenerate Theorem 15.9 case (pp. 409--410). |
| 35 | `reviews/errata/2026-09-14-local-continuation-controls.md` reserves the later |
| 36 | canonical and noncollapsing propagation for Chapters 16--17. |
| 37 | -/ |
| 38 | theorem repairedUnifiedContinuation : RepairedUnifiedContinuationTheory.{u} := by |
| 39 | refine ⟨?_⟩ |
| 40 | intro N V F T I branch |
| 41 | cases I.core_status with |
| 42 | | nonempty hcore => |
| 43 | rcases N.continuation I branch hcore with ⟨continuation⟩ |
| 44 | exact ⟨⟨Sum.inl continuation⟩⟩ |
| 45 | | empty hcore => |
| 46 | rcases V.continuation I branch hcore with ⟨continuation⟩ |
| 47 | exact ⟨⟨Sum.inr continuation⟩⟩ |
| 48 | |
| 49 | end PoincareMT |