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.CalibratedTransport |
| 2 | |
| 3 | /-! |
| 4 | Adapted from `PoincareMT/Proofs/M49/CalibratedVolume.lean` at |
| 5 | Mapher revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 6 | |
| 7 | # Finite calibrated volume on compact slices |
| 8 | |
| 9 | Morgan-Tian, Lemma 17.12, p. 410, uses finite volume of the compact |
| 10 | slices. The M10 coordinate formula for the actual calibrated Hausdorff |
| 11 | measure and continuity of its Gram density give local finiteness in every |
| 12 | dimension. See `proof-work/tasks/M49/derivations/01-foundations.md`. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.SurgeryVolume |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 27 | |
| 28 | /-- The calibrated volume used in MT Lemma 17.12, p. 410, is locally finite. -/ |
| 29 | theorem calibratedMetricVolume_isLocallyFinite (g : RiemannianMetric n M) : |
| 30 | IsLocallyFiniteMeasure (calibratedMetricVolume g) := by |
| 31 | constructor |
| 32 | intro p |
| 33 | let e := (chartAt (EuclideanSpace ℝ (Fin n)) p).symm |
| 34 | let x := chartAt (EuclideanSpace ℝ (Fin n)) p p |
| 35 | have hx : x ∈ e.source := (chartAt (EuclideanSpace ℝ (Fin n)) p).map_source |
| 36 | (mem_chart_source _ _) |
| 37 | have he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source := contMDiffOn_chart_symm |
| 38 | have hei : ContMDiffOn (𝓡 n) (𝓡 n) 1 e.symm e.target := contMDiffOn_chart |
| 39 | have hJ := SurgeryVolume.Measure.pullbackJacobian_continuousAt g |
| 40 | (he.contMDiffAt (e.open_source.mem_nhds hx)) |
| 41 | have hbound : ∀ᶠ y in 𝓝 x, |
| 42 | SurgeryVolume.Measure.pullbackJacobian g e y < SurgeryVolume.Measure.pullbackJacobian g e x + 1 := |
| 43 | hJ.eventually (gt_mem_nhds (lt_add_one _)) |
| 44 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp |
| 45 | (inter_mem (e.open_source.mem_nhds hx) hbound) |
| 46 | have hsource : Metric.ball x r ⊆ e.source := fun y hy => (hball hy).1 |
| 47 | have hopen : IsOpen (e '' Metric.ball x r) := |
| 48 | e.isOpen_image_of_subset_source Metric.isOpen_ball hsource |
| 49 | have hp : p ∈ e '' Metric.ball x r := by |
| 50 | refine ⟨x, Metric.mem_ball_self hr, ?_⟩ |
| 51 | exact (chartAt (EuclideanSpace ℝ (Fin n)) p).left_inv (mem_chart_source _ _) |
| 52 | refine ⟨e '' Metric.ball x r, hopen.mem_nhds hp, ?_⟩ |
| 53 | rw [SurgeryVolume.Measure.calibratedMetricVolume_image_eq_lintegral g e he hei |
| 54 | measurableSet_ball hsource] |
| 55 | calc |
| 56 | _ ≤ ∫⁻ _y in Metric.ball x r, |
| 57 | ENNReal.ofReal (SurgeryVolume.Measure.pullbackJacobian g e x + 1) := by |
| 58 | apply lintegral_mono_ae |
| 59 | filter_upwards [ae_restrict_mem measurableSet_ball] with y hy |
| 60 | exact ENNReal.ofReal_le_ofReal (hball hy).2.le |
| 61 | _ < (⊤ : ℝ≥0∞) := by |
| 62 | simp only [lintegral_const, Measure.restrict_apply_univ] |
| 63 | exact ENNReal.mul_lt_top ENNReal.ofReal_lt_top measure_ball_lt_top |
| 64 | |
| 65 | /-- Compact sets have finite actual volume, as used for slices in MT Lemma 17.12, p. 410. -/ |
| 66 | theorem calibratedMetricVolume_lt_top_of_isCompact (g : RiemannianMetric n M) |
| 67 | {K : Set M} (hK : IsCompact K) : calibratedMetricVolume g K < ⊤ := by |
| 68 | let := calibratedMetricVolume_isLocallyFinite g |
| 69 | exact hK.measure_lt_top |
| 70 | |
| 71 | end PoincareMT.SurgeryVolume |