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.Cylinder.UpperBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Uniform.Reduction |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Uniform.DimensionZero |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_1_Assembly.lean` at |
| 6 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 7 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # The uniform generalized noncollapsing theorem |
| 11 | |
| 12 | Morgan-Tian Theorem 8.1, pp. 169-170. A fixed sufficiently small epsilon |
| 13 | is chosen before all geometric configurations. Proposition 8.2 then |
| 14 | contradicts the uniform terminal reduced-volume lower bound whenever |
| 15 | the desired terminal ball-volume estimate fails. |
| 16 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-generalized-assembly.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.Generalized.Noncollapse |
| 27 | |
| 28 | /-- The uniform generalized conclusion of Theorem 8.1, pp. 169-170. |
| 29 | All constants precede the flow, cylinder and stable configuration; |
| 30 | dimension zero uses the separate calibrated-volume argument. -/ |
| 31 | theorem generalizedUniformTheorem |
| 32 | (hM04 : RicciFlowCurvatureTheory.{u}) (n : ℕ) |
| 33 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 34 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 35 | (hM14 : GeneralizedLGeometryTheory.{u} n) : |
| 36 | M15GeneralizedUniformTheorem.{u} n := by |
| 37 | by_cases hn : n = 0 |
| 38 | · subst n |
| 39 | exact generalizedUniformTheorem_zero |
| 40 | have hnpos : 0 < (n : ℝ) / 2 := |
| 41 | div_pos (by exact_mod_cast Nat.pos_of_ne_zero hn) (by norm_num) |
| 42 | obtain ⟨epsilon0, hepsilon0, hepsilon0half, hupper⟩ := |
| 43 | exists_actualBallCylinder_reducedVolume_bound hM04 n hM12 hM13 |
| 44 | intro taubar l₀ V htaubar hl₀ hV |
| 45 | have hlower : 0 < reducedVolumeLowerBound n taubar l₀ V := |
| 46 | reducedVolumeLowerBound_pos htaubar hV |
| 47 | have hf : ContinuousAt (fun e : ℝ => 3 * Real.rpow e ((n : ℝ) / 2)) 0 := |
| 48 | continuousAt_const.mul (Real.continuousAt_rpow_const 0 _ (Or.inr hnpos.le)) |
| 49 | have hf0 : 3 * Real.rpow (0 : ℝ) ((n : ℝ) / 2) < |
| 50 | reducedVolumeLowerBound n taubar l₀ V := by |
| 51 | simpa only [Real.rpow_eq_pow, Real.zero_rpow (ne_of_gt hnpos), mul_zero] using hlower |
| 52 | have hN : ∀ᶠ e : ℝ in 𝓝 0, |
| 53 | 3 * Real.rpow e ((n : ℝ) / 2) < reducedVolumeLowerBound n taubar l₀ V := |
| 54 | hf (Iio_mem_nhds hf0) |
| 55 | obtain ⟨delta, hdelta, hball⟩ := Metric.mem_nhds_iff.mp hN |
| 56 | let epsilon := min epsilon0 (delta / 2) |
| 57 | have hepsilon : 0 < epsilon := lt_min hepsilon0 (half_pos hdelta) |
| 58 | have hepsilon_le : epsilon ≤ epsilon0 := min_le_left _ _ |
| 59 | have hedelta : epsilon < delta := (min_le_right _ _).trans_lt (half_lt_self hdelta) |
| 60 | have hsmall : 3 * Real.rpow epsilon ((n : ℝ) / 2) < |
| 61 | reducedVolumeLowerBound n taubar l₀ V := hball (by |
| 62 | simpa only [Metric.mem_ball, Real.dist_eq, sub_zero, abs_of_pos hepsilon] |
| 63 | using hedelta) |
| 64 | refine ⟨{ |
| 65 | taubar_pos := htaubar |
| 66 | l₀_pos := hl₀ |
| 67 | V_pos := hV |
| 68 | kappa := epsilon ^ n |
| 69 | kappa_pos := pow_pos hepsilon n |
| 70 | estimate := ?_ |
| 71 | }⟩ |
| 72 | intro X _ time I G T x E r K C _ _ _ _ _ B D |
| 73 | have htau : 0 < epsilon * r ^ 2 := mul_pos hepsilon (sq_pos_of_pos B.radius_pos) |
| 74 | have htime : epsilon * r ^ 2 ≤ D.tau₀ := by |
| 75 | apply le_trans _ D.radius_sq_le_tau₀ |
| 76 | have he : epsilon ≤ 1 := (hepsilon_le.trans hepsilon0half).trans (by norm_num) |
| 77 | simpa only [one_mul] using mul_le_mul_of_nonneg_right he (sq_nonneg r) |
| 78 | obtain ⟨H, hWH, A, hlowerA⟩ := configuration_reducedVolume_lower_bound hM14 D hl₀.le hV |
| 79 | (epsilon * r ^ 2) htau htime |
| 80 | obtain ⟨L⟩ := hM14.conclusion X time I G |
| 81 | obtain ⟨S⟩ := L.reduced_volume_source |
| 82 | by_contra h |
| 83 | have hvolume : calibratedMetricVolume (G.slices T).metricOnPoints |
| 84 | ((G.slices T).metricOnPoints.ball x r) ≤ ENNReal.ofReal (epsilon ^ n * r ^ n) := |
| 85 | (lt_of_not_ge h).le |
| 86 | have hbound := hupper X time I G T x r K C B D.terminal_ball_compact |
| 87 | E epsilon hepsilon hepsilon_le H S A D.W D.W_open.measurableSet hWH hvolume |
| 88 | exact (not_le_of_gt hsmall) (hlowerA.trans hbound) |
| 89 | |
| 90 | end PoincareMT.Generalized.Noncollapse |