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.ReducedGeometry.ReducedVolume.Measure.Transport.CalibratedTransport |
| 2 | import Mathlib.MeasureTheory.Measure.OpenPos |
| 3 | |
| 4 | /-! |
| 5 | # Positivity of the actual calibrated volume |
| 6 | |
| 7 | A smooth inverse chart transports the positive Gram density. Its source |
| 8 | is a nonempty Euclidean open set, also in dimension zero, so the actual |
| 9 | calibrated volume of the whole manifold is positive. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 24 | |
| 25 | /-- Any chosen point gives positive actual calibrated volume, including in dimension zero. -/ |
| 26 | theorem calibratedMetricVolume_univ_pos (g : RiemannianMetric n M) (p : M) : |
| 27 | 0 < calibratedMetricVolume g univ := by |
| 28 | let e := (chartAt (EuclideanSpace ℝ (Fin n)) p).symm |
| 29 | have he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source := contMDiffOn_chart_symm |
| 30 | have hei : ContMDiffOn (𝓡 n) (𝓡 n) 1 e.symm e.target := contMDiffOn_chart |
| 31 | have heD : e.MDifferentiable (𝓡 n) (𝓡 n) := |
| 32 | ⟨he.mdifferentiableOn one_ne_zero, hei.mdifferentiableOn one_ne_zero⟩ |
| 33 | have hsource : e.source.Nonempty := |
| 34 | ⟨chartAt (EuclideanSpace ℝ (Fin n)) p p, |
| 35 | (chartAt (EuclideanSpace ℝ (Fin n)) p).map_source (mem_chart_source _ _)⟩ |
| 36 | have hj : AEMeasurable (fun y ↦ ENNReal.ofReal (pullbackJacobian g e y)) |
| 37 | (volume.restrict e.source) := |
| 38 | (ENNReal.continuous_ofReal.comp_continuousOn (fun y hy ↦ |
| 39 | (pullbackJacobian_continuousAt g (he.contMDiffAt |
| 40 | (e.open_source.mem_nhds hy))).continuousWithinAt)).aemeasurable |
| 41 | e.open_source.measurableSet |
| 42 | have hmass : 0 < ∫⁻ y in e.source, ENNReal.ofReal (pullbackJacobian g e y) := by |
| 43 | apply bot_lt_iff_ne_bot.mpr |
| 44 | intro hz |
| 45 | obtain ⟨y, hy, hzero⟩ := Measure.exists_mem_of_measure_ne_zero_of_ae |
| 46 | (e.open_source.measure_ne_zero volume hsource) ((lintegral_eq_zero_iff' hj).mp hz) |
| 47 | have hpos := ENNReal.ofReal_pos.mpr |
| 48 | (pullbackJacobian_pos g (heD.mfderiv_bijective hy).injective) |
| 49 | exact hpos.ne' hzero |
| 50 | have himage := calibratedMetricVolume_image_eq_lintegral g e he hei |
| 51 | e.open_source.measurableSet (Subset.refl e.source) |
| 52 | rw [← himage] at hmass |
| 53 | exact hmass.trans_le (measure_mono (subset_univ _)) |
| 54 | |
| 55 | end PoincareMT.ReducedVolume |