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.Topology.Manifold.Poincare.Final.Compatibility.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Cap.SeedCapImageDensity |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Metric.LocalInverseMetricBound |
| 4 | |
| 5 | /-! |
| 6 | # Uniform density on the actual inner target ball |
| 7 | |
| 8 | The inverse-ball theorem captures each target point in the fixed model |
| 9 | buffer before applying the image density. Source: MT Theorem 1.34, |
| 10 | p. 19, and Uniform Seed, pp. 392-394; seed-cap-model-density.md, Stage D. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M47 |
| 21 | |
| 22 | /-- Whole target-ball coverage produces actual preimages in the fixed |
| 23 | model buffer, with one density before the target geometry and radius. -/ |
| 24 | theorem exists_seed_cap_buffered_density (g0 : StandardInitialMetric) |
| 25 | {Rtip Rmax : ℝ} (htip : 0 < Rtip) (hmax : 0 < Rmax) : |
| 26 | ∃ k : ℝ, 0 < k ∧ |
| 27 | ∀ (M : Type u) [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M], |
| 30 | ∀ (g : RiemannianMetric 3 M) (e : OpenPartialHomeomorph StandardCapSpace M), |
| 31 | ContMDiffOn (𝓡 3) (𝓡 3) 1 e e.source → |
| 32 | ContMDiffOn (𝓡 3) (𝓡 3) 1 e.symm e.target → |
| 33 | ∀ A : ℝ, 2 * Rtip + Rmax ≤ A → e.source = g0.metric.ball 0 A → |
| 34 | (∀ x ∈ e.source, ∀ v : TangentSpace (𝓡 3) x, |
| 35 | g.tangentNorm (e x) (mfderiv (𝓡 3) (𝓡 3) e x v) ≤ |
| 36 | 2 * g0.metric.tangentNorm x v) → |
| 37 | (∀ x ∈ e.source, ∀ v : TangentSpace (𝓡 3) x, |
| 38 | g0.metric.tangentNorm x v ≤ |
| 39 | 2 * g.tangentNorm (e x) (mfderiv (𝓡 3) (𝓡 3) e x v)) → |
| 40 | g.ball (e 0) Rtip ⊆ e.target → |
| 41 | ∀ z ∈ g.ball (e 0) Rtip, ∀ r : ℝ, 0 < r → r ≤ Rmax → |
| 42 | ENNReal.ofReal (k * r ^ 3) ≤ calibratedMetricVolume g (g.ball z r) := by |
| 43 | obtain ⟨k, hk, hdensity⟩ := exists_seed_cap_image_density g0 |
| 44 | (by positivity : 0 < 2 * Rtip) hmax |
| 45 | refine ⟨k, hk, ?_⟩ |
| 46 | intro M _ _ _ _ _ _ _ g e hf hi A hA hsource hupper hlower hcover z hz r hr hrmax |
| 47 | have hzero : (0 : StandardCapSpace) ∈ e.source := by |
| 48 | rw [hsource] |
| 49 | change g0.metric.edist 0 0 < ENNReal.ofReal A |
| 50 | rw [M36.metric_edist_self] |
| 51 | exact ENNReal.ofReal_pos.mpr (by linarith only [hA, htip, hmax]) |
| 52 | have hcapture := g0.metric.ball_subset_image_ball_of_forward_tangentNorm_le |
| 53 | g e hf hi hzero (by norm_num : (0 : ℝ) < 2) hcover |
| 54 | (fun x hx _ => hlower x hx) |
| 55 | obtain ⟨x, hx, rfl⟩ := hcapture hz |
| 56 | exact hdensity M g e hf hi A hA hsource hupper hlower x hx.1 r hr hrmax |
| 57 | |
| 58 | end PoincareMT.Proofs.M47 |