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.Noncollapse.ReducedVolume.SmallPart.SmallPart |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.ReducedVolume.LargePart |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Prop8_2_UpperBound.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # The whole-set reduced-volume upper bound |
| 10 | |
| 11 | Morgan-Tian Proposition 8.2, pp. 170-171, combining the corrected |
| 12 | Lemmas 8.3 and 8.9. The two measurable parts use the actual horizontal |
| 13 | energy and the same selected stable endpoint map and analytic witness. |
| 14 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-generalized-assembly.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | /-- Small terminal volume bounds the reduced volume of every measurable |
| 27 | stable subset at time epsilon*r^2. Source: Proposition 8.2, pp. 170-171, |
| 28 | with the repaired small- and large-vector estimates. -/ |
| 29 | theorem exists_actualBallCylinder_reducedVolume_bound |
| 30 | (hM04 : RicciFlowCurvatureTheory.{u}) (n : ℕ) |
| 31 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) : |
| 33 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 2 ∧ |
| 34 | ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 35 | (I : SpacetimeInterval) (G : GeneralizedLGeometryTransport n X time I) |
| 36 | (T : ℝ) (x : (G.slices T).Point) (r : ℝ) (K : SpacetimeInterval) |
| 37 | (C : Type u) [TopologicalSpace C] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 39 | [T2Space C] [SecondCountableTopology C] |
| 40 | (_B : M15ActualBallCylinder G T x r K C), |
| 41 | IsCompact (closure ((G.slices T).metricOnPoints.ball x r)) → |
| 42 | ∀ (E : M14ExponentialFamily G T x.val) (epsilon : ℝ), |
| 43 | 0 < epsilon → epsilon ≤ epsilon0 → |
| 44 | ∀ (H : M14StableSet G T (epsilon * r ^ 2) x.val E) |
| 45 | (_S : M14ReducedVolumeSourceCoverageData G) |
| 46 | (A : M14ReducedVolumeAnalyticData G T (epsilon * r ^ 2) x.val E H) |
| 47 | (W : Set (G.Horizontal x.val)), |
| 48 | MeasurableSet W → W ⊆ H.carrier → |
| 49 | calibratedMetricVolume (G.slices T).metricOnPoints |
| 50 | ((G.slices T).metricOnPoints.ball x r) ≤ |
| 51 | ENNReal.ofReal (epsilon ^ n * r ^ n) → |
| 52 | M14ReducedVolumeOnAnalyticCarrier A W ≤ |
| 53 | 3 * Real.rpow epsilon ((n : ℝ) / 2) := by |
| 54 | obtain ⟨es, hes, heshalf, hsmall⟩ := |
| 55 | exists_actualBallCylinder_small_part_bound hM04 n hM12 hM13 |
| 56 | obtain ⟨el, hel, hlarge⟩ := exists_large_vector_threshold.{u} n |
| 57 | refine ⟨min es el, lt_min hes hel, (min_le_left _ _).trans heshalf, ?_⟩ |
| 58 | intro X _ time I G T x r K C _ _ _ _ _ B hcompact E epsilon hepsilon hepsilon_le |
| 59 | H S A W hW hWH hball |
| 60 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 61 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 62 | have henergy : Measurable (fun Z => G.spacetime.horizontalMetric.inner x.val Z Z) := by |
| 63 | have hcont : Continuous (fun Z => G.spacetime.horizontalMetric.inner x.val Z Z) := by |
| 64 | fun_prop |
| 65 | exact hcont.measurable |
| 66 | let W1 := W ∩ {Z | G.spacetime.horizontalMetric.inner x.val Z Z ≤ 1 / (64 * epsilon)} |
| 67 | let W2 := W \ W1 |
| 68 | have hW1 : MeasurableSet W1 := hW.inter (measurableSet_le henergy measurable_const) |
| 69 | have hW2 : MeasurableSet W2 := hW.diff hW1 |
| 70 | have hW1H : W1 ⊆ H.carrier := fun _ hZ => hWH hZ.1 |
| 71 | have hW2H : W2 ⊆ H.carrier := fun _ hZ => hWH hZ.1 |
| 72 | have hcut : (1 / (8 * Real.sqrt epsilon)) ^ 2 = 1 / (64 * epsilon) := by |
| 73 | rw [div_pow, mul_pow, Real.sq_sqrt hepsilon.le] |
| 74 | norm_num |
| 75 | have hsmall' := hsmall X time I G T x r K C B hcompact E epsilon hepsilon |
| 76 | (hepsilon_le.trans (min_le_left _ _)) H S A W1 hW1 hW1H |
| 77 | (fun Z hZ => Real.sqrt_le_iff.mpr ⟨by positivity, by rw [hcut]; exact hZ.2⟩) hball |
| 78 | have hlarge' := hlarge epsilon hepsilon (hepsilon_le.trans (min_le_right _ _)) |
| 79 | S A hW2 hW2H (fun Z hZ => by |
| 80 | have hnot : ¬ G.spacetime.horizontalMetric.inner x.val Z Z ≤ 1 / (64 * epsilon) := |
| 81 | fun h => hZ.2 ⟨hZ.1, h⟩ |
| 82 | exact (lt_of_not_ge hnot).le) |
| 83 | have hdisjoint : Disjoint W1 W2 := disjoint_left.mpr fun _ hZ1 hZ2 => hZ2.2 hZ1 |
| 84 | have hparts : W1 ∪ W2 = W := by |
| 85 | ext Z |
| 86 | simp only [W1, W2, mem_union, mem_inter_iff, mem_ofPred_eq, mem_sdiff] |
| 87 | tauto |
| 88 | have hadd := ((S.disjoint_image_additivity T (epsilon * r ^ 2) x.val E H A).2 |
| 89 | W1 W2 hW1H hW2H hW1 hW2 hdisjoint).2.2.2.2 |
| 90 | rw [hparts] at hadd |
| 91 | rw [hadd] |
| 92 | linarith |
| 93 | |
| 94 | end PoincareMT.Generalized.Noncollapse |