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.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Theory |
| 3 | import Mathlib.Topology.Algebra.Support |
| 4 | |
| 5 | /-! |
| 6 | # Reduced-volume monotonicity |
| 7 | |
| 8 | The complete ordinary-flow output includes the measure-theoretic regularity |
| 9 | needed by Chapter 7, both weak reduced-length inequalities, the minimum bound, |
| 10 | and the global and open-domain reduced-volume conclusions. The equality case |
| 11 | asserts one Euclidean identification for the entire closed time interval. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 24 | [IsManifold (𝓡 n) ∞ M] [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 25 | |
| 26 | /-- The complete reduced-volume output for a complete ordinary Ricci flow. -/ |
| 27 | structure ReducedVolumeTheory {J : Set ℝ} (F : RicciFlow n M J) |
| 28 | (T τmax : ℝ) where |
| 29 | measure_regularity : ∀ p : M, Nonempty (ReducedLengthMeasureData F T τmax p) |
| 30 | weak_inequalities : ∀ p : M, ∀ τ : ℝ, 0 < τ → τ < τmax → |
| 31 | ∀ φ : M → ℝ, ContMDiff (𝓡 n) (𝓘(ℝ, ℝ)) ∞ φ → HasCompactSupport φ → |
| 32 | (∀ q : M, 0 ≤ φ q) → |
| 33 | MeasureTheory.Integrable (reducedLengthFirstWeakIntegrand F T p τ φ) |
| 34 | (calibratedMetricVolume (F.metric (T - τ))) ∧ |
| 35 | MeasureTheory.Integrable (reducedLengthSecondWeakIntegrand F T p τ φ) |
| 36 | (calibratedMetricVolume (F.metric (T - τ))) ∧ |
| 37 | 0 ≤ ∫ q, reducedLengthFirstWeakIntegrand F T p τ φ q |
| 38 | ∂calibratedMetricVolume (F.metric (T - τ)) ∧ |
| 39 | (∫ q, reducedLengthSecondWeakIntegrand F T p τ φ q |
| 40 | ∂calibratedMetricVolume (F.metric (T - τ))) ≤ 0 |
| 41 | minimum_bound : ∀ p : M, ∀ τ : ℝ, 0 < τ → τ < τmax → |
| 42 | ∃ q : M, (∀ q' : M, reducedLength F T p q τ ≤ reducedLength F T p q' τ) ∧ |
| 43 | reducedLength F T p q τ ≤ (n : ℝ) / 2 |
| 44 | density_integrable : ∀ p : M, ∀ τ : ℝ, 0 < τ → τ < τmax → |
| 45 | MeasureTheory.Integrable (reducedVolumeDensity F T p τ) |
| 46 | (calibratedMetricVolume (F.metric (T - τ))) |
| 47 | volume_bounds : ∀ p : M, ∀ τ : ℝ, 0 < τ → τ < τmax → |
| 48 | 0 < reducedVolume F T p τ ∧ reducedVolume F T p τ ≤ euclideanReducedVolume n |
| 49 | monotone : ∀ p : M, AntitoneOn (reducedVolume F T p) (Set.Ioo 0 τmax) |
| 50 | zero_time_limit : ∀ p : M, |
| 51 | Filter.Tendsto (reducedVolume F T p) (𝓝[>] (0 : ℝ)) (𝓝 (euclideanReducedVolume n)) |
| 52 | open_domain_monotone : ∀ p : M, ∀ A : Set (M × ℝ), |
| 53 | IsBackwardLStarShaped F T τmax p A → |
| 54 | AntitoneOn (fun τ ↦ reducedVolumeOn F T p τ {q | (q, τ) ∈ A}) (Set.Ioo 0 τmax) |
| 55 | euclidean_rigidity : ∀ p : M, ∀ τ : ℝ, 0 < τ → τ < τmax → |
| 56 | reducedVolume F T p τ = euclideanReducedVolume n → |
| 57 | IsStaticEuclideanFlowOn F (Set.Icc (T - τ) T) |
| 58 | |
| 59 | end PoincareMT |