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 NavierStokes.R3.CompactSchwartz |
| 2 | import NavierStokes.R3.ComparisonCutoffs |
| 3 | |
| 4 | /-! |
| 5 | # Compact support approximation in Schwartz space |
| 6 | |
| 7 | Multiplying a Schwartz function by the fixed smooth cutoff at radius R gives a |
| 8 | compactly supported Schwartz function. Each seminorm of its error is bounded |
| 9 | by a fixed constant divided by R. Consequently compactly supported Schwartz |
| 10 | functions are dense, and continuous identities extend from compact tests. |
| 11 | -/ |
| 12 | |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | |
| 17 | open Set Filter Metric |
| 18 | open scoped ContDiff Topology BigOperators |
| 19 | |
| 20 | namespace NavierStokesR3.SchwartzCompactApproximation |
| 21 | |
| 22 | open ProblemStatement ComparisonCutoffs |
| 23 | |
| 24 | /-- Multiplication by a compactly supported smooth cutoff. -/ |
| 25 | def truncate (ψ : SchwartzMap Space ℂ) (R : ℝ) (hR : 0 < R) : SchwartzMap Space ℂ := |
| 26 | CompactSchwartz.ofCompactSupport (fun x => cutoff R x • ψ x) |
| 27 | ((cutoff_smooth R).smul (ψ.smooth ⊤)) |
| 28 | (cutoff_hasCompactSupport hR).smul_right |
| 29 | |
| 30 | @[simp] theorem truncate_apply (ψ : SchwartzMap Space ℂ) (R : ℝ) (hR : 0 < R) |
| 31 | (x : Space) : truncate ψ R hR x = cutoff R x • ψ x := rfl |
| 32 | |
| 33 | theorem truncate_hasCompactSupport (ψ : SchwartzMap Space ℂ) (R : ℝ) (hR : 0 < R) : |
| 34 | HasCompactSupport (truncate ψ R hR : Space → ℂ) := by |
| 35 | change HasCompactSupport (fun x => cutoff R x • ψ x) |
| 36 | exact (cutoff_hasCompactSupport hR).smul_right |
| 37 | |
| 38 | /-- One extra power in a Schwartz seminorm gives a uniform tail estimate. -/ |
| 39 | theorem weighted_tail_le (ψ : SchwartzMap Space ℂ) {R : ℝ} (hR : 0 < R) |
| 40 | (k m : ℕ) {x : Space} (hx : R ≤ ‖x‖) : |
| 41 | ‖x‖ ^ k * ‖iteratedFDeriv ℝ m ψ x‖ ≤ |
| 42 | SchwartzMap.seminorm ℂ (k + 1) m ψ / R := by |
| 43 | apply (le_div_iff₀ hR).2 |
| 44 | calc |
| 45 | (‖x‖ ^ k * ‖iteratedFDeriv ℝ m ψ x‖) * R |
| 46 | ≤ (‖x‖ ^ k * ‖iteratedFDeriv ℝ m ψ x‖) * ‖x‖ := |
| 47 | mul_le_mul_of_nonneg_left hx (by positivity) |
| 48 | _ = ‖x‖ ^ (k + 1) * ‖iteratedFDeriv ℝ m ψ x‖ := by rw [pow_succ]; ring |
| 49 | _ ≤ SchwartzMap.seminorm ℂ (k + 1) m ψ := |
| 50 | SchwartzMap.le_seminorm ℂ (k + 1) m ψ x |
| 51 | |
| 52 | /-- All derivatives of the cutoffs are bounded uniformly for radii at least one. -/ |
| 53 | theorem uniform_cutoff_derivative_bound {R : ℝ} (hR : 0 < R) (hRone : 1 ≤ R) |
| 54 | (m : ℕ) (x : Space) : |
| 55 | ‖iteratedFDeriv ℝ m (cutoff R) x‖ ≤ derivativeConstant m := by |
| 56 | refine (cutoff_iteratedFDeriv_le hR m x).trans ?_ |
| 57 | apply (div_le_iff₀ (pow_pos hR m)).2 |
| 58 | calc |
| 59 | derivativeConstant m = derivativeConstant m * 1 := by ring |
| 60 | _ ≤ derivativeConstant m * R ^ m := |
| 61 | mul_le_mul_of_nonneg_left (one_le_pow₀ hRone) (derivativeConstant_pos m).le |
| 62 | |
| 63 | /-- The fixed constant in the product's weighted tail estimate. -/ |
| 64 | def productTailBound (ψ : SchwartzMap Space ℂ) (k m : ℕ) : ℝ := |
| 65 | ∑ i ∈ Finset.range (m + 1), (m.choose i : ℝ) * derivativeConstant i * |
| 66 | SchwartzMap.seminorm ℂ (k + 1) (m - i) ψ |
| 67 | |
| 68 | theorem productTailBound_nonneg (ψ : SchwartzMap Space ℂ) (k m : ℕ) : |
| 69 | 0 ≤ productTailBound ψ k m := by |
| 70 | unfold productTailBound |
| 71 | exact Finset.sum_nonneg fun i _ => |
| 72 | mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (derivativeConstant_pos i).le) |
| 73 | (apply_nonneg _ _) |
| 74 | |
| 75 | /-- The fixed constant controlling the cutoff error. -/ |
| 76 | def errorTailBound (ψ : SchwartzMap Space ℂ) (k m : ℕ) : ℝ := |
| 77 | productTailBound ψ k m + SchwartzMap.seminorm ℂ (k + 1) m ψ |
| 78 | |
| 79 | theorem errorTailBound_nonneg (ψ : SchwartzMap Space ℂ) (k m : ℕ) : |
| 80 | 0 ≤ errorTailBound ψ k m := |
| 81 | add_nonneg (productTailBound_nonneg ψ k m) (apply_nonneg _ _) |
| 82 | |
| 83 | /-- The Leibniz estimate for the cutoff product on the spatial tail. -/ |
| 84 | theorem truncate_weighted_derivative_le (ψ : SchwartzMap Space ℂ) {R : ℝ} |
| 85 | (hR : 0 < R) (hRone : 1 ≤ R) (k m : ℕ) {x : Space} (hx : R ≤ ‖x‖) : |
| 86 | ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (truncate ψ R hR) x‖ ≤ |
| 87 | productTailBound ψ k m / R := by |
| 88 | change ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (fun y => cutoff R y • ψ y) x‖ ≤ _ |
| 89 | calc |
| 90 | _ ≤ ‖x‖ ^ k * ∑ i ∈ Finset.range (m + 1), |
| 91 | (m.choose i : ℝ) * ‖iteratedFDeriv ℝ i (cutoff R) x‖ * |
| 92 | ‖iteratedFDeriv ℝ (m - i) ψ x‖ := |
| 93 | mul_le_mul_of_nonneg_left |
| 94 | (norm_iteratedFDeriv_smul_le (n := m) (cutoff_smooth R) (ψ.smooth ⊤) x |
| 95 | (by exact_mod_cast (show (m : ℕ∞) ≤ ⊤ from le_top))) |
| 96 | (by positivity) |
| 97 | _ = ∑ i ∈ Finset.range (m + 1), |
| 98 | ((m.choose i : ℝ) * ‖iteratedFDeriv ℝ i (cutoff R) x‖) * |
| 99 | (‖x‖ ^ k * ‖iteratedFDeriv ℝ (m - i) ψ x‖) := by |
| 100 | rw [Finset.mul_sum] |
| 101 | apply Finset.sum_congr rfl |
| 102 | intro i hi |
| 103 | ring |
| 104 | _ ≤ ∑ i ∈ Finset.range (m + 1), |
| 105 | ((m.choose i : ℝ) * derivativeConstant i) * |
| 106 | (SchwartzMap.seminorm ℂ (k + 1) (m - i) ψ / R) := by |
| 107 | apply Finset.sum_le_sum |
| 108 | intro i hi |
| 109 | have hcoeff : (m.choose i : ℝ) * ‖iteratedFDeriv ℝ i (cutoff R) x‖ ≤ |
| 110 | (m.choose i : ℝ) * derivativeConstant i := |
| 111 | mul_le_mul_of_nonneg_left (uniform_cutoff_derivative_bound hR hRone i x) |
| 112 | (by positivity) |
| 113 | exact mul_le_mul hcoeff (weighted_tail_le ψ hR k (m - i) hx) (by positivity) |
| 114 | (mul_nonneg (Nat.cast_nonneg _) (derivativeConstant_pos i).le) |
| 115 | _ = productTailBound ψ k m / R := by |
| 116 | simp only [productTailBound, Finset.sum_div] |
| 117 | apply Finset.sum_congr rfl |
| 118 | intro i hi |
| 119 | ring |
| 120 | |
| 121 | /-- The cutoff error vanishes locally inside the plateau and is small outside it. -/ |
| 122 | theorem truncate_error_weighted_le (ψ : SchwartzMap Space ℂ) {R : ℝ} |
| 123 | (hR : 0 < R) (hRone : 1 ≤ R) (k m : ℕ) (x : Space) : |
| 124 | ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (truncate ψ R hR - ψ) x‖ ≤ |
| 125 | errorTailBound ψ k m / R := by |
| 126 | change ‖x‖ ^ k * |
| 127 | ‖iteratedFDeriv ℝ m (fun y => truncate ψ R hR y - ψ y) x‖ ≤ _ |
| 128 | by_cases hx : ‖x‖ < R |
| 129 | · have hmem : {y : Space | ‖y‖ < R} ∈ 𝓝 x := |
| 130 | (isOpen_lt continuous_norm continuous_const).mem_nhds hx |
| 131 | have heq : (fun y => truncate ψ R hR y - ψ y) =ᶠ[𝓝 x] |
| 132 | (fun _ : Space => (0 : ℂ)) := by |
| 133 | filter_upwards [hmem] with y hy |
| 134 | simp only [truncate_apply, cutoff_eq_one hR hy.le, one_smul, sub_self] |
| 135 | have heqWithin : (fun y => truncate ψ R hR y - ψ y) =ᶠ[𝓝[Set.univ] x] |
| 136 | (fun _ : Space => (0 : ℂ)) := by |
| 137 | simpa only [nhdsWithin_univ] using heq |
| 138 | have hder : iteratedFDeriv ℝ m (fun y => truncate ψ R hR y - ψ y) x = 0 := by |
| 139 | simpa only [iteratedFDerivWithin_univ, iteratedFDeriv_fun_zero, Pi.zero_apply] |
| 140 | using (heqWithin.iteratedFDerivWithin_eq (𝕜 := ℝ) heq.self_of_nhds m) |
| 141 | rw [hder, norm_zero, mul_zero] |
| 142 | exact div_nonneg (errorTailBound_nonneg ψ k m) hR.le |
| 143 | · have hx' : R ≤ ‖x‖ := le_of_not_gt hx |
| 144 | have hfun : (fun y => truncate ψ R hR y - ψ y) = |
| 145 | ((truncate ψ R hR : Space → ℂ) + ((-ψ : SchwartzMap Space ℂ) : Space → ℂ)) := by |
| 146 | funext y |
| 147 | change truncate ψ R hR y - ψ y = truncate ψ R hR y + -(ψ y) |
| 148 | exact sub_eq_add_neg _ _ |
| 149 | rw [hfun] |
| 150 | calc |
| 151 | _ ≤ ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (truncate ψ R hR) x‖ + |
| 152 | ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (-ψ : SchwartzMap Space ℂ) x‖ := |
| 153 | by |
| 154 | rw [← mul_add] |
| 155 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 156 | rw [iteratedFDeriv_add_apply ((truncate ψ R hR).smooth _).contDiffAt ((-ψ).smooth _).contDiffAt] |
| 157 | exact norm_add_le _ _ |
| 158 | _ = ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (truncate ψ R hR) x‖ + |
| 159 | ‖x‖ ^ k * ‖iteratedFDeriv ℝ m ψ x‖ := by |
| 160 | exact congrArg |
| 161 | (fun z : ℝ => ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (truncate ψ R hR) x‖ + z) |
| 162 | (by change ‖x‖ ^ k * ‖iteratedFDeriv ℝ m (-(ψ : Space → ℂ)) x‖ = _; rw [iteratedFDeriv_neg_apply, norm_neg]) |
| 163 | _ ≤ productTailBound ψ k m / R + SchwartzMap.seminorm ℂ (k + 1) m ψ / R := |
| 164 | add_le_add (truncate_weighted_derivative_le ψ hR hRone k m hx') |
| 165 | (weighted_tail_le ψ hR k m hx') |
| 166 | _ = errorTailBound ψ k m / R := by rw [errorTailBound, add_div] |
| 167 | |
| 168 | /-- Every Schwartz seminorm of the cutoff error tends to zero at rate 1/R. -/ |
| 169 | theorem seminorm_truncate_sub_le (ψ : SchwartzMap Space ℂ) {R : ℝ} |
| 170 | (hR : 0 < R) (hRone : 1 ≤ R) (k m : ℕ) : |
| 171 | SchwartzMap.seminorm ℂ k m (truncate ψ R hR - ψ) ≤ errorTailBound ψ k m / R := by |
| 172 | apply SchwartzMap.seminorm_le_bound ℂ k m _ |
| 173 | (div_nonneg (errorTailBound_nonneg ψ k m) hR.le) |
| 174 | exact truncate_error_weighted_le ψ hR hRone k m |
| 175 | |
| 176 | /-- A sequence of compactly supported smooth approximations. -/ |
| 177 | def approximate (ψ : SchwartzMap Space ℂ) (n : ℕ) : SchwartzMap Space ℂ := |
| 178 | truncate ψ ((n : ℝ) + 1) (by positivity) |
| 179 | |
| 180 | @[simp] theorem approximate_apply (ψ : SchwartzMap Space ℂ) (n : ℕ) (x : Space) : |
| 181 | approximate ψ n x = cutoff ((n : ℝ) + 1) x • ψ x := rfl |
| 182 | |
| 183 | theorem approximate_hasCompactSupport (ψ : SchwartzMap Space ℂ) (n : ℕ) : |
| 184 | HasCompactSupport (approximate ψ n : Space → ℂ) := |
| 185 | truncate_hasCompactSupport ψ _ _ |
| 186 | |
| 187 | /-- The cutoff approximations converge in the full Schwartz topology. -/ |
| 188 | theorem tendsto_approximate (ψ : SchwartzMap Space ℂ) : |
| 189 | Tendsto (approximate ψ) atTop (𝓝 ψ) := by |
| 190 | apply ((schwartz_withSeminorms ℂ Space ℂ).tendsto_nhds_atTop (approximate ψ) ψ).2 |
| 191 | rintro ⟨k, m⟩ ε hε |
| 192 | obtain ⟨N, hN⟩ := exists_nat_gt (errorTailBound ψ k m / ε) |
| 193 | refine ⟨N, fun n hn => ?_⟩ |
| 194 | change SchwartzMap.seminorm ℂ k m (approximate ψ n - ψ) < ε |
| 195 | have hR : (0 : ℝ) < (n : ℝ) + 1 := by positivity |
| 196 | have hRone : (1 : ℝ) ≤ (n : ℝ) + 1 := by |
| 197 | have hnnonneg : (0 : ℝ) ≤ (n : ℝ) := by positivity |
| 198 | linarith |
| 199 | refine (seminorm_truncate_sub_le ψ hR hRone k m).trans_lt ?_ |
| 200 | apply (div_lt_iff₀ hR).2 |
| 201 | have hNn : (N : ℝ) ≤ (n : ℝ) := by exact_mod_cast hn |
| 202 | have hlarge : errorTailBound ψ k m / ε < (n : ℝ) + 1 := by linarith |
| 203 | simpa [mul_comm] using (div_lt_iff₀ hε).1 hlarge |
| 204 | |
| 205 | /-- Compactly supported smooth tests are dense in Schwartz space. -/ |
| 206 | theorem dense_hasCompactSupport : |
| 207 | Dense {ψ : SchwartzMap Space ℂ | HasCompactSupport (ψ : Space → ℂ)} := by |
| 208 | intro ψ |
| 209 | exact mem_closure_of_tendsto (tendsto_approximate ψ) |
| 210 | (Filter.Eventually.of_forall fun n => approximate_hasCompactSupport ψ n) |
| 211 | |
| 212 | /-- A continuous functional vanishing on compact tests vanishes on every Schwartz test. -/ |
| 213 | theorem continuous_zero_of_compactSupport (F : SchwartzMap Space ℂ → ℂ) |
| 214 | (hF : Continuous F) |
| 215 | (hzero : ∀ ψ : SchwartzMap Space ℂ, HasCompactSupport (ψ : Space → ℂ) → F ψ = 0) |
| 216 | (ψ : SchwartzMap Space ℂ) : F ψ = 0 := by |
| 217 | have hlim : Tendsto (fun n : ℕ => F (approximate ψ n)) atTop (𝓝 (F ψ)) := |
| 218 | (hF.tendsto ψ).comp (tendsto_approximate ψ) |
| 219 | have hz : (fun n : ℕ => F (approximate ψ n)) = (fun _ : ℕ => (0 : ℂ)) := |
| 220 | funext fun n => hzero _ (approximate_hasCompactSupport ψ n) |
| 221 | rw [hz] at hlim |
| 222 | exact tendsto_nhds_unique hlim tendsto_const_nhds |
| 223 | |
| 224 | /-- The continuous linear form version of compact-test extension. -/ |
| 225 | theorem eq_zero_of_compactSupport (F : SchwartzMap Space ℂ →L[ℂ] ℂ) |
| 226 | (hzero : ∀ ψ : SchwartzMap Space ℂ, HasCompactSupport (ψ : Space → ℂ) → F ψ = 0) |
| 227 | (ψ : SchwartzMap Space ℂ) : F ψ = 0 := |
| 228 | continuous_zero_of_compactSupport F F.continuous hzero ψ |
| 229 | |
| 230 | /-- In particular, an identity tested after a continuous differential operator extends. -/ |
| 231 | theorem comp_eq_zero_of_compactSupport |
| 232 | (F : SchwartzMap Space ℂ →L[ℂ] ℂ) |
| 233 | (L : SchwartzMap Space ℂ →L[ℂ] SchwartzMap Space ℂ) |
| 234 | (hzero : ∀ ψ : SchwartzMap Space ℂ, |
| 235 | HasCompactSupport (ψ : Space → ℂ) → F (L ψ) = 0) |
| 236 | (ψ : SchwartzMap Space ℂ) : F (L ψ) = 0 := |
| 237 | eq_zero_of_compactSupport (F.comp L) hzero ψ |
| 238 | |
| 239 | end NavierStokesR3.SchwartzCompactApproximation |