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.Reduction.Uniform |
| 2 | import PoincareLib.Geometry.Curvature.Integral.Concentration.Blowup |
| 3 | |
| 4 | /-! |
| 5 | # Small connected counterexamples to the full scalar-integral bound |
| 6 | |
| 7 | Failure of the unchanged full uniform estimate produces connected |
| 8 | universe-zero models with divergent unit-ball scalar integrals. Component |
| 9 | restriction and universe shrinking preserve the metric, curvature, and |
| 10 | integrals through the proved reduction theorem. This is the contradiction |
| 11 | sequence in Petrunin, Section 1.5, author manuscript p. 3, with the |
| 12 | concentrated rescaling of Section 4.6, pp. 12--14. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter Topology MeasureTheory |
| 20 | open Poincare.GromovHausdorff |
| 21 | open scoped Manifold ContDiff Bundle ENNReal |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | /-- Geometric data for a pointed connected complete universe-zero manifold |
| 28 | with sectional curvature at least `-1`. Scalar integrals are derived from |
| 29 | the metric and connection rather than stored as assumptions. -/ |
| 30 | structure PointedScalarModel (n : ℕ) where |
| 31 | carrier : Type |
| 32 | [topology : TopologicalSpace carrier] |
| 33 | [measurable : MeasurableSpace carrier] |
| 34 | [borel : BorelSpace carrier] |
| 35 | [separation : T3Space carrier] |
| 36 | [charts : ChartedSpace (EuclideanSpace ℝ (Fin n)) carrier] |
| 37 | [smooth : IsManifold (𝓡 n) ∞ carrier] |
| 38 | [connected : PreconnectedSpace carrier] |
| 39 | metric : RiemannianMetric n carrier |
| 40 | connection : LeviCivitaData metric |
| 41 | point : carrier |
| 42 | complete : MetricComplete metric |
| 43 | sectional_lower : ∀ x (v w : TangentSpace (𝓡 n) x), |
| 44 | -1 ≤ connection.sectionalCurvature x v w |
| 45 | |
| 46 | attribute [instance] PointedScalarModel.topology PointedScalarModel.measurable |
| 47 | PointedScalarModel.borel PointedScalarModel.separation PointedScalarModel.charts |
| 48 | PointedScalarModel.smooth PointedScalarModel.connected |
| 49 | |
| 50 | /-- The actual unit-ball scalar integral of a pointed geometric model. -/ |
| 51 | def PointedScalarModel.unitBallScalarIntegral {n : ℕ} (A : PointedScalarModel n) : ℝ := |
| 52 | ∫ x in A.metric.ball A.point 1, A.connection.scalarCurvature x ∂A.metric.volumeMeasure |
| 53 | |
| 54 | section Counterexamples |
| 55 | |
| 56 | variable {n : ℕ} |
| 57 | (hfail : ¬ ∃ C : ℝ, 0 < C ∧ |
| 58 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 59 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 60 | [IsManifold (𝓡 n) ∞ M] |
| 61 | (g : RiemannianMetric n M) (D : LeviCivitaData g), |
| 62 | MetricComplete g → |
| 63 | (∀ x (v w : TangentSpace (𝓡 n) x), -1 ≤ D.sectionalCurvature x v w) → |
| 64 | ∀ p : M, (∫ x in g.ball p 1, D.scalarCurvature x ∂g.volumeMeasure) ≤ C) |
| 65 | |
| 66 | include hfail |
| 67 | |
| 68 | /-- Any proposed scalar bound is exceeded by a small connected model if |
| 69 | the original full uniform estimate fails. -/ |
| 70 | theorem exists_pointedScalarModel_above_of_not_uniform_bound (C : ℝ) : |
| 71 | ∃ A : PointedScalarModel n, C < A.unitBallScalarIntegral := by |
| 72 | classical |
| 73 | by_contra hno |
| 74 | have hbound (A : PointedScalarModel n) : A.unitBallScalarIntegral ≤ C := |
| 75 | le_of_not_gt (fun h => hno ⟨A, h⟩) |
| 76 | apply hfail |
| 77 | refine ⟨max C 1, zero_lt_one.trans_le (le_max_right _ _), ?_⟩ |
| 78 | intro M _ _ _ _ _ _ g D hcomplete hsec p |
| 79 | apply (g.scalar_integral_le_of_small_connected_bound D hcomplete hsec C ?_ p).trans |
| 80 | (le_max_left _ _) |
| 81 | intro N _ _ _ _ _ _ _ gN DN hcompleteN hsecN q |
| 82 | exact hbound |
| 83 | { carrier := N |
| 84 | metric := gN |
| 85 | connection := DN |
| 86 | point := q |
| 87 | complete := hcompleteN |
| 88 | sectional_lower := hsecN } |
| 89 | |
| 90 | /-- Failure of the full estimate gives a sequence of small connected |
| 91 | geometric models with unit-ball scalar integrals exceeding successive integers. -/ |
| 92 | theorem exists_pointedScalarModels_of_not_uniform_bound : |
| 93 | ∃ A : ℕ → PointedScalarModel n, |
| 94 | (∀ j : ℕ, (j : ℝ) < (A j).unitBallScalarIntegral) ∧ |
| 95 | Tendsto (fun j => (A j).unitBallScalarIntegral) atTop atTop := by |
| 96 | choose A hA using fun j : ℕ => |
| 97 | exists_pointedScalarModel_above_of_not_uniform_bound hfail (j : ℝ) |
| 98 | exact ⟨A, hA, tendsto_atTop_mono (fun j => (hA j).le) tendsto_natCast_atTop_atTop⟩ |
| 99 | |
| 100 | /-- The original failure hypothesis produces a proper geodesic pointed |
| 101 | limit after prescribed blow-ups, with divergence on fixed rescaled unit balls. -/ |
| 102 | theorem exists_rescaled_counterexample_limit_of_not_uniform_bound |
| 103 | (hn : 2 ≤ n) (c : ℕ → ℝ) (hc : ∀ j, 1 ≤ c j) : |
| 104 | ∃ A : ℕ → PointedScalarModel n, |
| 105 | (∀ j : ℕ, (j : ℝ) < (A j).unitBallScalarIntegral) ∧ |
| 106 | ∃ phi : ℕ → ℕ, StrictMono phi ∧ ∃ q : ∀ j, (A (phi j)).carrier, |
| 107 | (∀ j, q j ∈ (A (phi j)).metric.ball (A (phi j)).point 1) ∧ |
| 108 | let G := fun j => rescaledMetric (A (phi j)).metric (c j) |
| 109 | (zero_lt_one.trans_le (hc j)) |
| 110 | let DS := fun j => rescaledMetric_connection (A (phi j)).metric |
| 111 | (A (phi j)).connection (c j) (zero_lt_one.trans_le (hc j)) |
| 112 | ∃ theta : ℕ → ℕ, ∃ S : CompatiblePointedCompactSystem.{0}, |
| 113 | StrictMono theta ∧ ProperSpace S.completedLimit.carrier ∧ |
| 114 | (∀ x y : S.completedLimit.carrier, ∃ γ : ℝ → S.completedLimit.carrier, |
| 115 | γ 0 = x ∧ γ 1 = y ∧ |
| 116 | ∀ s ∈ Icc (0 : ℝ) 1, ∀ t ∈ Icc (0 : ℝ) 1, |
| 117 | dist (γ s) (γ t) = |s - t| * dist x y) ∧ |
| 118 | PointedGHConvergesUnbounded |
| 119 | (fun j => (G (theta j)).toBasedMetricSpace (q (theta j))) S.completedLimit ∧ |
| 120 | Tendsto (fun j => ∫ x in (G (theta j)).ball (q (theta j)) 1, |
| 121 | (DS (theta j)).scalarCurvature x ∂(G (theta j)).volumeMeasure) |
| 122 | atTop atTop := by |
| 123 | obtain ⟨A, hA, _⟩ := exists_pointedScalarModels_of_not_uniform_bound hfail |
| 124 | have hlarge : ∀ C : ℝ, ∃ j : ℕ, C < (A j).unitBallScalarIntegral := by |
| 125 | intro C |
| 126 | obtain ⟨j, hj⟩ := exists_nat_gt C |
| 127 | exact ⟨j, hj.trans (hA j)⟩ |
| 128 | refine ⟨A, hA, ?_⟩ |
| 129 | exact exists_concentrated_rescaled_pointed_limit_scalar_integral_tendsto_atTop |
| 130 | (fun j => (A j).metric) (fun j => (A j).point) hn (fun j => (A j).complete) |
| 131 | (fun j => (A j).connection) (fun j => (A j).sectional_lower) hlarge c hc |
| 132 | |
| 133 | end Counterexamples |
| 134 | end PoincareMT |