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.Transport.DisjointImages |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Local.IntegralLowerBound |
| 3 | |
| 4 | /-! |
| 5 | # The terminal W-image lower bound |
| 6 | |
| 7 | Morgan-Tian Theorem 8.1 and equation (8.1), pp. 169-170. A reduced-length |
| 8 | upper bound supplies a density lower bound on the actual stable image. The |
| 9 | calibrated-volume lower bound then gives the terminal reduced-volume estimate. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped ENNReal |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M14 |
| 19 | |
| 20 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 21 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 22 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 23 | |
| 24 | /-- The density bound in equation (8.1) holds on the actual terminal slice |
| 25 | image, Morgan-Tian Theorem 8.1, pp. 169-170. -/ |
| 26 | theorem terminal_density_lower_bound (H : M14StableSet G T τ x E) |
| 27 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 28 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) {l₀ : ℝ} |
| 29 | (hl : ∀ Z ∈ W, M14ReducedLengthValue G T 0 τ x (H.endpoint_map Z) ≤ l₀) |
| 30 | {q : (G.slices (T - τ)).Point} (hq : q ∈ H.endpoint_slice_map '' W) : |
| 31 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-l₀) ≤ A.density q := by |
| 32 | obtain ⟨Z, hZ, rfl⟩ := hq |
| 33 | rw [A.density_eq _ ⟨Z, hW hZ, rfl⟩] |
| 34 | apply mul_le_mul_of_nonneg_left _ (Real.rpow_nonneg H.tau_pos.le _) |
| 35 | apply Real.exp_le_exp.mpr |
| 36 | apply neg_le_neg |
| 37 | rw [H.endpoint_slice_map_val Z (hW hZ)] |
| 38 | exact hl Z hZ |
| 39 | |
| 40 | /-- A volume lower bound on the terminal stable image yields the lower bound |
| 41 | of Morgan-Tian equation (8.1), p. 170, without assuming finite image volume. -/ |
| 42 | theorem terminal_reducedVolume_lower_bound (H : M14StableSet G T τ x E) |
| 43 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 44 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hm : MeasurableSet W) |
| 45 | {l₀ V : ℝ} |
| 46 | (hl : ∀ Z ∈ W, M14ReducedLengthValue G T 0 τ x (H.endpoint_map Z) ≤ l₀) |
| 47 | (hV : ENNReal.ofReal V ≤ |
| 48 | calibratedMetricVolume (G.slices (T - τ)).metricOnPoints |
| 49 | (H.endpoint_slice_map '' W)) : |
| 50 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-l₀) * V ≤ |
| 51 | M14ReducedVolumeOnAnalyticCarrier A W := by |
| 52 | apply MeasureTheory.mul_le_setIntegral_of_measure_le |
| 53 | (mul_nonneg (Real.rpow_nonneg H.tau_pos.le _) (Real.exp_pos _).le) |
| 54 | (A.density_integrable.mono_set (Set.image_mono hW)) hV |
| 55 | apply (MeasureTheory.ae_restrict_iff' (stable_slice_image_measurable H hW hm)).mpr |
| 56 | exact Filter.Eventually.of_forall (fun _ hq => terminal_density_lower_bound H A hW hl hq) |
| 57 | |
| 58 | /-- The terminal lower bound persists through every positive earlier time, |
| 59 | including the terminal time itself, Morgan-Tian equation (8.1), p. 170. |
| 60 | The analytic supplier is the separate analytic-existence field of M14. -/ |
| 61 | theorem terminal_lower_bound_and_earlier (H : M14StableSet G T τ x E) |
| 62 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 63 | (hanalytic : ∀ (σ : ℝ) (Hσ : M14StableSet G T σ x E), |
| 64 | Nonempty (M14ReducedVolumeAnalyticData G T σ x E Hσ)) |
| 65 | {W : Set (G.Horizontal x)} (hW : W ⊆ H.carrier) (hne : W.Nonempty) |
| 66 | (hopen : IsOpen W) (hm : MeasurableSet W) {l₀ V : ℝ} |
| 67 | (hl : ∀ Z ∈ W, M14ReducedLengthValue G T 0 τ x (H.endpoint_map Z) ≤ l₀) |
| 68 | (hV : ENNReal.ofReal V ≤ |
| 69 | calibratedMetricVolume (G.slices (T - τ)).metricOnPoints |
| 70 | (H.endpoint_slice_map '' W)) : |
| 71 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-l₀) * V ≤ |
| 72 | M14ReducedVolumeOnAnalyticCarrier A W ∧ |
| 73 | ∀ σ, 0 < σ → σ ≤ τ → |
| 74 | ∃ Hσ : M14StableSet G T σ x E, |
| 75 | W ⊆ Hσ.carrier ∧ |
| 76 | ∃ Aσ : M14ReducedVolumeAnalyticData G T σ x E Hσ, |
| 77 | Real.rpow τ (-(n : ℝ) / 2) * Real.exp (-l₀) * V ≤ |
| 78 | M14ReducedVolumeOnAnalyticCarrier Aσ W := by |
| 79 | have hlower := terminal_reducedVolume_lower_bound H A hW hm hl hV |
| 80 | refine ⟨hlower, ?_⟩ |
| 81 | intro σ hσ hστ |
| 82 | have hmin : ∀ Z ∈ W, |
| 83 | ∃ p : M14BackwardPath G T 0 τ x (H.endpoint_map Z), M14IsMinimizing p := by |
| 84 | intro Z hZ |
| 85 | obtain ⟨p, _, hp, _⟩ := H.minimizing_path Z (hW hZ) |
| 86 | exact ⟨p, hp⟩ |
| 87 | obtain ⟨Hσ, hWσ, hmono⟩ := A.fixed_W_monotone W hW hne hopen hm hmin σ hσ hστ |
| 88 | obtain ⟨Aσ⟩ := hanalytic σ Hσ |
| 89 | refine ⟨Hσ, hWσ, Aσ, ?_⟩ |
| 90 | rw [analyticCarrier_eq_densityIntegral Hσ Aσ hWσ hm] |
| 91 | exact hlower.trans hmono |
| 92 | |
| 93 | end PoincareMT.M14 |