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 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Analysis.FatouSum |
| 3 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Topology.PartialChartMeasurable |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Proofs/M49/CalibratedLimitVolume.lean` at |
| 7 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 8 | |
| 9 | # Calibrated volume under convergence of actual chart densities |
| 10 | |
| 11 | Morgan-Tian Theorem 11.19(1), p. 279, and Lemma 17.12, p. 410. |
| 12 | Fatou's lemma and a countable disjoint chart refinement compare terminal |
| 13 | volume with the lower limit of the preceding volumes. See stage 7 of |
| 14 | the task derivations for the raw event application. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | namespace PoincareMT.SurgeryVolume |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} {N : Type v} {ι : Type w} |
| 27 | [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 28 | [IsManifold (𝓡 n) ∞ M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 29 | [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 30 | [IsManifold (𝓡 n) ∞ N] [T3Space N] [MeasurableSpace N] [BorelSpace N] |
| 31 | {l : Filter ι} [IsCountablyGenerated l] [NeBot l] |
| 32 | |
| 33 | /-- Pointwise convergence of actual coordinate densities gives the local |
| 34 | volume inequality of MT Theorem 11.19(1), p. 279, used in Lemma 17.12, p. 410. -/ |
| 35 | theorem calibratedVolume_chart_le_liminf |
| 36 | (g : ι → RiemannianMetric n M) (gT : RiemannianMetric n N) |
| 37 | (e0 : OpenPartialHomeomorph (EuclideanSpace ℝ (Fin n)) M) |
| 38 | (e1 : OpenPartialHomeomorph (EuclideanSpace ℝ (Fin n)) N) |
| 39 | (h0 : ContMDiffOn (𝓡 n) (𝓡 n) 1 e0 e0.source) |
| 40 | (h0i : ContMDiffOn (𝓡 n) (𝓡 n) 1 e0.symm e0.target) |
| 41 | (h1 : ContMDiffOn (𝓡 n) (𝓡 n) 1 e1 e1.source) |
| 42 | (h1i : ContMDiffOn (𝓡 n) (𝓡 n) 1 e1.symm e1.target) |
| 43 | {C : Set (EuclideanSpace ℝ (Fin n))} (hC : MeasurableSet C) |
| 44 | (hC0 : C ⊆ e0.source) (hC1 : C ⊆ e1.source) |
| 45 | (hlim : ∀ x ∈ C, Tendsto (fun t => SurgeryVolume.Measure.pullbackJacobian (g t) e0 x) l |
| 46 | (𝓝 (SurgeryVolume.Measure.pullbackJacobian gT e1 x))) : |
| 47 | calibratedMetricVolume gT (e1 '' C) ≤ |
| 48 | liminf (fun t => calibratedMetricVolume (g t) (e0 '' C)) l := by |
| 49 | have hm (t : ι) : AEMeasurable |
| 50 | (fun x => ENNReal.ofReal (SurgeryVolume.Measure.pullbackJacobian (g t) e0 x)) (volume.restrict C) := by |
| 51 | apply ContinuousOn.aemeasurable _ hC |
| 52 | intro x hx |
| 53 | exact (ENNReal.continuous_ofReal.continuousAt.comp |
| 54 | (SurgeryVolume.Measure.pullbackJacobian_continuousAt (g t) |
| 55 | (h0.contMDiffAt (e0.open_source.mem_nhds (hC0 hx))))).continuousWithinAt |
| 56 | rw [SurgeryVolume.Measure.calibratedMetricVolume_image_eq_lintegral gT e1 h1 h1i hC hC1] |
| 57 | calc |
| 58 | _ = ∫⁻ x in C, liminf (fun t => ENNReal.ofReal (SurgeryVolume.Measure.pullbackJacobian (g t) e0 x)) l := by |
| 59 | apply lintegral_congr_ae |
| 60 | filter_upwards [ae_restrict_mem hC] with x hx |
| 61 | exact (ENNReal.tendsto_ofReal (hlim x hx)).liminf_eq.symm |
| 62 | _ ≤ liminf (fun t => ∫⁻ x in C, |
| 63 | ENNReal.ofReal (SurgeryVolume.Measure.pullbackJacobian (g t) e0 x)) l := lintegral_liminf_le' hm |
| 64 | _ = _ := by |
| 65 | congr 1 |
| 66 | funext t |
| 67 | exact (SurgeryVolume.Measure.calibratedMetricVolume_image_eq_lintegral (g t) e0 h0 h0i hC hC0).symm |
| 68 | |
| 69 | /-- Disjoint corresponding chart pieces give the global regular-limit |
| 70 | volume inequality of MT Theorem 11.19(1), p. 279, and Lemma 17.12, p. 410. -/ |
| 71 | theorem calibratedVolume_le_liminf_of_chart_cover |
| 72 | (g : ι → RiemannianMetric n M) (gT : RiemannianMetric n N) |
| 73 | (e0 : ℕ → OpenPartialHomeomorph (EuclideanSpace ℝ (Fin n)) M) |
| 74 | (e1 : ℕ → OpenPartialHomeomorph (EuclideanSpace ℝ (Fin n)) N) |
| 75 | (h0 : ∀ k, ContMDiffOn (𝓡 n) (𝓡 n) 1 (e0 k) (e0 k).source) |
| 76 | (h0i : ∀ k, ContMDiffOn (𝓡 n) (𝓡 n) 1 (e0 k).symm (e0 k).target) |
| 77 | (h1 : ∀ k, ContMDiffOn (𝓡 n) (𝓡 n) 1 (e1 k) (e1 k).source) |
| 78 | (h1i : ∀ k, ContMDiffOn (𝓡 n) (𝓡 n) 1 (e1 k).symm (e1 k).target) |
| 79 | (C : ℕ → Set (EuclideanSpace ℝ (Fin n))) (hC : ∀ k, MeasurableSet (C k)) |
| 80 | (hC0 : ∀ k, C k ⊆ (e0 k).source) (hC1 : ∀ k, C k ⊆ (e1 k).source) |
| 81 | (hdis0 : Pairwise (fun i j => Disjoint (e0 i '' C i) (e0 j '' C j))) |
| 82 | (hdis1 : Pairwise (fun i j => Disjoint (e1 i '' C i) (e1 j '' C j))) |
| 83 | (hcover : ⋃ k, e1 k '' C k = univ) |
| 84 | (hlim : ∀ k, ∀ x ∈ C k, Tendsto (fun t => SurgeryVolume.Measure.pullbackJacobian (g t) (e0 k) x) l |
| 85 | (𝓝 (SurgeryVolume.Measure.pullbackJacobian gT (e1 k) x))) : |
| 86 | calibratedMetricVolume gT univ ≤ liminf (fun t => calibratedMetricVolume (g t) univ) l := by |
| 87 | have hm0 (k : ℕ) := (e0 k).measurableSet_image_of_subset_source (hC k) (hC0 k) |
| 88 | have hm1 (k : ℕ) := (e1 k).measurableSet_image_of_subset_source (hC k) (hC1 k) |
| 89 | calc |
| 90 | _ = ∑' k, calibratedMetricVolume gT (e1 k '' C k) := by |
| 91 | rw [← hcover, measure_iUnion hdis1 hm1] |
| 92 | _ ≤ ∑' k, liminf (fun t => calibratedMetricVolume (g t) (e0 k '' C k)) l := |
| 93 | ENNReal.tsum_le_tsum fun k => calibratedVolume_chart_le_liminf g gT (e0 k) (e1 k) |
| 94 | (h0 k) (h0i k) (h1 k) (h1i k) (hC k) (hC0 k) (hC1 k) (hlim k) |
| 95 | _ ≤ liminf (fun t => ∑' k, calibratedMetricVolume (g t) (e0 k '' C k)) l := |
| 96 | ENNReal.tsum_liminf_le _ |
| 97 | _ ≤ _ := by |
| 98 | exact Filter.liminf_le_liminf (Eventually.of_forall fun t => tsum_measure_le_measure_univ |
| 99 | (fun k => (hm0 k).nullMeasurableSet) (fun _ _ h => (hdis0 h).aedisjoint)) |
| 100 | |
| 101 | end PoincareMT.SurgeryVolume |