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.GaussianDomination |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Continuity.Continuity |
| 3 | |
| 4 | /-! |
| 5 | # Actual reduced-density integrability and integral transport |
| 6 | |
| 7 | The geometric Jacobian pushforward first transports the nonnegative |
| 8 | integral. The produced Gaussian bound makes that integral finite, proving |
| 9 | integrability for the actual calibrated slice measure before real 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 | /-- The actual density is continuous on each interior slice. -/ |
| 28 | theorem reducedVolumeDensity_continuous |
| 29 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 30 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 31 | Continuous (reducedVolumeDensity F T p τ) := by |
| 32 | have hc : Continuous (fun q : M ↦ reducedLength F T p q τ) := |
| 33 | (reducedLength_continuousOn hL hDifferential p).comp_continuous |
| 34 | (continuous_id.prodMk continuous_const) (fun _ ↦ ⟨mem_univ _, hτ, hmax⟩) |
| 35 | have heq : reducedVolumeDensity F T p τ = |
| 36 | (fun q ↦ Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-reducedLength F T p q τ)) := by |
| 37 | funext q |
| 38 | exact if_pos hτ |
| 39 | rw [heq] |
| 40 | exact continuous_const.mul (Real.continuous_exp.comp hc.neg) |
| 41 | |
| 42 | /-- Nonnegative integration transports to the actual regular source weight. -/ |
| 43 | theorem lintegral_reducedVolumeDensity_eq_regularWeight |
| 44 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 45 | (hwindow : Icc (T - τmax) T ⊆ J) (G : LExponentialGeometry F T τmax p) |
| 46 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 47 | (∫⁻ q, ENNReal.ofReal (reducedVolumeDensity F T p τ q) |
| 48 | ∂calibratedMetricVolume (F.metric (T - τ))) = |
| 49 | ∫⁻ x, ENNReal.ofReal (regularWeightedJacobian G τ x) := by |
| 50 | classical |
| 51 | let S := (exponentialSliceChart G τ).source |
| 52 | have hS : MeasurableSet S := (exponentialSliceChart G τ).open_source.measurableSet |
| 53 | have hf : AEMeasurable (fun q ↦ ENNReal.ofReal (reducedVolumeDensity F T p τ q)) |
| 54 | (calibratedMetricVolume (F.metric (T - τ))) := (ENNReal.continuous_ofReal.comp |
| 55 | (reducedVolumeDensity_continuous hL hDifferential hτ hmax)).measurable.aemeasurable |
| 56 | calc |
| 57 | _ = ∫⁻ x in S, ENNReal.ofReal (exponentialSliceJacobian G τ x) * |
| 58 | ENNReal.ofReal (reducedVolumeDensity F T p τ (exponentialSliceChart G τ x)) := |
| 59 | lintegral_eq_exponentialSliceJacobian hL hDifferential hwindow G hτ hmax hf |
| 60 | _ = ∫⁻ x in S, ENNReal.ofReal (weightedExponentialJacobian G τ x) := by |
| 61 | apply setLIntegral_congr_fun hS |
| 62 | intro x hx |
| 63 | have hreg : (metricCoordinates (F.metric T) p x, τ) ∈ |
| 64 | G.toLExponentialFamily.regularDomain := by |
| 65 | simpa only [S, exponentialSliceChart_source, mem_ofPred_eq] using hx |
| 66 | dsimp only |
| 67 | rw [weightedExponentialJacobian_eq_density_mul hL G x hreg, |
| 68 | ENNReal.ofReal_mul reducedVolumeDensity_nonneg] |
| 69 | exact mul_comm _ _ |
| 70 | _ = _ := by |
| 71 | rw [← lintegral_indicator hS] |
| 72 | apply lintegral_congr |
| 73 | intro x |
| 74 | by_cases hx : x ∈ S |
| 75 | · simp only [regularWeightedJacobian, S, indicator_of_mem hx] |
| 76 | · simp only [regularWeightedJacobian, S, indicator_of_notMem hx, ENNReal.ofReal_zero] |
| 77 | |
| 78 | /-- The geometric Gaussian estimate proves integrability for the actual calibrated slice measure. -/ |
| 79 | theorem reducedVolumeDensity_integrable |
| 80 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 81 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 82 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 83 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 84 | {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) : |
| 85 | Integrable (reducedVolumeDensity F T p τ) (calibratedMetricVolume (F.metric (T - τ))) := by |
| 86 | have hsource := regularWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 87 | hcurvature hτ hτmax |
| 88 | have hc := reducedVolumeDensity_continuous (p := p) hL hDifferential hτ hτmax |
| 89 | refine ⟨hc.measurable.aestronglyMeasurable, |
| 90 | (hasFiniteIntegral_iff_ofReal (ae_of_all _ (fun _ ↦ reducedVolumeDensity_nonneg))).mpr ?_⟩ |
| 91 | rw [lintegral_reducedVolumeDensity_eq_regularWeight hL hDifferential hwindow G hτ hτmax] |
| 92 | exact (hasFiniteIntegral_iff_ofReal |
| 93 | (ae_of_all _ (regularWeightedJacobian_nonneg G hτ))).mp hsource.hasFiniteIntegral |
| 94 | |
| 95 | /-- The actual reduced volume is the integral of its produced integrable regular source weight. -/ |
| 96 | theorem reducedVolume_eq_integral_regularWeight |
| 97 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 98 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 99 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 100 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 101 | {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) : |
| 102 | reducedVolume F T p τ = ∫ x, regularWeightedJacobian G τ x := by |
| 103 | have htarget := reducedVolumeDensity_integrable hL hDifferential G hmax hT hwindow |
| 104 | hcurvature hτ hτmax |
| 105 | have hsource := regularWeightedJacobian_integrable hL hDifferential G hmax hT hwindow |
| 106 | hcurvature hτ hτmax |
| 107 | calc |
| 108 | _ = ENNReal.toReal (∫⁻ q, ENNReal.ofReal (reducedVolumeDensity F T p τ q) |
| 109 | ∂calibratedMetricVolume (F.metric (T - τ))) := |
| 110 | integral_eq_lintegral_of_nonneg_ae (ae_of_all _ (fun _ ↦ reducedVolumeDensity_nonneg)) |
| 111 | htarget.aestronglyMeasurable |
| 112 | _ = ENNReal.toReal (∫⁻ x, ENNReal.ofReal (regularWeightedJacobian G τ x)) := |
| 113 | congrArg ENNReal.toReal |
| 114 | (lintegral_reducedVolumeDensity_eq_regularWeight hL hDifferential hwindow G hτ hτmax) |
| 115 | _ = _ := (integral_eq_lintegral_of_nonneg_ae |
| 116 | (ae_of_all _ (regularWeightedJacobian_nonneg G hτ)) hsource.aestronglyMeasurable).symm |
| 117 | |
| 118 | end PoincareMT.ReducedVolume |