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.ChartIntegralTransport |
| 2 | |
| 3 | /-! |
| 4 | # Transport of supported signed chart integrands |
| 5 | |
| 6 | The produced calibrated pushforward supplies integrability and the |
| 7 | signed integral identity. Support hypotheses remove both restrictions. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set Filter MeasureTheory |
| 13 | open scoped Manifold ContDiff |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.ReducedVolume |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 22 | |
| 23 | /-- A supported weighted chart integrand produces its full calibrated signed integral. -/ |
| 24 | theorem supported_calibrated_integral_transport (g : RiemannianMetric n M) |
| 25 | (e : OpenPartialHomeomorph (EuclideanSpace ℝ (Fin n)) M) |
| 26 | (he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source) |
| 27 | (hei : ContMDiffOn (𝓡 n) (𝓡 n) 1 e.symm e.target) |
| 28 | (hρ : ContinuousOn (pullbackJacobian g e) e.source) |
| 29 | {f : M → ℝ} {a : EuclideanSpace ℝ (Fin n) → ℝ} |
| 30 | (hf : AEStronglyMeasurable f (calibratedMetricVolume g)) |
| 31 | (hfzero : ∀ q ∉ e.target, f q = 0) (ha : Integrable a volume) |
| 32 | (hazero : ∀ y ∉ e.source, a y = 0) |
| 33 | (heq : ∀ y ∈ e.source, pullbackJacobian g e y * f (e y) = a y) : |
| 34 | Integrable f (calibratedMetricVolume g) ∧ |
| 35 | (∫ q, f q ∂calibratedMetricVolume g) = ∫ y, a y := by |
| 36 | have heqae : (fun y ↦ pullbackJacobian g e y * f (e y)) =ᵐ[volume.restrict e.source] a := |
| 37 | (ae_restrict_iff' e.open_source.measurableSet).mpr (Eventually.of_forall heq) |
| 38 | have hfi : IntegrableOn f e.target (calibratedMetricVolume g) := |
| 39 | (integrableOn_calibrated_iff_pullback g e he hei hρ hf.restrict).mpr |
| 40 | (ha.integrableOn.congr heqae.symm) |
| 41 | refine ⟨hfi.integrable_of_forall_notMem_eq_zero hfzero, ?_⟩ |
| 42 | rw [← setIntegral_eq_integral_of_forall_compl_eq_zero hfzero, |
| 43 | integralOn_calibrated_eq_pullback g e he hei hρ hf.restrict] |
| 44 | exact (integral_congr_ae heqae).trans |
| 45 | (setIntegral_eq_integral_of_forall_compl_eq_zero hazero) |
| 46 | |
| 47 | end PoincareMT.ReducedVolume |