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.Construction.ContinuationPolicy |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochTheory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Prefix.PrefixControls |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Analytics.RicciNormTransport |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Analytics.ScalarEvolution |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Analytics.LimitCalibration |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularHistory |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularSpacetime |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularSliceTransport |
| 10 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularCylinderTransport |
| 11 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Cylinders.SurgeryCylinderTransport |
| 12 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularNoncollapse |
| 13 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Cylinders.SurgeryNoncollapse |
| 14 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Analytics.ObservedAnalytics |
| 15 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularTimeAnalytics |
| 16 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.RegularReference |
| 17 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Canonical.StrongNeck |
| 18 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Terminal.SingularInput |
| 19 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Terminal.TerminalContinuation |
| 20 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Terminal.NextFrontier |
| 21 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Extension.ExtensionPrefix |
| 22 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Extension.ExtensionControls |
| 23 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.TerminalPolicy |
| 24 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Terminal.TerminalPolicy |
| 25 | |
| 26 | /-! |
| 27 | # M48 one-step epoch extension |
| 28 | -/ |
| 29 | |
| 30 | set_option autoImplicit false |
| 31 | |
| 32 | universe u |
| 33 | |
| 34 | namespace PoincareMT |
| 35 | |
| 36 | /- |
| 37 | Natural-language theorem: fix the predecessor services, the calibrated |
| 38 | setup and seeds, and M48AnalyticCalibration retaining the actual M47 component |
| 39 | estimate and all coefficient/cutoff bounds. Choose the M46/M47 packages for |
| 40 | that final setup. For any compatible finite prefix |
| 41 | with index i > 0, consider a flow with exact |
| 42 | time domain [0,H), T_i <= H < T_(i+1), and a preterminal smooth slab with |
| 43 | curvature unbounded at H. Suppose its schedule prefix is controlled, its |
| 44 | current canonical and noncollapsing properties hold at the selected radius, |
| 45 | the old observation satisfies the terminal policy, |
| 46 | and its total parameter profiles obey the selected scales on the next epoch |
| 47 | and overlap. The observation uses the calibrated standard-cap model. There is an actual |
| 48 | changing-carrier extension performing surgery at H and an observation |
| 49 | H < H' <= T_(i+1), with no surgery in (H,H'). If H' is before the epoch |
| 50 | boundary, the extended time domain is exactly [0,H') and a preterminal slab |
| 51 | starts at H and has singular frontier H'. Otherwise the observation is at |
| 52 | the epoch boundary, without requiring the returned flow to end there. |
| 53 | If its domain ends at that boundary, the actual preterminal slab starting |
| 54 | at H is retained there as well. |
| 55 | |
| 56 | The extension preserves old-prefix controls and has whole-domain |
| 57 | admissibility and pinching. The observed interval satisfies the selected M46 |
| 58 | noncollapsing bound and the selected M47 canonical-neighborhood property. |
| 59 | The stored analytic coefficient applies at the auxiliary M31 radius through |
| 60 | the retained component and model estimates. `M48AnalyticCalibration.continuation` |
| 61 | constructs it on the actual observation from its existing controls. |
| 62 | `regular_gradient` and `regular_time_derivative` transfer both estimates to |
| 63 | the same selected history at `historyRadius`; the strict threshold margin |
| 64 | permits time-derivative continuity across retained old events. |
| 65 | `frontier_history_scale` identifies the unchanged stored height and its strict |
| 66 | auxiliary-radius guard. No flow estimate is assumed. |
| 67 | `regular_reference_exists` constructs M31's actual final ordinary reference |
| 68 | on this same history, retaining the original slab metric and connection. |
| 69 | `RegularGuards` supplies its finite singular catalog, regular-slice compactness |
| 70 | and calibrated doubled-epsilon bound. |
| 71 | `M33RegularHistoryData.canonical_neck` transports the whole original strong-neck |
| 72 | cylinder on this same history, including retained old events, with unchanged |
| 73 | scale and strict comparison bound. `canonical_control` also constructs the |
| 74 | static cap/component/round branches with the original constants and models. |
| 75 | `M48AnalyticCalibration.singular_input` assembles every M31 input field |
| 76 | on this history. `regular_limit` produces the ordinary reference and applies |
| 77 | the stored calibrated limit service, retaining the same limit in its horn wrapper. |
| 78 | `singular_continuation` constructs M33's actual input and terminal bridge from |
| 79 | that one selected limit. Its core is the terminal scalar sublevel, the height |
| 80 | is the stored M32 choice, and local surgery uses the retained M36 operation |
| 81 | with the flow's exact constants. It applies M33 to these literal values. |
| 82 | `singular_frontier` then observes this same maximal ordinary restart at its |
| 83 | finite endpoint or the epoch boundary, retaining the selected standard flow. |
| 84 | It exports the actual next slab whenever the returned domain ends there, |
| 85 | including equality with the epoch boundary, without truncating a longer flow. |
| 86 | `RepairedBranchContinuationData.prefixControls` carries every old epoch entry |
| 87 | to this actual branch. It pushes whole strong-neck cylinders and pulls tested |
| 88 | closed backward balls through the extension isometries, retaining the positive |
| 89 | component exception, the original scale, and all parameter identities. |
| 90 | |
| 91 | Source: Morgan--Tian, Theorem 15.9 and its inductive outline, printed |
| 92 | pp. 363--366, Proposition 16.1, Proposition 17.1, and the continuation |
| 93 | construction of Section 17.2, printed pp. 409--410. The checked application |
| 94 | supplies M33's actual maximal surgery/restart branch and next observation, |
| 95 | then applies the exact selected M47 and M46 services to that same branch. |
| 96 | Its supplied M33 service also constructs the actual generalized regular |
| 97 | history on [0,H) through |
| 98 | `M48Predecessors.regularHistory`. The checked M11 interval realization and |
| 99 | supplied M12 service construct the same-carrier intrinsic Ricci geometry |
| 100 | through `M48Predecessors.regularSpacetime`. M13 |
| 101 | identifies its scalar curvature, full curvature norm, negative curvature part |
| 102 | and volume with the actual surgery history through `RegularSliceTransport`; |
| 103 | full-slice distance retains the nonsurgery-time guard. `RegularCylinderTransport` |
| 104 | places raw history cylinders and their exact metrics on this same realization. |
| 105 | `SurgeryCylinderTransport` applies the guarded M33 lift to the same history; |
| 106 | `RegularNoncollapse` transfers a supplied M15 predicate to the raw generalized |
| 107 | flow with the same constant, restricting half-open windows through smaller radii. |
| 108 | `SurgeryNoncollapse` passes that estimate to the actual surgery flow, retaining |
| 109 | the positive-component exclusion. M33's checked metric helpers identify balls |
| 110 | when the full ambient ball is retained; the volume transfer needs only their |
| 111 | one-sided inclusion. Actual M15 configurations are internal obligations of |
| 112 | the supplied M46/M47 services. `observedControls` transports the prescribed |
| 113 | profiles to this extension, applies M47, and then applies M46 with its cutoff. |
| 114 | No additional admission or analytic premise is used by this assembly. |
| 115 | The M33 terminal operation also supplies a checked terminal-policy witness on |
| 116 | the singleton newly-created frontier event `{O.H}`. The same branch retains |
| 117 | M33's primitive old-event preservation. `observedTerminalPolicy` combines |
| 118 | these outputs with existing old policy on the returned observation; it does |
| 119 | not create policy for arbitrary earlier events or an unobserved future. |
| 120 | The historical M31/M36/M43 predecessor fields remain compatibility inputs; |
| 121 | the actual selected limit and surgery operations are retained by the setup. |
| 122 | This singular step does not establish a closed continuation |
| 123 | chain, local finiteness, a global schedule, or an endpoint theorem. The |
| 124 | bounded prefix correction and exact Q/R selection are reviewed in |
| 125 | `reviews/contracts/2026-09-15-m45-finite-prefix-round1.md`. |
| 126 | -/ |
| 127 | theorem repairedEpochExtension : RepairedEpochExtensionTheory.{u} := by |
| 128 | classical |
| 129 | refine ⟨?_⟩ |
| 130 | intro P S A N C |
| 131 | refine ⟨⟨?_⟩⟩ |
| 132 | intro p hp F O hstart hend hdomain L old terminal_policy controls |
| 133 | let Q := Classical.choice (N.induction p hp) |
| 134 | let R : SurgeryCanonicalExtension p Q := Classical.choice (C.induction p hp) |
| 135 | change SurgeryEpochContinuationControls p F O Q R at controls |
| 136 | obtain ⟨geom, reference, H, limit, horn, href, hr, he, hC, hA, |
| 137 | htimes, hlimit, bridge, branch, O', hprogress, hbound, hsurgery, |
| 138 | hfree, hfrontier, hslab, hstandard⟩ := |
| 139 | A.singular_frontier P hp old controls hstart hend hdomain L |
| 140 | have full_policy : SurgeryFlowTerminalPolicyOn F F.time_domain := by |
| 141 | rw [hdomain] |
| 142 | simpa only [surgeryObservationInterval] using terminal_policy |
| 143 | have target_policy_full := branch.conclusion.terminalPolicy full_policy |
| 144 | have target_policy : SurgeryFlowTerminalPolicyOn branch.conclusion.extension.extended |
| 145 | (surgeryObservationInterval O') := |
| 146 | target_policy_full.restrict O'.interval_subset |
| 147 | obtain ⟨hprefix, hcanonical, hnoncollapsed⟩ := |
| 148 | branch.observedControls old controls O' hstart |
| 149 | ⟨hstart.trans_lt hprogress, hbound⟩ target_policy P.m13 |
| 150 | refine ⟨branch.conclusion.extension, |
| 151 | branch.conclusion.old_event_data, |
| 152 | branch.conclusion.terminal_operation.singletonTerminalPolicy, |
| 153 | O', hprogress, hbound, hsurgery, |
| 154 | hfree, hfrontier, O'.interval_subset, hprefix, |
| 155 | branch.conclusion.admissible, branch.conclusion.pinched, |
| 156 | hstandard, ?_, hcanonical, hnoncollapsed, hslab⟩ |
| 157 | simpa only [branch.conclusion.extension.parameters_eq] using controls.next_kappa |
| 158 | |
| 159 | end PoincareMT |