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.Curvature.Integral.Concentration.VariableRadii |
| 2 | import PoincareLib.Geometry.Curvature.Integral.Rescaling |
| 3 | |
| 4 | /-! |
| 5 | # Rescaling prescribed balls with source-dependent radii |
| 6 | |
| 7 | A uniform bound on the positive scalar integral outside finitely many |
| 8 | prescribed balls selects one center index. Exact scalar-integral scaling |
| 9 | by the inverse square of its source-dependent radius gives divergent |
| 10 | unit-ball integrals. Pointed compactness then supplies a proper geodesic |
| 11 | limit. Reference: Petrunin, Section 4.6, author manuscript pp. 12--14. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter Topology MeasureTheory |
| 19 | open Poincare.GromovHausdorff |
| 20 | open scoped Manifold ContDiff Bundle ENNReal |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | private theorem one_le_inverse_radius_squared {r : ℝ} (hr : 0 < r) (hr1 : r ≤ 1) : |
| 25 | 1 ≤ (r ^ 2)⁻¹ := |
| 26 | (one_le_inv₀ (sq_pos_of_pos hr)).mpr (by nlinarith only [hr, hr1]) |
| 27 | |
| 28 | /-- Source-dependent radii at most one give divergent rescaled unit-ball |
| 29 | scalar integrals at one fixed prescribed center index. The uniform bound |
| 30 | on the positive scalar integral outside the prescribed balls is explicit. -/ |
| 31 | theorem exists_subseq_prescribed_center_rescaled_unitBall_scalar_integral_tendsto_atTop_of_variable_radii |
| 32 | {n : ℕ} {M : ℕ → Type*} |
| 33 | [∀ j, TopologicalSpace (M j)] [∀ j, T3Space (M j)] |
| 34 | [∀ j, MeasurableSpace (M j)] [∀ j, BorelSpace (M j)] |
| 35 | [∀ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] |
| 36 | [∀ j, IsManifold (𝓡 n) ∞ (M j)] [∀ j, PreconnectedSpace (M j)] |
| 37 | {ι : Type*} [Fintype ι] |
| 38 | (g : ∀ j, RiemannianMetric n (M j)) (D : ∀ j, LeviCivitaData (g j)) |
| 39 | (p : ∀ j, M j) (q : ∀ j, ι → M j) (r : ℕ → ι → ℝ) |
| 40 | (hn : 2 ≤ n) (hr : ∀ j i, 0 < r j i) (hr1 : ∀ j i, r j i ≤ 1) |
| 41 | (hcomplete : ∀ j, MetricComplete (g j)) |
| 42 | (hsec : ∀ j x (v w : TangentSpace (𝓡 n) x), |
| 43 | -1 ≤ (D j).sectionalCurvature x v w) |
| 44 | (C : ℝ) (houtside : ∀ j, |
| 45 | (∫ x in (g j).ball (p j) 1 \ ⋃ i, (g j).ball (q j i) (r j i), |
| 46 | max 0 ((D j).scalarCurvature x) ∂(g j).volumeMeasure) ≤ C) |
| 47 | (hlarge : ∀ B : ℝ, ∃ j, |
| 48 | B < ∫ x in (g j).ball (p j) 1, (D j).scalarCurvature x ∂(g j).volumeMeasure) : |
| 49 | ∃ i : ι, ∃ phi : ℕ → ℕ, StrictMono phi ∧ |
| 50 | let G := fun j => rescaledMetric (g (phi j)) (r (phi j) i ^ 2)⁻¹ |
| 51 | (inv_pos.mpr (sq_pos_of_pos (hr (phi j) i))) |
| 52 | let DS := fun j => rescaledMetric_connection (g (phi j)) (D (phi j)) |
| 53 | (r (phi j) i ^ 2)⁻¹ (inv_pos.mpr (sq_pos_of_pos (hr (phi j) i))) |
| 54 | Tendsto (fun j => ∫ x in (G j).ball (q (phi j) i) 1, |
| 55 | (DS j).scalarCurvature x ∂(G j).volumeMeasure) atTop atTop := by |
| 56 | obtain ⟨i, phi, hphi, hdiv⟩ := |
| 57 | exists_subseq_prescribed_center_scalar_integral_tendsto_atTop_of_bounded_radii |
| 58 | g D p q r (by omega) hr hr1 hcomplete hsec C houtside hlarge |
| 59 | refine ⟨i, phi, hphi, ?_⟩ |
| 60 | apply tendsto_atTop_mono' atTop ?_ hdiv |
| 61 | filter_upwards [hdiv.eventually (eventually_ge_atTop 0)] with j hj |
| 62 | have hc := one_le_inverse_radius_squared (hr (phi j) i) (hr1 (phi j) i) |
| 63 | have hscale := rescaledMetric_integral_scalarCurvature_ball_mul |
| 64 | (g (phi j)) (D (phi j)) hn (r (phi j) i ^ 2)⁻¹ |
| 65 | (inv_pos.mpr (sq_pos_of_pos (hr (phi j) i))) (q (phi j) i) (r (phi j) i) |
| 66 | have hs : Real.sqrt (r (phi j) i ^ 2)⁻¹ * r (phi j) i = 1 := by |
| 67 | rw [Real.sqrt_inv, Real.sqrt_sq (hr (phi j) i).le] |
| 68 | exact inv_mul_cancel₀ (hr (phi j) i).ne' |
| 69 | rw [hs] at hscale |
| 70 | rw [hscale] |
| 71 | exact le_mul_of_one_le_left hj (one_le_pow₀ (Real.one_le_sqrt.mpr hc)) |
| 72 | |
| 73 | /-- Source-dependent prescribed-radius rescalings have a proper geodesic |
| 74 | pointed limit along a further subsequence, with divergent unit-ball scalar |
| 75 | integrals at the same fixed prescribed center index. -/ |
| 76 | theorem exists_prescribed_center_rescaled_pointed_limit_scalar_integral_tendsto_atTop_of_variable_radii |
| 77 | {n : ℕ} {M : ℕ → Type} |
| 78 | [∀ j, TopologicalSpace (M j)] [∀ j, T3Space (M j)] |
| 79 | [∀ j, MeasurableSpace (M j)] [∀ j, BorelSpace (M j)] |
| 80 | [∀ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] |
| 81 | [∀ j, IsManifold (𝓡 n) ∞ (M j)] [∀ j, PreconnectedSpace (M j)] |
| 82 | {ι : Type*} [Fintype ι] |
| 83 | (g : ∀ j, RiemannianMetric n (M j)) (D : ∀ j, LeviCivitaData (g j)) |
| 84 | (p : ∀ j, M j) (q : ∀ j, ι → M j) (r : ℕ → ι → ℝ) |
| 85 | (hn : 2 ≤ n) (hr : ∀ j i, 0 < r j i) (hr1 : ∀ j i, r j i ≤ 1) |
| 86 | (hcomplete : ∀ j, MetricComplete (g j)) |
| 87 | (hsec : ∀ j x (v w : TangentSpace (𝓡 n) x), |
| 88 | -1 ≤ (D j).sectionalCurvature x v w) |
| 89 | (C : ℝ) (houtside : ∀ j, |
| 90 | (∫ x in (g j).ball (p j) 1 \ ⋃ i, (g j).ball (q j i) (r j i), |
| 91 | max 0 ((D j).scalarCurvature x) ∂(g j).volumeMeasure) ≤ C) |
| 92 | (hlarge : ∀ B : ℝ, ∃ j, |
| 93 | B < ∫ x in (g j).ball (p j) 1, (D j).scalarCurvature x ∂(g j).volumeMeasure) : |
| 94 | ∃ i : ι, ∃ phi : ℕ → ℕ, StrictMono phi ∧ |
| 95 | let G := fun j => rescaledMetric (g (phi j)) (r (phi j) i ^ 2)⁻¹ |
| 96 | (inv_pos.mpr (sq_pos_of_pos (hr (phi j) i))) |
| 97 | let DS := fun j => rescaledMetric_connection (g (phi j)) (D (phi j)) |
| 98 | (r (phi j) i ^ 2)⁻¹ (inv_pos.mpr (sq_pos_of_pos (hr (phi j) i))) |
| 99 | ∃ theta : ℕ → ℕ, ∃ S : CompatiblePointedCompactSystem.{0}, |
| 100 | StrictMono theta ∧ ProperSpace S.completedLimit.carrier ∧ |
| 101 | (∀ x y : S.completedLimit.carrier, ∃ γ : ℝ → S.completedLimit.carrier, |
| 102 | γ 0 = x ∧ γ 1 = y ∧ |
| 103 | ∀ s ∈ Icc (0 : ℝ) 1, ∀ t ∈ Icc (0 : ℝ) 1, |
| 104 | dist (γ s) (γ t) = |s - t| * dist x y) ∧ |
| 105 | PointedGHConvergesUnbounded |
| 106 | (fun j => (G (theta j)).toBasedMetricSpace (q (phi (theta j)) i)) S.completedLimit ∧ |
| 107 | Tendsto (fun j => ∫ x in (G (theta j)).ball (q (phi (theta j)) i) 1, |
| 108 | (DS (theta j)).scalarCurvature x ∂(G (theta j)).volumeMeasure) atTop atTop := by |
| 109 | obtain ⟨i, phi, hphi, hdiv⟩ := |
| 110 | exists_subseq_prescribed_center_rescaled_unitBall_scalar_integral_tendsto_atTop_of_variable_radii |
| 111 | g D p q r hn hr hr1 hcomplete hsec C houtside hlarge |
| 112 | have hc (j : ℕ) : 1 ≤ (r (phi j) i ^ 2)⁻¹ := |
| 113 | one_le_inverse_radius_squared (hr (phi j) i) (hr1 (phi j) i) |
| 114 | obtain ⟨theta, S, htheta, hproper, hgeodesic, hconverges⟩ := |
| 115 | exists_subseq_proper_geodesic_pointed_limit_of_metric_rescaling |
| 116 | (fun j => g (phi j)) (fun j => q (phi j) i) (by omega) |
| 117 | (fun j => hcomplete (phi j)) (fun j => D (phi j)) (fun j => hsec (phi j)) |
| 118 | (fun j => (r (phi j) i ^ 2)⁻¹) hc |
| 119 | exact ⟨i, phi, hphi, theta, S, htheta, hproper, hgeodesic, hconverges, |
| 120 | hdiv.comp htheta.tendsto_atTop⟩ |
| 121 | |
| 122 | end PoincareMT |