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.Limit.Compactness.CylinderCompactnessFeedData |
| 2 | |
| 3 | /-! |
| 4 | # The actual cylinder sequence has uniform coordinate estimates |
| 5 | |
| 6 | Growing birth-chart radii and comparison tolerances tending to zero |
| 7 | activate the checked physical estimates on every fixed buffer. The |
| 8 | time window is strictly inside the actual lifetimes. Birth jets are |
| 9 | the original M36 comparison jets. Morgan--Tian, Claim 16.6, |
| 10 | Corollary 16.7 and Lemma 16.8, pp. 371-373; M44 derivation 88. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | open SpacetimeBounds |
| 24 | |
| 25 | local notation "E" => StandardCapSpace |
| 26 | |
| 27 | noncomputable local instance cylinderFeedEstimateCoefficientNorm : |
| 28 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 29 | |
| 30 | noncomputable local instance cylinderFeedEstimateCoefficientSpace : |
| 31 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | /-- Every compact standard-coordinate set lies in a fixed positive |
| 34 | standard birth ball. Source: the exhaustion in Lemma 16.8; |
| 35 | M44 derivation 88. -/ |
| 36 | theorem exists_cylinder_feed_compact_radius (g0 : StandardInitialMetric) |
| 37 | {C : Set E} (hC : IsCompact C) : |
| 38 | ∃ R : ℝ, 0 < R ∧ C ⊆ g0.metric.ball 0 R := by |
| 39 | obtain ⟨delta, hdelta, hdomain⟩ := exists_initial_comparison_domain_threshold g0 hC 0 |
| 40 | exact ⟨delta⁻¹, inv_pos.mpr hdelta, (hdomain delta hdelta le_rfl).2⟩ |
| 41 | |
| 42 | variable {g0 : StandardInitialMetric} {F : ℕ → SurgeryFlowData.{u}} |
| 43 | {a : ℕ → ℝ} {ha : ∀ k, a k ∈ (F k).surgery_times} |
| 44 | [∀ k, Nonempty ((F k).slice (a k)).carrier] |
| 45 | {i : ∀ k, Fin ((F k).event (a k) (ha k)).cap_count} |
| 46 | |
| 47 | /-- Every fixed birth ball is contained in every sufficiently late |
| 48 | actual chart. Source: Lemma 16.8; M44 derivation 88. -/ |
| 49 | theorem eventually_cylinder_ball_subset_source |
| 50 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 51 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) (R : ℝ) : |
| 52 | ∀ᶠ k in atTop, g0.metric.ball 0 R ⊆ (D k).chart.source := by |
| 53 | filter_upwards [hR.eventually (eventually_ge_atTop R)] with k hk |
| 54 | rw [(D k).source_eq] |
| 55 | exact fun _ hx => hx.trans_le (ENNReal.ofReal_le_ofReal hk) |
| 56 | |
| 57 | /-- The same eventual containment holds for every compact |
| 58 | coordinate set. Source: Lemma 16.8; M44 derivation 88. -/ |
| 59 | theorem eventually_cylinder_compact_subset_source |
| 60 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 61 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 62 | {C : Set E} (hC : IsCompact C) : |
| 63 | ∀ᶠ k in atTop, C ⊆ (D k).chart.source := by |
| 64 | obtain ⟨R, _hR, hCR⟩ := exists_cylinder_feed_compact_radius g0 hC |
| 65 | exact (eventually_cylinder_ball_subset_source D hR R).mono fun _ h => hCR.trans h |
| 66 | |
| 67 | /-- Every fixed interior cylinder eventually has the original |
| 68 | coefficient family's actual joint smoothness. Source: Lemma 16.8; |
| 69 | M44 derivation 88. -/ |
| 70 | theorem eventually_cylinder_coefficients_smooth |
| 71 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 72 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 73 | {T : ℝ} (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) (R : ℝ) : |
| 74 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (D k).coefficients |
| 75 | (Ioo 0 T ×ˢ g0.metric.ball 0 R) := by |
| 76 | filter_upwards [hlife, eventually_cylinder_ball_subset_source D hR R] with k hk hsource |
| 77 | exact (D k).coefficients_smooth.mono |
| 78 | (prod_mono (fun _ ht => ⟨ht.1.le, ht.2.trans hk⟩) hsource) |
| 79 | |
| 80 | /-- Actual M36 birth data and the common geometric curvature bound |
| 81 | give uniform ellipticity, spatial jets and time moduli on each fixed |
| 82 | closed cylinder. Constants precede the sample index. Source: |
| 83 | Claim 16.6 and Lemma 16.8, pp. 371-373; derivation 88. -/ |
| 84 | theorem eventually_cylinder_spatial_estimates |
| 85 | (P : M44CapPersistencePredecessors.{u}) |
| 86 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 87 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 88 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 89 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 90 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 91 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 92 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 93 | {R : ℝ} (hRpos : 0 < R) (m : ℕ) : |
| 94 | ∃ alpha Z L : ℝ, 0 < alpha ∧ 1 ≤ Z ∧ 0 ≤ L ∧ ∀ᶠ k in atTop, |
| 95 | ∀ x ∈ g0.metric.ball 0 R, |
| 96 | (∀ t ∈ Icc (0 : ℝ) T, ∀ v : E, |
| 97 | alpha * ‖v‖ ^ 2 ≤ (D k).coefficients (t, x) v v) ∧ |
| 98 | ∀ j ≤ m, |
| 99 | (∀ t ∈ Icc (0 : ℝ) T, |
| 100 | ‖iteratedFDeriv ℝ j (fun y => (D k).coefficients (t, y)) x‖ ≤ Z) ∧ |
| 101 | (∀ s ∈ Icc (0 : ℝ) T, ∀ t ∈ Icc (0 : ℝ) T, |
| 102 | ‖iteratedFDeriv ℝ j (fun y => (D k).coefficients (t, y)) x - |
| 103 | iteratedFDeriv ℝ j (fun y => (D k).coefficients (s, y)) x‖ ≤ L * |t - s|) := by |
| 104 | obtain ⟨delta, alpha, Z, L, hdelta, halpha, hZ, hL, hestimate⟩ := |
| 105 | exists_cylinder_coordinate_estimates P g0 m (R0 := R + 2) (by linarith) hT hK |
| 106 | refine ⟨alpha, Z, L, halpha, hZ, hL, ?_⟩ |
| 107 | filter_upwards [hR.eventually (eventually_ge_atTop (R + 2)), |
| 108 | heta.eventually (gt_mem_nhds hdelta), hlife, hcurv] with k hkR hketa hklife hkcurv |
| 109 | intro x hx |
| 110 | have hx' : x ∈ (F k).standard_initial.metric.ball 0 ((R + 2) - 2) := by |
| 111 | simpa only [(D k).standard_initial_eq, add_sub_cancel_right] using hx |
| 112 | exact hestimate (F k) (D k).standard_initial_eq (a k) (ha k) (i k) |
| 113 | hkR (D k).radius_lt (D k).lifetime_pos (D k).comparison hketa.le |
| 114 | (D k).image_ball (D k).chart (D k).chart_source (D k).chart_eq |
| 115 | (D k).cylinder (D k).chart_target_subset (D k).birth_identity |
| 116 | (D k).ordinary (D k).target_point T hT hklife le_rfl hkcurv x hx' |
| 117 | |
| 118 | /-- The actual birth coefficients converge with every spatial jet |
| 119 | uniformly on each compact coordinate set. Source: Corollary 16.7, |
| 120 | p. 372; M44 derivation 88. -/ |
| 121 | theorem tendstoUniformlyOn_cylinder_initial_spatial_jet |
| 122 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 123 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 124 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 125 | (m : ℕ) {C : Set E} (hC : IsCompact C) : |
| 126 | TendstoUniformlyOn |
| 127 | (fun k => iteratedFDeriv ℝ m (fun y => (D k).coefficients (0, y))) |
| 128 | (iteratedFDeriv ℝ m g0.metric.euclideanCoefficients) atTop C := by |
| 129 | have hconv := tendstoUniformlyOn_initial_coefficient_jets g0 |
| 130 | (fun k => (((F k).event (a k) (ha k)).local_result (i k)).output) |
| 131 | (fun k => (((F k).event (a k) (ha k)).local_result (i k)).metric) |
| 132 | (fun k => (((F k).event (a k) (ha k)).local_result (i k)).tip) |
| 133 | (fun k => (((F k).event (a k) (ha k)).necks (i k)).neck.scale) |
| 134 | (fun k => (D k).eta) (fun k => (D k).fixedComparison) heta m hC |
| 135 | apply hconv.congr |
| 136 | filter_upwards [eventually_cylinder_compact_subset_source D hR hC] with k hk |
| 137 | intro x hx |
| 138 | dsimp only [CylinderCompactnessSample.fixedComparison] |
| 139 | rw [normalizedCoefficients_cast_initial (D k).standard_initial_eq (D k).comparison] |
| 140 | exact ((D k).initial_spatial_jet (hk hx) m).symm |
| 141 | |
| 142 | /-- The actual cylinder estimates give a compact-uniform birth |
| 143 | time modulus with the sequence tail selected before time and point. |
| 144 | Source: Corollary 16.9, p. 373; M44 derivation 88. -/ |
| 145 | theorem eventually_cylinder_birth_jet_modulus |
| 146 | (P : M44CapPersistencePredecessors.{u}) |
| 147 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 148 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 149 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 150 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 151 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 152 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 153 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 154 | (m : ℕ) {C : Set E} (hC : IsCompact C) : |
| 155 | ∃ L : ℝ, 0 ≤ L ∧ ∀ᶠ k in atTop, ∀ t ∈ Ioo (0 : ℝ) T, ∀ x ∈ C, |
| 156 | ‖iteratedFDeriv ℝ m (fun y => (D k).coefficients (t, y)) x - |
| 157 | iteratedFDeriv ℝ m (fun y => (D k).coefficients (0, y)) x‖ ≤ L * t := by |
| 158 | obtain ⟨R, hRpos, hCR⟩ := exists_cylinder_feed_compact_radius g0 hC |
| 159 | obtain ⟨alpha, Z, L, _halpha, _hZ, hL, hbound⟩ := |
| 160 | eventually_cylinder_spatial_estimates P D hR heta hT hK hlife hcurv hRpos m |
| 161 | refine ⟨L, hL, ?_⟩ |
| 162 | filter_upwards [hbound] with k hk |
| 163 | intro t ht x hx |
| 164 | have h := ((hk x (hCR hx)).2 m le_rfl).2 |
| 165 | 0 ⟨le_rfl, hT.le⟩ t ⟨ht.1.le, ht.2.le⟩ |
| 166 | simpa only [sub_zero, abs_of_pos ht.1] using h |
| 167 | |
| 168 | end PoincareMT.M44 |