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 Mathlib.Analysis.SpecificLimits.Basic |
| 2 | import Mathlib.Tactic.Linarith |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! |
| 6 | # Absorption along nested parabolic cylinders |
| 7 | |
| 8 | A bounded sequence of local derivative gauges satisfying a contractive |
| 9 | estimate with geometrically growing forcing has an initial bound independent |
| 10 | of its a priori bound. This is the iteration step used to eliminate the |
| 11 | solution-dependent second-jet bound from an interior Schauder estimate. |
| 12 | |
| 13 | Reference: Chow et al., Part III, Proposition 26.49, Step 3, equation (26.150), |
| 14 | printed pp. 384-385 (PDF pp. 405-406). |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Filter |
| 20 | open scoped Topology |
| 21 | |
| 22 | namespace Poincare.Parabolic.Interior |
| 23 | |
| 24 | /-- A bounded sequence which contracts towards its next term is nonpositive. -/ |
| 25 | theorem nonpos_of_le_mul_succ_of_bounded |
| 26 | {u : ℕ → ℝ} {θ M : ℝ} (hθ0 : 0 ≤ θ) (hθ1 : θ < 1) |
| 27 | (hbounded : ∀ k, u k ≤ M) (hstep : ∀ k, u k ≤ θ * u (k + 1)) : |
| 28 | ∀ k, u k ≤ 0 := by |
| 29 | intro k |
| 30 | have hiter : ∀ j, u k ≤ θ ^ j * u (k + j) := by |
| 31 | intro j |
| 32 | induction j with |
| 33 | | zero => simp |
| 34 | | succ j ih => |
| 35 | calc |
| 36 | u k ≤ θ ^ j * u (k + j) := ih |
| 37 | _ ≤ θ ^ j * (θ * u (k + j + 1)) := |
| 38 | mul_le_mul_of_nonneg_left (hstep (k + j)) (pow_nonneg hθ0 j) |
| 39 | _ = θ ^ (j + 1) * u (k + (j + 1)) := by |
| 40 | rw [pow_succ] |
| 41 | simp only [Nat.add_assoc, mul_assoc] |
| 42 | have hle : ∀ j, u k ≤ θ ^ j * M := fun j => |
| 43 | (hiter j).trans (mul_le_mul_of_nonneg_left (hbounded (k + j)) |
| 44 | (pow_nonneg hθ0 j)) |
| 45 | have hlim : Tendsto (fun j : ℕ => θ ^ j * M) atTop (𝓝 0) := by |
| 46 | simpa using (tendsto_pow_atTop_nhds_zero_of_lt_one hθ0 hθ1).mul_const M |
| 47 | exact le_of_tendsto_of_tendsto tendsto_const_nhds hlim (Eventually.of_forall hle) |
| 48 | |
| 49 | /-- Geometrically growing cutoff errors can be absorbed along nested |
| 50 | cylinders. The bound `M` is allowed to depend on the solution and disappears |
| 51 | from the conclusion. -/ |
| 52 | theorem le_geometric_bound_of_le_add_mul_succ |
| 53 | {u : ℕ → ℝ} {A b θ M : ℝ} (hA : 0 ≤ A) (hb : 1 ≤ b) |
| 54 | (hθ : 0 ≤ θ) (hsmall : θ * b < 1) |
| 55 | (hbounded : ∀ k, u k ≤ M) |
| 56 | (hstep : ∀ k, u k ≤ A * b ^ k + θ * u (k + 1)) : |
| 57 | ∀ k, u k ≤ A * b ^ k / (1 - θ * b) := by |
| 58 | have hb0 : 0 ≤ b := le_trans zero_le_one hb |
| 59 | have hden : 0 < 1 - θ * b := sub_pos.mpr hsmall |
| 60 | have hθ1 : θ < 1 := |
| 61 | (le_mul_of_one_le_right hθ hb).trans_lt hsmall |
| 62 | let D : ℝ := A / (1 - θ * b) |
| 63 | have hD : 0 ≤ D := div_nonneg hA hden.le |
| 64 | have hDA : D * (1 - θ * b) = A := div_mul_cancel₀ A hden.ne' |
| 65 | have hresidual := nonpos_of_le_mul_succ_of_bounded |
| 66 | (u := fun k => u k - D * b ^ k) hθ hθ1 |
| 67 | (fun k => (sub_le_self _ (mul_nonneg hD (pow_nonneg hb0 k))).trans |
| 68 | (hbounded k)) (fun k => by |
| 69 | have hcancel : A * b ^ k + θ * (D * b ^ (k + 1)) = D * b ^ k := by |
| 70 | rw [pow_succ] |
| 71 | nlinarith [congrArg (fun x : ℝ => x * b ^ k) hDA] |
| 72 | linarith [hstep k]) |
| 73 | intro k |
| 74 | have heq : D * b ^ k = A * b ^ k / (1 - θ * b) := by |
| 75 | dsimp [D] |
| 76 | ring |
| 77 | rw [← heq] |
| 78 | exact sub_nonpos.mp (hresidual k) |
| 79 | |
| 80 | end Poincare.Parabolic.Interior |