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.Surgery.StandardCap.Existence.Geometry.Basic.GeneralizedCylinderVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseSqueeze |
| 3 | |
| 4 | /-! |
| 5 | # Physical source volume and the ninth-power cancellation |
| 6 | |
| 7 | The image-volume adapter keeps the actual generalized cylinder and selected |
| 8 | metric. The separate algebraic identity records exactly the theta^9 factor |
| 9 | before the directed density limit restores the original kappa. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | /-- The actual generalized cylinder volume transfer, with the source-ball |
| 22 | localization and forward metric comparison as explicit inputs. -/ |
| 23 | theorem limitNoncollapse_source_ball_volume_transfer |
| 24 | {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 25 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 26 | (e : GeneralizedFlowCylinder F C origin scale I U) |
| 27 | (hU : IsOpen U) (h0 : 0 ∈ I) (hscale : 0 < scale) |
| 28 | (g : RiemannianMetric 3 C.carrier) (o : C.carrier) |
| 29 | {p : F.point} (hp : e.pointMap 0 h0 o = p) {a : ℝ} |
| 30 | {V : Set C.carrier} (hV : IsOpen V) (hVU : V ⊆ U) |
| 31 | (hAV : g.ball o (2 * a) ⊆ V) |
| 32 | (hlocal : ∀ x ∈ (F.metric p.1).ball p.2 (a / Real.sqrt scale), |
| 33 | ∃ y ∈ g.ball o (2 * a) ∩ U, |
| 34 | e.pointMap 0 h0 y = (⟨p.1, x⟩ : F.point)) |
| 35 | (hbound : ∀ x ∈ V, ∀ v : TangentSpace (𝓡 3) x, |
| 36 | e.pullbackInner 0 h0 x v v ≤ 2 * g.inner x v v) : |
| 37 | calibratedMetricVolume (F.metric p.1) |
| 38 | ((F.metric p.1).ball p.2 (a / Real.sqrt scale)) ≤ |
| 39 | ENNReal.ofReal (2 / Real.sqrt scale) ^ 3 * |
| 40 | calibratedMetricVolume g (g.ball o (2 * a)) := by |
| 41 | exact e.source_ball_volume_le_of_localization hU h0 hscale g o hp hV hVU hAV |
| 42 | hlocal hbound |
| 43 | |
| 44 | /-- The physical contraction and cubic image distortion combine to the exact |
| 45 | theta^9 density, with no sign assumption on kappa or r. -/ |
| 46 | theorem limitNoncollapse_theta_ninth_product {theta kappa r : ℝ} |
| 47 | (htheta : 0 ≤ theta) : |
| 48 | ENNReal.ofReal (theta ^ 3) * |
| 49 | ENNReal.ofReal (kappa * (theta ^ 2 * r) ^ 3) = |
| 50 | ENNReal.ofReal (kappa * theta ^ 9 * r ^ 3) := by |
| 51 | rw [← ENNReal.ofReal_mul (pow_nonneg htheta 3)] |
| 52 | congr 1 |
| 53 | ring |
| 54 | |
| 55 | /-- Once every strict contraction has the theta^9 lower bound, the exact |
| 56 | uncontracted density follows from the existing directed squeeze. -/ |
| 57 | theorem limitNoncollapse_exact_density_of_theta_bounds |
| 58 | {kappa r : ℝ} {V : ℝ≥0∞} |
| 59 | (hvolume : ∀ theta ∈ Ioo (0 : ℝ) 1, |
| 60 | ENNReal.ofReal (kappa * theta ^ 9 * r ^ 3) ≤ V) : |
| 61 | ENNReal.ofReal (kappa * r ^ 3) ≤ V := |
| 62 | limitNoncollapse_theta_ninth_squeeze hvolume |
| 63 | |
| 64 | end PoincareMT.M47 |