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.CanonicalInduction.Limit.Finite.LimitFiniteLowPoint |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseCompactCarrier |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.BoundaryCoverage |
| 4 | |
| 5 | /-! |
| 6 | # Uniform finite-horizon curvature on each actual compact set |
| 7 | |
| 8 | The fixed low point lies in a compact connected terminal ball containing |
| 9 | the tested compact set. This discharges the existing compact scalar |
| 10 | producer on the same retained limit. MT Proposition 17.1; |
| 11 | limit-finite-compact-bounds.md, V1-V2. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter Metric |
| 18 | open scoped Manifold ContDiff Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M47 |
| 23 | |
| 24 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 25 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 26 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 27 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 28 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 29 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 30 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 31 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 32 | |
| 33 | local notation "V" => regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 34 | basePoint hPositive hDiverges |
| 35 | |
| 36 | variable {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 37 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 38 | (blowupBackwardInterval H)) |
| 39 | |
| 40 | private local instance finiteCompactTopology : TopologicalSpace G.limit.carrier.carrier := |
| 41 | G.limit.carrier.topologicalSpace |
| 42 | private local instance finiteCompactCharts : ChartedSpace |
| 43 | (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 44 | private local instance finiteCompactManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 45 | G.limit.carrier.isManifold |
| 46 | |
| 47 | /-- Every fixed compact set has one scalar and full-curvature ceiling |
| 48 | for the whole finite backward interval of the original retained G. -/ |
| 49 | theorem limitFinite_compact_curvature_bound |
| 50 | (P : M47Predecessors.{u}) (schedules : RepairedControlledSchedulesData.{u}) |
| 51 | (hH : 0 < H) (hfinite : H ≠ ⊤) {epsilon C : ℝ} |
| 52 | (hepsilon : 0 < epsilon) (hsmall : 2 * epsilon < 1 / 2) |
| 53 | (hroundSmall : epsilon ≤ 1 / 200) |
| 54 | (hepsilon₀ : epsilon ≤ schedules.calibration.epsilon₁₀) (hC : 0 < C) |
| 55 | (hParameters : ∀ k, (F k).parameters.epsilon = epsilon ∧ (F k).parameters.C = C) |
| 56 | (hPinched : ∀ k, ∀ s ∈ (W k).interval, SurgeryPinchedAt ((F k).connection s) s) |
| 57 | (rNext : ℕ → ℝ) (hThreshold : ∀ k, (rNext k)⁻¹ ^ 2 ≤ (V).scale k) |
| 58 | (hEarlier : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (rNext k)) |
| 59 | {B0 : ℝ} (hterminal : ∀ x : G.limit.carrier.carrier, |
| 60 | (G.limit.flow.connection 0).curvatureTensorNorm x ≤ B0) |
| 61 | {X : Set G.limit.carrier.carrier} (hX : IsCompact X) : |
| 62 | ∃ K : ℝ, 1 ≤ K ∧ ∀ t ∈ blowupBackwardInterval H, ∀ x ∈ X, |
| 63 | (G.limit.flow.connection t).scalarCurvature x ≤ K ∧ |
| 64 | (G.limit.flow.connection t).curvatureTensorNorm x ≤ 9 * K := by |
| 65 | classical |
| 66 | let : T2Space G.limit.carrier.carrier := G.limit.carrier.t2Space |
| 67 | let : T3Space G.limit.carrier.carrier := G.limit.carrier.t3Space |
| 68 | let : ConnectedSpace G.limit.carrier.carrier := G.limit.connectedSpace |
| 69 | by_cases hcompact : IsCompact (univ : Set G.limit.carrier.carrier) |
| 70 | · obtain ⟨K, hK, hbound⟩ := limitFinite_compact_carrier_curvature_bound |
| 71 | F W history baseTime hbaseTime basePoint hPositive hDiverges G P schedules |
| 72 | hH hfinite hepsilon hepsilon₀ hC hParameters hPinched rNext hThreshold |
| 73 | hEarlier hterminal hcompact |
| 74 | exact ⟨K, hK, fun t ht x _ => hbound t ht x⟩ |
| 75 | obtain ⟨y, c, _, hlow⟩ := limitFinite_exists_fixed_low_point F W history baseTime |
| 76 | hbaseTime basePoint hPositive hDiverges G P hH hfinite hepsilon hsmall hroundSmall hC |
| 77 | hParameters rNext hThreshold hEarlier hterminal hcompact |
| 78 | let g0 := G.limit.flow.metric 0 |
| 79 | let := g0.toMetricSpace |
| 80 | let := g0.properSpace_toMetricSpace (G.limit.complete 0 G.limit.zero_mem) |
| 81 | obtain ⟨R, hR, hXR⟩ := hX.isBounded.subset_ball_lt 0 y |
| 82 | let Y := closure (g0.ball y R) |
| 83 | have hY : IsCompact Y := by |
| 84 | dsimp only [Y] |
| 85 | rw [← g0.toMetricSpace_ball] |
| 86 | exact isBounded_ball.isCompact_closure |
| 87 | have hYconnected : IsPreconnected Y := (g0.isPreconnected_ball y R).closure |
| 88 | have hyY : y ∈ Y := by |
| 89 | apply subset_closure |
| 90 | rw [← g0.toMetricSpace_ball] |
| 91 | exact mem_ball_self hR |
| 92 | have hXY : X ⊆ Y := by |
| 93 | intro x hx |
| 94 | apply subset_closure |
| 95 | rw [← g0.toMetricSpace_ball] |
| 96 | exact hXR hx |
| 97 | obtain ⟨K, hK, hbound⟩ := limitFinite_compact_scalar_bound F W history baseTime hbaseTime |
| 98 | basePoint hPositive hDiverges G P schedules hH hfinite hepsilon hepsilon₀ hC hParameters |
| 99 | hPinched rNext hThreshold hEarlier hterminal hY hYconnected |
| 100 | (fun t ht => ⟨y, hyY, hlow t ht⟩) |
| 101 | refine ⟨K, hK, ?_⟩ |
| 102 | intro t ht x hx |
| 103 | have hscalar := hbound t ht x (hXY hx) |
| 104 | refine ⟨hscalar, ?_⟩ |
| 105 | have hnorm := (G.limit.flow.connection t).curvatureTensorNorm_le_scalarCurvature |
| 106 | (P.m04.tensor_calculus 3 G.limit.carrier.carrier |
| 107 | (G.limit.flow.metric t) (G.limit.flow.connection t)) x |
| 108 | (G.limit.nonnegative_curvature_operator t ht x) |
| 109 | norm_num only [Nat.cast_ofNat, OfNat.ofNat, show (3 : ℝ) ^ 2 = 9 by norm_num] at hnorm |
| 110 | exact hnorm.trans (mul_le_mul_of_nonneg_left hscalar (by norm_num)) |
| 111 | |
| 112 | end PoincareMT.M47 |