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.Regularity |
| 2 | |
| 3 | /-! Adapted from Mapher `PoincareMT/Statements/M14GeneralizedLGeometry.lean` at |
| 4 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 5 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped Manifold ContMDiff ContDiff Bundle Topology intervalIntegral BigOperators |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT |
| 14 | |
| 15 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 16 | {I : SpacetimeInterval} |
| 17 | |
| 18 | structure M14ReducedVolumeAnalyticData |
| 19 | (G : GeneralizedLGeometryTransport n X time I) |
| 20 | (T τ : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) |
| 21 | (H : M14StableSet G T τ x E) where |
| 22 | density : (G.slices (T - τ)).Point → ℝ |
| 23 | density_eq : ∀ q ∈ H.endpoint_slice_map '' H.carrier, density q = |
| 24 | Real.rpow τ (-(n : ℝ) / 2) * |
| 25 | Real.exp (-M14ReducedLengthValue G T 0 τ x q.val) |
| 26 | density_measurable_on_image : |
| 27 | Measurable (fun q : H.endpoint_slice_map '' H.carrier => density q.1) |
| 28 | density_nonnegative : ∀ q ∈ H.endpoint_slice_map '' H.carrier, 0 ≤ density q |
| 29 | measure_data : M14MeasureJacobianData G T τ x E H |
| 30 | initial_density : G.Horizontal x → ℝ |
| 31 | initial_density_eq : ∀ Z, initial_density Z = |
| 32 | Real.rpow (2 : ℝ) (n : ℝ) * |
| 33 | Real.exp (-G.spacetime.horizontalMetric.inner x Z Z) |
| 34 | gaussian_bound : ∀ Z, Z ∈ H.carrier → |
| 35 | density (H.endpoint_slice_map Z) * measure_data.jacobian Z ≤ initial_density Z |
| 36 | density_integrable : MeasureTheory.IntegrableOn density |
| 37 | (H.endpoint_slice_map '' H.carrier) |
| 38 | (calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) |
| 39 | density_integrable_on_source : |
| 40 | MeasureTheory.IntegrableOn |
| 41 | (fun Z => density (H.endpoint_slice_map Z) * measure_data.jacobian Z) |
| 42 | H.carrier measure_data.sourceMeasure |
| 43 | density_change_of_variables_on_image : |
| 44 | (∫ Z in H.carrier, |
| 45 | density (H.endpoint_slice_map Z) * measure_data.jacobian Z |
| 46 | ∂measure_data.sourceMeasure) = |
| 47 | (∫ q in H.endpoint_slice_map '' H.carrier, density q |
| 48 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) |
| 49 | backward_star : ∀ W : Set (G.Horizontal x), W ⊆ H.carrier → |
| 50 | ∀ Z, Z ∈ W → |
| 51 | ∃ p : M14BackwardPath G T 0 τ x (H.endpoint_map Z), |
| 52 | M14IsMinimizing p ∧ |
| 53 | ∀ σ, σ ∈ Set.Ioc 0 τ → |
| 54 | ∃ Hσ : M14StableSet G T σ x E, |
| 55 | Z ∈ Hσ.carrier ∧ p.curve σ = Hσ.endpoint_map Z |
| 56 | fixed_W_monotone : ∀ W : Set (G.Horizontal x), W ⊆ H.carrier → |
| 57 | W.Nonempty → IsOpen W → MeasurableSet W → |
| 58 | (∀ Z, Z ∈ W → ∃ p : M14BackwardPath G T 0 τ x (H.endpoint_map Z), |
| 59 | M14IsMinimizing p) → |
| 60 | ∀ σ, 0 < σ → σ ≤ τ → |
| 61 | ∃ Hσ : M14StableSet G T σ x E, |
| 62 | W ⊆ Hσ.carrier ∧ |
| 63 | (∫ q in H.endpoint_slice_map '' W, |
| 64 | density q ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints) ≤ |
| 65 | (∫ q in Hσ.endpoint_slice_map '' W, |
| 66 | Real.rpow σ (-(n : ℝ) / 2) * |
| 67 | Real.exp (-M14ReducedLengthValue G T 0 σ x q.val) |
| 68 | ∂calibratedMetricVolume (G.slices (T - σ)).metricOnPoints) |
| 69 | |
| 70 | noncomputable def M14ReducedVolumeOnAnalyticCarrier |
| 71 | {G : GeneralizedLGeometryTransport n X time I} |
| 72 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 73 | {H : M14StableSet G T τ x E} |
| 74 | (A : M14ReducedVolumeAnalyticData G T τ x E H) |
| 75 | (W : Set (G.Horizontal x)) : ℝ := |
| 76 | ∫ q in H.endpoint_slice_map '' W, A.density q |
| 77 | ∂calibratedMetricVolume (G.slices (T - τ)).metricOnPoints |
| 78 | |
| 79 | /-! Source-level Chapter 7 outputs that are not contained in one per-time |
| 80 | analytic witness. The selected stable family and its selected |
| 81 | `M14ReducedVolumeAnalyticData` are carried through every clause. This records |
| 82 | the regular-image consequences used in Morgan--Tian Propositions 6.78--6.81 |
| 83 | and Theorem 8.1, pp. 142--147 and 169--171. -/ |
| 84 | structure M14ReducedVolumeSourceCoverageData |
| 85 | (G : GeneralizedLGeometryTransport n X time I) where |
| 86 | zero_time_limit : |
| 87 | ∀ (T : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) |
| 88 | (B : ℕ → Set (G.Horizontal x)) (δ : ℝ), |
| 89 | 0 < δ → Set.Icc (T - δ) T ⊆ I.domain → |
| 90 | (∀ k, IsCompact (B k)) → |
| 91 | (∀ k, B k ⊆ B (k + 1)) → |
| 92 | (∀ Z, ∃ k, Z ∈ B k) → |
| 93 | (K : ℕ → Set G.Point) → |
| 94 | (∀ k, IsCompact (K k) ∧ |
| 95 | (∃ O : Set G.Point, IsOpen O ∧ x ∈ O ∧ O ⊆ K k) ∧ |
| 96 | (∃ R : ℝ, 0 ≤ R ∧ ∀ Z, Z ∈ B k → |
| 97 | G.spacetime.horizontalMetric.inner x Z Z ≤ R)) → |
| 98 | (∃ C : ℝ, 0 ≤ C ∧ ∀ p : G.Point, |
| 99 | G.spacetime.timeFunction p ∈ Set.Icc (T - δ) T → |
| 100 | horizontalCurvatureNorm G.leafwise p ≤ C) → |
| 101 | ∃ τ₀ : ℝ, 0 < τ₀ ∧ τ₀ ≤ δ ∧ |
| 102 | ∃ H : ∀ (τ : ℝ) (_hτ : 0 < τ) (_hτ₀ : τ < τ₀), |
| 103 | M14StableSet G T τ x E, |
| 104 | ∃ A : ∀ (τ : ℝ) (_hτ : 0 < τ) (_hτ₀ : τ < τ₀), |
| 105 | M14ReducedVolumeAnalyticData G T τ x E (H τ _hτ _hτ₀), |
| 106 | (∀ (τ : ℝ) (_hτ : 0 < τ) (_hτ₀ : τ < τ₀), |
| 107 | M14ReducedVolumeOnAnalyticCarrier (A τ _hτ _hτ₀) |
| 108 | (H τ _hτ _hτ₀).carrier = |
| 109 | M14ReducedVolumeOnStable G T x τ (H τ _hτ _hτ₀)) ∧ |
| 110 | (∀ k, ∃ η : ℝ, 0 < η ∧ η ≤ τ₀ ∧ |
| 111 | ∀ (τ : ℝ) (_hτ : 0 < τ) (_hτ₀ : τ < τ₀), |
| 112 | τ < η → B k ⊆ (H τ _hτ _hτ₀).carrier ∧ |
| 113 | ∀ Z, Z ∈ B k → ∀ s ∈ Set.Icc 0 τ, |
| 114 | E.gamma Z (Real.sqrt s) ∈ K k) ∧ |
| 115 | Filter.Tendsto |
| 116 | (fun τ : ℝ => |
| 117 | if hτ : 0 < τ then |
| 118 | if hτ₀ : τ < τ₀ then |
| 119 | M14ReducedVolumeOnAnalyticCarrier (A τ hτ hτ₀) |
| 120 | (H τ hτ hτ₀).carrier |
| 121 | else 0 |
| 122 | else 0) |
| 123 | (𝓝[>] (0 : ℝ)) (𝓝 (euclideanReducedVolume n)) |
| 124 | disjoint_image_additivity : |
| 125 | ∀ (T τ : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) |
| 126 | (H : M14StableSet G T τ x E) |
| 127 | (A : M14ReducedVolumeAnalyticData G T τ x E H), |
| 128 | Set.InjOn H.endpoint_slice_map H.carrier ∧ |
| 129 | ∀ (W₁ W₂ : Set (G.Horizontal x)), |
| 130 | W₁ ⊆ H.carrier → W₂ ⊆ H.carrier → |
| 131 | MeasurableSet W₁ → MeasurableSet W₂ → Disjoint W₁ W₂ → |
| 132 | MeasurableSet (H.endpoint_slice_map '' W₁) ∧ |
| 133 | MeasurableSet (H.endpoint_slice_map '' W₂) ∧ |
| 134 | MeasurableSet (H.endpoint_slice_map '' (W₁ ∪ W₂)) ∧ |
| 135 | Disjoint (H.endpoint_slice_map '' W₁) |
| 136 | (H.endpoint_slice_map '' W₂) ∧ |
| 137 | M14ReducedVolumeOnAnalyticCarrier A (W₁ ∪ W₂) = |
| 138 | M14ReducedVolumeOnAnalyticCarrier A W₁ + |
| 139 | M14ReducedVolumeOnAnalyticCarrier A W₂ |
| 140 | terminal_W_lower_bound : |
| 141 | ∀ (T τmax : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) |
| 142 | (τ₀ : ℝ), |
| 143 | 0 < τ₀ → τ₀ ≤ τmax → |
| 144 | ∀ (H₀ : M14StableSet G T τ₀ x E) |
| 145 | (A₀ : M14ReducedVolumeAnalyticData G T τ₀ x E H₀) |
| 146 | (W : Set (G.Horizontal x)), |
| 147 | IsOpen W → W.Nonempty → MeasurableSet W → W ⊆ H₀.carrier → |
| 148 | ∀ l₀ V : ℝ, 0 ≤ l₀ → 0 < V → |
| 149 | (∀ Z, Z ∈ W → |
| 150 | M14ReducedLengthValue G T 0 τ₀ x (H₀.endpoint_map Z) ≤ l₀) → |
| 151 | ENNReal.ofReal V ≤ |
| 152 | calibratedMetricVolume (G.slices (T - τ₀)).metricOnPoints |
| 153 | (H₀.endpoint_slice_map '' W) → |
| 154 | Real.rpow τ₀ (-(n : ℝ) / 2) * Real.exp (-l₀) * V ≤ |
| 155 | M14ReducedVolumeOnAnalyticCarrier A₀ W ∧ |
| 156 | ∀ τ, 0 < τ → τ ≤ τ₀ → |
| 157 | ∃ Hτ : M14StableSet G T τ x E, |
| 158 | W ⊆ Hτ.carrier ∧ |
| 159 | ∃ Aτ : M14ReducedVolumeAnalyticData G T τ x E Hτ, |
| 160 | Real.rpow τ₀ (-(n : ℝ) / 2) * Real.exp (-l₀) * V ≤ |
| 161 | M14ReducedVolumeOnAnalyticCarrier Aτ W |
| 162 | |
| 163 | end PoincareMT |