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.Surgery.Singular.HornSelection |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | |
| 5 | universe u |
| 6 | |
| 7 | namespace PoincareMT |
| 8 | |
| 9 | /-- Shrink the same geometric selector to satisfy a positive linear bound |
| 10 | in rho and a positive absolute height bound, as required in Chapter 15. -/ |
| 11 | noncomputable def M32DeepHornScaleSelection.restrictHeight |
| 12 | {epsilon C analyticConstant : ℝ} |
| 13 | (S : M32DeepHornScaleSelection.{u} epsilon C analyticConstant) |
| 14 | (factor bound : ℝ) (hfactor : 0 < factor) (hbound : 0 < bound) : |
| 15 | M32DeepHornScaleSelection.{u} epsilon C analyticConstant where |
| 16 | h := fun rho delta => min (S.h rho delta) (min (factor * rho) bound) |
| 17 | h_pos := fun rho delta hr hd => |
| 18 | lt_min (S.h_pos rho delta hr hd) (lt_min (mul_pos hfactor hr) hbound) |
| 19 | h_le := fun rho delta hr hd => |
| 20 | (min_le_left _ _).trans (S.h_le rho delta hr hd) |
| 21 | h_mono_rho := by |
| 22 | intro delta hd rho hr rho' hr' hle |
| 23 | exact min_le_min (S.h_mono_rho delta hd hr hr' hle) |
| 24 | (min_le_min (mul_le_mul_of_nonneg_left hle hfactor.le) le_rfl) |
| 25 | h_mono_delta := by |
| 26 | intro rho hr delta hd delta' hd' hle |
| 27 | exact min_le_min (S.h_mono_delta rho hr hd hd' hle) le_rfl |
| 28 | h_upper := fun rho delta hr hd => |
| 29 | (min_le_left _ _).trans (S.h_upper rho delta hr hd) |
| 30 | deep_horn := by |
| 31 | intro rho delta a hr hd ha hle |
| 32 | exact S.deep_horn rho delta a hr hd ha (hle.trans (min_le_left _ _)) |
| 33 | |
| 34 | /-- The restricted selector satisfies the prescribed linear radius bound. -/ |
| 35 | theorem M32DeepHornScaleSelection.restrictHeight_le_radius |
| 36 | {epsilon C analyticConstant : ℝ} |
| 37 | (S : M32DeepHornScaleSelection.{u} epsilon C analyticConstant) |
| 38 | (factor bound : ℝ) (hfactor : 0 < factor) (hbound : 0 < bound) |
| 39 | (rho delta : ℝ) : |
| 40 | (S.restrictHeight factor bound hfactor hbound).h rho delta ≤ factor * rho := |
| 41 | (min_le_right _ _).trans (min_le_left _ _) |
| 42 | |
| 43 | /-- The restricted selector satisfies the prescribed absolute height bound. -/ |
| 44 | theorem M32DeepHornScaleSelection.restrictHeight_le_bound |
| 45 | {epsilon C analyticConstant : ℝ} |
| 46 | (S : M32DeepHornScaleSelection.{u} epsilon C analyticConstant) |
| 47 | (factor bound : ℝ) (hfactor : 0 < factor) (hbound : 0 < bound) |
| 48 | (rho delta : ℝ) : |
| 49 | (S.restrictHeight factor bound hfactor hbound).h rho delta ≤ bound := |
| 50 | (min_le_right _ _).trans (min_le_right _ _) |
| 51 | |
| 52 | end PoincareMT |