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.Volume.Surgery.Measure.Calibration |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Proofs/M10/NullTransport.lean` at |
| 5 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 6 | |
| 7 | # Calibrated null transport from Euclidean coordinates |
| 8 | |
| 9 | The selected-metric Hausdorff measure sends Lipschitz images of coordinate |
| 10 | Lebesgue-null sets to null sets. This preliminary transport requires no |
| 11 | coordinate volume-density formula or measurability of the null set. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open MeasureTheory Set |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal NNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.SurgeryVolume.Measure |
| 22 | |
| 23 | /-- Lebesgue-null model sets are null for the exact Hausdorff measure in the calibration. -/ |
| 24 | theorem euclideanHausdorff_eq_zero_of_volume_eq_zero {n : ℕ} |
| 25 | {A : Set (EuclideanSpace ℝ (Fin n))} (hA : volume A = 0) : |
| 26 | Measure.hausdorffMeasure (n : ℝ) A = 0 := by |
| 27 | have h := congrArg (fun μ : Measure (EuclideanSpace ℝ (Fin n)) ↦ μ A) |
| 28 | (euclideanVolumeCalibration_smul_hausdorff n) |
| 29 | simp only [Measure.smul_apply, smul_eq_mul, hA] at h |
| 30 | exact (mul_eq_zero.mp h).resolve_left (euclideanVolumeCalibration_pos n).ne' |
| 31 | |
| 32 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 34 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 35 | |
| 36 | set_option backward.isDefEq.respectTransparency false in |
| 37 | /-- A Lipschitz image of any coordinate null set is null for the selected calibrated metric. -/ |
| 38 | theorem calibratedMetricVolume_image_eq_zero_of_lipschitz |
| 39 | (g : RiemannianMetric n M) {f : EuclideanSpace ℝ (Fin n) → M} |
| 40 | {S A : Set (EuclideanSpace ℝ (Fin n))} {C : ℝ≥0} |
| 41 | (hAS : A ⊆ S) (hA : volume A = 0) |
| 42 | (hf : |
| 43 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 44 | ⟨g.toRiemannianMetric⟩ |
| 45 | letI : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 46 | (TangentSpace (𝓡 n) : M → Type _) := |
| 47 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 48 | letI : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 49 | LipschitzOnWith C f S) : |
| 50 | calibratedMetricVolume g (f '' A) = 0 := by |
| 51 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 52 | ⟨g.toRiemannianMetric⟩ |
| 53 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 54 | (TangentSpace (𝓡 n) : M → Type _) := |
| 55 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 56 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 57 | change LipschitzOnWith C f S at hf |
| 58 | have hH := (hf.mono hAS).hausdorffMeasure_image_le (d := (n : ℝ)) (by positivity) |
| 59 | rw [euclideanHausdorff_eq_zero_of_volume_eq_zero hA, mul_zero] at hH |
| 60 | have hnull : Measure.hausdorffMeasure (n : ℝ) (f '' A) = 0 := bot_unique hH |
| 61 | delta calibratedMetricVolume |
| 62 | simp only [Measure.smul_apply, hnull, smul_zero] |
| 63 | |
| 64 | end PoincareMT.SurgeryVolume.Measure |