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.SourceDensity |
| 2 | import Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 3 | |
| 4 | /-! |
| 5 | # The zero-time reduced-volume limit from eventual stability |
| 6 | |
| 7 | Zero-extended stable source densities share one integrable Gaussian |
| 8 | bound. Every eventually stable vector has a positive surviving prefix, |
| 9 | so its actual initial weighted limit applies. Dominated convergence |
| 10 | then gives the exact Euclidean reduced volume. Morgan-Tian Theorem 6.80 |
| 11 | and Corollary 6.82, pp. 144-147. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- Eventual stability of each source vector suffices for the actual |
| 28 | zero-time reduced-volume limit; all integrals use one prescribed |
| 29 | source basis, Theorem 6.80 and Corollary 6.82, pp. 144-147. -/ |
| 30 | theorem tendsto_reducedVolume_of_eventual_stability |
| 31 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 32 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 33 | (E : M14ExponentialFamily G T x) (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 | {δ : ℝ} (hδ : 0 < δ) |
| 37 | (H : ∀ (τ : ℝ) (_hτ : 0 < τ) (_hδ : τ < δ), M14StableSet G T τ x E) |
| 38 | (hcover : ∀ Z : G.Horizontal x, ∀ᶠ τ in 𝓝[>] (0 : ℝ), |
| 39 | ∃ hτ : 0 < τ, ∃ hτδ : τ < δ, Z ∈ (H τ hτ hτδ).carrier) : |
| 40 | Tendsto (fun τ : ℝ => if hτ : 0 < τ then |
| 41 | if hτδ : τ < δ then M14ReducedVolumeOnStable G T x τ (H τ hτ hτδ) else 0 else 0) |
| 42 | (𝓝[>] (0 : ℝ)) (𝓝 (euclideanReducedVolume n)) := by |
| 43 | classical |
| 44 | let F : ℝ → G.Horizontal x → ℝ := fun τ => if hτ : 0 < τ then |
| 45 | if hτδ : τ < δ then stableSourceDensity (H τ hτ hτδ) b else fun _ => 0 else fun _ => 0 |
| 46 | have hvalid : ∀ᶠ τ in 𝓝[>] (0 : ℝ), 0 < τ ∧ τ < δ := by |
| 47 | filter_upwards [self_mem_nhdsWithin, |
| 48 | mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds hδ)] with τ hτ hτδ |
| 49 | exact ⟨hτ, hτδ⟩ |
| 50 | have hmeas : ∀ᶠ τ in 𝓝[>] (0 : ℝ), |
| 51 | AEStronglyMeasurable (F τ) (M14HorizontalCoordinateVolume G b) := by |
| 52 | filter_upwards [hvalid] with τ hτ |
| 53 | simpa only [F, dif_pos hτ.1, dif_pos hτ.2] using |
| 54 | (stableSourceDensity_measurable hM04 hM12 (H τ hτ.1 hτ.2) b hb).aestronglyMeasurable |
| 55 | have hbound : ∀ᶠ τ in 𝓝[>] (0 : ℝ), |
| 56 | ∀ᵐ Z ∂M14HorizontalCoordinateVolume G b, ‖F τ Z‖ ≤ |
| 57 | Real.rpow (2 : ℝ) (n : ℝ) * Real.exp (-G.spacetime.horizontalMetric.inner x Z Z) := by |
| 58 | filter_upwards [hvalid] with τ hτ |
| 59 | apply Eventually.of_forall |
| 60 | intro Z |
| 61 | simp only [F, dif_pos hτ.1, dif_pos hτ.2, Real.norm_eq_abs, |
| 62 | abs_of_nonneg (stableSourceDensity_nonneg (H τ hτ.1 hτ.2) b Z)] |
| 63 | exact stableSourceDensity_le_gaussian hCoordinates hM04 hM12 (H τ hτ.1 hτ.2) b hb Z |
| 64 | have hsqrt : Tendsto Real.sqrt (𝓝[>] (0 : ℝ)) (𝓝[>] (0 : ℝ)) := by |
| 65 | apply tendsto_nhdsWithin_iff.mpr ⟨?_, ?_⟩ |
| 66 | · simpa only [Real.sqrt_zero] using |
| 67 | (Real.continuous_sqrt.tendsto (0 : ℝ)).mono_left nhdsWithin_le_nhds |
| 68 | · filter_upwards [self_mem_nhdsWithin] with s hs |
| 69 | exact Real.sqrt_pos.mpr hs |
| 70 | have hpoint (Z : G.Horizontal x) : Tendsto (fun τ => F τ Z) (𝓝[>] (0 : ℝ)) |
| 71 | (𝓝 (Real.rpow (2 : ℝ) (n : ℝ) * |
| 72 | Real.exp (-G.spacetime.horizontalMetric.inner x Z Z))) := by |
| 73 | obtain ⟨τ, hτ, hτδ, hZ⟩ := (hcover Z).exists |
| 74 | have hlim := (tendsto_exponentialWeightedJacobian_zero hM04 hM12 E b hb |
| 75 | ((H τ hτ hτδ).survivor Z hZ) (Real.sqrt_pos.mpr hτ)).comp hsqrt |
| 76 | apply hlim.congr' |
| 77 | filter_upwards [hcover Z] with σ hσ |
| 78 | obtain ⟨hσ, hσδ, hZσ⟩ := hσ |
| 79 | simp only [Function.comp_apply, F, dif_pos hσ, dif_pos hσδ, |
| 80 | stableSourceDensity, indicator_of_mem hZσ] |
| 81 | have hlim := tendsto_integral_filter_of_dominated_convergence |
| 82 | (fun Z => Real.rpow (2 : ℝ) (n : ℝ) * |
| 83 | Real.exp (-G.spacetime.horizontalMetric.inner x Z Z)) hmeas hbound |
| 84 | (horizontalGaussian_integrable b hb) (Eventually.of_forall hpoint) |
| 85 | rw [integral_horizontalGaussian b hb] at hlim |
| 86 | apply hlim.congr' |
| 87 | filter_upwards [hvalid] with τ hτ |
| 88 | simp only [F, dif_pos hτ.1, dif_pos hτ.2] |
| 89 | exact integral_stableSourceDensity hCoordinates hM04 hM12 (H τ hτ.1 hτ.2) b hb |
| 90 | |
| 91 | end PoincareMT.M14 |