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.RicciFlow.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.Regularity |
| 3 | |
| 4 | /-! |
| 5 | # Uniform normal charts on regular components |
| 6 | |
| 7 | Actual regularity supplies the precompact ball required by the lower |
| 8 | injectivity theorem. Component radius loss and a curvature-scale radius |
| 9 | supply the guards for curvature-conditioned noncollapse. The normal and |
| 10 | comparison radii are fixed before the source manifold or center. This is |
| 11 | Morgan--Tian Theorem 5.6, printed pp. 85-87, in the regular-set specialization recorded on |
| 12 | 2026-09-23 under tasks/M28/review-endpoints, with the noncollapse correction |
| 13 | recorded on 2026-09-24. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | /-- Uniform curvature on a buffered regular component and actual |
| 26 | curvature-conditioned noncollapse produce normalized source charts. |
| 27 | Compactness is derived from Definition 5.1; the radii precede all geometry. |
| 28 | Theorem 5.6, p. 86. -/ |
| 29 | theorem exists_uniform_regular_normal_charts |
| 30 | (n : ℕ) {K δ r₀ κ : ℝ} (hn : 1 ≤ n) (hK : 0 ≤ K) |
| 31 | (hδ : 0 < δ) (hr₀ : 0 < r₀) (hκ : 0 < κ) : |
| 32 | ∃ R ρ : ℝ, 0 < ρ ∧ 2 * ρ < R ∧ R < δ ∧ |
| 33 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 34 | [T3Space M] [SecondCountableTopology M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 36 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (p : M), |
| 37 | (∀ x ∈ regularComponent g p (2 * δ), D.curvatureTensorNorm x ≤ K) → |
| 38 | (∀ s : ℝ, 0 < s → s ≤ r₀ → ∀ q ∈ regularComponent g p s, |
| 39 | (∀ x ∈ g.ball q s, |D.curvatureTensorNorm x| ≤ s⁻¹ ^ 2) → |
| 40 | ENNReal.ofReal (κ * s ^ n) ≤ g.volumeMeasure (g.ball q s)) → |
| 41 | ∀ q ∈ regularComponent g p (4 * δ), |
| 42 | ∃ L : EuclideanSpace ℝ (Fin n) ≃L[ℝ] EuclideanSpace ℝ (Fin n), |
| 43 | ∃ Φ : PartialDiffeomorph (𝓡 n) (𝓡 n) (EuclideanSpace ℝ (Fin n)) M ∞, |
| 44 | Φ.source = Metric.ball 0 R ∧ Φ.target = g.ball q R ∧ Φ 0 = q ∧ |
| 45 | (∀ v w, g.pullbackCoefficients (extChartAt (𝓡 n) q).symm |
| 46 | (extChartAt (𝓡 n) q q) (L v) (L w) = inner ℝ v w) ∧ |
| 47 | HasFDerivAt (fun w => extChartAt (𝓡 n) q (Φ w)) L.toContinuousLinearMap 0 ∧ |
| 48 | (∀ w ∈ Metric.ball 0 R, |
| 49 | g.IsGeodesicOn (fun t => Φ (t • w)) {t : ℝ | t • w ∈ Metric.ball 0 R}) ∧ |
| 50 | (∀ w ∈ Metric.ball 0 R, g.edist q (Φ w) = ENNReal.ofReal ‖w‖) ∧ |
| 51 | (∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ w, |
| 52 | (1 / 4 : ℝ) * ‖w‖ ^ 2 ≤ g.pullbackCoefficients Φ x w w ∧ |
| 53 | g.pullbackCoefficients Φ x w w ≤ (9 / 4 : ℝ) * ‖w‖ ^ 2) ∧ |
| 54 | Φ.target ⊆ regularComponent g p (2 * δ) := by |
| 55 | have hKone : 0 < K + 1 := by linarith |
| 56 | let a := min (δ / 4) (min r₀ (K + 1)⁻¹) / 2 |
| 57 | have ha : 0 < a := by dsimp [a]; positivity |
| 58 | have ham : a ≤ min (δ / 4) (min r₀ (K + 1)⁻¹) := half_le_self (by positivity) |
| 59 | have haδ : a ≤ δ / 4 := ham.trans (min_le_left _ _) |
| 60 | have har₀ : a ≤ r₀ := ham.trans ((min_le_right _ _).trans (min_le_left _ _)) |
| 61 | have haK : a ≤ (K + 1)⁻¹ := ham.trans ((min_le_right _ _).trans (min_le_right _ _)) |
| 62 | have hKinv : K + 1 ≤ a⁻¹ := by |
| 63 | simpa only [inv_inv] using (inv_le_inv₀ (inv_pos.mpr hKone) ha).mpr haK |
| 64 | have hKbound : K ≤ a⁻¹ ^ 2 := |
| 65 | (show K ≤ (K + 1) ^ 2 by nlinarith only [hK, sq_nonneg K]).trans |
| 66 | (pow_le_pow_left₀ hKone.le hKinv 2) |
| 67 | let v := κ * a ^ n |
| 68 | have hv : 0 < v := by dsimp [v]; positivity |
| 69 | let R := RiemannianMetric.localInjectivityRadius n K a v |
| 70 | have hR : 0 < R := RiemannianMetric.localInjectivityRadius_pos n K ha v |
| 71 | have hRa : R < a := RiemannianMetric.localInjectivityRadius_lt n K ha v |
| 72 | obtain ⟨ρ, hρ, hρR, hsmall⟩ := |
| 73 | RiemannianMetric.exists_uniform_radial_comparison_radius hR K |
| 74 | refine ⟨R, ρ, hρ, hρR, by linarith, ?_⟩ |
| 75 | intro M _ _ _ _ _ _ _ g D p hcurv hnoncollapse q hq |
| 76 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 77 | ⟨g.toRiemannianMetric⟩ |
| 78 | have hcompact : IsCompact (closure (g.ball q (3 * a))) := |
| 79 | regularComponent_subset g p (4 * δ) hq (3 * a) (by linarith) |
| 80 | have hsub : g.ball q (3 * a) ⊆ regularComponent g p (2 * δ) := |
| 81 | ball_subset_regularComponent g hq (by positivity) (by linarith) |
| 82 | have hvolume : ∀ x ∈ g.ball q a, |
| 83 | ENNReal.ofReal v ≤ g.volumeMeasure (g.ball x a) := by |
| 84 | intro x hx |
| 85 | apply hnoncollapse a ha har₀ x |
| 86 | (ball_subset_regularComponent g hq ha (by linarith : a + a ≤ 4 * δ) hx) |
| 87 | intro y hy |
| 88 | have hyq : y ∈ g.ball q (3 * a) := |
| 89 | riemannian_ball_subset_of_margin g ha.le ha.le hx (by linarith) hy |
| 90 | rw [abs_of_nonneg (show 0 ≤ D.curvatureTensorNorm y from Real.sqrt_nonneg _)] |
| 91 | exact (hcurv y (hsub hyq)).trans hKbound |
| 92 | have hqball : q ∈ g.ball q a := by |
| 93 | change g.edist q q < ENNReal.ofReal a |
| 94 | rw [show g.edist q q = 0 from Manifold.riemannianEDist_self] |
| 95 | exact ENNReal.ofReal_pos.mpr ha |
| 96 | obtain ⟨L, Φ, hsource, htarget, hzero, hL, hderiv, hgeo, hdist, hcoeff⟩ := |
| 97 | exists_normal_chart_of_local_noncollapse g D q hn hK ha hv ha |
| 98 | (show a + 2 * a ≤ 3 * a by linarith) rfl hρR hsmall hcompact |
| 99 | (fun x hx => hcurv x (hsub hx)) hvolume q hqball |
| 100 | refine ⟨L, Φ, hsource, htarget, hzero, hL, hderiv, hgeo, hdist, hcoeff, ?_⟩ |
| 101 | rw [htarget] |
| 102 | exact ball_subset_regularComponent g hq hR (by linarith) |
| 103 | |
| 104 | end PoincareMT.M28 |