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.ComparisonSetup |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct |
| 3 | import Mathlib.Analysis.Normed.Group.Bounded |
| 4 | |
| 5 | /-! |
| 6 | # Smooth spatial cutoffs for whole-space comparison |
| 7 | |
| 8 | The fixed bump is one on the unit ball and supported in the ball of radius two. |
| 9 | All scaled cutoffs are obtained from this same bump by dilation. In particular, |
| 10 | the constants in their derivative estimates do not depend on the radius. |
| 11 | -/ |
| 12 | |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter Metric |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | |
| 19 | namespace NavierStokesR3.ComparisonCutoffs |
| 20 | |
| 21 | open ProblemStatement |
| 22 | open NavierStokes.ProblemStatement (coordinateVector) |
| 23 | |
| 24 | /-- The fixed bump with inner radius one and outer radius two. -/ |
| 25 | noncomputable def baseBump : ContDiffBump (0 : Space) := |
| 26 | ⟨1, 2, by norm_num, by norm_num⟩ |
| 27 | |
| 28 | /-- The unscaled cutoff. -/ |
| 29 | def baseCutoff (x : Space) : ℝ := baseBump x |
| 30 | |
| 31 | /-- The cutoff at spatial radius `R`; its estimates are stated for `0 < R`. -/ |
| 32 | def cutoff (R : ℝ) (x : Space) : ℝ := baseCutoff (R⁻¹ • x) |
| 33 | |
| 34 | /-- The weight in the localized energy. -/ |
| 35 | def weight (R : ℝ) (x : Space) : ℝ := cutoff R x ^ 8 |
| 36 | |
| 37 | /-- The multiplier used to commute the pressure operator. -/ |
| 38 | def multiplier (R : ℝ) (x : Space) : ℝ := cutoff R x ^ 2 |
| 39 | |
| 40 | theorem baseCutoff_smooth : ContDiff ℝ ∞ baseCutoff := baseBump.contDiff |
| 41 | |
| 42 | theorem baseCutoff_nonneg (x : Space) : 0 ≤ baseCutoff x := baseBump.nonneg |
| 43 | |
| 44 | theorem baseCutoff_le_one (x : Space) : baseCutoff x ≤ 1 := baseBump.le_one |
| 45 | |
| 46 | theorem baseCutoff_eq_one {x : Space} (hx : ‖x‖ ≤ 1) : baseCutoff x = 1 := by |
| 47 | apply baseBump.one_of_mem_closedBall |
| 48 | simpa [baseBump, mem_closedBall, dist_zero_right] using hx |
| 49 | |
| 50 | theorem baseCutoff_eq_zero {x : Space} (hx : 2 ≤ ‖x‖) : baseCutoff x = 0 := by |
| 51 | apply baseBump.zero_of_le_dist |
| 52 | simpa [baseBump, dist_zero_right] using hx |
| 53 | |
| 54 | theorem baseCutoff_hasCompactSupport : HasCompactSupport baseCutoff := |
| 55 | baseBump.hasCompactSupport |
| 56 | |
| 57 | theorem baseCutoff_tsupport : tsupport baseCutoff = closedBall (0 : Space) 2 := by |
| 58 | exact baseBump.tsupport_eq |
| 59 | |
| 60 | theorem cutoff_smooth (R : ℝ) : ContDiff ℝ ∞ (cutoff R) := |
| 61 | baseCutoff_smooth.comp (by fun_prop) |
| 62 | |
| 63 | theorem cutoff_nonneg (R : ℝ) (x : Space) : 0 ≤ cutoff R x := |
| 64 | baseCutoff_nonneg _ |
| 65 | |
| 66 | theorem cutoff_le_one (R : ℝ) (x : Space) : cutoff R x ≤ 1 := |
| 67 | baseCutoff_le_one _ |
| 68 | |
| 69 | theorem cutoff_mem_Icc (R : ℝ) (x : Space) : cutoff R x ∈ Icc (0 : ℝ) 1 := |
| 70 | ⟨cutoff_nonneg R x, cutoff_le_one R x⟩ |
| 71 | |
| 72 | theorem norm_scaled {R : ℝ} (hR : 0 < R) (x : Space) : |
| 73 | ‖R⁻¹ • x‖ = ‖x‖ / R := by |
| 74 | simp only [norm_smul, Real.norm_eq_abs, abs_inv, abs_of_pos hR, div_eq_inv_mul] |
| 75 | |
| 76 | theorem cutoff_eq_one {R : ℝ} (hR : 0 < R) {x : Space} (hx : ‖x‖ ≤ R) : |
| 77 | cutoff R x = 1 := by |
| 78 | apply baseCutoff_eq_one |
| 79 | rw [norm_scaled hR, div_le_one hR] |
| 80 | exact hx |
| 81 | |
| 82 | theorem cutoff_eq_one_on_closedBall {R : ℝ} (hR : 0 < R) : |
| 83 | EqOn (cutoff R) (fun _ => 1) (closedBall (0 : Space) R) := by |
| 84 | intro x hx |
| 85 | exact cutoff_eq_one hR (by simpa [mem_closedBall, dist_zero_right] using hx) |
| 86 | |
| 87 | theorem cutoff_eq_zero {R : ℝ} (hR : 0 < R) {x : Space} (hx : 2 * R ≤ ‖x‖) : |
| 88 | cutoff R x = 0 := by |
| 89 | apply baseCutoff_eq_zero |
| 90 | rw [norm_scaled hR, le_div_iff₀ hR] |
| 91 | exact hx |
| 92 | |
| 93 | theorem cutoff_support_subset {R : ℝ} (hR : 0 < R) : |
| 94 | Function.support (cutoff R) ⊆ ball (0 : Space) (2 * R) := by |
| 95 | intro x hx |
| 96 | by_contra h |
| 97 | apply hx |
| 98 | exact cutoff_eq_zero hR (by simpa [mem_ball, dist_zero_right, not_lt] using h) |
| 99 | |
| 100 | theorem cutoff_tsupport_subset {R : ℝ} (hR : 0 < R) : |
| 101 | tsupport (cutoff R) ⊆ closedBall (0 : Space) (2 * R) := |
| 102 | closure_minimal ((cutoff_support_subset hR).trans ball_subset_closedBall) isClosed_closedBall |
| 103 | |
| 104 | theorem cutoff_hasCompactSupport {R : ℝ} (hR : 0 < R) : |
| 105 | HasCompactSupport (cutoff R) := |
| 106 | (isCompact_closedBall (0 : Space) (2 * R)).of_isClosed_subset |
| 107 | isClosed_closure (cutoff_tsupport_subset hR) |
| 108 | |
| 109 | theorem weight_smooth (R : ℝ) : ContDiff ℝ ∞ (weight R) := |
| 110 | (cutoff_smooth R).pow 8 |
| 111 | |
| 112 | theorem multiplier_smooth (R : ℝ) : ContDiff ℝ ∞ (multiplier R) := |
| 113 | (cutoff_smooth R).pow 2 |
| 114 | |
| 115 | theorem weight_nonneg (R : ℝ) (x : Space) : 0 ≤ weight R x := |
| 116 | pow_nonneg (cutoff_nonneg R x) 8 |
| 117 | |
| 118 | theorem weight_le_one (R : ℝ) (x : Space) : weight R x ≤ 1 := by |
| 119 | exact pow_le_one₀ (cutoff_nonneg R x) (cutoff_le_one R x) |
| 120 | |
| 121 | theorem multiplier_nonneg (R : ℝ) (x : Space) : 0 ≤ multiplier R x := |
| 122 | sq_nonneg _ |
| 123 | |
| 124 | theorem multiplier_le_one (R : ℝ) (x : Space) : multiplier R x ≤ 1 := by |
| 125 | exact pow_le_one₀ (cutoff_nonneg R x) (cutoff_le_one R x) |
| 126 | |
| 127 | theorem weight_hasCompactSupport {R : ℝ} (hR : 0 < R) : |
| 128 | HasCompactSupport (weight R) := by |
| 129 | change HasCompactSupport ((fun a : ℝ => a ^ 8) ∘ cutoff R) |
| 130 | exact (cutoff_hasCompactSupport hR).comp_left (by norm_num) |
| 131 | |
| 132 | theorem multiplier_hasCompactSupport {R : ℝ} (hR : 0 < R) : |
| 133 | HasCompactSupport (multiplier R) := by |
| 134 | change HasCompactSupport ((fun a : ℝ => a ^ 2) ∘ cutoff R) |
| 135 | exact (cutoff_hasCompactSupport hR).comp_left (by norm_num) |
| 136 | |
| 137 | theorem weight_eq_one {R : ℝ} (hR : 0 < R) {x : Space} (hx : ‖x‖ ≤ R) : |
| 138 | weight R x = 1 := by simp [weight, cutoff_eq_one hR hx] |
| 139 | |
| 140 | theorem multiplier_eq_one {R : ℝ} (hR : 0 < R) {x : Space} (hx : ‖x‖ ≤ R) : |
| 141 | multiplier R x = 1 := by simp [multiplier, cutoff_eq_one hR hx] |
| 142 | |
| 143 | private theorem exists_derivative_bound (n : ℕ) : |
| 144 | ∃ C : ℝ, 0 < C ∧ ∀ x : Space, ‖iteratedFDeriv ℝ n baseCutoff x‖ ≤ C := by |
| 145 | obtain ⟨C, hC⟩ := (baseCutoff_hasCompactSupport.iteratedFDeriv n).exists_bound_of_continuous |
| 146 | (ContDiff.continuous_iteratedFDeriv le_rfl (contDiff_infty.1 baseCutoff_smooth n)) |
| 147 | exact ⟨max 1 C, lt_of_lt_of_le zero_lt_one (le_max_left _ _), |
| 148 | fun x => (hC x).trans (le_max_right _ _)⟩ |
| 149 | |
| 150 | /-- A fixed positive bound for the `n`th derivative of the unscaled bump. -/ |
| 151 | def derivativeConstant (n : ℕ) : ℝ := Classical.choose (exists_derivative_bound n) |
| 152 | |
| 153 | theorem derivativeConstant_pos (n : ℕ) : 0 < derivativeConstant n := |
| 154 | (Classical.choose_spec (exists_derivative_bound n)).1 |
| 155 | |
| 156 | theorem baseCutoff_iteratedFDeriv_le (n : ℕ) (x : Space) : |
| 157 | ‖iteratedFDeriv ℝ n baseCutoff x‖ ≤ derivativeConstant n := |
| 158 | (Classical.choose_spec (exists_derivative_bound n)).2 x |
| 159 | |
| 160 | private def dilation (R : ℝ) : Space →L[ℝ] Space := |
| 161 | R⁻¹ • ContinuousLinearMap.id ℝ Space |
| 162 | |
| 163 | private theorem norm_dilation_le {R : ℝ} (hR : 0 < R) : ‖dilation R‖ ≤ R⁻¹ := by |
| 164 | apply ContinuousLinearMap.opNorm_le_bound _ (inv_nonneg.mpr hR.le) |
| 165 | intro x |
| 166 | change ‖R⁻¹ • x‖ ≤ R⁻¹ * ‖x‖ |
| 167 | rw [norm_scaled hR, div_eq_inv_mul] |
| 168 | |
| 169 | /-- Each spatial derivative contributes precisely one inverse power of the radius. -/ |
| 170 | theorem cutoff_iteratedFDeriv_le {R : ℝ} (hR : 0 < R) (n : ℕ) (x : Space) : |
| 171 | ‖iteratedFDeriv ℝ n (cutoff R) x‖ ≤ derivativeConstant n / R ^ n := by |
| 172 | change ‖iteratedFDeriv ℝ n (baseCutoff ∘ dilation R) x‖ ≤ _ |
| 173 | rw [(dilation R).iteratedFDeriv_comp_right (contDiff_infty.1 baseCutoff_smooth n) x le_rfl] |
| 174 | calc |
| 175 | ‖(iteratedFDeriv ℝ n baseCutoff (dilation R x)).compContinuousLinearMap |
| 176 | (fun _ => dilation R)‖ |
| 177 | ≤ ‖iteratedFDeriv ℝ n baseCutoff (dilation R x)‖ * |
| 178 | ∏ _ : Fin n, ‖dilation R‖ := |
| 179 | ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _ |
| 180 | _ ≤ ‖iteratedFDeriv ℝ n baseCutoff (dilation R x)‖ * (R⁻¹) ^ n := by |
| 181 | apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 182 | calc |
| 183 | ∏ _ : Fin n, ‖dilation R‖ ≤ ∏ _ : Fin n, R⁻¹ := |
| 184 | Finset.prod_le_prod (fun _ _ => norm_nonneg _) (fun _ _ => norm_dilation_le hR) |
| 185 | _ = (R⁻¹) ^ n := by simp |
| 186 | _ ≤ derivativeConstant n * (R⁻¹) ^ n := |
| 187 | mul_le_mul_of_nonneg_right (baseCutoff_iteratedFDeriv_le n _) (by positivity) |
| 188 | _ = derivativeConstant n / R ^ n := by simp [div_eq_mul_inv] |
| 189 | |
| 190 | theorem cutoff_fderiv_le {R : ℝ} (hR : 0 < R) (x : Space) : |
| 191 | ‖fderiv ℝ (cutoff R) x‖ ≤ derivativeConstant 1 / R := by |
| 192 | have hn := norm_iteratedFDeriv_fderiv (𝕜 := ℝ) (f := cutoff R) (x := x) (n := 0) |
| 193 | simp only [norm_iteratedFDeriv_zero] at hn |
| 194 | rw [hn] |
| 195 | simpa only [pow_one] using cutoff_iteratedFDeriv_le hR 1 x |
| 196 | |
| 197 | theorem cutoff_second_fderiv_le {R : ℝ} (hR : 0 < R) (x : Space) : |
| 198 | ‖fderiv ℝ (fderiv ℝ (cutoff R)) x‖ ≤ derivativeConstant 2 / R ^ 2 := by |
| 199 | have hn := norm_iteratedFDeriv_fderiv (𝕜 := ℝ) (f := fderiv ℝ (cutoff R)) |
| 200 | (x := x) (n := 0) |
| 201 | simp only [norm_iteratedFDeriv_zero] at hn |
| 202 | rw [hn, norm_iteratedFDeriv_fderiv] |
| 203 | exact cutoff_iteratedFDeriv_le hR 2 x |
| 204 | |
| 205 | /-- The scalar spatial Laplacian, using the fixed standard coordinate vectors. -/ |
| 206 | def laplacian (f : Space → ℝ) (x : Space) : ℝ := |
| 207 | ∑ i : Fin 3, NavierStokes.PeriodicIntegration.spatialPartial i |
| 208 | (NavierStokes.PeriodicIntegration.spatialPartial i f) x |
| 209 | |
| 210 | theorem fderiv_apply_derivative {f : Space → ℝ} (hf : ContDiff ℝ ∞ f) |
| 211 | (x a b : Space) : |
| 212 | fderiv ℝ (fun y => fderiv ℝ f y b) x a = |
| 213 | fderiv ℝ (fderiv ℝ f) x a b := by |
| 214 | have hd : DifferentiableAt ℝ (fderiv ℝ f) x := |
| 215 | (hf.fderiv_right (m := ∞) (by simp)).differentiable (by simp) x |
| 216 | simpa using congrArg (fun A : Space →L[ℝ] ℝ => A a) |
| 217 | (fderiv_clm_apply hd (differentiableAt_const b)) |
| 218 | |
| 219 | theorem norm_partial_partial_le {f : Space → ℝ} (hf : ContDiff ℝ ∞ f) |
| 220 | (i j : Fin 3) (x : Space) : |
| 221 | ‖NavierStokes.PeriodicIntegration.spatialPartial i |
| 222 | (NavierStokes.PeriodicIntegration.spatialPartial j f) x‖ ≤ |
| 223 | ‖fderiv ℝ (fderiv ℝ f) x‖ := by |
| 224 | change ‖fderiv ℝ (fun y => fderiv ℝ f y (coordinateVector j)) x (coordinateVector i)‖ ≤ _ |
| 225 | rw [fderiv_apply_derivative hf] |
| 226 | have hv (k : Fin 3) : ‖coordinateVector k‖ ≤ 1 := by |
| 227 | simp [coordinateVector] |
| 228 | exact ((fderiv ℝ (fderiv ℝ f) x (coordinateVector i)).unit_le_opNorm |
| 229 | (coordinateVector j) (hv j)).trans |
| 230 | ((fderiv ℝ (fderiv ℝ f) x).unit_le_opNorm (coordinateVector i) (hv i)) |
| 231 | |
| 232 | theorem cutoff_partial_partial_le {R : ℝ} (hR : 0 < R) (i j : Fin 3) (x : Space) : |
| 233 | ‖NavierStokes.PeriodicIntegration.spatialPartial i |
| 234 | (NavierStokes.PeriodicIntegration.spatialPartial j (cutoff R)) x‖ ≤ |
| 235 | derivativeConstant 2 / R ^ 2 := |
| 236 | (norm_partial_partial_le (cutoff_smooth R) i j x).trans (cutoff_second_fderiv_le hR x) |
| 237 | |
| 238 | theorem cutoff_laplacian_le {R : ℝ} (hR : 0 < R) (x : Space) : |
| 239 | ‖laplacian (cutoff R) x‖ ≤ (3 * derivativeConstant 2) / R ^ 2 := by |
| 240 | calc |
| 241 | ‖laplacian (cutoff R) x‖ |
| 242 | ≤ ∑ i : Fin 3, ‖NavierStokes.PeriodicIntegration.spatialPartial i |
| 243 | (NavierStokes.PeriodicIntegration.spatialPartial i (cutoff R)) x‖ := |
| 244 | norm_sum_le _ _ |
| 245 | _ ≤ ∑ _ : Fin 3, derivativeConstant 2 / R ^ 2 := |
| 246 | Finset.sum_le_sum (fun i _ => cutoff_partial_partial_le hR i i x) |
| 247 | _ = (3 * derivativeConstant 2) / R ^ 2 := by simp [mul_div_assoc] |
| 248 | |
| 249 | /-- Every fixed compact set lies in the plateau of all sufficiently large cutoffs. -/ |
| 250 | theorem compact_plateau {K : Set Space} (hK : IsCompact K) : |
| 251 | ∃ R₀ > 0, ∀ R ≥ R₀, EqOn (cutoff R) (fun _ => 1) K := by |
| 252 | obtain ⟨R₀, hR₀, hbound⟩ := hK.isBounded.exists_pos_norm_le |
| 253 | exact ⟨R₀, hR₀, fun R hR x hx => cutoff_eq_one (hR₀.trans_le hR) |
| 254 | ((hbound x hx).trans hR)⟩ |
| 255 | |
| 256 | theorem eventually_compact_plateau {K : Set Space} (hK : IsCompact K) : |
| 257 | ∀ᶠ R : ℝ in atTop, EqOn (cutoff R) (fun _ => 1) K := by |
| 258 | obtain ⟨R₀, _, h⟩ := compact_plateau hK |
| 259 | exact eventually_atTop.2 ⟨R₀, h⟩ |
| 260 | |
| 261 | theorem eventually_cutoff_eq_one (x : Space) : |
| 262 | ∀ᶠ R : ℝ in atTop, cutoff R x = 1 := by |
| 263 | filter_upwards [eventually_compact_plateau (isCompact_singleton (x := x))] with R hR |
| 264 | exact hR (mem_singleton x) |
| 265 | |
| 266 | theorem cutoff_tendsto_one (x : Space) : |
| 267 | Tendsto (fun R : ℝ => cutoff R x) atTop (𝓝 1) := by |
| 268 | apply tendsto_const_nhds.congr' |
| 269 | filter_upwards [eventually_cutoff_eq_one x] with R hR |
| 270 | exact hR.symm |
| 271 | |
| 272 | end NavierStokesR3.ComparisonCutoffs |