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.SeedCapModelDensity |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.CanonicalGeometry.CapBallVolumeImage |
| 4 | |
| 5 | /-! |
| 6 | # Radius-uniform density through the actual buffered cap chart |
| 7 | |
| 8 | The source ball has a fixed spatial buffer. Both actual tangent |
| 9 | comparisons transfer its calibrated measure with the exact cubic loss. |
| 10 | Source: MT Theorem 1.34, p. 19, and Uniform Seed, pp. 392-394; |
| 11 | derivations/seed-cap-model-density.md, Stage B. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M47 |
| 22 | |
| 23 | /-- A buffered factor-two comparison with the fixed standard metric |
| 24 | gives one density before the target metric, chart, center and radius. -/ |
| 25 | theorem exists_seed_cap_image_density (g0 : StandardInitialMetric) |
| 26 | {A0 Rmax : ℝ} (hA0 : 0 < A0) (hRmax : 0 < Rmax) : |
| 27 | ∃ k : ℝ, 0 < k ∧ |
| 28 | ∀ (M : Type u) [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M], |
| 31 | ∀ (g : RiemannianMetric 3 M) (e : OpenPartialHomeomorph StandardCapSpace M), |
| 32 | ContMDiffOn (𝓡 3) (𝓡 3) 1 e e.source → |
| 33 | ContMDiffOn (𝓡 3) (𝓡 3) 1 e.symm e.target → |
| 34 | ∀ A : ℝ, A0 + Rmax ≤ A → e.source = g0.metric.ball 0 A → |
| 35 | (∀ x ∈ e.source, ∀ v : TangentSpace (𝓡 3) x, |
| 36 | g.tangentNorm (e x) (mfderiv (𝓡 3) (𝓡 3) e x v) ≤ |
| 37 | 2 * g0.metric.tangentNorm x v) → |
| 38 | (∀ x ∈ e.source, ∀ v : TangentSpace (𝓡 3) x, |
| 39 | g0.metric.tangentNorm x v ≤ |
| 40 | 2 * g.tangentNorm (e x) (mfderiv (𝓡 3) (𝓡 3) e x v)) → |
| 41 | ∀ x ∈ g0.metric.ball 0 A0, ∀ r : ℝ, 0 < r → r ≤ Rmax → |
| 42 | ENNReal.ofReal (k * r ^ 3) ≤ calibratedMetricVolume g (g.ball (e x) r) := by |
| 43 | obtain ⟨k0, hk0, hmodel⟩ := exists_seed_cap_model_density g0 hA0 hRmax |
| 44 | refine ⟨k0 / 64, by positivity, ?_⟩ |
| 45 | intro M _ _ _ _ _ _ _ g e hf hi A hA hsource hupper hlower x hx r hr hrmax |
| 46 | have hball : g0.metric.ball x (r / 2) ⊆ e.source := by |
| 47 | rw [hsource] |
| 48 | intro y hy |
| 49 | calc |
| 50 | g0.metric.edist 0 y ≤ g0.metric.edist 0 x + g0.metric.edist x y := |
| 51 | M36.metric_edist_triangle g0.metric 0 x y |
| 52 | _ < ENNReal.ofReal A0 + ENNReal.ofReal (r / 2) := ENNReal.add_lt_add hx hy |
| 53 | _ = ENNReal.ofReal (A0 + r / 2) := (ENNReal.ofReal_add hA0.le (by positivity)).symm |
| 54 | _ ≤ ENNReal.ofReal A := ENNReal.ofReal_le_ofReal (by linarith only [hA, hrmax, hr]) |
| 55 | have hvol := M34.calibrated_ball_volume_le_mul_of_tangent_bounds g0.metric g e hf hi |
| 56 | (by norm_num : (0 : ℝ) < 2) (by norm_num : (0 : ℝ) < 2) |
| 57 | hupper hlower hball (by linarith : 2 * (r / 2) ≤ r) |
| 58 | have hseed := hmodel x hx (r / 2) (half_pos hr) (by linarith only [hr, hrmax]) |
| 59 | have h8 : ENNReal.ofReal (2 : ℝ) ^ 3 = 8 := by norm_num |
| 60 | rw [h8] at hvol |
| 61 | apply (ENNReal.mul_le_mul_iff_right (a := (8 : ℝ≥0∞)) |
| 62 | (by norm_num) (by norm_num)).mp |
| 63 | have h8real : ENNReal.ofReal (8 : ℝ) = 8 := by norm_num |
| 64 | rw [← h8real, ← ENNReal.ofReal_mul (by norm_num : (0 : ℝ) ≤ 8), h8real] |
| 65 | have hcalc : 8 * (k0 / 64 * r ^ 3) = k0 * (r / 2) ^ 3 := by ring |
| 66 | rw [hcalc] |
| 67 | exact hseed.trans hvol |
| 68 | |
| 69 | end PoincareMT.Proofs.M47 |