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.SourceNames |
| 2 | import PoincareLib.Geometry.Riemannian.Homothety.Volume |
| 3 | |
| 4 | /-! |
| 5 | # Physical terminal balls under the single blowup normalization |
| 6 | |
| 7 | MT Definition 3.40, p. 61, and Theorem 1.36, p. 20. The metric is |
| 8 | multiplied by the given Q once; radii and calibrated volumes retain |
| 9 | their square-root and cubic factors on the same actual carrier. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 24 | |
| 25 | /-- The normalized ball is the literal physical ball with divided radius; |
| 26 | MT Definition 3.40. -/ |
| 27 | theorem terminalSourceNormal_scaled_ball (g : RiemannianMetric 3 M) |
| 28 | {Q : ℝ} (hQ : 0 < Q) (p : M) (r : ℝ) : |
| 29 | RiemannianMetric.ball (M13.scaleSmoothMetric g Q hQ) p r = |
| 30 | g.ball p (r / Real.sqrt Q) := by |
| 31 | let f := Diffeomorph.refl (𝓡 3) M ∞ |
| 32 | have hf : MetricHomothety g (M13.scaleSmoothMetric g Q hQ) f Q := by |
| 33 | intro x v w |
| 34 | simp only [f, Diffeomorph.coe_refl, mfderiv_id] |
| 35 | rfl |
| 36 | have h := M13.homothety_ball_image g (M13.scaleSmoothMetric g Q hQ) |
| 37 | f Q hQ hf p (r / Real.sqrt Q) |
| 38 | have hs : Real.sqrt Q * (r / Real.sqrt Q) = r := by |
| 39 | field_simp [(Real.sqrt_pos.mpr hQ).ne'] |
| 40 | simpa only [f, Diffeomorph.coe_refl, id_eq, image_id', hs] using h.symm |
| 41 | |
| 42 | variable [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 43 | |
| 44 | /-- Exact calibrated volume on the actual physical set after normalization; |
| 45 | MT Definition 3.40. -/ |
| 46 | theorem terminalSourceNormal_scaled_volume (g : RiemannianMetric 3 M) |
| 47 | {Q : ℝ} (hQ : 0 < Q) (A : Set M) : |
| 48 | calibratedMetricVolume (M13.scaleSmoothMetric g Q hQ) A = |
| 49 | ENNReal.ofReal (Real.sqrt Q ^ 3) * calibratedMetricVolume g A := by |
| 50 | let f := Diffeomorph.refl (𝓡 3) M ∞ |
| 51 | have hf : MetricHomothety g (M13.scaleSmoothMetric g Q hQ) f Q := by |
| 52 | intro x v w |
| 53 | simp only [f, Diffeomorph.coe_refl, mfderiv_id] |
| 54 | rfl |
| 55 | have h := M13.homothety_volume_image g (M13.scaleSmoothMetric g Q hQ) f Q hQ hf A |
| 56 | have hp : Real.rpow Q ((3 : ℝ) / 2) = Real.sqrt Q ^ 3 := by |
| 57 | rw [Real.rpow_eq_pow, Real.rpow_div_two_eq_sqrt (3 : ℝ) hQ.le] |
| 58 | exact_mod_cast Real.rpow_natCast (Real.sqrt Q) 3 |
| 59 | simpa only [f, Diffeomorph.coe_refl, image_id, Nat.cast_ofNat, hp] using h |
| 60 | |
| 61 | /-- A physical volume floor acquires its exact normalized units; |
| 62 | MT Theorem 1.36. No source volume is an input. -/ |
| 63 | theorem terminalSourceNormal_scaled_ball_volume_lower |
| 64 | (g : RiemannianMetric 3 M) {Q v r : ℝ} (hQ : 0 < Q) (p : M) |
| 65 | (hvol : ENNReal.ofReal (v / Real.sqrt Q ^ 3) ≤ |
| 66 | calibratedMetricVolume g (g.ball p (r / Real.sqrt Q))) : |
| 67 | ENNReal.ofReal v ≤ calibratedMetricVolume (M13.scaleSmoothMetric g Q hQ) |
| 68 | (RiemannianMetric.ball (M13.scaleSmoothMetric g Q hQ) p r) := by |
| 69 | rw [terminalSourceNormal_scaled_ball g hQ, terminalSourceNormal_scaled_volume g hQ] |
| 70 | have hc : 0 < Real.sqrt Q ^ 3 := pow_pos (Real.sqrt_pos.mpr hQ) _ |
| 71 | calc |
| 72 | ENNReal.ofReal v = ENNReal.ofReal (Real.sqrt Q ^ 3) * |
| 73 | ENNReal.ofReal (v / Real.sqrt Q ^ 3) := by |
| 74 | rw [← ENNReal.ofReal_mul hc.le] |
| 75 | congr 1 |
| 76 | field_simp [hc.ne'] |
| 77 | _ ≤ _ := mul_le_mul_right hvol _ |
| 78 | |
| 79 | end PoincareMT.M47 |