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.Induction.EpochExtension.Analytics.AnalyticWindow |
| 2 | |
| 3 | /-! |
| 4 | # A strict analytic threshold for the singular-limit history |
| 5 | |
| 6 | Only the auxiliary limit radius is reduced. The selected geometric radius, |
| 7 | coefficient and M32 surgery height remain fixed. The strict margin allows |
| 8 | the ordinary-time scalar estimate to extend across included old events. |
| 9 | Source: Morgan--Tian Assumptions 11.18 and Section 17.2, pp. 279, 409-410. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.M48AnalyticCalibration |
| 17 | |
| 18 | variable {S : RepairedControlledSchedulesData.{u}} (A : M48AnalyticCalibration S) |
| 19 | |
| 20 | noncomputable def historyRadius (r : ℝ) : ℝ := (3 / 4 : ℝ) * A.limitRadius r |
| 21 | |
| 22 | theorem historyRadius_pos {r : ℝ} (hr : 0 < r) : 0 < A.historyRadius r := |
| 23 | mul_pos (by norm_num) (A.limitRadius_pos hr) |
| 24 | |
| 25 | theorem historyRadius_lt {r : ℝ} (hr : 0 < r) : A.historyRadius r < A.limitRadius r := by |
| 26 | unfold historyRadius |
| 27 | nlinarith [A.limitRadius_pos hr] |
| 28 | |
| 29 | theorem history_threshold {r : ℝ} (hr : 0 < r) : |
| 30 | (A.limitRadius r)⁻¹ ^ 2 < (A.historyRadius r)⁻¹ ^ 2 := by |
| 31 | have hi : (A.limitRadius r)⁻¹ < (A.historyRadius r)⁻¹ := |
| 32 | (inv_lt_inv₀ (A.limitRadius_pos hr) (A.historyRadius_pos hr)).2 (A.historyRadius_lt hr) |
| 33 | nlinarith [inv_pos.mpr (A.limitRadius_pos hr), inv_pos.mpr (A.historyRadius_pos hr)] |
| 34 | |
| 35 | /-- The actual cut scale fits the smaller radius, including at an excluded frontier. -/ |
| 36 | theorem cut_scale_lt_historyRadius |
| 37 | {p : SurgeryParameterPrefix S.constants} {F : SurgeryFlowData.{u}} |
| 38 | {O : SurgeryObservation F} (old : SurgeryPrefixControls p F O) |
| 39 | (hp : S.SeedCompatible p) {r : ℝ} (hr : 0 < r) (hre : r ≤ S.setup.epsilon) |
| 40 | (t : ℝ) (ht : 0 ≤ t) : F.parameters.delta t * r < A.historyRadius r := by |
| 41 | have hdelta := old.delta_le_initial hp t ht |
| 42 | have hdelta_pos := F.parameters.delta_pos t ht |
| 43 | have hD : S.Delta0 < (1 : ℝ) / 200 := by |
| 44 | rw [← hp.Delta_zero_eq] |
| 45 | exact (p.Delta_le_setup 0).trans_lt S.constants.delta₀_lt |
| 46 | have hrho : F.parameters.delta t * r ≤ S.Delta0 * S.setup.epsilon := |
| 47 | (mul_le_mul_of_nonneg_left hre hdelta_pos.le).trans |
| 48 | (mul_le_mul_of_nonneg_right hdelta S.setup.epsilon_pos.le) |
| 49 | have ha : 0 < (A.component.curvature_threshold + 1)⁻¹ := by |
| 50 | apply inv_pos.mpr |
| 51 | linarith [A.component.one_le_curvature_threshold] |
| 52 | have hfirst : F.parameters.delta t * r < (3 / 4 : ℝ) * r := by |
| 53 | apply mul_lt_mul_of_pos_right (hdelta.trans_lt _) hr |
| 54 | linarith |
| 55 | have hsecond : F.parameters.delta t * r < |
| 56 | (3 / 4 : ℝ) * (A.component.curvature_threshold + 1)⁻¹ := by |
| 57 | nlinarith [A.delta_radius] |
| 58 | unfold historyRadius limitRadius |
| 59 | rcases le_total r (A.component.curvature_threshold + 1)⁻¹ with h | h |
| 60 | · simpa only [min_eq_left h] using hfirst |
| 61 | · simpa only [min_eq_right h] using hsecond |
| 62 | |
| 63 | end PoincareMT.M48AnalyticCalibration |