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.Noncollapse.LimitNoncollapseCompactScalar |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseCompactMinimum |
| 3 | |
| 4 | /-! |
| 5 | # The compact-carrier branch of finite-horizon curvature control |
| 6 | |
| 7 | Scalar evolution produces the low points required by F2. This closes the |
| 8 | compact branch of F3 on the same retained carrier and connection. |
| 9 | Source: MT Proposition 17.1; reviewed finite-horizon extension, F2-F3. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 23 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 24 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 25 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 26 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 27 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 28 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 29 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 30 | {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 31 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 32 | (blowupBackwardInterval H)) |
| 33 | |
| 34 | private local instance : TopologicalSpace G.limit.carrier.carrier := |
| 35 | G.limit.carrier.topologicalSpace |
| 36 | private local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := |
| 37 | G.limit.carrier.chartedSpace |
| 38 | private local instance : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := G.limit.carrier.isManifold |
| 39 | |
| 40 | /-- In the compact branch the actual scalar and full tensor norm are |
| 41 | bounded throughout the finite horizon; low points are proved internally. -/ |
| 42 | theorem limitFinite_compact_carrier_curvature_bound |
| 43 | (P : M47Predecessors.{u}) (schedules : RepairedControlledSchedulesData.{u}) |
| 44 | (hH : 0 < H) (hfinite : H ≠ ⊤) {epsilon C : ℝ} |
| 45 | (hepsilon : 0 < epsilon) (hepsilon₀ : epsilon ≤ schedules.calibration.epsilon₁₀) |
| 46 | (hC : 0 < C) |
| 47 | (hParameters : ∀ k, (F k).parameters.epsilon = epsilon ∧ (F k).parameters.C = C) |
| 48 | (hPinched : ∀ k, ∀ s ∈ (W k).interval, SurgeryPinchedAt ((F k).connection s) s) |
| 49 | (rNext : ℕ → ℝ) |
| 50 | (hThreshold : ∀ k, (rNext k)⁻¹ ^ 2 ≤ |
| 51 | (regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 52 | basePoint hPositive hDiverges).scale k) |
| 53 | (hEarlier : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (rNext k)) |
| 54 | {B0 : ℝ} (hterminal : ∀ x : G.limit.carrier.carrier, |
| 55 | (G.limit.flow.connection 0).curvatureTensorNorm x ≤ B0) |
| 56 | (hcompact : IsCompact (univ : Set G.limit.carrier.carrier)) : |
| 57 | ∃ K : ℝ, 1 ≤ K ∧ ∀ t ∈ blowupBackwardInterval H, ∀ x : G.limit.carrier.carrier, |
| 58 | (G.limit.flow.connection t).scalarCurvature x ≤ K ∧ |
| 59 | (G.limit.flow.connection t).curvatureTensorNorm x ≤ 9 * K := by |
| 60 | let : ConnectedSpace G.limit.carrier.carrier := G.limit.connectedSpace |
| 61 | let : T2Space G.limit.carrier.carrier := G.limit.carrier.t2Space |
| 62 | have hlow : ∀ t ∈ blowupBackwardInterval H, ∃ y ∈ (univ : Set G.limit.carrier.carrier), |
| 63 | (G.limit.flow.connection t).scalarCurvature y ≤ 1 := by |
| 64 | intro t ht |
| 65 | obtain ⟨y, hy⟩ := limitNoncollapse_compact_exists_low_point P.m04 G.limit hcompact t ht |
| 66 | exact ⟨y, mem_univ y, hy⟩ |
| 67 | obtain ⟨K, hK, hbound⟩ := limitFinite_compact_scalar_bound F W history baseTime hbaseTime |
| 68 | basePoint hPositive hDiverges G P schedules hH hfinite hepsilon hepsilon₀ hC hParameters |
| 69 | hPinched rNext hThreshold hEarlier hterminal hcompact isPreconnected_univ hlow |
| 70 | refine ⟨K, hK, ?_⟩ |
| 71 | intro t ht x |
| 72 | have hx := hbound t ht x (mem_univ x) |
| 73 | refine ⟨hx, ?_⟩ |
| 74 | have hnorm := (G.limit.flow.connection t).curvatureTensorNorm_le_scalarCurvature |
| 75 | (P.m04.tensor_calculus 3 G.limit.carrier.carrier |
| 76 | (G.limit.flow.metric t) (G.limit.flow.connection t)) x |
| 77 | (G.limit.nonnegative_curvature_operator t ht x) |
| 78 | norm_num only [Nat.cast_ofNat, OfNat.ofNat, show (3 : ℝ) ^ 2 = 9 by norm_num] at hnorm |
| 79 | exact hnorm.trans (mul_le_mul_of_nonneg_left hx (by norm_num)) |
| 80 | |
| 81 | end PoincareMT.M47 |