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.StandardCap.Persistence.Cutoff.InitialStage |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cutoff.RestartStage |
| 3 | |
| 4 | /-! |
| 5 | # Finitely many stages pass the limiting inner duration |
| 6 | |
| 7 | A fixed positive increment and one common curvature ceiling extend |
| 8 | the initial actual stage beyond the limiting inner lifetime. This |
| 9 | includes the zero-limit case. Morgan--Tian, Lemma 16.8, Corollary 16.9 |
| 10 | and Proposition 16.5, pp. 372-374; M44 derivation 112. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M44 |
| 21 | |
| 22 | /-- The actual prepared counterexample sequence has a controlled |
| 23 | time level strictly beyond its limiting inner lifetime, with one |
| 24 | radius-independent curvature ceiling. Source: Lemma 16.8 and |
| 25 | Proposition 16.5, pp. 372-374; M44 derivation 112. -/ |
| 26 | theorem exists_cap_sequence_full_stage |
| 27 | (P : M44CapPersistencePredecessors.{u}) |
| 28 | {constants : MetricSurgeryConstants} (setup : SurgeryControlSetup constants) |
| 29 | (standard : RepairedStandardCapExistenceData setup.standard_initial) |
| 30 | (unique : RepairedStandardCapUniquenessData setup.standard_initial standard) |
| 31 | {rNext Rinner theta : ℝ} (hr : 0 < rNext) (hinner : 0 < Rinner) |
| 32 | (htheta : 0 < theta) (htheta1 : theta < 1) |
| 33 | {start A eta : ℝ} {cutoffs : ℕ → ℝ} |
| 34 | (X : ∀ n, PreparedCapCounterexample.{u} |
| 35 | setup start rNext A eta theta (cutoffs n) Rinner) |
| 36 | (hcutoffs : Tendsto cutoffs atTop (𝓝 0)) |
| 37 | (heta : Tendsto (fun n => (X n).sample.eta) atTop (𝓝 0)) |
| 38 | {c : ℝ} (hc : 0 ≤ c) (hctheta : c ≤ theta) |
| 39 | (hlim : Tendsto (fun n => (X n).sample.lifetime) atTop (𝓝 c)) : |
| 40 | ∃ R0 K : ℝ, Rinner < R0 ∧ 0 < K ∧ |
| 41 | ∃ T : ℝ, 0 < T ∧ c < T ∧ CapSequenceStage X R0 T K := by |
| 42 | obtain ⟨Rinitial, Tinitial, Ki, hinnerInitial, _hRinitial, hTinitial, hKi, hinitial⟩ := |
| 43 | exists_initial_cap_sequence_stage P setup standard hr hinner |
| 44 | obtain ⟨Rrestart, increment, K, _hinnerRestart, _hRrestart, hincrement, hK, hKiK, |
| 45 | hrestart⟩ := exists_cap_sequence_restart P setup standard unique hr hinner |
| 46 | htheta htheta1 hKi |
| 47 | let R0 := max Rinitial Rrestart |
| 48 | have hInitial : CapSequenceStage X R0 Tinitial K := |
| 49 | (hinitial start A eta theta X hcutoffs heta).mono (le_max_left _ _) le_rfl hKiK |
| 50 | have hstep (T : ℝ) (hT : 0 < T) (hTc : T ≤ c) |
| 51 | (hstage : CapSequenceStage X R0 T K) : |
| 52 | CapSequenceStage X R0 (T + increment) K := |
| 53 | hrestart start A eta X hcutoffs heta c hc hctheta hlim R0 T |
| 54 | (le_max_right _ _) hT hTc hstage |
| 55 | refine ⟨R0, K, hinnerInitial.trans_le (le_max_left _ _), hK, ?_⟩ |
| 56 | by_contra! hnot |
| 57 | have hupper (T : ℝ) (hT : 0 < T) (hstage : CapSequenceStage X R0 T K) : T ≤ c := by |
| 58 | by_contra hgt |
| 59 | exact hnot T hT (lt_of_not_ge hgt) hstage |
| 60 | have hlevels (n : ℕ) : CapSequenceStage X R0 (Tinitial + (n : ℝ) * increment) K := by |
| 61 | induction n with |
| 62 | | zero => simpa using hInitial |
| 63 | | succ n hn => |
| 64 | have hpositive : 0 < Tinitial + (n : ℝ) * increment := |
| 65 | add_pos_of_pos_of_nonneg hTinitial (mul_nonneg (Nat.cast_nonneg n) hincrement.le) |
| 66 | have hnext := hstep _ hpositive (hupper _ hpositive hn) hn |
| 67 | simpa only [Nat.cast_add, Nat.cast_one, add_mul, one_mul, add_assoc] using hnext |
| 68 | obtain ⟨n, hn⟩ := exists_nat_gt ((c - Tinitial) / increment) |
| 69 | have hgreater : c < Tinitial + (n : ℝ) * increment := by |
| 70 | have hmul := (div_lt_iff₀ hincrement).mp hn |
| 71 | linarith |
| 72 | have hpositive : 0 < Tinitial + (n : ℝ) * increment := |
| 73 | add_pos_of_pos_of_nonneg hTinitial (mul_nonneg (Nat.cast_nonneg n) hincrement.le) |
| 74 | exact hnot _ hpositive hgreater (hlevels n) |
| 75 | |
| 76 | end PoincareMT.M44 |