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.Persistence.SourceNames.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Curvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Control.ScheduleTheory |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Prefix.Initial |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Prefix.PrefixWitness |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Theory |
| 7 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 8 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Ancient.Statement |
| 9 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.DenseTheory |
| 10 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.LimitTheory |
| 11 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.HornTheory |
| 12 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Constants.Assembly |
| 13 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.SmallNecks.ScaleBound |
| 14 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Gluing.Construction.Producer |
| 15 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.InitialFlow.InitialFlow |
| 16 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.InitialFlow.InitialCaptureUniqueness |
| 17 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.ModelAnalyticBounds |
| 18 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.StandardGeometry.CapRefinement |
| 19 | |
| 20 | /-! |
| 21 | # M45 calibrated surgery setup and initial seeds |
| 22 | |
| 23 | -/ |
| 24 | |
| 25 | set_option autoImplicit false |
| 26 | |
| 27 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | local macro "RepairedBoundedDistanceTheory" ".{" u:level "}" : term => |
| 32 | `(PoincareMT.DenseBoundedDistanceTheory.{$u}) |
| 33 | |
| 34 | open PoincareMT.MetricSurgery |
| 35 | |
| 36 | namespace PoincareMT |
| 37 | |
| 38 | /- |
| 39 | |
| 40 | Natural-language theorem: given the compact M03 local-flow, M04 curvature, |
| 41 | M25 Appendix A, M27 kappa-solution, M28 bounded-distance, M31 singular-limit |
| 42 | and M32 horn-selection services, the following holds after the M34 standard-cap existence, M35 |
| 43 | standard-cap uniqueness, M36 metric-surgery, and M44 guarded cap-persistence |
| 44 | providers are fixed, for every prescribed positive bound one choice of actual |
| 45 | standard initial metric/cap/surgery data, a fixed surgery setup with doubled |
| 46 | epsilon at most that bound, and positive initial seeds exist. The |
| 47 | source-calibration record names the threshold values, the |
| 48 | `C = max (Cκ) (Cstandard + 1)` choice, the canonical comparison at scale |
| 49 | `β * epsilon / 3`, Claim 15.1's initial-flow seed, the exact `Δ₀` minimum, |
| 50 | and the deep-horn selector bounds. It retains an actual Appendix A service |
| 51 | and a common threshold whose double is below that service's threshold, |
| 52 | as supplied by the M31/M32 calibration of Lemma 11.28 and Corollary 11.36. |
| 53 | It retains M32 selectors for every positive |
| 54 | analytic coefficient; the active selector can be recalibrated before any |
| 55 | prefix or flow is chosen. This family asserts no analytic bound on a flow. |
| 56 | Universal neck and round-component estimates are additional outputs, derived |
| 57 | from their intrinsic four-jet metric comparisons. They bound the scalar |
| 58 | gradient and the absolute spatial scalar-evolution expression and include |
| 59 | the Type-0 standard-neck application at normalized time zero. Together with |
| 60 | the actual kappa and standard-cap estimates they permit a model coefficient |
| 61 | to be selected independently of the old surgery height. They do not infer |
| 62 | derivative bounds from a general C-component's static geometry. |
| 63 | The Theorem 13.2 cutoff is at most the |
| 64 | actual selected metric-surgery cutoff. The returned data ties its setup to |
| 65 | the selected M44 cap-persistence |
| 66 | objects; it does not treat arbitrary numerical constants as their source. |
| 67 | Compatible finite prefixes are chosen afterward; no global sequence is |
| 68 | part of this output. M48 owns actual extension progress. M51 later applies |
| 69 | the initial-flow seed and constructs the global schedule. The initial capture |
| 70 | also supplies no surgery on [0,1/16] and curvature/full-volume estimates at |
| 71 | every actual time of any supplied raw flow in that interval. Ordinary |
| 72 | uniqueness uses its exact normalized initial metric; maximality excludes an |
| 73 | early surgery. Included regular domain truncations are still permitted. |
| 74 | |
| 75 | Source: Morgan--Tian Definition 15.5, printed p. 359; Definitions 15.6-- |
| 76 | 15.7, printed pp. 359--360; Theorem 15.9, printed pp. 363--364; and the |
| 77 | inductive schedule outline, printed pp. 365--366. The selected cap/surgery |
| 78 | objects are the actual Proposition 16.5 data retained for later calibration; |
| 79 | the standard-cap canonical field and calibration are source-scale properties. |
| 80 | The supporting outputs explicitly include Proposition 2.19's positive |
| 81 | neck-scale lower bound (pp. 31--33), Proposition 15.2's two-flow gluing |
| 82 | at the fixed selected epsilon (pp. 353--354), and the conversion of the |
| 83 | standard cap to Definition 9.72 (pp. 230--231), allowing Remark 9.73's |
| 84 | end-coordinate reversal. One M28 threshold is retained for both the earlier-time |
| 85 | and dense-time bounded-distance estimates, with twice the setup accuracy below |
| 86 | it. The canonical constant is then selected before applying these estimates |
| 87 | and selecting the geometric M32 height. The supporting model estimates |
| 88 | use Definition 2.16 and Eq. (2.1), p. 30, Definitions 2.18 and 9.76, |
| 89 | pp. 31 and 231, and the spatial expression in Corollary 9.71, pp. 229--230. |
| 90 | Their reviewed derivation and limitations are recorded in |
| 91 | `reviews/contracts/2026-09-15-model-analytic-margin-round1.md`. |
| 92 | The actual-flow initialization, including the elementary scalar bound 18, |
| 93 | uses Claim 15.1, p. 353, and the discussion before Definition 15.7, p. 360; |
| 94 | see `reviews/contracts/2026-09-15-m45-initial-capture-round1.md`. |
| 95 | M27's projective-plane exception |
| 96 | is retained for canonical neighborhoods; its derivative estimates have no |
| 97 | such exception. The literal source claim of one beta for all epsilon is |
| 98 | stronger than the fixed-epsilon result used here and remains unresolved. |
| 99 | The explicit services are supplied by the checked application in |
| 100 | `Proofs/M45/Providers.lean`. Their geometric use and the complete conditional |
| 101 | derivation are reviewed in |
| 102 | `reviews/contracts/2026-09-18-m45-current-round1.md`. The construction below |
| 103 | combines the six proved producers and the supplied services. Its sharp |
| 104 | curvature estimate uses the closed M04 proof. The common-threshold dense export |
| 105 | is reviewed in `reviews/contracts/2026-09-19-m45-dense-calibration-round1.md`; |
| 106 | it does not itself construct the generalized histories required by M47. |
| 107 | -/ |
| 108 | |
| 109 | /-- The calibrated controlled-surgery schedules of Definitions 15.5-15.7, |
| 110 | pp. 359-360, assembled on the actual supplied standard and M44 objects. -/ |
| 111 | theorem repairedControlledSchedules |
| 112 | (h03 : ∀ (M : Type u) [TopologicalSpace M] [T2Space M] |
| 113 | [SecondCountableTopology M] |
| 114 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 115 | [IsManifold (𝓡 3) ∞ M] [CompactSpace M], RicciFlowLocalTheory 3 M) |
| 116 | (h04 : RicciFlowCurvatureTheory.{u}) |
| 117 | (A : RepairedNeckCapTopologyTheory.{u}) |
| 118 | (h27 : RepairedKappaAlternativeTheory.{u}) |
| 119 | (h28 : RepairedBoundedDistanceTheory.{u}) |
| 120 | (h31 : RepairedSingularRegularLimitTheory.{u}) |
| 121 | (h32 : RepairedHornSelectionTheory.{u}) : |
| 122 | RepairedControlledSchedulesTheory.{u} := by |
| 123 | have _ := h04 |
| 124 | exact M45.controlledSchedulesOfProducers A h27 h28 h31 h32 |
| 125 | M45.smallNeckThreshold M45.neckGluingProducer |
| 126 | (M45.initialFlowProducer h03) (M45.initialCaptureProducer h03) |
| 127 | M45.modelAnalyticBounds M45.capRefinementProducer |
| 128 | |
| 129 | end PoincareMT |