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.Tube.SourceGeometry.CriticalBall.SourceCriticalBallScalarLimit |
| 3 | |
| 4 | /-! |
| 5 | # Exact scalar and scale at the retained initial limit point |
| 6 | |
| 7 | The original low scalar and the whole-slice homothety cancel exactly. |
| 8 | Pointed scalar convergence preserves that value, so the initial limiting |
| 9 | neck scale is the fixed original normalized scale. Source: Morgan--Tian |
| 10 | Proposition 10.7, p. 253; M28 derivation 88. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 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.M28.CounterexampleNeckFamily |
| 23 | |
| 24 | variable {epsilon C A : ℝ} |
| 25 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 26 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 27 | |
| 28 | /-- Both open restrictions preserve the exact normalized scalar at the |
| 29 | literal source base. Source: Proposition 10.7, p. 253; derivation 88. -/ |
| 30 | theorem tubeCritical_base_scalar_eq (H : CounterexampleNeckFamily E) |
| 31 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) (k : ℕ) |
| 32 | (D : LeviCivitaData (H.tubeCriticalMetric T A1 k)) : |
| 33 | D.scalarCurvature (H.tubeCriticalBase T A1 hA1 k) = 16 * (max C 2) ^ 2 := by |
| 34 | rw [H.tubeCritical_scalar_eq T A1 k D] |
| 35 | change (E (k + H.shift)).flow.scalar |
| 36 | ⟨(E (k + H.shift)).time, (H.segment k).path (H.segment k).lower⟩ / |
| 37 | (E (k + H.shift)).flow.scalar |
| 38 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ = _ |
| 39 | rw [(H.segment k).lower_scalar] |
| 40 | exact mul_div_cancel_right₀ _ (H.base_scalar_pos k).ne' |
| 41 | |
| 42 | set_option maxHeartbeats 2400000 in |
| 43 | -- The dependent convergence-index reduction exceeds the default elaboration budget. |
| 44 | /-- The retained pointed limit has exactly the same initial scalar, for |
| 45 | any compatible connection and any earlier index selection. |
| 46 | Source: Proposition 10.7, p. 253; M28 derivation 88. -/ |
| 47 | theorem regular_limit_base_scalar_eq (H : CounterexampleNeckFamily E) |
| 48 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 49 | (phi : ℕ → ℕ) |
| 50 | (G : RegularPointedMetricConvergence |
| 51 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 52 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) : |
| 53 | letI := G.limitCarrier.topologicalSpace |
| 54 | letI := G.limitCarrier.chartedSpace |
| 55 | letI := G.limitCarrier.isManifold |
| 56 | ∀ D₀ : LeviCivitaData G.limitMetric, |
| 57 | D₀.scalarCurvature G.base = 16 * (max C 2) ^ 2 := by |
| 58 | let := G.limitCarrier.topologicalSpace |
| 59 | let := G.limitCarrier.chartedSpace |
| 60 | let := G.limitCarrier.isManifold |
| 61 | intro D₀ |
| 62 | let D (k : ℕ) : LeviCivitaData (H.tubeCriticalMetric T A1 (phi k)) := |
| 63 | Classical.choice (exists_leviCivitaData (H.tubeCriticalMetric T A1 (phi k))) |
| 64 | have hlimit := G.tendsto_scalarCurvature D D₀ G.base |
| 65 | have heq : (fun k => (D (G.subsequence k)).scalarCurvature (G.embedding k G.base)) = |
| 66 | (fun _ : ℕ => 16 * (max C 2) ^ 2) := by |
| 67 | funext k |
| 68 | rw [G.base_preserving] |
| 69 | exact H.tubeCritical_base_scalar_eq T A1 hA1 (phi (G.subsequence k)) _ |
| 70 | rw [heq] at hlimit |
| 71 | exact tendsto_nhds_unique hlimit tendsto_const_nhds |
| 72 | |
| 73 | set_option maxHeartbeats 2400000 in |
| 74 | -- The dependent convergence-index reduction exceeds the default elaboration budget. |
| 75 | /-- The scalar-defined initial limit scale is exactly the original fixed |
| 76 | normalized scale, with positive base scalar. Source: Proposition 10.7, |
| 77 | p. 253; M28 derivation 88. -/ |
| 78 | theorem regular_limit_base_scale_eq (H : CounterexampleNeckFamily E) |
| 79 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 80 | (phi : ℕ → ℕ) |
| 81 | (G : RegularPointedMetricConvergence |
| 82 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 83 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) : |
| 84 | letI := G.limitCarrier.topologicalSpace |
| 85 | letI := G.limitCarrier.chartedSpace |
| 86 | letI := G.limitCarrier.isManifold |
| 87 | ∀ D₀ : LeviCivitaData G.limitMetric, |
| 88 | 0 < D₀.scalarCurvature G.base ∧ |
| 89 | (D₀.scalarCurvature G.base) ^ (-1 / 2 : ℝ) = (4 * max C 2)⁻¹ := by |
| 90 | let := G.limitCarrier.topologicalSpace |
| 91 | let := G.limitCarrier.chartedSpace |
| 92 | let := G.limitCarrier.isManifold |
| 93 | intro D₀ |
| 94 | rw [H.regular_limit_base_scalar_eq T A1 hA1 phi G D₀] |
| 95 | have hC : 0 < max C 2 := lt_of_lt_of_le (by norm_num) (le_max_right C 2) |
| 96 | refine ⟨by positivity, ?_⟩ |
| 97 | rw [show (-1 / 2 : ℝ) = -(1 / 2 : ℝ) by ring, |
| 98 | Real.rpow_neg (by positivity : 0 ≤ 16 * (max C 2) ^ 2), ← Real.sqrt_eq_rpow] |
| 99 | rw [show 16 * (max C 2) ^ 2 = (4 * max C 2) ^ 2 by ring, |
| 100 | Real.sqrt_sq (by positivity : 0 ≤ 4 * max C 2)] |
| 101 | |
| 102 | end PoincareMT.M28.CounterexampleNeckFamily |