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.Alexandrov.Riemannian.PointedLimit |
| 2 | import PoincareLib.Geometry.Curvature.Integral.Reduction.Counterexamples |
| 3 | |
| 4 | /-! |
| 5 | # Alexandrov limits of rescaled scalar counterexamples |
| 6 | |
| 7 | The concentrated counterexample extraction produces a proper geodesic limit |
| 8 | and divergent integrals on rescaled unit balls. Scaling by factors at least |
| 9 | one preserves the sectional lower bound needed by hyperbolic comparison. |
| 10 | |
| 11 | Reference: Petrunin (2009), Section 1.5, author manuscript p. 3, and |
| 12 | Section 4.6, pp. 12--14. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter Topology MeasureTheory |
| 19 | open Poincare.GromovHausdorff |
| 20 | open scoped Manifold ContDiff Bundle ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | theorem exists_rescaled_alexandrov_counterexample_limit_of_not_uniform_bound |
| 27 | {n : ℕ} |
| 28 | (hfail : ¬ ∃ C : ℝ, 0 < C ∧ |
| 29 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 30 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 31 | [IsManifold (𝓡 n) ∞ M] |
| 32 | (g : RiemannianMetric n M) (D : LeviCivitaData g), |
| 33 | MetricComplete g → |
| 34 | (∀ x (v w : TangentSpace (𝓡 n) x), -1 ≤ D.sectionalCurvature x v w) → |
| 35 | ∀ p : M, (∫ x in g.ball p 1, D.scalarCurvature x ∂g.volumeMeasure) ≤ C) |
| 36 | (hn : 2 ≤ n) (c : ℕ → ℝ) (hc : ∀ j, 1 ≤ c j) : |
| 37 | ∃ A : ℕ → PointedScalarModel n, |
| 38 | (∀ j : ℕ, (j : ℝ) < (A j).unitBallScalarIntegral) ∧ |
| 39 | ∃ phi : ℕ → ℕ, StrictMono phi ∧ ∃ q : ∀ j, (A (phi j)).carrier, |
| 40 | (∀ j, q j ∈ (A (phi j)).metric.ball (A (phi j)).point 1) ∧ |
| 41 | let G := fun j => rescaledMetric (A (phi j)).metric (c j) |
| 42 | (zero_lt_one.trans_le (hc j)) |
| 43 | let DS := fun j => rescaledMetric_connection (A (phi j)).metric |
| 44 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 45 | ∃ theta : ℕ → ℕ, ∃ S : CompatiblePointedCompactSystem.{0}, |
| 46 | StrictMono theta ∧ ProperSpace S.completedLimit.carrier ∧ |
| 47 | (∀ x y : S.completedLimit.carrier, ∃ γ : ℝ → S.completedLimit.carrier, |
| 48 | γ 0 = x ∧ γ 1 = y ∧ |
| 49 | ∀ s ∈ Icc (0 : ℝ) 1, ∀ t ∈ Icc (0 : ℝ) 1, |
| 50 | dist (γ s) (γ t) = |s - t| * dist x y) ∧ |
| 51 | PointedGHConvergesUnbounded |
| 52 | (fun j => (G (theta j)).toBasedMetricSpace (q (theta j))) S.completedLimit ∧ |
| 53 | Poincare.Alexandrov.CurvatureGEnegOne S.completedLimit.carrier ∧ |
| 54 | Tendsto (fun j => ∫ x in (G (theta j)).ball (q (theta j)) 1, |
| 55 | (DS (theta j)).scalarCurvature x ∂(G (theta j)).volumeMeasure) |
| 56 | atTop atTop := by |
| 57 | obtain ⟨A, hA, phi, hphi, q, hq, theta, S, htheta, hproper, hgeo, hlim, hdiv⟩ := |
| 58 | exists_rescaled_counterexample_limit_of_not_uniform_bound hfail hn c hc |
| 59 | refine ⟨A, hA, phi, hphi, q, hq, theta, S, htheta, hproper, hgeo, hlim, ?_, hdiv⟩ |
| 60 | let G := fun j => rescaledMetric (A (phi j)).metric (c j) |
| 61 | (zero_lt_one.trans_le (hc j)) |
| 62 | let DS := fun j => rescaledMetric_connection (A (phi j)).metric |
| 63 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 64 | have hcomplete (j : ℕ) : MetricComplete (G j) := |
| 65 | metricComplete_rescaledMetric (A (phi j)).metric (c j) |
| 66 | (zero_lt_one.trans_le (hc j)) (A (phi j)).complete |
| 67 | have hsec (j : ℕ) (x : (A (phi j)).carrier) (v w : TangentSpace (𝓡 n) x) : |
| 68 | -1 ≤ (DS j).sectionalCurvature x v w := by |
| 69 | have hfrac : (1 : ℝ) / c j ≤ 1 := |
| 70 | (div_le_one (zero_lt_one.trans_le (hc j))).2 (hc j) |
| 71 | exact (neg_le_neg hfrac).trans |
| 72 | (rescaledMetric_sectionalCurvature_lower_bound (A (phi j)).metric |
| 73 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 74 | 1 (A (phi j)).sectional_lower x v w) |
| 75 | exact RiemannianMetric.curvatureGEnegOne_of_sectional_pointed_limit |
| 76 | (fun j => G (theta j)) (fun j => q (theta j)) (fun j => DS (theta j)) |
| 77 | (fun j => hcomplete (theta j)) (fun j => hsec (theta j)) hlim |
| 78 | |
| 79 | end PoincareMT |