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.CylinderCompactnessFeedEstimates |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Construction.RescaledLimitCurvature |
| 3 | |
| 4 | /-! |
| 5 | # Full coordinate jets and curvature of the actual cylinder sequence |
| 6 | |
| 7 | The actual Ricci equation converts the physical spatial estimates into |
| 8 | full spacetime estimates. The native coefficient curvature expression |
| 9 | retains the same geometric bound before every exhausting radius. |
| 10 | Morgan--Tian, Claim 16.6 and Lemma 16.8, pp. 371-373; |
| 11 | M44 derivation 88. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M44 |
| 23 | |
| 24 | open SpacetimeBounds |
| 25 | |
| 26 | local notation "E" => StandardCapSpace |
| 27 | |
| 28 | noncomputable local instance cylinderFeedJetCoefficientNorm : |
| 29 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 30 | |
| 31 | noncomputable local instance cylinderFeedJetCoefficientSpace : |
| 32 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 33 | |
| 34 | variable {g0 : StandardInitialMetric} {F : ℕ → SurgeryFlowData.{u}} |
| 35 | {a : ℕ → ℝ} {ha : ∀ k, a k ∈ (F k).surgery_times} |
| 36 | [∀ k, Nonempty ((F k).slice (a k)).carrier] |
| 37 | {i : ∀ k, Fin ((F k).event (a k) (ha k)).cap_count} |
| 38 | |
| 39 | /-- The original cylinder coefficient family has all full |
| 40 | spacetime derivative bounds on each fixed interior cylinder. |
| 41 | Source: Claim 16.6 and Lemma 16.8; M44 derivation 88. -/ |
| 42 | theorem eventually_cylinder_spacetime_jet_bound |
| 43 | (P : M44CapPersistencePredecessors.{u}) |
| 44 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 45 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 46 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 47 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 48 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 49 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 50 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 51 | {R : ℝ} (hRpos : 0 < R) (m : ℕ) : |
| 52 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 53 | ∀ p ∈ Ioo (0 : ℝ) T ×ˢ g0.metric.ball 0 R, |
| 54 | ‖iteratedFDeriv ℝ m (D k).coefficients p‖ ≤ B := by |
| 55 | let S (k : ℕ) : Set (ℝ × E) := |
| 56 | (Ioo (0 : ℝ) T ×ˢ g0.metric.ball 0 R) ∩ |
| 57 | (Ioo (0 : ℝ) (D k).lifetime ×ˢ (D k).chart.source) |
| 58 | obtain ⟨alpha, _Z, _L, halpha, _hZ, _hL, hell⟩ := |
| 59 | eventually_cylinder_spatial_estimates P D hR heta hT hK hlife hcurv hRpos 0 |
| 60 | have helliptic : ∀ᶠ k in atTop, ∀ p ∈ S k, ∀ v : E, |
| 61 | alpha * ‖v‖ ^ 2 ≤ (D k).coefficients p v v := by |
| 62 | filter_upwards [hell] with k hk p hp v |
| 63 | exact (hk p.2 hp.1.2).1 p.1 ⟨hp.1.1.1.le, hp.1.1.2.le⟩ v |
| 64 | have hspatial : ∀ r : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 65 | ∀ p ∈ S k, ∀ j ≤ r, |
| 66 | ‖iteratedFDeriv ℝ j (fun x => (D k).coefficients (p.1, x)) p.2‖ ≤ B := by |
| 67 | intro r |
| 68 | obtain ⟨_alpha, Z, _L, _ha, hZ, _hL, hbound⟩ := |
| 69 | eventually_cylinder_spatial_estimates P D hR heta hT hK hlife hcurv hRpos r |
| 70 | refine ⟨Z, zero_le_one.trans hZ, ?_⟩ |
| 71 | filter_upwards [hbound] with k hk p hp j hj |
| 72 | exact ((hk p.2 hp.1.2).2 j hj).1 p.1 ⟨hp.1.1.1.le, hp.1.1.2.le⟩ |
| 73 | obtain ⟨B, hB, hbound⟩ := eventually_coordinate_spacetime_jet_bound atTop 3 |
| 74 | (fun k => (D k).coefficients) (fun k => Ioo 0 (D k).lifetime) |
| 75 | (fun k => (D k).chart.source) S |
| 76 | (fun k => (D k).coefficients_smooth.mono |
| 77 | (prod_mono Ioo_subset_Ico_self Subset.rfl)) |
| 78 | (fun _ => isOpen_Ioo) (fun k => (D k).chart.open_source) |
| 79 | (fun _ => inter_subset_right) |
| 80 | (fun k p hp => (D k).coefficients_invertible p.1 hp.2) |
| 81 | (fun k _ ht _ hx => (D k).coefficients_evolution ht hx) |
| 82 | halpha helliptic hspatial m |
| 83 | refine ⟨B, hB, ?_⟩ |
| 84 | filter_upwards [hbound, hlife, eventually_cylinder_ball_subset_source D hR R] |
| 85 | with k hk hklife hsource |
| 86 | intro p hp |
| 87 | exact hk p ⟨hp, ⟨⟨hp.1.1, hp.1.2.trans hklife⟩, hsource hp.2⟩⟩ |
| 88 | |
| 89 | /-- Each fixed interior spacetime point has a positive eventual |
| 90 | ellipticity constant from the actual geometric estimates. Source: |
| 91 | Lemma 16.8; M44 derivation 88. -/ |
| 92 | theorem eventually_cylinder_coefficients_elliptic |
| 93 | (P : M44CapPersistencePredecessors.{u}) |
| 94 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 95 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 96 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 97 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 98 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 99 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 100 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 101 | {p : ℝ × E} (hp : p ∈ Ioo (0 : ℝ) T ×ˢ univ) : |
| 102 | ∃ alpha : ℝ, 0 < alpha ∧ ∀ᶠ k in atTop, ∀ v : E, |
| 103 | alpha * ‖v‖ ^ 2 ≤ (D k).coefficients p v v := by |
| 104 | obtain ⟨R, hRpos, hpoint⟩ := |
| 105 | exists_cylinder_feed_compact_radius g0 (isCompact_singleton (x := p.2)) |
| 106 | obtain ⟨alpha, _Z, _L, halpha, _hZ, _hL, hbound⟩ := |
| 107 | eventually_cylinder_spatial_estimates P D hR heta hT hK hlife hcurv hRpos 0 |
| 108 | exact ⟨alpha, halpha, hbound.mono fun _ hk => |
| 109 | (hk p.2 (hpoint (mem_singleton p.2))).1 p.1 ⟨hp.1.1.le, hp.1.2.le⟩⟩ |
| 110 | |
| 111 | /-- Each fixed interior point eventually satisfies the actual |
| 112 | coordinate Ricci equation. Source: Lemma 16.8; derivation 88. -/ |
| 113 | theorem eventually_cylinder_coefficients_evolution |
| 114 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 115 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 116 | {T : ℝ} (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 117 | {p : ℝ × E} (hp : p ∈ Ioo (0 : ℝ) T ×ˢ univ) : |
| 118 | ∀ᶠ k in atTop, HasDerivAt (fun t => (D k).coefficients (t, p.2)) |
| 119 | (ricciFlowOperator 3 (metricTwoJet (fun x => (D k).coefficients (p.1, x)) p.2)) p.1 := by |
| 120 | filter_upwards [hlife, |
| 121 | eventually_cylinder_compact_subset_source D hR (isCompact_singleton (x := p.2))] |
| 122 | with k hklife hsource |
| 123 | exact (D k).coefficients_evolution ⟨hp.1.1, hp.1.2.trans hklife⟩ |
| 124 | (hsource (mem_singleton p.2)) |
| 125 | |
| 126 | /-- The actual physical curvature bound is the coefficient |
| 127 | two-jet bound, with the same constant before every radius. |
| 128 | Source: Lemma 16.8; M44 derivation 88. -/ |
| 129 | theorem eventually_cylinder_coefficient_curvature_bound |
| 130 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 131 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 132 | {T K : ℝ} |
| 133 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 134 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) (R : ℝ) : |
| 135 | ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ x ∈ g0.metric.ball 0 R, |
| 136 | standardJetCurvatureNorm |
| 137 | (metricTwoJet (fun y => (D k).coefficients (t, y)) x) ≤ K := by |
| 138 | filter_upwards [hcurv, eventually_cylinder_ball_subset_source D hR R] |
| 139 | with k hk hsource |
| 140 | intro t ht x hx |
| 141 | change standardJetCurvatureNorm (metricTwoJet |
| 142 | (((D k).ordinary.flow.metric t).pullbackCoefficients |
| 143 | (targetChart (D k).chart (D k).target_point)) x) ≤ K |
| 144 | rw [standardJetCurvatureNorm_pullbackCoefficients |
| 145 | ((D k).ordinary.flow.metric t) ((D k).ordinary.flow.connection t) |
| 146 | (D k).chart.open_source (contMDiffOn_targetChart (D k).chart (D k).target_point) |
| 147 | (fun _ hy => (D k).target_derivative_invertible hy) (hsource hx)] |
| 148 | exact hk t ht _ |
| 149 | |
| 150 | end PoincareMT.M44 |