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.Comparison.RestrictedRays |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Transport.VolumeTransport |
| 3 | |
| 4 | /-! |
| 5 | # Reduced-volume comparison on backward L-star-shaped domains |
| 6 | |
| 7 | Morgan-Tian Proposition 6.81. Restricting the actual calibrated transport |
| 8 | gives the source integral for each open slice. Produced integrability and |
| 9 | the nested restricted source weights then give the real integral comparison. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | [T3Space M] [ConnectedSpace M] [MeasurableSpace M] [BorelSpace M] |
| 24 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 25 | |
| 26 | omit [MeasurableSpace M] [BorelSpace M] in |
| 27 | /-- Restricted weights inherit integrability from the produced global regular weight. -/ |
| 28 | theorem restrictedWeightedJacobian_integrable |
| 29 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 30 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 31 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 32 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 33 | {A : Set (M × ℝ)} (hA : IsOpen A) {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) : |
| 34 | Integrable (restrictedWeightedJacobian G A τ) := by |
| 35 | apply (regularWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 36 | hcurvature hτ hτmax).mono' |
| 37 | (restrictedWeightedJacobian_measurable G hA hτ hτmax).aestronglyMeasurable |
| 38 | apply ae_of_all |
| 39 | intro x |
| 40 | rw [Real.norm_eq_abs, abs_of_nonneg (restrictedWeightedJacobian_nonneg G A hτ x)] |
| 41 | exact restrictedWeightedJacobian_le_regular G A hτ x |
| 42 | |
| 43 | /-- The actual nonnegative density integral on an open slice has its restricted source formula. -/ |
| 44 | theorem lintegral_reducedVolumeDensityOn_eq_restrictedWeight |
| 45 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 46 | (hwindow : Icc (T - τmax) T ⊆ J) (G : LExponentialGeometry F T τmax p) |
| 47 | {A : Set (M × ℝ)} (hA : IsOpen A) {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 48 | (∫⁻ q in {q | (q, τ) ∈ A}, ENNReal.ofReal (reducedVolumeDensity F T p τ q) |
| 49 | ∂calibratedMetricVolume (F.metric (T - τ))) = |
| 50 | ∫⁻ x, ENNReal.ofReal (restrictedWeightedJacobian G A τ x) := by |
| 51 | classical |
| 52 | let B : Set M := {q | (q, τ) ∈ A} |
| 53 | have hB : MeasurableSet B := |
| 54 | (hA.preimage (continuous_id.prodMk continuous_const)).measurableSet |
| 55 | have hf : Measurable (B.indicator (fun q ↦ ENNReal.ofReal (reducedVolumeDensity F T p τ q))) := |
| 56 | ((ENNReal.continuous_ofReal.comp |
| 57 | (reducedVolumeDensity_continuous hL hDifferential hτ hmax)).measurable).indicator hB |
| 58 | rw [← lintegral_indicator hB, |
| 59 | lintegral_eq_exponentialSliceJacobian hL hDifferential hwindow G hτ hmax hf.aemeasurable, |
| 60 | ← lintegral_indicator (exponentialSliceChart G τ).open_source.measurableSet] |
| 61 | apply lintegral_congr |
| 62 | intro x |
| 63 | by_cases hs : x ∈ (exponentialSliceChart G τ).source |
| 64 | · have hreg : (metricCoordinates (F.metric T) p x, τ) ∈ |
| 65 | G.toLExponentialFamily.regularDomain := by |
| 66 | simpa only [exponentialSliceChart_source, mem_ofPred_eq] using hs |
| 67 | by_cases hax : (exponentialSliceChart G τ x, τ) ∈ A |
| 68 | · have ht : x ∈ restrictedRegularSource G A τ := ⟨hs, hax⟩ |
| 69 | have hb : exponentialSliceChart G τ x ∈ B := hax |
| 70 | simp only [restrictedWeightedJacobian, indicator_of_mem hs, indicator_of_mem ht, |
| 71 | indicator_of_mem hb] |
| 72 | rw [weightedExponentialJacobian_eq_density_mul hL G x hreg, |
| 73 | ENNReal.ofReal_mul reducedVolumeDensity_nonneg] |
| 74 | exact mul_comm _ _ |
| 75 | · have ht : x ∉ restrictedRegularSource G A τ := fun h ↦ hax h.2 |
| 76 | have hb : exponentialSliceChart G τ x ∉ B := hax |
| 77 | simp only [restrictedWeightedJacobian, indicator_of_mem hs, indicator_of_notMem ht, |
| 78 | indicator_of_notMem hb, mul_zero, ENNReal.ofReal_zero] |
| 79 | · have ht : x ∉ restrictedRegularSource G A τ := fun h ↦ hs h.1 |
| 80 | simp only [restrictedWeightedJacobian, indicator_of_notMem hs, indicator_of_notMem ht, |
| 81 | ENNReal.ofReal_zero] |
| 82 | |
| 83 | /-- The real reduced volume on an open slice is the actual integrable restricted source integral. -/ |
| 84 | theorem reducedVolumeOn_eq_integral_restrictedWeight |
| 85 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 86 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 87 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 88 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 89 | {A : Set (M × ℝ)} (hA : IsOpen A) {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) : |
| 90 | reducedVolumeOn F T p τ {q | (q, τ) ∈ A} = |
| 91 | ∫ x, restrictedWeightedJacobian G A τ x := by |
| 92 | have htarget := (reducedVolumeDensity_integrable hL hDifferential G hmax hT hwindow |
| 93 | hcurvature hτ hτmax).restrict (s := {q | (q, τ) ∈ A}) |
| 94 | have hsource := restrictedWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 95 | hcurvature hA hτ hτmax |
| 96 | calc |
| 97 | _ = ENNReal.toReal (∫⁻ q in {q | (q, τ) ∈ A}, |
| 98 | ENNReal.ofReal (reducedVolumeDensity F T p τ q) |
| 99 | ∂calibratedMetricVolume (F.metric (T - τ))) := |
| 100 | integral_eq_lintegral_of_nonneg_ae (ae_of_all _ (fun _ ↦ reducedVolumeDensity_nonneg)) |
| 101 | htarget.aestronglyMeasurable |
| 102 | _ = ENNReal.toReal (∫⁻ x, ENNReal.ofReal (restrictedWeightedJacobian G A τ x)) := |
| 103 | congrArg ENNReal.toReal |
| 104 | (lintegral_reducedVolumeDensityOn_eq_restrictedWeight hL hDifferential hwindow G hA |
| 105 | hτ hτmax) |
| 106 | _ = _ := (integral_eq_lintegral_of_nonneg_ae |
| 107 | (ae_of_all _ (restrictedWeightedJacobian_nonneg G A hτ)) hsource.aestronglyMeasurable).symm |
| 108 | |
| 109 | /-- Every frozen backward L-star-shaped domain has antitone actual reduced volume. -/ |
| 110 | theorem reducedVolumeOn_antitoneOn |
| 111 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 112 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 113 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 114 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 115 | {A : Set (M × ℝ)} (hA : IsBackwardLStarShaped F T τmax p A) : |
| 116 | AntitoneOn (fun τ ↦ reducedVolumeOn F T p τ {q | (q, τ) ∈ A}) (Ioo 0 τmax) := by |
| 117 | intro a ha b hb hab |
| 118 | dsimp only |
| 119 | rw [reducedVolumeOn_eq_integral_restrictedWeight hL hDifferential G hmax hT hwindow |
| 120 | hcurvature hA.1 hb.1 hb.2, |
| 121 | reducedVolumeOn_eq_integral_restrictedWeight hL hDifferential G hmax hT hwindow |
| 122 | hcurvature hA.1 ha.1 ha.2] |
| 123 | exact integral_mono |
| 124 | (restrictedWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 125 | hcurvature hA.1 hb.1 hb.2) |
| 126 | (restrictedWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 127 | hcurvature hA.1 ha.1 ha.2) |
| 128 | (fun x ↦ restrictedWeightedJacobian_antitoneOn hwindow hL hDifferential G hA x ha hb hab) |
| 129 | |
| 130 | end PoincareMT.ReducedVolume |