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.ReducedGeometry.Measure.Transport.DisjointImages |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Density.SourceGaussian |
| 3 | |
| 4 | /-! |
| 5 | # Bounds for a supplied analytic reduced-volume density |
| 6 | |
| 7 | Nonnegativity, image integrability and Gaussian domination are fields |
| 8 | of the same analytic witness. They give subset monotonicity and the |
| 9 | Euclidean mass bound without assumptions away from its stable image. |
| 10 | Morgan-Tian Theorem 6.80 and Corollary 6.82, pp. 144-147. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 24 | |
| 25 | /-- Reduced volume on a stable source subset is nonnegative, |
| 26 | Definition 6.70, p. 140. -/ |
| 27 | theorem analyticCarrier_nonneg (H : M14StableSet G T τ x E) |
| 28 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 29 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hm : MeasurableSet W) : |
| 30 | 0 ≤ M14ReducedVolumeOnAnalyticCarrier A W := by |
| 31 | apply setIntegral_nonneg (stable_slice_image_measurable H hW hm) |
| 32 | exact fun q hq => A.density_nonnegative q (image_mono hW hq) |
| 33 | |
| 34 | /-- Integrable nonnegative analytic density is monotone under |
| 35 | measurable source inclusion, Corollary 6.82, pp. 146-147. -/ |
| 36 | theorem analyticCarrier_mono (H : M14StableSet G T τ x E) |
| 37 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 38 | {W V : Set (G.Horizontal x)} (hWV : W ⊆ V) (hV : V ⊆ H.carrier) |
| 39 | (hm : MeasurableSet V) : |
| 40 | M14ReducedVolumeOnAnalyticCarrier A W ≤ M14ReducedVolumeOnAnalyticCarrier A V := by |
| 41 | apply setIntegral_mono_set (A.density_integrable.mono_set (image_mono hV)) |
| 42 | · filter_upwards [ae_restrict_mem (stable_slice_image_measurable H hV hm)] with q hq |
| 43 | exact A.density_nonnegative q (image_mono hV hq) |
| 44 | · exact Eventually.of_forall (fun q hq => image_mono hWV hq) |
| 45 | |
| 46 | /-- The full analytic reduced volume is bounded by the exact source |
| 47 | Gaussian mass, Corollary 6.82, pp. 146-147. -/ |
| 48 | theorem analyticCarrier_le_euclidean (H : M14StableSet G T τ x E) |
| 49 | (A : M14ReducedVolumeAnalyticData G T τ x E H) : |
| 50 | M14ReducedVolumeOnAnalyticCarrier A H.carrier ≤ euclideanReducedVolume n := by |
| 51 | rw [M14ReducedVolumeOnAnalyticCarrier, ← A.density_change_of_variables_on_image, |
| 52 | ← measureData_integral_sourceGaussian A.measure_data] |
| 53 | have hgauss := measureData_sourceGaussian_integrable A.measure_data |
| 54 | refine (setIntegral_mono_on A.density_integrable_on_source hgauss.integrableOn |
| 55 | A.measure_data.carrier_measurable ?_).trans ?_ |
| 56 | · intro Z hZ |
| 57 | exact (A.gaussian_bound Z hZ).trans_eq (A.initial_density_eq Z) |
| 58 | · apply setIntegral_le_integral hgauss |
| 59 | exact Eventually.of_forall (fun Z => mul_nonneg |
| 60 | (Real.rpow_nonneg (by norm_num) _) (Real.exp_pos _).le) |
| 61 | |
| 62 | end PoincareMT.M14 |