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.Transport.CalibratedPushforward |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Coordinates.ExponentialSlice |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.AlmostEverywhere.RegularImage |
| 4 | |
| 5 | /-! |
| 6 | # Calibrated volume transported by the actual L-exponential slice |
| 7 | |
| 8 | The source uses one fixed terminal orthonormal basis. The Gram Jacobian |
| 9 | uses the metric at the backward time. The regular image has full measure |
| 10 | on every interior slice by the owned cut-locus argument. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedVolume |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 25 | |
| 26 | /-- The actual slice Jacobian, with terminal source coordinates and backward target metric. -/ |
| 27 | noncomputable def exponentialSliceJacobian (G : LExponentialGeometry F T τmax p) |
| 28 | (τ : ℝ) (z : EuclideanSpace ℝ (Fin n)) : ℝ := |
| 29 | pullbackJacobian (F.metric (T - τ)) (exponentialSliceChart G τ) z |
| 30 | |
| 31 | /-- The actual Gram Jacobian is nonnegative on the whole initial-vector space. -/ |
| 32 | theorem exponentialSliceJacobian_nonneg (G : LExponentialGeometry F T τmax p) |
| 33 | (τ : ℝ) (z : EuclideanSpace ℝ (Fin n)) : |
| 34 | 0 ≤ exponentialSliceJacobian G τ z := |
| 35 | pullbackJacobian_nonneg _ _ _ |
| 36 | |
| 37 | /-- The actual Jacobian is continuous on the exact regular source. -/ |
| 38 | theorem exponentialSliceJacobian_continuousOn (G : LExponentialGeometry F T τmax p) |
| 39 | (τ : ℝ) : |
| 40 | ContinuousOn (exponentialSliceJacobian G τ) (exponentialSliceChart G τ).source := by |
| 41 | intro z hz |
| 42 | exact (pullbackJacobian_continuousAt _ |
| 43 | (((exponentialSliceChart_contMDiffOn G τ).contMDiffAt |
| 44 | ((exponentialSliceChart G τ).open_source.mem_nhds hz)).of_le (by simp))).continuousWithinAt |
| 45 | |
| 46 | variable [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 47 | |
| 48 | /-- The produced Jacobian measure pushes forward to the exact regular target slice. -/ |
| 49 | theorem map_exponentialSliceJacobian_eq_restrict (G : LExponentialGeometry F T τmax p) |
| 50 | (τ : ℝ) : |
| 51 | ((volume.withDensity (fun z ↦ ENNReal.ofReal (exponentialSliceJacobian G τ z))).restrict |
| 52 | (exponentialSliceChart G τ).source).map (exponentialSliceChart G τ) = |
| 53 | (calibratedMetricVolume (F.metric (T - τ))).restrict |
| 54 | (exponentialSliceChart G τ).target := by |
| 55 | exact map_pullbackJacobian_eq_calibratedMetricVolume _ _ |
| 56 | ((exponentialSliceChart_contMDiffOn G τ).of_le (by simp)) |
| 57 | ((exponentialSliceChart_symm_contMDiffOn G τ).of_le (by simp)) |
| 58 | |
| 59 | variable [ConnectedSpace M] |
| 60 | |
| 61 | /-- Every interior target restriction is the full calibrated backward-time measure. -/ |
| 62 | theorem calibratedMetricVolume_restrict_exponentialSlice_target |
| 63 | (hL : LGeodesicTheory F T τmax) |
| 64 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 65 | (hwindow : Icc (T - τmax) T ⊆ J) (G : LExponentialGeometry F T τmax p) |
| 66 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 67 | (calibratedMetricVolume (F.metric (T - τ))).restrict |
| 68 | (exponentialSliceChart G τ).target = calibratedMetricVolume (F.metric (T - τ)) := by |
| 69 | apply Measure.restrict_eq_self_of_ae_mem |
| 70 | exact ae_iff.mpr (regularImage_slice_complement_eq_zero hL hDifferential hwindow G hτ hmax) |
| 71 | |
| 72 | /-- The actual L-exponential slice transports its Jacobian measure to the full slice volume. -/ |
| 73 | theorem map_exponentialSliceJacobian_eq_calibratedMetricVolume |
| 74 | (hL : LGeodesicTheory F T τmax) |
| 75 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 76 | (hwindow : Icc (T - τmax) T ⊆ J) (G : LExponentialGeometry F T τmax p) |
| 77 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 78 | ((volume.withDensity (fun z ↦ ENNReal.ofReal (exponentialSliceJacobian G τ z))).restrict |
| 79 | (exponentialSliceChart G τ).source).map (exponentialSliceChart G τ) = |
| 80 | calibratedMetricVolume (F.metric (T - τ)) := by |
| 81 | rw [map_exponentialSliceJacobian_eq_restrict, |
| 82 | calibratedMetricVolume_restrict_exponentialSlice_target hL hDifferential hwindow G hτ hmax] |
| 83 | |
| 84 | /-- Nonnegative integration through the actual exponential slice, before any integrability claim. -/ |
| 85 | theorem lintegral_eq_exponentialSliceJacobian |
| 86 | (hL : LGeodesicTheory F T τmax) |
| 87 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 88 | (hwindow : Icc (T - τmax) T ⊆ J) (G : LExponentialGeometry F T τmax p) |
| 89 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) {f : M → ℝ≥0∞} |
| 90 | (hf : AEMeasurable f (calibratedMetricVolume (F.metric (T - τ)))) : |
| 91 | ∫⁻ q, f q ∂calibratedMetricVolume (F.metric (T - τ)) = |
| 92 | ∫⁻ z in (exponentialSliceChart G τ).source, |
| 93 | ENNReal.ofReal (exponentialSliceJacobian G τ z) * f (exponentialSliceChart G τ z) := by |
| 94 | let e := exponentialSliceChart G τ |
| 95 | let j := fun z ↦ ENNReal.ofReal (exponentialSliceJacobian G τ z) |
| 96 | have hj : AEMeasurable j (volume.restrict e.source) := |
| 97 | (ENNReal.continuous_ofReal.comp_continuousOn |
| 98 | (exponentialSliceJacobian_continuousOn G τ)).aemeasurable e.open_source.measurableSet |
| 99 | have hmap := map_exponentialSliceJacobian_eq_calibratedMetricVolume |
| 100 | hL hDifferential hwindow G hτ hmax |
| 101 | have he : AEMeasurable e ((volume.withDensity j).restrict e.source) := |
| 102 | e.continuousOn.aemeasurable e.open_source.measurableSet |
| 103 | have hfm : AEMeasurable f (((volume.withDensity j).restrict e.source).map e) := |
| 104 | hmap.symm ▸ hf |
| 105 | have hfe : AEMeasurable (fun z ↦ f (e z)) ((volume.restrict e.source).withDensity j) := by |
| 106 | rw [← restrict_withDensity e.open_source.measurableSet] |
| 107 | exact hfm.comp_aemeasurable he |
| 108 | calc |
| 109 | _ = ∫⁻ z in e.source, f (e z) ∂volume.withDensity j := by |
| 110 | rw [← hmap] |
| 111 | exact lintegral_map' hfm he |
| 112 | _ = _ := by |
| 113 | rw [restrict_withDensity e.open_source.measurableSet] |
| 114 | exact lintegral_withDensity_eq_lintegral_mul₀' hj hfe |
| 115 | |
| 116 | end PoincareMT.ReducedVolume |