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.Applications.Counterexamples |
| 2 | import PoincareLib.Geometry.Alexandrov.Packing.RiemannianLimit |
| 3 | import PoincareLib.Geometry.Alexandrov.Packing.PuncturedAscent |
| 4 | |
| 5 | /-! |
| 6 | # Angular packing for rescaled scalar counterexample limits |
| 7 | |
| 8 | The existing counterexample extraction retains its proper geodesic limit, |
| 9 | hyperbolic four-point comparison, and divergent scalar integrals. Applying |
| 10 | comparison-angle packing stability to the actual rescaled metrics adds a |
| 11 | finite angular packing bound at every positive threshold. This constructs |
| 12 | positive punctured neighborhoods of near-unit distance ascent in the limit. |
| 13 | |
| 14 | This is a direct application of the counterexample extraction and the |
| 15 | dimension-dependent Riemannian limit packing theorem. Completeness and the |
| 16 | sectional lower bound of the rescaled metrics are derived from the extracted |
| 17 | models and the prescribed scaling factors. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | set_option autoImplicit false |
| 22 | |
| 23 | open Set Filter Topology MeasureTheory |
| 24 | open Poincare.GromovHausdorff |
| 25 | open scoped Manifold ContDiff Bundle ENNReal |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT |
| 30 | |
| 31 | theorem exists_rescaled_counterexample_limit_with_angle_packing_of_not_uniform_bound |
| 32 | {n : ℕ} |
| 33 | (hfail : ¬ ∃ C : ℝ, 0 < C ∧ |
| 34 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 35 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 36 | [IsManifold (𝓡 n) ∞ M] |
| 37 | (g : RiemannianMetric n M) (D : LeviCivitaData g), |
| 38 | MetricComplete g → |
| 39 | (∀ x (v w : TangentSpace (𝓡 n) x), -1 ≤ D.sectionalCurvature x v w) → |
| 40 | ∀ p : M, (∫ x in g.ball p 1, D.scalarCurvature x ∂g.volumeMeasure) ≤ C) |
| 41 | (hn : 2 ≤ n) (c : ℕ → ℝ) (hc : ∀ j, 1 ≤ c j) : |
| 42 | ∃ A : ℕ → PointedScalarModel n, |
| 43 | (∀ j : ℕ, (j : ℝ) < (A j).unitBallScalarIntegral) ∧ |
| 44 | ∃ phi : ℕ → ℕ, StrictMono phi ∧ ∃ q : ∀ j, (A (phi j)).carrier, |
| 45 | (∀ j, q j ∈ (A (phi j)).metric.ball (A (phi j)).point 1) ∧ |
| 46 | let G := fun j => rescaledMetric (A (phi j)).metric (c j) |
| 47 | (zero_lt_one.trans_le (hc j)) |
| 48 | let DS := fun j => rescaledMetric_connection (A (phi j)).metric |
| 49 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 50 | ∃ theta : ℕ → ℕ, ∃ S : CompatiblePointedCompactSystem.{0}, |
| 51 | StrictMono theta ∧ ProperSpace S.completedLimit.carrier ∧ |
| 52 | (∀ x y : S.completedLimit.carrier, ∃ γ : ℝ → S.completedLimit.carrier, |
| 53 | γ 0 = x ∧ γ 1 = y ∧ |
| 54 | ∀ s ∈ Icc (0 : ℝ) 1, ∀ t ∈ Icc (0 : ℝ) 1, |
| 55 | dist (γ s) (γ t) = |s - t| * dist x y) ∧ |
| 56 | PointedGHConvergesUnbounded |
| 57 | (fun j => (G (theta j)).toBasedMetricSpace (q (theta j))) S.completedLimit ∧ |
| 58 | Poincare.Alexandrov.CurvatureGEnegOne S.completedLimit.carrier ∧ |
| 59 | (∀ α : ℝ, 0 < α → ∃ N : ℕ, |
| 60 | Poincare.Alexandrov.ComparisonAnglePackingBound S.completedLimit.carrier α N) ∧ |
| 61 | (∀ v : ℝ, 0 ≤ v → v < 1 → ∀ p : S.completedLimit.carrier, |
| 62 | ∃ r : ℝ, 0 < r ∧ ∀ y : S.completedLimit.carrier, |
| 63 | 0 < dist p y → dist p y < r → ∀ s : ℝ, 0 < s → |
| 64 | ∃ z : S.completedLimit.carrier, dist y z < s ∧ |
| 65 | v * dist y z < dist p z - dist p y) ∧ |
| 66 | Tendsto (fun j => ∫ x in (G (theta j)).ball (q (theta j)) 1, |
| 67 | (DS (theta j)).scalarCurvature x ∂(G (theta j)).volumeMeasure) |
| 68 | atTop atTop := by |
| 69 | obtain ⟨A, hA, phi, hphi, q, hq, theta, S, htheta, hproper, hgeo, hlim, hcurv, hdiv⟩ := |
| 70 | exists_rescaled_alexandrov_counterexample_limit_of_not_uniform_bound hfail hn c hc |
| 71 | let G := fun j => rescaledMetric (A (phi j)).metric (c j) |
| 72 | (zero_lt_one.trans_le (hc j)) |
| 73 | let DS := fun j => rescaledMetric_connection (A (phi j)).metric |
| 74 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 75 | have hcomplete (j : ℕ) : MetricComplete (G j) := |
| 76 | metricComplete_rescaledMetric (A (phi j)).metric (c j) |
| 77 | (zero_lt_one.trans_le (hc j)) (A (phi j)).complete |
| 78 | have hsec (j : ℕ) (x : (A (phi j)).carrier) (v w : TangentSpace (𝓡 n) x) : |
| 79 | -1 ≤ (DS j).sectionalCurvature x v w := by |
| 80 | have hfrac : (1 : ℝ) / c j ≤ 1 := |
| 81 | (div_le_one (zero_lt_one.trans_le (hc j))).2 (hc j) |
| 82 | exact (neg_le_neg hfrac).trans |
| 83 | (rescaledMetric_sectionalCurvature_lower_bound (A (phi j)).metric |
| 84 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 85 | 1 (A (phi j)).sectional_lower x v w) |
| 86 | have hpacking (α : ℝ) (hα : 0 < α) : ∃ N : ℕ, |
| 87 | Poincare.Alexandrov.ComparisonAnglePackingBound S.completedLimit.carrier α N := by |
| 88 | obtain ⟨N, hN⟩ := |
| 89 | RiemannianMetric.exists_comparisonAngle_packing_bound_of_sectional_pointed_limit n hα |
| 90 | exact ⟨N, hN (fun j => G (theta j)) (fun j => q (theta j)) |
| 91 | (fun j => DS (theta j)) (fun j => hcomplete (theta j)) |
| 92 | (fun j => hsec (theta j)) hlim⟩ |
| 93 | refine ⟨A, hA, phi, hphi, q, hq, theta, S, htheta, hproper, hgeo, hlim, hcurv, |
| 94 | hpacking, ?_, hdiv⟩ |
| 95 | intro v hv0 hv1 p |
| 96 | exact Poincare.Alexandrov.exists_pos_punctured_distance_ascent |
| 97 | hcurv hgeo hpacking hv0 hv1 p |
| 98 | |
| 99 | end PoincareMT |