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.Calibration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochData |
| 3 | |
| 4 | /-! |
| 5 | # The actual observation contains the component-estimate window |
| 6 | |
| 7 | The initial normalized-flow bound excludes early high-curvature points. |
| 8 | The antitone surgery profile propagates the controlled time-zero cutoff to |
| 9 | all nonnegative times, including excluded frontiers. Sources: Morgan--Tian |
| 10 | Claim 15.1, p. 353, and the calibrated use of Assumptions 11.18 in Section |
| 11 | 17.2, pp. 409-410. No estimate at a singular frontier is asserted. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- The initial prefix entry controls every later value of the actual profile. -/ |
| 23 | theorem SurgeryPrefixControls.delta_le_initial |
| 24 | {S : RepairedControlledSchedulesData.{u}} {p : SurgeryParameterPrefix S.constants} |
| 25 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 26 | (old : SurgeryPrefixControls p F O) (hp : S.SeedCompatible p) |
| 27 | (t : ℝ) (ht : 0 ≤ t) : F.parameters.delta t ≤ S.Delta0 := by |
| 28 | have hzero : (0 : ℝ) ∈ surgeryEpochEntry 0 := by |
| 29 | change (0 : ℝ) ≤ 0 ∧ 0 < (2 : ℝ) ^ 0 / 32 |
| 30 | norm_num |
| 31 | have hbound := old.delta_bound 0 (Nat.zero_le _) 0 |
| 32 | ⟨⟨le_rfl, O.H_pos⟩, hzero⟩ |
| 33 | exact (F.parameters.delta_antitone (by simpa only [Set.mem_Ici] using (le_refl (0 : ℝ))) |
| 34 | (by simpa only [Set.mem_Ici] using ht) ht).trans (hbound.trans_eq hp.Delta_zero_eq) |
| 35 | |
| 36 | namespace M48AnalyticCalibration |
| 37 | |
| 38 | variable {S : RepairedControlledSchedulesData.{u}} (A : M48AnalyticCalibration S) |
| 39 | |
| 40 | noncomputable def limitRadius (r : ℝ) : ℝ := |
| 41 | min r (A.component.curvature_threshold + 1)⁻¹ |
| 42 | |
| 43 | theorem limitRadius_pos {r : ℝ} (hr : 0 < r) : 0 < A.limitRadius r := by |
| 44 | apply lt_min hr |
| 45 | apply inv_pos.mpr |
| 46 | linarith [A.component.one_le_curvature_threshold] |
| 47 | |
| 48 | theorem limitRadius_le (r : ℝ) : A.limitRadius r ≤ r := min_le_left _ _ |
| 49 | |
| 50 | /-- Both the component threshold and the initial curvature bound are exceeded. -/ |
| 51 | theorem threshold_bounds {r Q : ℝ} (hr : 0 < r) (hre : r ≤ S.setup.epsilon) |
| 52 | (hQ : (A.limitRadius r)⁻¹ ^ 2 ≤ Q) : |
| 53 | A.component.curvature_threshold ≤ Q ∧ (40000 : ℝ) ≤ Q := by |
| 54 | have hr0 := A.limitRadius_pos hr |
| 55 | have hsmall : A.limitRadius r ≤ (1 : ℝ) / 200 := |
| 56 | (A.limitRadius_le r).trans (hre.trans (S.setup.epsilon_le.trans (min_le_left _ _))) |
| 57 | have hi := one_div_le_one_div_of_le hr0 hsmall |
| 58 | norm_num [one_div] at hi |
| 59 | have hlarge := one_div_le_one_div_of_le hr0 |
| 60 | (show A.limitRadius r ≤ (A.component.curvature_threshold + 1)⁻¹ from min_le_right _ _) |
| 61 | simp only [one_div, inv_inv] at hlarge |
| 62 | have hs : (A.component.curvature_threshold + 1) ^ 2 ≤ (A.limitRadius r)⁻¹ ^ 2 := by |
| 63 | gcongr |
| 64 | linarith [A.component.one_le_curvature_threshold] |
| 65 | constructor |
| 66 | · nlinarith [A.component.one_le_curvature_threshold] |
| 67 | · nlinarith |
| 68 | |
| 69 | /-- The same raw flow supplies the entire closed history tested by M47. -/ |
| 70 | theorem component_window {F : SurgeryFlowData.{u}} (O : SurgeryObservation F) |
| 71 | {r t : ℝ} (hr : 0 < r) (hre : r ≤ S.setup.epsilon) |
| 72 | (ht : t ∈ surgeryObservationInterval O) (x : (F.slice t).carrier) |
| 73 | (hQ : (A.limitRadius r)⁻¹ ^ 2 ≤ (F.connection t).scalarCurvature x) : |
| 74 | Icc (t - A.component.duration / (F.connection t).scalarCurvature x) t ⊆ |
| 75 | surgeryObservationInterval O := by |
| 76 | have hlarge := (A.threshold_bounds hr hre hQ).2 |
| 77 | have htlate : (1 : ℝ) / 16 < t := by |
| 78 | by_contra h |
| 79 | have hbound := ((S.calibration.initial_capture F).2 t |
| 80 | (O.interval_subset ht) (le_of_not_gt h) x).2.1 |
| 81 | nlinarith [le_abs_self ((F.connection t).scalarCurvature x)] |
| 82 | have hduration : A.component.duration / (F.connection t).scalarCurvature x ≤ |
| 83 | (1 : ℝ) / 40000 := by |
| 84 | calc |
| 85 | _ ≤ 1 / (F.connection t).scalarCurvature x := |
| 86 | div_le_div_of_nonneg_right A.component.duration_le_one (by linarith) |
| 87 | _ ≤ 1 / 40000 := one_div_le_one_div_of_le (by norm_num) hlarge |
| 88 | intro s hs |
| 89 | exact ⟨by linarith [hs.1], hs.2.trans_lt ht.2⟩ |
| 90 | |
| 91 | /-- This numerical guard also holds at an excluded nonnegative frontier. -/ |
| 92 | theorem cut_scale_lt_radius |
| 93 | {p : SurgeryParameterPrefix S.constants} {F : SurgeryFlowData.{u}} |
| 94 | {O : SurgeryObservation F} (old : SurgeryPrefixControls p F O) |
| 95 | (hp : S.SeedCompatible p) {r : ℝ} (hr : 0 < r) (hre : r ≤ S.setup.epsilon) |
| 96 | (t : ℝ) (ht : 0 ≤ t) : F.parameters.delta t * r < A.limitRadius r := by |
| 97 | have hdelta := old.delta_le_initial hp t ht |
| 98 | have hdelta_pos := F.parameters.delta_pos t ht |
| 99 | have hepsilon : S.setup.epsilon ≤ (1 : ℝ) / 200 := |
| 100 | S.setup.epsilon_le.trans (min_le_left _ _) |
| 101 | have hD : S.Delta0 ≤ S.calibration.beta * S.setup.epsilon / 3 := |
| 102 | S.calibration.delta_zero_eq.le.trans (min_le_left _ _) |
| 103 | have hD1 : S.Delta0 < 1 := by |
| 104 | have hprod := mul_lt_mul_of_pos_right S.calibration.beta_lt_half S.setup.epsilon_pos |
| 105 | nlinarith |
| 106 | have hrho : F.parameters.delta t * r ≤ S.Delta0 * S.setup.epsilon := |
| 107 | (mul_le_mul_of_nonneg_left hre hdelta_pos.le).trans |
| 108 | (mul_le_mul_of_nonneg_right hdelta S.setup.epsilon_pos.le) |
| 109 | have ha : 0 < (A.component.curvature_threshold + 1)⁻¹ := by |
| 110 | apply inv_pos.mpr |
| 111 | linarith [A.component.one_le_curvature_threshold] |
| 112 | apply lt_min |
| 113 | · simpa only [one_mul] using mul_lt_mul_of_pos_right (hdelta.trans_lt hD1) hr |
| 114 | · nlinarith [A.delta_radius] |
| 115 | |
| 116 | end M48AnalyticCalibration |
| 117 | |
| 118 | end PoincareMT |