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.Spire |
| 2 | |
| 3 | /-! |
| 4 | # Prescribed-center concentration with varying radii |
| 5 | |
| 6 | The radii may depend on the source manifold, as required for critical-radius |
| 7 | rescaling. A common upper radius bounds the scalar negative-part correction. |
| 8 | Reference: Petrunin, Section 4.6, author manuscript pp. 12--14. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- A bound on the positive scalar integral outside finitely many prescribed |
| 20 | balls selects one fixed center index, even when their positive radii vary |
| 21 | with the source index, provided the radii have a common finite upper bound. -/ |
| 22 | theorem exists_subseq_prescribed_center_scalar_integral_tendsto_atTop_of_bounded_radii |
| 23 | {n : ℕ} {M : ℕ → Type*} |
| 24 | [∀ j, TopologicalSpace (M j)] [∀ j, T3Space (M j)] |
| 25 | [∀ j, MeasurableSpace (M j)] [∀ j, BorelSpace (M j)] |
| 26 | [∀ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] |
| 27 | [∀ j, IsManifold (𝓡 n) ∞ (M j)] [∀ j, PreconnectedSpace (M j)] |
| 28 | {ι : Type*} [Fintype ι] |
| 29 | (g : ∀ j, RiemannianMetric n (M j)) (D : ∀ j, LeviCivitaData (g j)) |
| 30 | (p : ∀ j, M j) (q : ∀ j, ι → M j) (r : ℕ → ι → ℝ) |
| 31 | (hn : 1 ≤ n) (hr : ∀ j i, 0 < r j i) {R : ℝ} (hrR : ∀ j i, r j i ≤ R) |
| 32 | (hcomplete : ∀ j, MetricComplete (g j)) |
| 33 | (hsec : ∀ j x (v w : TangentSpace (𝓡 n) x), |
| 34 | -1 ≤ (D j).sectionalCurvature x v w) |
| 35 | (C : ℝ) (houtside : ∀ j, |
| 36 | (∫ x in (g j).ball (p j) 1 \ ⋃ i, (g j).ball (q j i) (r j i), |
| 37 | max 0 ((D j).scalarCurvature x) ∂(g j).volumeMeasure) ≤ C) |
| 38 | (hlarge : ∀ B : ℝ, ∃ j, |
| 39 | B < ∫ x in (g j).ball (p j) 1, (D j).scalarCurvature x ∂(g j).volumeMeasure) : |
| 40 | ∃ i : ι, ∃ phi : ℕ → ℕ, StrictMono phi ∧ |
| 41 | Tendsto (fun j => ∫ x in (g (phi j)).ball (q (phi j) i) (r (phi j) i), |
| 42 | (D (phi j)).scalarCurvature x ∂(g (phi j)).volumeMeasure) atTop atTop := by |
| 43 | have hR (j) : Continuous (D j).scalarCurvature := (D j).continuous_scalarCurvature |
| 44 | have hP (j) : Continuous (fun x => max 0 ((D j).scalarCurvature x)) := |
| 45 | continuous_const.sup (hR j) |
| 46 | have hPi (j) (x : M j) (s : ℝ) := |
| 47 | (g j).integrableOn_ball_of_continuous (hcomplete j) (hP j) x s |
| 48 | have hRi (j) (x : M j) (s : ℝ) := |
| 49 | (g j).integrableOn_ball_of_continuous (hcomplete j) (hR j) x s |
| 50 | have hm (j) (x : M j) (s : ℝ) : MeasurableSet ((g j).ball x s) := by |
| 51 | let : MetricSpace (M j) := (g j).toMetricSpace |
| 52 | rw [← (g j).toMetricSpace_ball] |
| 53 | exact Metric.isOpen_ball.measurableSet |
| 54 | have hlargeP : ∀ B : ℝ, ∃ j, B < ∫ x in (g j).ball (p j) 1, |
| 55 | max 0 ((D j).scalarCurvature x) ∂(g j).volumeMeasure := by |
| 56 | intro B |
| 57 | obtain ⟨j, hj⟩ := hlarge B |
| 58 | exact ⟨j, hj.trans_le (integral_mono (hRi j _ _) (hPi j _ _) |
| 59 | (fun x => le_max_right _ _))⟩ |
| 60 | obtain ⟨i, phi, hphi, hdiv⟩ := |
| 61 | Poincare.CurvatureIntegral.exists_subseq_fixed_member_integral_tendsto_atTop |
| 62 | (fun j => (g j).volumeMeasure) (fun j => (g j).ball (p j) 1) |
| 63 | (fun j i => (g j).ball (q j i) (r j i)) |
| 64 | (fun j x => max 0 ((D j).scalarCurvature x)) |
| 65 | (fun j => hm j _ _) (fun j i => hm j _ _) (fun j x => le_max_left _ _) |
| 66 | (fun j => hPi j _ _) (fun j i => hPi j _ _) C houtside hlargeP |
| 67 | have hbound (j : ℕ) : |
| 68 | (∫ x in (g j).ball (q j i) (r j i), max 0 ((D j).scalarCurvature x) |
| 69 | ∂(g j).volumeMeasure) ≤ |
| 70 | (∫ x in (g j).ball (q j i) (r j i), (D j).scalarCurvature x |
| 71 | ∂(g j).volumeMeasure) + (n : ℝ) ^ 2 * RiemannianMetric.modelVolume n 1 R := by |
| 72 | exact ((D j).integral_scalarCurvature_posPart_ball_le_integral_add_model |
| 73 | (q j i) hn (hcomplete j) (hsec j) (hr j i)).trans |
| 74 | (add_le_add le_rfl (mul_le_mul_of_nonneg_left |
| 75 | (RiemannianMetric.modelVolume_mono_radius n (κ := 1) (by norm_num) |
| 76 | (hr j i).le (hrR j i)) |
| 77 | (sq_nonneg _))) |
| 78 | refine ⟨i, phi, hphi, tendsto_atTop.2 (fun B => ?_)⟩ |
| 79 | filter_upwards [(tendsto_atTop.1 hdiv) |
| 80 | (B + (n : ℝ) ^ 2 * RiemannianMetric.modelVolume n 1 R)] with j hj |
| 81 | linarith only [hj, hbound (phi j)] |
| 82 | |
| 83 | end PoincareMT |