Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.HilbertCoerciveParameter |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Bounds |
| 3 | |
| 4 | /-! |
| 5 | # Actual all-order estimates for a coercive inverse |
| 6 | |
| 7 | At a parameter value `x`, freeze the inverse of `A x` and write |
| 8 | `u y = (A x)⁻¹ (f y - (A y - A x) (u y))`. The coefficient difference |
| 9 | vanishes at `x`, so differentiating gives a triangular estimate with no |
| 10 | highest-order solution term on the right. The factorial estimate below is |
| 11 | therefore derived from genuine derivatives of the constructed inverse. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | namespace EulerHilbertCoerciveGevrey |
| 19 | |
| 20 | open ContinuousLinearMap Finset InnerProductSpace EulerGevrey |
| 21 | EulerCoerciveProjection EulerHilbertCoerciveParameter |
| 22 | |
| 23 | section Normed |
| 24 | |
| 25 | variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 26 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 27 | |
| 28 | /-- Freezing the coefficient gives the actual triangular derivative bound. -/ |
| 29 | theorem derivative_recurrence |
| 30 | (A : P → E →L[ℝ] E) (u f : P → E) |
| 31 | (hA : ContDiff ℝ ∞ A) (hu : ContDiff ℝ ∞ u) (hf : ContDiff ℝ ∞ f) |
| 32 | (heq : ∀ y, A y (u y) = f y) (x : P) |
| 33 | (I : E →L[ℝ] E) (hI : ∀ v, I (A x v) = v) (n : ℕ) : |
| 34 | ‖iteratedFDeriv ℝ n u x‖ ≤ ‖I‖ * |
| 35 | (‖iteratedFDeriv ℝ n f x‖ + ∑ j ∈ range n, |
| 36 | (n.choose (j+1) : ℝ) * ‖iteratedFDeriv ℝ (j+1) A x‖ * |
| 37 | ‖iteratedFDeriv ℝ (n-(j+1)) u x‖) := by |
| 38 | let B : P → E →L[ℝ] E := fun y => A y - A x |
| 39 | have hB : ContDiff ℝ ∞ B := hA.sub contDiff_const |
| 40 | have hBu : ContDiff ℝ ∞ (fun y => B y (u y)) := hB.clm_apply hu |
| 41 | have hfreeze : u = I ∘ (fun y => f y - B y (u y)) := by |
| 42 | funext y |
| 43 | dsimp [B] |
| 44 | rw [sub_apply, ← heq y, sub_sub_cancel] |
| 45 | exact (hI (u y)).symm |
| 46 | have hzero : ‖iteratedFDeriv ℝ 0 B x‖ = 0 := by |
| 47 | rw [norm_iteratedFDeriv_zero] |
| 48 | simp [B] |
| 49 | have hpositive (j : ℕ) : |
| 50 | iteratedFDeriv ℝ (j+1) B x = iteratedFDeriv ℝ (j+1) A x := by |
| 51 | change iteratedFDeriv ℝ (j+1) (A - fun _ => A x) x = _ |
| 52 | rw [iteratedFDeriv_sub_apply (hA.contDiffAt.of_le (by simp)) contDiffAt_const] |
| 53 | simp only [iteratedFDeriv_succ_const, Pi.zero_apply, sub_zero] |
| 54 | have hprod := norm_iteratedFDeriv_clm_apply hB hu x (n := n) (by simp) |
| 55 | rw [sum_range_succ'] at hprod |
| 56 | simp only [hzero, mul_zero, zero_mul, add_zero, hpositive] at hprod |
| 57 | have hsub : ‖iteratedFDeriv ℝ n (fun y => f y - B y (u y)) x‖ ≤ |
| 58 | ‖iteratedFDeriv ℝ n f x‖ + ‖iteratedFDeriv ℝ n (fun y => B y (u y)) x‖ := by |
| 59 | change ‖iteratedFDeriv ℝ n (f - fun y => B y (u y)) x‖ ≤ _ |
| 60 | rw [iteratedFDeriv_sub_apply (hf.contDiffAt.of_le (by simp)) |
| 61 | (hBu.contDiffAt.of_le (by simp))] |
| 62 | exact norm_sub_le _ _ |
| 63 | have hbound := I.norm_iteratedFDeriv_comp_left (x := x) |
| 64 | ((hf.sub hBu).contDiffAt) (n := n) (by simp) |
| 65 | rw [← hfreeze] at hbound |
| 66 | exact hbound.trans (mul_le_mul_of_nonneg_left |
| 67 | (hsub.trans (add_le_add (le_refl ‖iteratedFDeriv ℝ n f x‖) hprod)) (norm_nonneg I)) |
| 68 | |
| 69 | end Normed |
| 70 | |
| 71 | section Hilbert |
| 72 | |
| 73 | variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 74 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 75 | |
| 76 | /-- The recurrence for the actual Lax--Milgram inverse, with its coercivity bound. -/ |
| 77 | theorem coerciveSolution_derivative_recurrence |
| 78 | (A : P → E →L[ℝ] E) (c : P → ℝ) (hc : ∀ x, 0 < c x) |
| 79 | (hcoercive : ∀ x v, c x * ‖v‖^2 ≤ ⟪A x v, v⟫_ℝ) |
| 80 | (f : P → E) (hA : ContDiff ℝ ∞ A) (hf : ContDiff ℝ ∞ f) |
| 81 | (x : P) (n : ℕ) : |
| 82 | ‖iteratedFDeriv ℝ n |
| 83 | (fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y)) x‖ ≤ |
| 84 | (c x)⁻¹ * (‖iteratedFDeriv ℝ n f x‖ + ∑ j ∈ range n, |
| 85 | (n.choose (j+1) : ℝ) * ‖iteratedFDeriv ℝ (j+1) A x‖ * |
| 86 | ‖iteratedFDeriv ℝ (n-(j+1)) |
| 87 | (fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y)) x‖) := by |
| 88 | let u := fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y) |
| 89 | have hu : ContDiff ℝ ∞ u := contDiff_coerciveSolution_variable A c hc hcoercive f hA hf |
| 90 | have hrec := derivative_recurrence A u f hA hu hf |
| 91 | (fun y => operator_inverse_apply (A y) (c y) (hc y) (hcoercive y) (f y)) x |
| 92 | (coerciveInverse (A x) (c x) (hc x) (hcoercive x)) |
| 93 | (inverse_operator_apply (A x) (c x) (hc x) (hcoercive x)) n |
| 94 | exact hrec.trans (mul_le_mul_of_nonneg_right |
| 95 | (coerciveInverse_norm_le (A x) (c x) (hc x) (hcoercive x)) (by positivity)) |
| 96 | |
| 97 | /-- A single factorial shift controls every actual derivative of the inverse solve. -/ |
| 98 | theorem coerciveSolution_gevrey |
| 99 | (A : P → E →L[ℝ] E) (c : P → ℝ) (hc : ∀ x, 0 < c x) |
| 100 | (hcoercive : ∀ x v, c x * ‖v‖^2 ≤ ⟪A x v, v⟫_ℝ) |
| 101 | (f : P → E) (hA : ContDiff ℝ ∞ A) (hf : ContDiff ℝ ∞ f) |
| 102 | (M Rc R : ℝ) (hM : 1 ≤ M) (hRc : 0 ≤ Rc) (hR : 2*M*(Rc+1) ≤ R) |
| 103 | (hinv : ∀ x, (c x)⁻¹ ≤ M) |
| 104 | (hcoeff : ∀ j x, ‖iteratedFDeriv ℝ (j+1) A x‖ ≤ |
| 105 | Rc^(j+1) * ((j+1).factorial : ℝ)^2) |
| 106 | (d : ℕ) (hforce : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ majorant R d n) |
| 107 | (n : ℕ) (x : P) : |
| 108 | ‖iteratedFDeriv ℝ n |
| 109 | (fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y)) x‖ ≤ |
| 110 | majorant R (d+1) n := by |
| 111 | let u := fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y) |
| 112 | apply triangular_inverse_majorant M Rc R hM hRc hR d |
| 113 | (fun k => ‖iteratedFDeriv ℝ k f x‖) |
| 114 | (fun k => ‖iteratedFDeriv ℝ k u x‖) (fun k => hforce k x) _ n |
| 115 | intro k |
| 116 | have hrec := coerciveSolution_derivative_recurrence A c hc hcoercive f hA hf x k |
| 117 | have hsum : (∑ j ∈ range k, |
| 118 | (k.choose (j+1) : ℝ) * ‖iteratedFDeriv ℝ (j+1) A x‖ * |
| 119 | ‖iteratedFDeriv ℝ (k-(j+1)) u x‖) ≤ |
| 120 | ∑ j ∈ range k, (k.choose (j+1) : ℝ) * Rc^(j+1) * |
| 121 | ((j+1).factorial : ℝ)^2 * ‖iteratedFDeriv ℝ (k-(j+1)) u x‖ := by |
| 122 | apply sum_le_sum |
| 123 | intro j _ |
| 124 | have h := mul_le_mul_of_nonneg_right |
| 125 | (mul_le_mul_of_nonneg_left (hcoeff j x) (by positivity : (0 : ℝ) ≤ k.choose (j+1))) |
| 126 | (norm_nonneg (iteratedFDeriv ℝ (k-(j+1)) u x)) |
| 127 | simpa only [mul_assoc] using h |
| 128 | exact hrec.trans ((mul_le_mul_of_nonneg_left |
| 129 | (add_le_add (le_refl ‖iteratedFDeriv ℝ k f x‖) hsum) |
| 130 | (inv_nonneg.mpr (hc x).le)).trans |
| 131 | (mul_le_mul_of_nonneg_right (hinv x) (by positivity))) |
| 132 | |
| 133 | /-- Polynomial coefficient and forcing amplitudes enter only the fixed top |
| 134 | constant, not the derivative-order radius. -/ |
| 135 | theorem coerciveSolution_gevrey_amplitudes |
| 136 | (A : P → E →L[ℝ] E) (c : P → ℝ) (hc : ∀ x, 0 < c x) |
| 137 | (hcoercive : ∀ x v, c x * ‖v‖^2 ≤ ⟪A x v, v⟫_ℝ) |
| 138 | (f : P → E) (hA : ContDiff ℝ ∞ A) (hf : ContDiff ℝ ∞ f) |
| 139 | (I C D M Rc R : ℝ) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 140 | (hM : 1 ≤ M) (hMC : I*C ≤ M) (hMD : I*D ≤ M) |
| 141 | (hRc : 0 ≤ Rc) (hR : 2*M*(Rc+1) ≤ R) |
| 142 | (hinv : ∀ x, (c x)⁻¹ ≤ I) |
| 143 | (hcoeff : ∀ j x, ‖iteratedFDeriv ℝ (j+1) A x‖ ≤ |
| 144 | C * (Rc^(j+1) * ((j+1).factorial : ℝ)^2)) |
| 145 | (d : ℕ) (hforce : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ D * majorant R d n) |
| 146 | (n : ℕ) (x : P) : |
| 147 | ‖iteratedFDeriv ℝ n |
| 148 | (fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y)) x‖ ≤ |
| 149 | majorant R (d+1) n := by |
| 150 | let u := fun y => coerciveInverse (A y) (c y) (hc y) (hcoercive y) (f y) |
| 151 | have hR0 : 0 ≤ R := by nlinarith |
| 152 | apply triangular_inverse_majorant M Rc R hM hRc hR d |
| 153 | (fun k => majorant R d k) (fun k => ‖iteratedFDeriv ℝ k u x‖) (fun _ => le_rfl) _ n |
| 154 | intro k |
| 155 | let S : ℝ := ∑ j ∈ range k, (k.choose (j+1) : ℝ) * Rc^(j+1) * |
| 156 | ((j+1).factorial : ℝ)^2 * ‖iteratedFDeriv ℝ (k-(j+1)) u x‖ |
| 157 | have hS : 0 ≤ S := by dsimp [S]; positivity |
| 158 | have hsum : (∑ j ∈ range k, |
| 159 | (k.choose (j+1) : ℝ) * ‖iteratedFDeriv ℝ (j+1) A x‖ * |
| 160 | ‖iteratedFDeriv ℝ (k-(j+1)) u x‖) ≤ C*S := by |
| 161 | dsimp [S] |
| 162 | rw [mul_sum] |
| 163 | apply sum_le_sum |
| 164 | intro j _ |
| 165 | have h := mul_le_mul_of_nonneg_right |
| 166 | (mul_le_mul_of_nonneg_left (hcoeff j x) (by positivity : (0 : ℝ) ≤ k.choose (j+1))) |
| 167 | (norm_nonneg (iteratedFDeriv ℝ (k-(j+1)) u x)) |
| 168 | convert h using 1 |
| 169 | ring |
| 170 | have hrec := coerciveSolution_derivative_recurrence A c hc hcoercive f hA hf x k |
| 171 | have hb : ‖iteratedFDeriv ℝ k u x‖ ≤ I * (D * majorant R d k + C*S) := by |
| 172 | apply hrec.trans |
| 173 | exact (mul_le_mul_of_nonneg_left (add_le_add (hforce k x) hsum) |
| 174 | (inv_nonneg.mpr (hc x).le)).trans |
| 175 | (mul_le_mul_of_nonneg_right (hinv x) |
| 176 | (add_nonneg (mul_nonneg hD (majorant_nonneg R hR0 d k)) (mul_nonneg hC hS))) |
| 177 | have ha := mul_le_mul_of_nonneg_right hMC hS |
| 178 | have hf' := mul_le_mul_of_nonneg_right hMD (majorant_nonneg R hR0 d k) |
| 179 | change ‖iteratedFDeriv ℝ k u x‖ ≤ M * (majorant R d k + S) |
| 180 | nlinarith |
| 181 | |
| 182 | end Hilbert |
| 183 | |
| 184 | end EulerHilbertCoerciveGevrey |