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.Geometry.LocalVolumeCover |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.LocalNormalCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.NormalCoverAssembly |
| 5 | |
| 6 | /-! |
| 7 | # A uniform normal-cover factory inside a finite margin |
| 8 | |
| 9 | Curvature and local noncollapse fix the injectivity and comparison radii. |
| 10 | An upper volume bound fixes the finite number of charts. These constants |
| 11 | are chosen before the source carrier and its metric. All local geometry |
| 12 | stays in the containing controlled ball, as required by Morgan--Tian |
| 13 | Theorem 5.6, printed pp. 85-87; see the bounded-margin factory derivation |
| 14 | dated 2026-09-22 under tasks/M28/partial-geometry. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff ENNReal Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28 |
| 26 | |
| 27 | /-- Uniform local geometry gives fixed normal-cover radii and a fixed |
| 28 | chart count before selecting the source manifold. Only a prescribed |
| 29 | additive radial margin is required; Theorem 5.6, pp. 85-87. -/ |
| 30 | theorem exists_uniform_normalCover_of_local_noncollapse |
| 31 | (n : ℕ) {K δ v V : ℝ} (hn : 1 ≤ n) (hK : 0 ≤ K) |
| 32 | (hδ : 0 < δ) (hv : 0 < v) (hV : 0 ≤ V) : |
| 33 | ∃ R ρ : ℝ, ∃ N : ℕ, 0 < ρ ∧ 2 * ρ < R ∧ R < δ ∧ |
| 34 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 35 | [T3Space M] [SecondCountableTopology M] [PreconnectedSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 37 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (p : M) |
| 38 | (r S : ℝ), 0 < r → r + 2 * δ ≤ S → |
| 39 | IsCompact (closure (g.ball p S)) → |
| 40 | (∀ x ∈ g.ball p S, D.curvatureTensorNorm x ≤ K) → |
| 41 | (∀ q ∈ g.ball p r, ENNReal.ofReal v ≤ g.volumeMeasure (g.ball q δ)) → |
| 42 | g.volumeMeasure (g.ball p S) ≤ ENNReal.ofReal V → |
| 43 | Nonempty (NormalChartCover (fun _ => g) p (-1) 1 r R ρ (1 / 4) (9 / 4) N) := by |
| 44 | let R := RiemannianMetric.localInjectivityRadius n K δ v |
| 45 | have hR : 0 < R := RiemannianMetric.localInjectivityRadius_pos n K hδ v |
| 46 | have hRδ : R < δ := RiemannianMetric.localInjectivityRadius_lt n K hδ v |
| 47 | obtain ⟨ρ, hρ, hρR, hsmall⟩ := |
| 48 | RiemannianMetric.exists_uniform_radial_comparison_radius hR K |
| 49 | let w := RiemannianMetric.smallerBallVolumeBound n K δ v ((ρ / 4) / 2) |
| 50 | have hw : 0 < w := |
| 51 | RiemannianMetric.smallerBallVolumeBound_pos hn hK hδ hv (by positivity) |
| 52 | refine ⟨R, ρ, ⌈V / w⌉₊ + 1, hρ, hρR, hRδ, ?_⟩ |
| 53 | intro M _ _ _ _ _ _ _ _ g D p r S hr hmargin hcompact hcurv hvol hupper |
| 54 | have hsmallvol (q : M) (hq : q ∈ g.ball p r) : |
| 55 | ENNReal.ofReal w ≤ g.volumeMeasure (g.ball q ((ρ / 4) / 2)) := by |
| 56 | have hsub := riemannian_ball_subset_of_margin g hr.le |
| 57 | (by positivity : 0 ≤ 2 * δ) hq hmargin |
| 58 | exact (g.smallerBall_volume_lower_bound_of_curvatureTensorNorm_le D q |
| 59 | hn hK hδ hv (hcompact.of_isClosed_subset isClosed_closure (closure_mono hsub)) |
| 60 | (fun x hx => hcurv x (hsub hx)) (hvol q hq) (by positivity) |
| 61 | (by linarith : (ρ / 4) / 2 ≤ δ)).2 |
| 62 | have hcover := exists_finset_cover_of_local_volume_bounds g p hr |
| 63 | (by positivity : 0 < ρ / 4) (by linarith : r + (ρ / 4) / 2 ≤ S) |
| 64 | hw hV hupper hsmallvol |
| 65 | exact exists_normalChartCover_of_normal_charts g p hr hρ hρR hcover |
| 66 | (exists_normal_chart_of_local_noncollapse g D p hn hK hδ hv hr hmargin |
| 67 | rfl hρR hsmall hcompact hcurv hvol) |
| 68 | |
| 69 | end PoincareMT.M28 |