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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Geometry.SourceSliceNormalization |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderUniformScalar |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.NeckGeometry.NeckPrecompactBalls |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.OpenGeometry.OpenMetricBalls |
| 7 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.Regularity |
| 8 | |
| 9 | /-! |
| 10 | # A uniform actual first-neck ball |
| 11 | |
| 12 | Morgan--Tian Claim 10.5, printed pp. 251-252. The exact low scalar and |
| 13 | the original neck normalization fix one radius before the source index. |
| 14 | The original precompact ball survives the whole-slice homothety and |
| 15 | restriction to any open region containing that neck. This is the initial |
| 16 | regularity input of the actual source-tube construction, not a compactness |
| 17 | or curvature hypothesis on a supplied limit. See M28 derivation 35. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set |
| 23 | open scoped Manifold ContDiff Bundle Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 28 | |
| 29 | variable {epsilon C A : ℝ} |
| 30 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 31 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 32 | |
| 33 | /-- The original neck centered at the actual low endpoint has one fixed |
| 34 | scale after the global source normalization (Claim 10.5). -/ |
| 35 | theorem normalizedSlice_low_neck_scale (H : CounterexampleNeckFamily E) (k : ℕ) |
| 36 | (N : EpsilonNeck ((E (k + H.shift)).flow.metric (E (k + H.shift)).time)) |
| 37 | (hcenter : N.center = (H.segment k).path (H.segment k).lower) : |
| 38 | Real.sqrt ((E (k + H.shift)).flow.scalar |
| 39 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩) * N.scale = |
| 40 | (4 * max C 2)⁻¹ := by |
| 41 | let Q := (E (k + H.shift)).flow.scalar |
| 42 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ |
| 43 | have hQ : 0 < Q := H.base_scalar_pos k |
| 44 | have hB : 0 < max C 2 := lt_of_lt_of_le (by norm_num) (le_max_right C 2) |
| 45 | have hscale := tube.neck_normalized_scalar_center N |
| 46 | ((E (k + H.shift)).flow.connection (E (k + H.shift)).time) |
| 47 | change N.scale ^ 2 * (E (k + H.shift)).flow.scalar |
| 48 | ⟨(E (k + H.shift)).time, N.center⟩ = 1 at hscale |
| 49 | rw [hcenter, (H.segment k).lower_scalar] at hscale |
| 50 | change N.scale ^ 2 * (16 * (max C 2) ^ 2 * Q) = 1 at hscale |
| 51 | have hsquare : (Real.sqrt Q * N.scale * (4 * max C 2)) ^ 2 = 1 := by |
| 52 | calc |
| 53 | _ = N.scale ^ 2 * (16 * (max C 2) ^ 2 * Q) := by |
| 54 | simp only [mul_pow, Real.sq_sqrt hQ.le] |
| 55 | ring |
| 56 | _ = 1 := hscale |
| 57 | have hproduct : Real.sqrt Q * N.scale * (4 * max C 2) = 1 := by |
| 58 | have hpositive : 0 < Real.sqrt Q * N.scale * (4 * max C 2) := |
| 59 | mul_pos (mul_pos (Real.sqrt_pos.mpr hQ) N.scale_pos) (by positivity) |
| 60 | nlinarith |
| 61 | change Real.sqrt Q * N.scale = (4 * max C 2)⁻¹ |
| 62 | rw [inv_eq_one_div] |
| 63 | exact (eq_div_iff (by positivity : (4 * max C 2 : ℝ) ≠ 0)).mpr hproduct |
| 64 | |
| 65 | /-- The literal whole-slice normalized ball is the original neck ball; |
| 66 | no ambient metric-space instance or connectedness is used (Claim 10.5). -/ |
| 67 | theorem normalizedSlice_low_neck_ball (H : CounterexampleNeckFamily E) (k : ℕ) |
| 68 | (N : EpsilonNeck ((E (k + H.shift)).flow.metric (E (k + H.shift)).time)) |
| 69 | (hepsilon : N.epsilon = epsilon) |
| 70 | (hcenter : N.center = (H.segment k).path (H.segment k).lower) : |
| 71 | (H.normalizedSliceMetric k).ball N.center ((4 * max C 2)⁻¹ * epsilon⁻¹ / 8) = |
| 72 | ((E (k + H.shift)).flow.metric (E (k + H.shift)).time).ball N.center |
| 73 | (N.scale * N.epsilon⁻¹ / 8) := by |
| 74 | let Q := (E (k + H.shift)).flow.scalar |
| 75 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ |
| 76 | have hQ : 0 < Q := H.base_scalar_pos k |
| 77 | have hradius : Real.sqrt Q * (N.scale * N.epsilon⁻¹ / 8) = |
| 78 | (4 * max C 2)⁻¹ * epsilon⁻¹ / 8 := by |
| 79 | calc |
| 80 | _ = (Real.sqrt Q * N.scale) * epsilon⁻¹ / 8 := by rw [hepsilon]; ring |
| 81 | _ = _ := by rw [H.normalizedSlice_low_neck_scale k N hcenter] |
| 82 | have hball := M13.homothety_ball_image |
| 83 | ((E (k + H.shift)).flow.metric (E (k + H.shift)).time) |
| 84 | (H.normalizedSliceMetric k) (Diffeomorph.refl (𝓡 3) _ ∞) Q hQ |
| 85 | (M13.identity_metricHomothety _ Q hQ) N.center (N.scale * N.epsilon⁻¹ / 8) |
| 86 | rw [hradius] at hball |
| 87 | simpa using hball.symm |
| 88 | |
| 89 | /-- The same first-neck ball proves literal Definition 5.1 regularity in |
| 90 | any actual open source region containing that neck (Claim 10.5). -/ |
| 91 | theorem normalizedSlice_low_neck_regular (H : CounterexampleNeckFamily E) (k : ℕ) |
| 92 | (N : EpsilonNeck ((E (k + H.shift)).flow.metric (E (k + H.shift)).time)) |
| 93 | (hepsilon : N.epsilon = epsilon) |
| 94 | (hcenter : N.center = (H.segment k).path (H.segment k).lower) |
| 95 | (V : TopologicalSpace.Opens |
| 96 | ((E (k + H.shift)).flow.slice (E (k + H.shift)).time).carrier) |
| 97 | (hNV : N.carrier ⊆ (V : Set _)) : |
| 98 | (⟨N.center, hNV (N.central_sphere_subset N.center_on_central_sphere)⟩ : V) ∈ |
| 99 | regularPoints (intrinsicOpenMetric (H.normalizedSliceMetric k) V) |
| 100 | ((4 * max C 2)⁻¹ * epsilon⁻¹ / 8) := by |
| 101 | let p : V := ⟨N.center, hNV (N.central_sphere_subset N.center_on_central_sphere)⟩ |
| 102 | let r₀ := (4 * max C 2)⁻¹ * epsilon⁻¹ / 8 |
| 103 | have hcompact := N.precompact_ball_of_central_sphere N.center_on_central_sphere |
| 104 | rw [← H.normalizedSlice_low_neck_ball k N hepsilon hcenter] at hcompact |
| 105 | have hclosure : closure ((H.normalizedSliceMetric k).ball (p : _) r₀) ⊆ |
| 106 | (V : Set _) := hcompact.2.trans hNV |
| 107 | have hball : (H.normalizedSliceMetric k).ball (p : _) r₀ ⊆ (V : Set _) := |
| 108 | subset_closure.trans hclosure |
| 109 | have hcompactV : IsCompact |
| 110 | (closure ((intrinsicOpenMetric (H.normalizedSliceMetric k) V).ball p r₀)) := by |
| 111 | rw [intrinsicOpenMetric_closure_ball_eq_preimage _ V p hball] |
| 112 | apply Topology.IsEmbedding.subtypeVal.isInducing.isCompact_preimage' hcompact.1 |
| 113 | intro x hx |
| 114 | exact ⟨⟨x, hclosure hx⟩, rfl⟩ |
| 115 | intro r hr |
| 116 | apply hcompactV.of_isClosed_subset isClosed_closure |
| 117 | apply closure_mono |
| 118 | intro x hx |
| 119 | exact hx.trans_le (ENNReal.ofReal_le_ofReal hr.le) |
| 120 | |
| 121 | end CounterexampleNeckFamily |
| 122 | |
| 123 | /-- The first original neck produces one fixed positive compact-ball |
| 124 | radius and normalized scalar bound before the index, as required in |
| 125 | Claim 10.5. No ball containment or scalar-bound premise is supplied. -/ |
| 126 | theorem exists_source_initial_ball_accuracy : |
| 127 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 128 | ∀ {epsilon C A : ℝ} |
| 129 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 130 | ((n : ℝ) + 1) ((n : ℝ) + 1)} (H : CounterexampleNeckFamily E), |
| 131 | epsilon ≤ epsilon₀ → |
| 132 | let r₀ := (4 * max C 2)⁻¹ * epsilon⁻¹ / 8 |
| 133 | 0 < r₀ ∧ ∀ k : ℕ, |
| 134 | ∃ N : EpsilonNeck ((E (k + H.shift)).flow.metric (E (k + H.shift)).time), |
| 135 | N ∈ (H.segment k).cover.necks ∧ |
| 136 | N.center = (H.segment k).path (H.segment k).lower ∧ |
| 137 | IsCompact (closure ((H.normalizedSliceMetric k).ball N.center r₀)) ∧ |
| 138 | closure ((H.normalizedSliceMetric k).ball N.center r₀) ⊆ N.carrier ∧ |
| 139 | ∀ x ∈ closure ((H.normalizedSliceMetric k).ball N.center r₀), |
| 140 | (H.normalizedSliceConnection k).scalarCurvature x ≤ 32 * (max C 2) ^ 2 := by |
| 141 | obtain ⟨epsilon₀, hpos, hsmall, hratio⟩ := |
| 142 | tube.exists_cylinder_scalar_ratio_accuracy.{u} |
| 143 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 144 | intro epsilon C A E H hbound |
| 145 | dsimp only |
| 146 | have hepsilon : 0 < epsilon := by |
| 147 | rw [← (H.segment 0).cover_epsilon] |
| 148 | exact (H.segment 0).cover.epsilon_pos |
| 149 | have hB : 0 < max C 2 := lt_of_lt_of_le (by norm_num) (le_max_right C 2) |
| 150 | refine ⟨by positivity, ?_⟩ |
| 151 | intro k |
| 152 | have hp : (H.segment k).path (H.segment k).lower ∈ (H.segment k).cover.X := by |
| 153 | rw [(H.segment k).cover_set] |
| 154 | exact mem_image_of_mem _ (left_mem_Icc.mpr (H.segment k).lower_lt_upper.le) |
| 155 | obtain ⟨N, hN, hcenter⟩ := (H.segment k).cover.pointwise_center_cover _ hp |
| 156 | have heps : N.epsilon = epsilon := |
| 157 | ((H.segment k).cover.neck_epsilon N hN).trans (H.segment k).cover_epsilon |
| 158 | have hcompact := N.precompact_ball_of_central_sphere N.center_on_central_sphere |
| 159 | rw [← H.normalizedSlice_low_neck_ball k N heps hcenter] at hcompact |
| 160 | refine ⟨N, hN, hcenter, hcompact.1, hcompact.2, ?_⟩ |
| 161 | intro x hx |
| 162 | have h := hratio ((E (k + H.shift)).flow.slice (E (k + H.shift)).time).carrier |
| 163 | ((E (k + H.shift)).flow.metric (E (k + H.shift)).time) |
| 164 | ((E (k + H.shift)).flow.connection (E (k + H.shift)).time) N |
| 165 | (heps.trans_le hbound) x (hcompact.2 hx) N.center |
| 166 | (N.central_sphere_subset N.center_on_central_sphere) |
| 167 | change (E (k + H.shift)).flow.scalar ⟨(E (k + H.shift)).time, x⟩ ≤ |
| 168 | 2 * (E (k + H.shift)).flow.scalar ⟨(E (k + H.shift)).time, N.center⟩ at h |
| 169 | rw [hcenter, (H.segment k).lower_scalar] at h |
| 170 | rw [H.normalizedSlice_scalar_eq] |
| 171 | apply (div_le_iff₀ (H.base_scalar_pos k)).mpr |
| 172 | nlinarith only [h] |
| 173 | |
| 174 | end PoincareMT.M28 |