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.Compact.Estimates.LateVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Estimates.EarlyVolume |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_Assembly.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # The compact noncollapsing theorem |
| 10 | |
| 11 | Morgan-Tian Theorem 8.10, pp. 176-177. The positive minimum of the |
| 12 | early and late constants is uniform before all geometric inputs. |
| 13 | Restriction to the tested component covers disconnected manifolds. |
| 14 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-compact-assembly.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | /-- Compact Theorem 8.10, pp. 176-177, with constants depending only |
| 27 | on the initial unit-ball volume bound and the maximum flow time. -/ |
| 28 | theorem compactTheorem810 |
| 29 | (hM04 : RicciFlowCurvatureTheory.{u}) |
| 30 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 31 | (hM13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 32 | (hM14 : GeneralizedLGeometryTheory.{u} 3) |
| 33 | (hOrdinary : M14OrdinaryProviders.{u} 3) : |
| 34 | M15CompactTheorem810.{u} := by |
| 35 | intro omega T0 homega hT0 |
| 36 | obtain ⟨ke, hke, hearly⟩ := exists_compact_initial_volume_bound 3 (by decide) omega homega |
| 37 | obtain ⟨kl, hkl, hlate⟩ := exists_compact_late_volume_bound hM04 hM12 hM13 hM14 |
| 38 | hOrdinary omega T0 homega hT0 |
| 39 | refine ⟨{ |
| 40 | omega_pos := homega |
| 41 | T₀_pos := hT0 |
| 42 | kappa := min ke kl |
| 43 | kappa_pos := lt_min hke hkl |
| 44 | estimate := ?_ |
| 45 | }⟩ |
| 46 | apply compact_estimate_of_connected |
| 47 | intro M _ _ _ _ _ _ _ _ _ T F D |
| 48 | by_cases hl : 1 / (32 * (3 : ℝ) ^ 6) ≤ D.t₀ |
| 49 | · apply le_trans (ENNReal.ofReal_le_ofReal |
| 50 | (mul_le_mul_of_nonneg_right (min_le_right ke kl) (pow_nonneg D.radius_pos.le 3))) |
| 51 | exact hlate M T F D hl |
| 52 | · have ht : D.t₀ ∈ Icc 0 (min T (1 / (32 * (3 : ℝ) ^ 6))) := |
| 53 | ⟨D.t₀_nonneg, le_min D.t₀_le_T (le_of_lt (lt_of_not_ge hl))⟩ |
| 54 | have hr1 : D.r ≤ 1 := by |
| 55 | have hdelta : 1 / (32 * (3 : ℝ) ^ 6) ≤ 1 := by norm_num |
| 56 | have htr : D.t₀ ≤ 1 := (le_of_lt (lt_of_not_ge hl)).trans hdelta |
| 57 | nlinarith [D.radius_sq_le_t₀] |
| 58 | have hinit (q : M) : (F.connection 0).curvatureTensorNorm q ≤ 1 := |
| 59 | (le_abs_self _).trans (D.initial_curvature_bound q) |
| 60 | apply le_trans (ENNReal.ofReal_le_ofReal |
| 61 | (mul_le_mul_of_nonneg_right (min_le_left ke kl) (pow_nonneg D.radius_pos.le 3))) |
| 62 | exact hearly M T D.T_pos F hinit D.initial_unit_ball_volume D.t₀ ht |
| 63 | D.p D.r D.radius_pos hr1 |
| 64 | |
| 65 | end PoincareMT.Generalized.Noncollapse |