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.AncientKappa.Noncollapse.Universal.ModelGeometry.Homogeneity |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Transport.Canonical |
| 3 | import Mathlib.Geometry.Manifold.LocalDiffeomorph |
| 4 | |
| 5 | /-! # The normalized volume of every sphere-line product model |
| 6 | |
| 7 | The canonical sphere coordinates in the frozen model identify its time-minus-one |
| 8 | metric with the fixed round cylinder, independently of the chosen carrier. |
| 9 | Reference: Morgan--Tian, Theorem 9.42, pp. 206--208; Proposition 9.58, pp. 220--221. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | local instance : ChartedSpace RoundCylinderCoordinates RoundCylinderSpace := |
| 24 | prodChartedSpace (EuclideanSpace ℝ (Fin 2)) UnitTwoSphere ℝ ℝ |
| 25 | local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) RoundCylinderSpace := |
| 26 | RiemannianMetric.lineProductChartedSpace (n := 2) (M := UnitTwoSphere) |
| 27 | local instance : IsManifold (𝓡 3) ∞ RoundCylinderSpace := |
| 28 | RiemannianMetric.lineProductIsManifold (n := 2) (M := UnitTwoSphere) |
| 29 | |
| 30 | namespace SphereLineProductData |
| 31 | |
| 32 | variable {P : Type u} [TopologicalSpace P] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) P] [IsManifold (𝓡 3) ∞ P] |
| 34 | (B : SphereLineProductData (P := P)) |
| 35 | |
| 36 | local instance : TopologicalSpace B.surface := B.surface_topology |
| 37 | local instance : ChartedSpace (EuclideanSpace ℝ (Fin 2)) B.surface := B.surface_charted |
| 38 | local instance : IsManifold (𝓡 2) ∞ B.surface := B.surface_manifold |
| 39 | local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) (B.surface × ℝ) := B.product_charted |
| 40 | local instance : IsManifold (𝓡 3) ∞ (B.surface × ℝ) := B.product_manifold |
| 41 | |
| 42 | def normalizedCylinderDiffeomorph : |
| 43 | Diffeomorph (𝓡 3) (𝓡 3) RoundCylinderSpace (B.surface × ℝ) ∞ := |
| 44 | roundCylinderModelDiffeomorph.symm.trans B.canonicalProductDiffeomorph |
| 45 | |
| 46 | theorem normalizedCylinderDiffeomorph_inner (z : RoundCylinderSpace) |
| 47 | (v w : TangentSpace (𝓡 3) z) : |
| 48 | (B.product_metric (-1)).inner (B.normalizedCylinderDiffeomorph z) |
| 49 | (mfderiv (𝓡 3) (𝓡 3) B.normalizedCylinderDiffeomorph z v) |
| 50 | (mfderiv (𝓡 3) (𝓡 3) B.normalizedCylinderDiffeomorph z w) = |
| 51 | roundCylinderMetric.inner z v w := by |
| 52 | let c := roundCylinderModelDiffeomorph |
| 53 | let e := B.normalizedCylinderDiffeomorph |
| 54 | let d := B.canonicalProductDiffeomorph |
| 55 | obtain ⟨z, rfl⟩ := c.surjective z |
| 56 | have hsurj : Function.Surjective |
| 57 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) c z) := |
| 58 | (c.mfderivToContinuousLinearEquiv (by simp) z).surjective |
| 59 | obtain ⟨v, rfl⟩ := hsurj v |
| 60 | obtain ⟨w, rfl⟩ := hsurj w |
| 61 | have heq : e ∘ c = d := by |
| 62 | funext q |
| 63 | exact congrArg d (c.symm_apply_apply q) |
| 64 | have hd (u : RoundCylinderTangent z) : |
| 65 | mfderiv (𝓡 3) (𝓡 3) e (c z) |
| 66 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) c z u) = |
| 67 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) d z u := by |
| 68 | have h := mfderiv_comp z (e.contMDiff.mdifferentiable (by simp) _) |
| 69 | (c.contMDiff.mdifferentiable (by simp) _) |
| 70 | rw [heq] at h |
| 71 | exact (congrArg (fun f => f u) h).symm |
| 72 | change (B.product_metric (-1)).inner (e (c z)) |
| 73 | (mfderiv (𝓡 3) (𝓡 3) e (c z) |
| 74 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) c z v)) |
| 75 | (mfderiv (𝓡 3) (𝓡 3) e (c z) |
| 76 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) c z w)) = _ |
| 77 | erw [hd v, hd w] |
| 78 | rw [show e (c z) = d z from congrFun heq z] |
| 79 | rw [B.canonicalProductDiffeomorph_inner (-1) (by norm_num)] |
| 80 | convert (roundCylinderMetric_inner z v w).symm using 1 <;> |
| 81 | norm_num [EvolvingRoundCylinderMetric] <;> rfl |
| 82 | |
| 83 | variable [MeasurableSpace (B.surface × ℝ)] [BorelSpace (B.surface × ℝ)] |
| 84 | [T3Space (B.surface × ℝ)] |
| 85 | |
| 86 | theorem normalized_ball_volume (p : B.surface × ℝ) : |
| 87 | (B.product_metric (-1)).volumeMeasure ((B.product_metric (-1)).ball p (1 / 4)) = |
| 88 | ENNReal.ofReal universalNoncollapseModelVolume := by |
| 89 | let e := B.normalizedCylinderDiffeomorph |
| 90 | have hv := RiemannianMetric.volumeMeasure_ball_diffeomorph roundCylinderMetric |
| 91 | (B.product_metric (-1)) e |
| 92 | (fun z v w => (B.normalizedCylinderDiffeomorph_inner z v w).symm) (e.symm p) (1 / 4) |
| 93 | rw [e.apply_symm_apply] at hv |
| 94 | rw [← hv, roundCylinder_ball_volume_eq (e.symm p) universalNoncollapseModelPoint] |
| 95 | exact (ENNReal.ofReal_toReal |
| 96 | (roundCylinderMetric.volumeMeasure_ball_lt_top roundCylinderMetric_complete |
| 97 | universalNoncollapseModelPoint (1 / 4)).ne).symm |
| 98 | |
| 99 | end SphereLineProductData |
| 100 | end PoincareMT |