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.Induction.EpochExtension.Terminal.TerminalBridge |
| 2 | |
| 3 | /-! |
| 4 | # Apply M33 to the constructed M48 terminal bridge |
| 5 | |
| 6 | From the actual one-step input, select one regular history, one M31 input |
| 7 | and limit, then construct the core/bridge and apply the supplied M33 service. |
| 8 | This is the surgery/restart application in Section 17.2, pp. 409--410. |
| 9 | `NextFrontier.lean` observes its maximal ordinary restart. Returned |
| 10 | canonical/noncollapse controls remain separate M48 obligations. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M48AnalyticCalibration |
| 21 | |
| 22 | /-- Produce the same-history input, literal terminal bridge and actual M33 |
| 23 | continuation from the existing M48 assumptions. All six M31 data identities |
| 24 | and the full selected-limit identity remain available to later consumers. -/ |
| 25 | theorem singular_continuation |
| 26 | {S : RepairedControlledSchedulesData.{u}} (A : M48AnalyticCalibration S) |
| 27 | (P : M48Predecessors.{u}) |
| 28 | {p : SurgeryParameterPrefix S.constants} {F : SurgeryFlowData.{u}} |
| 29 | {O : SurgeryObservation F} (hp : S.SeedCompatible p) |
| 30 | (old : SurgeryPrefixControls p F O) |
| 31 | {Q : SurgeryNoncollapseExtension.{u} p} {N : SurgeryCanonicalExtension p Q} |
| 32 | (controls : SurgeryEpochContinuationControls p F O Q N) |
| 33 | (hstart : surgeryEpochStart p.i ≤ O.H) |
| 34 | (hend : O.H < surgeryEpochStart (p.i + 1)) |
| 35 | (hdomain : F.time_domain = Ico 0 O.H) (L : RepairedPreterminalSlab F O.H) : |
| 36 | ∃ R : M48RegularSpacetimeData L, |
| 37 | ∃ reference : M48RegularReferenceData L R.history, |
| 38 | ∃ H : SingularTimeAssumptions R.history.generalized O.H (F.slice L.start).carrier, |
| 39 | ∃ limit : RepairedSingularRegularLimitData H, |
| 40 | ∃ horn : RepairedHornSelectionData H, |
| 41 | H.reference = reference.reference ∧ H.r₀ = A.historyRadius N.rNext ∧ |
| 42 | H.epsilon = S.setup.epsilon ∧ H.constant = S.setup.C ∧ |
| 43 | H.analytic_constant = S.calibration.analytic_constant ∧ |
| 44 | H.singularTimes = L.singularCatalog ∧ horn.limit = limit ∧ |
| 45 | ∃ _bridge : RepairedContinuationLimitBridge H limit horn |
| 46 | (A.continuationInput hp old controls hstart hend hdomain L |
| 47 | (m48TerminalCore H horn (F.parameters.delta O.H * F.parameters.r O.H))), |
| 48 | Nonempty (RepairedBranchContinuationData |
| 49 | (A.continuationInput hp old controls hstart hend hdomain L |
| 50 | (m48TerminalCore H horn (F.parameters.delta O.H * F.parameters.r O.H)))) := by |
| 51 | obtain ⟨R⟩ := P.regularSpacetime L |
| 52 | obtain ⟨reference, H, href, hr, he, hC, hA, htimes, limit, horn, hlimit, _haccuracy⟩ := |
| 53 | A.regular_limit P hp old controls R |
| 54 | let bridge := A.terminalBridge hp old controls hstart hend hdomain |
| 55 | reference H href hr he hC hA limit horn hlimit |
| 56 | exact ⟨R, reference, H, limit, horn, href, hr, he, hC, hA, htimes, hlimit, |
| 57 | bridge, P.m33.continuation _ H limit horn bridge⟩ |
| 58 | |
| 59 | end PoincareMT.M48AnalyticCalibration |