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.CriticalBall.SourceCriticalBallNeckScales |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.ChartBallCapture |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Spacetime.StrongNecks.Ends.StrongNeckTerminalBalls |
| 6 | |
| 7 | /-! |
| 8 | # Fixed spatial charts inside the actual fresh strong necks |
| 9 | |
| 10 | The positive scale limit and convergent metric coefficients place one |
| 11 | fixed closed coordinate neighborhood inside every sufficiently late original |
| 12 | neck's quarter-estimate ball. Morgan--Tian Proposition 5.14 and Claims |
| 13 | 10.10-10.11, pp. 90-91 and 254-255; M28 derivation 72. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter Metric |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 26 | |
| 27 | variable {epsilon C A : ℝ} |
| 28 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 29 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 30 | |
| 31 | /-- Two open restrictions can only increase the original normalized |
| 32 | distance. Global homothety then puts each critical ball inside the original |
| 33 | physical ball of the corresponding radius (derivation 72). -/ |
| 34 | theorem tubeCritical_mem_original_ball (H : CounterexampleNeckFamily E) |
| 35 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (k : ℕ) |
| 36 | (x y : H.tubeCriticalRegion T A1 k) (r : ℝ) |
| 37 | (hy : y ∈ (H.tubeCriticalMetric T A1 k).ball x |
| 38 | (Real.sqrt ((E (k + H.shift)).flow.scalar |
| 39 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩) * r)) : |
| 40 | y.val.val ∈ ((E (k + H.shift)).flow.metric (E (k + H.shift)).time).ball |
| 41 | x.val.val r := by |
| 42 | let Q := (E (k + H.shift)).flow.scalar |
| 43 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ |
| 44 | have h₁ : (H.normalizedSliceMetric k).edist x.val.val y.val.val ≤ |
| 45 | (H.tubeMetric T k).edist x.val y.val := by |
| 46 | rw [tubeMetric, intrinsicOpenMetric_edist] |
| 47 | exact RiemannianMetric.edist_le_intrinsicEDist _ _ _ _ |
| 48 | have h₂ : (H.tubeMetric T k).edist x.val y.val ≤ |
| 49 | (H.tubeCriticalMetric T A1 k).edist x y := by |
| 50 | rw [tubeCriticalMetric, intrinsicOpenMetric_edist] |
| 51 | exact RiemannianMetric.edist_le_intrinsicEDist _ _ _ _ |
| 52 | have hnormal : y.val.val ∈ (H.normalizedSliceMetric k).ball x.val.val |
| 53 | (Real.sqrt Q * r) := (h₁.trans h₂).trans_lt hy |
| 54 | have hball := M13.homothety_ball_image |
| 55 | ((E (k + H.shift)).flow.metric (E (k + H.shift)).time) |
| 56 | (H.normalizedSliceMetric k) (Diffeomorph.refl (𝓡 3) _ ∞) Q |
| 57 | (H.base_scalar_pos k) (M13.identity_metricHomothety _ Q (H.base_scalar_pos k)) |
| 58 | x.val.val r |
| 59 | have hball' : |
| 60 | ((E (k + H.shift)).flow.metric (E (k + H.shift)).time).ball x.val.val r = |
| 61 | (H.normalizedSliceMetric k).ball x.val.val (Real.sqrt Q * r) := by |
| 62 | simpa using hball |
| 63 | rwa [← hball'] at hnormal |
| 64 | |
| 65 | set_option maxHeartbeats 1600000 in |
| 66 | -- The selected source carriers retain both index maps and the raw counterexample shift. |
| 67 | /-- The actual fresh necks and one fixed coordinate neighborhood are |
| 68 | produced together. Every sufficiently late source image lies in the |
| 69 | physical ball corresponding to the normalized radius epsilon inverse over |
| 70 | sixteen, with the same spatial embeddings (derivation 72). -/ |
| 71 | theorem exists_source_criticalBall_neck_chart_capture_accuracy |
| 72 | (P : RicciFlowCurvatureTheory.{u}) : |
| 73 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 74 | ∀ {epsilon C A : ℝ} |
| 75 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 76 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 77 | (H : CounterexampleNeckFamily E) |
| 78 | (T : ∀ k, SourceTubeData (H.segment k)), |
| 79 | epsilon ≤ epsilon₀ → ∀ (A1 : ℝ) (hA1 : 0 < A1) (phi : ℕ → ℕ) |
| 80 | (G : RegularPointedMetricConvergence |
| 81 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 82 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))), |
| 83 | letI := G.limitCarrier.topologicalSpace |
| 84 | letI := G.limitCarrier.chartedSpace |
| 85 | letI := G.limitCarrier.isManifold |
| 86 | let i := fun k => phi (G.subsequence k) |
| 87 | let Q := fun k => (E (i k + H.shift)).flow.scalar |
| 88 | ⟨(E (i k + H.shift)).time, (E (i k + H.shift)).basepoint⟩ |
| 89 | ∀ (D₀ : LeviCivitaData G.limitMetric) (q : G.limitCarrier.carrier), |
| 90 | ∃ J : ∀ k, GeneralizedStrongNeck |
| 91 | (E (i k + H.shift)).flow (E (i k + H.shift)).time epsilon, |
| 92 | (∀ k, (J k).center = (G.embedding k q).val.val) ∧ |
| 93 | 0 < (D₀.scalarCurvature q)⁻¹ ∧ |
| 94 | Tendsto (fun k => Q k * (J k).scale ^ 2) atTop |
| 95 | (𝓝 (D₀.scalarCurvature q)⁻¹) ∧ |
| 96 | ∃ r : ℝ, 0 < r ∧ |
| 97 | closedBall (extChartAt (𝓡 3) q q) (2 * r) ⊆ |
| 98 | (extChartAt (𝓡 3) q).target ∧ |
| 99 | ∀ᶠ k in atTop, |
| 100 | (D₀.scalarCurvature q)⁻¹ / 2 ≤ Q k * (J k).scale ^ 2 ∧ |
| 101 | Q k * (J k).scale ^ 2 ≤ 2 * (D₀.scalarCurvature q)⁻¹ ∧ |
| 102 | (extChartAt (𝓡 3) q).symm '' |
| 103 | closedBall (extChartAt (𝓡 3) q q) (2 * r) ⊆ G.exhaustion k ∧ |
| 104 | ∀ z ∈ closedBall (extChartAt (𝓡 3) q q) (2 * r), |
| 105 | (G.embedding k ((extChartAt (𝓡 3) q).symm z)).val.val ∈ |
| 106 | ((E (i k + H.shift)).flow.metric (E (i k + H.shift)).time).ball |
| 107 | (J k).center ((J k).scale * (epsilon⁻¹ / 16)) := by |
| 108 | classical |
| 109 | obtain ⟨epsilon₀, hpos, hsmall, hscales⟩ := |
| 110 | exists_source_criticalBall_neck_scale_limits_accuracy P |
| 111 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 112 | intro epsilon C A E H T hepsilon A1 hA1 phi G |
| 113 | let := G.limitCarrier.topologicalSpace |
| 114 | let := G.limitCarrier.chartedSpace |
| 115 | let := G.limitCarrier.isManifold |
| 116 | let (k : ℕ) : PreconnectedSpace (H.tubeCriticalRegion T A1 (phi k)) := |
| 117 | (H.tubeCriticalRegion_connected T A1 hA1 (phi k)).toPreconnectedSpace |
| 118 | let i := fun k => phi (G.subsequence k) |
| 119 | let Q := fun k => (E (i k + H.shift)).flow.scalar |
| 120 | ⟨(E (i k + H.shift)).time, (E (i k + H.shift)).basepoint⟩ |
| 121 | dsimp only |
| 122 | intro D₀ q |
| 123 | obtain ⟨J, hcenter, ha, hconv, hbounds⟩ := |
| 124 | hscales H T hepsilon A1 hA1 phi G D₀ q |
| 125 | let a := (D₀.scalarCurvature q)⁻¹ |
| 126 | have heps : 0 < epsilon := (J 0).epsilon_pos |
| 127 | let rho := Real.sqrt (a / 2) * (epsilon⁻¹ / 16) |
| 128 | have hrho : 0 < rho := mul_pos (Real.sqrt_pos.mpr (half_pos ha)) (by positivity) |
| 129 | obtain ⟨r, hr, htarget, hcapture⟩ := G.exists_eventual_chart_ball_capture q rho hrho |
| 130 | refine ⟨J, hcenter, ha, hconv, r, hr, htarget, ?_⟩ |
| 131 | filter_upwards [hbounds, hcapture] with k hk hcap |
| 132 | refine ⟨hk.1, hk.2, hcap.1, ?_⟩ |
| 133 | intro z hz |
| 134 | have hQ : 0 < Q k := H.base_scalar_pos (i k) |
| 135 | have hsqrt : Real.sqrt (a / 2) ≤ Real.sqrt (Q k) * (J k).scale := by |
| 136 | have hs := Real.sqrt_le_sqrt hk.1 |
| 137 | change Real.sqrt (a / 2) ≤ Real.sqrt (Q k * (J k).scale ^ 2) at hs |
| 138 | rwa [Real.sqrt_mul hQ.le, Real.sqrt_sq (J k).scale_pos.le] at hs |
| 139 | have hradius : rho ≤ Real.sqrt (Q k) * ((J k).scale * (epsilon⁻¹ / 16)) := by |
| 140 | simpa only [rho, mul_assoc] using |
| 141 | mul_le_mul_of_nonneg_right hsqrt (by positivity : 0 ≤ epsilon⁻¹ / 16) |
| 142 | rw [hcenter k] |
| 143 | apply H.tubeCritical_mem_original_ball T A1 (i k) (G.embedding k q) |
| 144 | (G.embedding k ((extChartAt (𝓡 3) q).symm z)) ((J k).scale * (epsilon⁻¹ / 16)) |
| 145 | exact (hcap.2 z hz).trans_le (ENNReal.ofReal_le_ofReal hradius) |
| 146 | |
| 147 | end PoincareMT.M28.CounterexampleNeckFamily |