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.Generalized.Noncollapse.Combined |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Prop8_2_ImageRestriction.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Restricting M14 measure transport to the small and large parts |
| 10 | |
| 11 | Morgan-Tian, Proposition 8.2, pp. 170-171, and Lemma 8.9, pp. 175-176. |
| 12 | The density is extended measurably only to apply the supplied global test |
| 13 | function formula. All conclusions concern the original density on the |
| 14 | same stable image. See |
| 15 | `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-image-restriction.md`. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open MeasureTheory |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.Generalized.Noncollapse |
| 26 | |
| 27 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 28 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 29 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 30 | {H : M14StableSet G T τ x E} |
| 31 | |
| 32 | /-- Measurable subsets of the stable carrier have measurable images under |
| 33 | the same endpoint map. Source: the decomposition in Proposition 8.2, p. 171. -/ |
| 34 | theorem stable_image_measurable (S : M14ReducedVolumeSourceCoverageData G) |
| 35 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 36 | {W : Set (G.Horizontal x)} (hW : MeasurableSet W) (hWH : W ⊆ H.carrier) : |
| 37 | MeasurableSet (H.endpoint_slice_map '' W) := |
| 38 | ((S.disjoint_image_additivity T τ x E H A).2 W ∅ hWH |
| 39 | (Set.empty_subset _) hW MeasurableSet.empty (by simp)).1 |
| 40 | |
| 41 | /-- Change of variables for any measurable part of the fixed stable |
| 42 | carrier, as used in Proposition 8.2 and Lemma 8.9, pp. 171 and 175. -/ |
| 43 | theorem reducedVolumeOn_subset_eq_source |
| 44 | (S : M14ReducedVolumeSourceCoverageData G) |
| 45 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 46 | {W : Set (G.Horizontal x)} (hW : MeasurableSet W) (hWH : W ⊆ H.carrier) : |
| 47 | M14ReducedVolumeOnAnalyticCarrier A W = |
| 48 | ∫ Z in W, A.density (H.endpoint_slice_map Z) * A.measure_data.jacobian Z |
| 49 | ∂A.measure_data.sourceMeasure := by |
| 50 | classical |
| 51 | have himage := stable_image_measurable S A hW hWH |
| 52 | have hinj := (S.disjoint_image_additivity T τ x E H A).1 |
| 53 | have hemb := MeasurableEmbedding.subtype_coe A.measure_data.image_measurable |
| 54 | obtain ⟨ρ, hρ, hρeq⟩ := |
| 55 | hemb.exists_measurable_extend A.density_measurable_on_image (fun _ => inferInstance) |
| 56 | have hρon (q : (G.slices (T - τ)).Point) |
| 57 | (hq : q ∈ H.endpoint_slice_map '' H.carrier) : ρ q = A.density q := |
| 58 | congrFun hρeq ⟨q, hq⟩ |
| 59 | have hmem (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) : |
| 60 | H.endpoint_slice_map Z ∈ H.endpoint_slice_map '' W ↔ Z ∈ W := by |
| 61 | constructor |
| 62 | · rintro ⟨Y, hY, hYZ⟩ |
| 63 | exact (hinj (hWH hY) hZ hYZ) ▸ hY |
| 64 | · intro hZ' |
| 65 | exact ⟨Z, hZ', rfl⟩ |
| 66 | have hcv := (A.measure_data.change_of_variables |
| 67 | ((H.endpoint_slice_map '' W).indicator ρ) (hρ.indicator himage)).2 |
| 68 | calc |
| 69 | M14ReducedVolumeOnAnalyticCarrier A W = |
| 70 | ∫ q in H.endpoint_slice_map '' W, ρ q |
| 71 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints := by |
| 72 | apply setIntegral_congr_fun himage |
| 73 | intro q hq |
| 74 | exact (hρon q (Set.image_mono hWH hq)).symm |
| 75 | _ = ∫ q in H.endpoint_slice_map '' H.carrier, |
| 76 | (H.endpoint_slice_map '' W).indicator ρ q |
| 77 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints := by |
| 78 | rw [setIntegral_indicator himage, |
| 79 | Set.inter_eq_right.mpr (Set.image_mono hWH)] |
| 80 | _ = ∫ Z in H.carrier, |
| 81 | (H.endpoint_slice_map '' W).indicator ρ (H.endpoint_slice_map Z) * |
| 82 | A.measure_data.jacobian Z ∂A.measure_data.sourceMeasure := hcv.symm |
| 83 | _ = ∫ Z in H.carrier, |
| 84 | W.indicator (fun Z => A.density (H.endpoint_slice_map Z) * |
| 85 | A.measure_data.jacobian Z) Z ∂A.measure_data.sourceMeasure := by |
| 86 | apply setIntegral_congr_fun A.measure_data.carrier_measurable |
| 87 | intro Z hZ |
| 88 | dsimp only |
| 89 | by_cases hZW : Z ∈ W |
| 90 | · rw [Set.indicator_of_mem ((hmem Z hZ).2 hZW), Set.indicator_of_mem hZW, |
| 91 | hρon _ ⟨Z, hZ, rfl⟩] |
| 92 | · rw [Set.indicator_of_notMem (mt (hmem Z hZ).1 hZW), |
| 93 | Set.indicator_of_notMem hZW, zero_mul] |
| 94 | _ = ∫ Z in W, |
| 95 | A.density (H.endpoint_slice_map Z) * A.measure_data.jacobian Z |
| 96 | ∂A.measure_data.sourceMeasure := by |
| 97 | rw [setIntegral_indicator hW, Set.inter_eq_right.mpr hWH] |
| 98 | |
| 99 | /-- The pointwise M14 Gaussian bound controls the reduced volume of each |
| 100 | measurable part. Source: Lemma 8.9, p. 175. The remaining integrability |
| 101 | premise is supplied by orthonormal-coordinate Gaussian integration. -/ |
| 102 | theorem reducedVolumeOn_le_initial_density |
| 103 | (S : M14ReducedVolumeSourceCoverageData G) |
| 104 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 105 | {W : Set (G.Horizontal x)} (hW : MeasurableSet W) (hWH : W ⊆ H.carrier) |
| 106 | (hinitial : IntegrableOn A.initial_density W A.measure_data.sourceMeasure) : |
| 107 | M14ReducedVolumeOnAnalyticCarrier A W ≤ |
| 108 | ∫ Z in W, A.initial_density Z ∂A.measure_data.sourceMeasure := by |
| 109 | rw [reducedVolumeOn_subset_eq_source S A hW hWH] |
| 110 | exact setIntegral_mono_on (A.density_integrable_on_source.mono_set hWH) |
| 111 | hinitial hW (fun Z hZ => A.gaussian_bound Z (hWH hZ)) |
| 112 | |
| 113 | end PoincareMT.Generalized.Noncollapse |