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.AncientKappa.Compactness.Estimates |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Construction |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.Convergence |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.Terminal |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.SpatialBounds |
| 6 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Embeddings |
| 7 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.LocalBounds.Normalized |
| 8 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Noncollapse |
| 9 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Nonflatness |
| 10 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ParabolicNoncollapse |
| 11 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ScalarBuffer |
| 12 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.TerminalLimit |
| 13 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Limit |
| 14 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.AncientSolution |
| 15 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Assembly.Convergence |
| 16 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Conclusion |
| 17 | |
| 18 | /-! |
| 19 | # M23 normalized kappa compactness proof entry |
| 20 | |
| 21 | The local estimate, common interior limit, actual complete terminal flow, |
| 22 | and convergence through zero are constructed from the explicit predecessors. |
| 23 | The global terminal scalar bound is proved on that actual flow before it is |
| 24 | packaged as an ancient kappa-solution. |
| 25 | -/ |
| 26 | |
| 27 | set_option autoImplicit false |
| 28 | |
| 29 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 30 | |
| 31 | namespace PoincareMT |
| 32 | |
| 33 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 34 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 35 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 36 | |
| 37 | local instance compactnessProofConnected (C : FlowCarrier.{0} 3) : |
| 38 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 39 | |
| 40 | /- The global curvature clause is already part of the ancient-solution |
| 41 | structure. Keeping this adapter explicit prevents the M23 construction from |
| 42 | re-proving a bound which is inherited once the actual limit is identified. -/ |
| 43 | theorem m23LimitBoundedCurvature_of_limit |
| 44 | {kappa : ℝ} (B : BasedKappaSolution kappa) : |
| 45 | M23LimitBoundedCurvature B := by |
| 46 | let C := B.carrier |
| 47 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 48 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 49 | letI : BorelSpace C.carrier := C.borelSpace |
| 50 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 51 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 52 | letI : T2Space C.carrier := C.t2Space |
| 53 | letI : T3Space C.carrier := C.t3Space |
| 54 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 55 | letI : ConnectedSpace C.carrier := B.connectedSpace |
| 56 | change ∀ t : ℝ, t ≤ 0 → ∃ K : ℝ, 0 ≤ K ∧ ∀ x : C.carrier, |
| 57 | |(B.flow.flow.connection t).curvatureTensorNorm x| ≤ K |
| 58 | intro t ht |
| 59 | exact B.flow.bounded_curvature t ht |
| 60 | |
| 61 | /-- M23: Fix a positive constant kappa and a sequence of based, complete, |
| 62 | nonflat, nonnegatively curved three-dimensional kappa-solutions whose |
| 63 | basepoints satisfy R(p_k,0)=1. Given the actual M04, M07, M13, M16, M19, |
| 64 | M21 and M22 services, produce a strictly increasing subsequence converging |
| 65 | smoothly, including time zero, to a based ancient solution with the same |
| 66 | kappa. For each positive r, one constant bounds R(q,0) for every index and |
| 67 | every q in its terminal radius-r base ball. Retain the resulting whole-past |
| 68 | full-curvature bounds on those balls and bounded curvature of each limit slice. |
| 69 | Compact and nonorientable inputs are included. |
| 70 | |
| 71 | The same terminal embedding family preserves ordinary time lines, agrees |
| 72 | with the interior maps, preserves the terminal basepoint, and gives uniform |
| 73 | convergence of all metric jets on compact sets meeting zero. Derivatives |
| 74 | are taken within the fixed past half-space. The limit is complete, |
| 75 | noncollapsed with the original kappa, and scalar-normalized at zero. |
| 76 | |
| 77 | M23 constructs the finite-window hypotheses, calibrated volume comparisons, |
| 78 | point-picked rescalings, terminal maps and completeness, mixed jets and |
| 79 | limit noncollapse. Its fixed-radius volume-collapse contradiction uses M21 |
| 80 | on actual input solutions and M22 only after a bounded nonflat auxiliary |
| 81 | kappa-solution exists. M04 scalar-zero rigidity handles the raw flat limit. |
| 82 | This treats compact inputs without the printed proof's noncompact threshold. |
| 83 | |
| 84 | For the final generic limit, first construct a separately bounded blow-up |
| 85 | and its actual two-dimensional factor, then apply M19. Shrinking |
| 86 | spherical or projective necks in one fixed original slice contradict the |
| 87 | nonnegative-curvature convex-exhaustion argument. Bounds and every-time |
| 88 | nonflatness are proved |
| 89 | before the original limit is packaged as a kappa-solution. These are internal |
| 90 | proof obligations, not hypotheses asserting the desired limit or its bounds. |
| 91 | |
| 92 | Sources: Morgan--Tian Theorem 9.64, pp. 225/229; Lemma 9.65 and Claim 9.66, |
| 93 | pp. 225-227; Proposition 9.60 and Corollaries 9.62-9.63, pp. 222-225; |
| 94 | Definition 5.12 and Theorems 5.11/5.15, pp. 89-92; Theorem 3.28, |
| 95 | pp. 51-52; Theorem 4.18, p. 71; Corollary 9.50, pp. 213-214. |
| 96 | The generic-limit completion uses corrected Kleiner--Lott Theorem 46.1, |
| 97 | pp. 2687-2688, including its nonnegative-curvature neck obstruction. |
| 98 | The 2015 Section 19.2 correction does not affect these Chapter 9 results. |
| 99 | |
| 100 | The source distinctions and existing compactness, endpoint, Harnack and |
| 101 | bounded-limit corrections are recorded in |
| 102 | reviews/errata/2026-09-15-m23-compactness.md and the full derivations in |
| 103 | reviews/contracts/2026-09-15-m23-complete-contract.md. The checked producers |
| 104 | are in Proofs/M23/Providers.lean; the M19 and M22 fields have their actual |
| 105 | earlier prerequisites supplied there. -/ |
| 106 | theorem m23NormalizedKappaCompactness |
| 107 | (N : NormalizedKappaCompactnessData) |
| 108 | (P : M23NormalizedKappaCompactnessPredecessors) : |
| 109 | Nonempty (RedesignNormalizedKappaCompactnessConclusion N) := by |
| 110 | classical |
| 111 | have hlocal : M23LocalCurvatureEstimate N.sequence := |
| 112 | m23LocalCurvatureEstimate_of_predecessors N.sequence P |
| 113 | have hcontrol := m23AllTimeCurvatureControl_of_local N.sequence P hlocal |
| 114 | obtain ⟨H, F, hF, hcomplete, hoperator, hnc, hnormalized, hmono, hpast⟩ := |
| 115 | N.sequence.exists_complete_noncollapsed_closed_geometric_limit P hlocal |
| 116 | have hbounded : ∃ B : ℝ, 0 ≤ B ∧ |
| 117 | ∀ x : H.limitCarrier.carrier, (F.connection 0).scalarCurvature x ≤ B := by |
| 118 | exact F.exists_terminal_scalar_bound_of_m23_predecessors P N.sequence.kappa_pos |
| 119 | hcomplete hoperator hmono |
| 120 | (fun t ht p r hr hcurv => hnc r hr t ht p r hr le_rfl hcurv) H.base |
| 121 | obtain ⟨B, hB, hbound⟩ := hbounded |
| 122 | have hpositive : ∃ x : H.limitCarrier.carrier, |
| 123 | 0 < (F.connection 0).scalarCurvature x := |
| 124 | ⟨H.base, by rw [hnormalized]; norm_num⟩ |
| 125 | let K := F.ancientKappaSolutionOfTerminalScalarBound P N.sequence.kappa_pos hB |
| 126 | hcomplete hoperator hnc hpositive (fun t ht x => hpast t 0 ht le_rfl x) hbound |
| 127 | have hreference : H.limitCarrier.metricComplete (H.limitFlow.metric 0) := by |
| 128 | have h := hcomplete (-1) (by norm_num) |
| 129 | rw [hF (-1) (by norm_num)] at h |
| 130 | simpa only [neg_add_cancel] using h |
| 131 | obtain ⟨G, hterminal⟩ := |
| 132 | N.sequence.exists_interiorConvergence_terminalExtension_of_ancient_limit |
| 133 | H K rfl hnormalized hF P hcontrol hreference |
| 134 | exact ⟨{ |
| 135 | convergence := G |
| 136 | local_curvature_estimate := hlocal |
| 137 | all_time_curvature_control := hcontrol |
| 138 | limit_bounded_curvature := m23LimitBoundedCurvature_of_limit G.limit |
| 139 | terminal_extension := hterminal |
| 140 | }⟩ |
| 141 | |
| 142 | /-! Downstream imports use the same named theory wrapper. -/ |
| 143 | theorem m23NormalizedKappaCompactnessConclusionTheory |
| 144 | (N : NormalizedKappaCompactnessData) |
| 145 | (P : M23NormalizedKappaCompactnessPredecessors) : |
| 146 | Nonempty (RedesignNormalizedKappaCompactnessConclusion N) := |
| 147 | m23NormalizedKappaCompactness N P |
| 148 | |
| 149 | end PoincareMT |