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.Control.Calibration |
| 2 | |
| 3 | /-! |
| 4 | # Initial finite surgery parameters |
| 5 | |
| 6 | Definition 15.7, printed p. 360, fixes the initial radius, noncollapsing |
| 7 | constant and cutoff before the induction. The index-one prefix repeats |
| 8 | these initial entries. Decreasing the initial cutoff also decreases the |
| 9 | chosen Theorem 13.2 cutoff, while keeping the geometric data fixed. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.RepairedControlledSchedulesData |
| 17 | |
| 18 | variable (B : RepairedControlledSchedulesData.{u}) |
| 19 | |
| 20 | theorem Delta0_pos : 0 < B.Delta0 := by |
| 21 | rw [B.calibration.delta_zero_eq] |
| 22 | exact lt_min |
| 23 | (div_pos (mul_pos B.calibration.beta_pos B.setup.epsilon_pos) (by norm_num)) |
| 24 | (lt_min B.calibration.delta₁₃_pos |
| 25 | (lt_min (inv_pos.mpr B.cap_persistence.standard_cap.initial_estimate.core_volume_constant_pos) |
| 26 | (inv_pos.mpr B.cap_persistence.standard_cap.initial_estimate.scalar_constant_pos))) |
| 27 | |
| 28 | theorem Delta0_le_setup : B.Delta0 ≤ B.constants.delta₀ := by |
| 29 | rw [B.calibration.delta_zero_eq] |
| 30 | exact (min_le_right _ _).trans ((min_le_left _ _).trans B.calibration.delta₁₃_le) |
| 31 | |
| 32 | /-- The numerical prefix covers the first two epoch entries. No flow or |
| 33 | analytic induction result is assumed in its construction. -/ |
| 34 | def initialPrefix : SurgeryParameterPrefix B.constants where |
| 35 | setup := B.setup |
| 36 | i := 1 |
| 37 | i_pos := Nat.zero_lt_succ 0 |
| 38 | r := fun _ => B.setup.epsilon |
| 39 | kappa := fun _ => B.kappa0 |
| 40 | Delta := fun _ => B.Delta0 |
| 41 | r_pos := fun _ => B.setup.epsilon_pos |
| 42 | kappa_pos := fun _ => B.calibration.kappa₀_pos |
| 43 | Delta_pos := fun _ => B.Delta0_pos |
| 44 | r_antitone := fun {_ _} _ => le_rfl |
| 45 | kappa_antitone := fun {_ _} _ => le_rfl |
| 46 | Delta_antitone := fun {_ _} _ => le_rfl |
| 47 | r_zero := rfl |
| 48 | r_le_epsilon := fun _ => le_rfl |
| 49 | Delta_le_setup := fun _ => B.Delta0_le_setup |
| 50 | |
| 51 | @[simp] theorem initialPrefix_i : B.initialPrefix.i = 1 := rfl |
| 52 | |
| 53 | @[simp] theorem initialPrefix_setup : B.initialPrefix.setup = B.setup := rfl |
| 54 | |
| 55 | @[simp] theorem initialPrefix_r (j : Fin 2) : |
| 56 | B.initialPrefix.r j = B.setup.epsilon := rfl |
| 57 | |
| 58 | @[simp] theorem initialPrefix_kappa (j : Fin 2) : |
| 59 | B.initialPrefix.kappa j = B.kappa0 := rfl |
| 60 | |
| 61 | @[simp] theorem initialPrefix_Delta (j : Fin 2) : |
| 62 | B.initialPrefix.Delta j = B.Delta0 := rfl |
| 63 | |
| 64 | theorem initialPrefix_seedCompatible : B.SeedCompatible B.initialPrefix := |
| 65 | ⟨rfl, rfl, rfl⟩ |
| 66 | |
| 67 | /-- Tighten only the initial cutoff and its selected Theorem 13.2 bound. |
| 68 | Existing prefixes need not have the new initial entry; the resulting data |
| 69 | has its own checked initial prefix. -/ |
| 70 | noncomputable def restrictDelta (d : ℝ) (hd : 0 < d) : |
| 71 | RepairedControlledSchedulesData.{u} := by |
| 72 | have hdelta : 0 < min B.Delta0 d := lt_min B.Delta0_pos hd |
| 73 | have hrho : 0 ≤ min B.Delta0 d * B.setup.epsilon := |
| 74 | mul_nonneg hdelta.le B.setup.epsilon_pos.le |
| 75 | have hrho_old : 0 ≤ B.Delta0 * B.setup.epsilon := |
| 76 | mul_nonneg B.Delta0_pos.le B.setup.epsilon_pos.le |
| 77 | have hdelta_mono : |
| 78 | B.setup.selector.h (min B.Delta0 d * B.setup.epsilon) (min B.Delta0 d) ≤ |
| 79 | B.setup.selector.h (min B.Delta0 d * B.setup.epsilon) B.Delta0 := |
| 80 | B.setup.selector.h_mono_delta _ hrho hdelta.le B.Delta0_pos.le (min_le_left _ _) |
| 81 | have hrho_mono : |
| 82 | B.setup.selector.h (min B.Delta0 d * B.setup.epsilon) B.Delta0 ≤ |
| 83 | B.setup.selector.h (B.Delta0 * B.setup.epsilon) B.Delta0 := |
| 84 | B.setup.selector.h_mono_rho _ B.Delta0_pos.le hrho hrho_old |
| 85 | (mul_le_mul_of_nonneg_right (min_le_left _ _) B.setup.epsilon_pos.le) |
| 86 | exact { B with |
| 87 | Delta0 := min B.Delta0 d |
| 88 | calibration := { B.calibration with |
| 89 | delta₁₃ := min B.calibration.delta₁₃ d |
| 90 | delta₁₃_pos := lt_min B.calibration.delta₁₃_pos hd |
| 91 | delta₁₃_le := (min_le_left _ _).trans B.calibration.delta₁₃_le |
| 92 | delta_zero_eq := by |
| 93 | exact (congrArg (fun z : ℝ => min z d) |
| 94 | B.calibration.delta_zero_eq).trans (by ac_rfl) |
| 95 | selector_initial_bound := |
| 96 | hdelta_mono.trans (hrho_mono.trans B.calibration.selector_initial_bound) } } |
| 97 | |
| 98 | variable (d : ℝ) (hd : 0 < d) |
| 99 | |
| 100 | @[simp] theorem restrictDelta_constants : |
| 101 | (B.restrictDelta d hd).constants = B.constants := rfl |
| 102 | |
| 103 | @[simp] theorem restrictDelta_setup : |
| 104 | (B.restrictDelta d hd).setup = B.setup := rfl |
| 105 | |
| 106 | @[simp] theorem restrictDelta_kappa0 : |
| 107 | (B.restrictDelta d hd).kappa0 = B.kappa0 := rfl |
| 108 | |
| 109 | @[simp] theorem restrictDelta_Delta0 : |
| 110 | (B.restrictDelta d hd).Delta0 = min B.Delta0 d := rfl |
| 111 | |
| 112 | @[simp] theorem restrictDelta_standard_initial : |
| 113 | (B.restrictDelta d hd).standard_initial = B.standard_initial := rfl |
| 114 | |
| 115 | @[simp] theorem restrictDelta_cap_persistence : |
| 116 | (B.restrictDelta d hd).cap_persistence = B.cap_persistence := rfl |
| 117 | |
| 118 | @[simp] theorem restrictDelta_appendixA : |
| 119 | (B.restrictDelta d hd).calibration.appendixA = B.calibration.appendixA := rfl |
| 120 | |
| 121 | @[simp] theorem restrictDelta_common_epsilon : |
| 122 | (B.restrictDelta d hd).calibration.common_epsilon = B.calibration.common_epsilon := rfl |
| 123 | |
| 124 | @[simp] theorem restrictDelta_delta13 : |
| 125 | (B.restrictDelta d hd).calibration.delta₁₃ = min B.calibration.delta₁₃ d := rfl |
| 126 | |
| 127 | end PoincareMT.RepairedControlledSchedulesData |