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.Generalized.ReducedGeometry.Measure.Density.GaussianBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Transport.IntegralComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.BackwardStable |
| 4 | |
| 5 | /-! |
| 6 | # Actual reduced-volume monotonicity on a fixed source subset |
| 7 | |
| 8 | Use the same orthonormal initial basis at both times. Gaussian |
| 9 | domination supplies integrability, and the actual pointwise weighted |
| 10 | Jacobian comparison integrates on every measurable source subset. |
| 11 | Morgan-Tian Proposition 6.81, pp. 145-146. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T τ : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- Every measurable subset of a terminal stable carrier has |
| 27 | nondecreasing reduced volume toward time zero, Proposition 6.81, |
| 28 | pp. 145-146. Empty source subsets and equal times are included. -/ |
| 29 | theorem stableDensity_fixed_source_mono |
| 30 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 31 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (E : M14ExponentialFamily G T x) (H : M14StableSet G T τ x E) |
| 33 | (b : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 34 | (hb : ∀ i j, G.spacetime.horizontalMetric.inner x (b i) (b j) = |
| 35 | if i = j then 1 else 0) |
| 36 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hm : MeasurableSet W) |
| 37 | {σ : ℝ} (hσ : 0 < σ) (hle : σ ≤ τ) : |
| 38 | ∃ Hσ : M14StableSet G T σ x E, W ⊆ Hσ.carrier ∧ |
| 39 | (∫ q in H.endpoint_slice_map '' W, stableReducedVolumeDensity H q |
| 40 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) ≤ |
| 41 | (∫ q in Hσ.endpoint_slice_map '' W, Real.rpow σ (-(n : ℝ) / 2) * |
| 42 | Real.exp (-M14ReducedLengthValue G T 0 σ x q.val) |
| 43 | ∂calibratedMetricVolume (G.slices (T - σ)).metricOnPoints) := by |
| 44 | obtain ⟨Hσ, hsub⟩ := exists_stableSet_backward hCoordinates hM04 hM12 E H hσ hle |
| 45 | let D := rescalingMeasureDataWithBasis H b hb |
| 46 | let Dσ := rescalingMeasureDataWithBasis Hσ b hb |
| 47 | have hi := stableDensity_integrable_of_gaussian hM04 hM12 H D |
| 48 | (fun _ hZ => stableDensity_mul_jacobian_le_gaussian hCoordinates hM04 hM12 E H D hZ) |
| 49 | have hiσ := stableDensity_integrable_of_gaussian hM04 hM12 Hσ Dσ |
| 50 | (fun _ hZ => stableDensity_mul_jacobian_le_gaussian hCoordinates hM04 hM12 E Hσ Dσ hZ) |
| 51 | have hWσ : W ⊆ Hσ.carrier := hW.trans hsub |
| 52 | have hpoint (Z : G.Horizontal x) (hZ : Z ∈ W) : |
| 53 | stableReducedVolumeDensity H (H.endpoint_slice_map Z) * D.jacobian Z ≤ |
| 54 | stableReducedVolumeDensity Hσ (Hσ.endpoint_slice_map Z) * Dσ.jacobian Z := by |
| 55 | rw [stableDensity_mul_jacobian_eq_weighted E H D (hW hZ), |
| 56 | stableDensity_mul_jacobian_eq_weighted E Hσ Dσ (hWσ hZ)] |
| 57 | change exponentialWeightedJacobian E b Z (Real.sqrt τ) ≤ |
| 58 | exponentialWeightedJacobian E b Z (Real.sqrt σ) |
| 59 | have hsqrt := Real.sqrt_le_sqrt hle |
| 60 | exact exponentialWeightedJacobian_antitoneOn hCoordinates hM04 hM12 E b H (hW hZ) |
| 61 | ⟨Real.sqrt_pos.mpr hσ, hsqrt⟩ ⟨Real.sqrt_pos.mpr H.tau_pos, le_rfl⟩ hsqrt |
| 62 | have hcompare := stableDensity_integral_mono hM04 hM12 H Hσ D Dσ rfl hW hWσ hm |
| 63 | (hi.1.mono_set hW) (hiσ.1.mono_set hWσ) hpoint |
| 64 | refine ⟨Hσ, hWσ, hcompare.trans_eq ?_⟩ |
| 65 | apply setIntegral_congr_fun (stable_slice_image_measurable Hσ hWσ hm) |
| 66 | exact fun q hq => stableReducedVolumeDensity_eq Hσ (image_mono hWσ hq) |
| 67 | |
| 68 | end PoincareMT.M14 |