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.Chart.SupportedChartTest |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Integrable measurable pullbacks supported inside one chart |
| 6 | |
| 7 | The inverse chart only needs to be measurable on its open domain. |
| 8 | A compactly supported continuous factor extends the product by zero; |
| 9 | an almost-everywhere bound then gives an explicit integrable majorant. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | |
| 16 | namespace PoincareMT.ReducedVolume |
| 17 | |
| 18 | variable {M E : Type*} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 19 | [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] |
| 20 | {μ : Measure E} [IsFiniteMeasureOnCompacts μ] |
| 21 | |
| 22 | /-- A locally bounded measurable chart pullback is integrable after a compact supported test. -/ |
| 23 | theorem integrable_supported_pullback (e : OpenPartialHomeomorph M E) |
| 24 | {ψ ρ : E → ℝ} {H : M → ℝ} {A : ℝ} (hψ : Continuous ψ) |
| 25 | (hc : HasCompactSupport ψ) (hs : tsupport ψ ⊆ e.target) |
| 26 | (hρ : ContinuousOn ρ e.target) (hH : Measurable H) |
| 27 | (hbound : ∀ᵐ y ∂μ, y ∈ tsupport ψ → |ρ y * H (e.symm y)| ≤ A) : |
| 28 | Integrable (fun y ↦ ψ y * (ρ y * H (e.symm y))) μ := by |
| 29 | let a := fun y ↦ ψ y * (ρ y * H (e.symm y)) |
| 30 | have hzero (y : E) (hy : y ∉ e.target) : a y = 0 := by |
| 31 | have hnot : y ∉ tsupport ψ := fun h ↦ hy (hs h) |
| 32 | simp only [a, image_eq_zero_of_notMem_tsupport hnot, zero_mul] |
| 33 | have hm : AEStronglyMeasurable a (μ.restrict e.target) := |
| 34 | (hψ.measurable.aemeasurable.mul |
| 35 | ((hρ.aemeasurable e.open_target.measurableSet).mul |
| 36 | (hH.comp_aemeasurable (e.symm.continuousOn.aemeasurable |
| 37 | e.open_target.measurableSet)))).aestronglyMeasurable |
| 38 | have hmfull : AEStronglyMeasurable a μ := by |
| 39 | have h := (aestronglyMeasurable_indicator_iff e.open_target.measurableSet).mpr hm |
| 40 | have he : e.target.indicator a = a := by |
| 41 | funext y |
| 42 | by_cases hy : y ∈ e.target |
| 43 | · exact indicator_of_mem hy a |
| 44 | · simp only [indicator_of_notMem hy, hzero y hy] |
| 45 | rwa [he] at h |
| 46 | apply ((hψ.integrable_of_hasCompactSupport hc).abs.mul_const A).mono' hmfull |
| 47 | filter_upwards [hbound] with y hy |
| 48 | change ‖a y‖ ≤ |ψ y| * A |
| 49 | by_cases hys : y ∈ tsupport ψ |
| 50 | · simp only [a, Real.norm_eq_abs, abs_mul] |
| 51 | simpa only [abs_mul] using mul_le_mul_of_nonneg_left (hy hys) (abs_nonneg (ψ y)) |
| 52 | · simp only [a, image_eq_zero_of_notMem_tsupport hys, zero_mul, norm_zero, abs_zero, le_refl] |
| 53 | |
| 54 | end PoincareMT.ReducedVolume |