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.PeriodicUniqueness |
| 2 | import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts |
| 3 | import NavierStokes.R3.CompactTimeIntegral |
| 4 | import NavierStokes.R3.ScalarEnergyBound |
| 5 | import NavierStokes.R3.CompactForceBound |
| 6 | |
| 7 | /-! |
| 8 | # Energy of compactly supported fields on Euclidean three-space |
| 9 | |
| 10 | All integrals in this module are the standard Lebesgue volume integrals on |
| 11 | `ProblemStatement.Space`. Compact support supplies integrability; no finite |
| 12 | replacement measure or convention about nonintegrable functions is used. |
| 13 | -/ |
| 14 | |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter MeasureTheory Function |
| 19 | open scoped Topology BigOperators ContDiff InnerProductSpace |
| 20 | |
| 21 | namespace NavierStokesR3.CompactEnergy |
| 22 | |
| 23 | open NavierStokes.ProblemStatement |
| 24 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 25 | open NavierStokes.PeriodicUniqueness |
| 26 | |
| 27 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 28 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 29 | |
| 30 | private theorem infty_add_one_le : (∞ : WithTop ℕ∞) + 1 ≤ ∞ := by |
| 31 | simpa only [ENat.coe_top_add_one] using (le_rfl : (∞ : WithTop ℕ∞) ≤ ∞) |
| 32 | |
| 33 | theorem compact_inner_left {f g : Space → Space} (hf : HasCompactSupport f) : |
| 34 | HasCompactSupport (fun x => ⟪f x, g x⟫_ℝ) := by |
| 35 | apply hf.mono |
| 36 | intro x hx |
| 37 | contrapose! hx |
| 38 | simp only [mem_support, not_not] at hx ⊢ |
| 39 | rw [hx, inner_zero_left] |
| 40 | |
| 41 | theorem compact_norm_sq {f : Space → Space} (hf : HasCompactSupport f) : |
| 42 | HasCompactSupport (fun x => ‖f x‖ ^ 2) := by |
| 43 | exact hf.comp_left (g := fun v : Space => ‖v‖ ^ 2) (by simp) |
| 44 | |
| 45 | theorem integrable_norm_sq {f : Space → Space} (hf : Continuous f) |
| 46 | (hcf : HasCompactSupport f) : Integrable (fun x => ‖f x‖ ^ 2) := |
| 47 | (hf.norm.pow 2).integrable_of_hasCompactSupport (compact_norm_sq hcf) |
| 48 | |
| 49 | theorem compact_component {f : Space → Space} (hf : HasCompactSupport f) (i : Fin 3) : |
| 50 | HasCompactSupport (fun x => f x i) := |
| 51 | hf.comp_left (g := fun v : Space => v i) rfl |
| 52 | |
| 53 | theorem integrable_inner_left {f g : Space → Space} (hf : Continuous f) |
| 54 | (hg : Continuous g) (hcf : HasCompactSupport f) : |
| 55 | Integrable (fun x => ⟪f x, g x⟫_ℝ) := |
| 56 | (hf.inner hg).integrable_of_hasCompactSupport (compact_inner_left hcf) |
| 57 | |
| 58 | theorem compact_partial {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 59 | {f : Space → V} (hf : HasCompactSupport f) (i : Fin 3) : |
| 60 | HasCompactSupport (spatialPartial i f) := |
| 61 | hf.fderiv_apply ℝ (coordinateVector i) |
| 62 | |
| 63 | theorem integral_partial_eq_zero {f : Space → ℝ} (hf : ContDiff ℝ ∞ f) |
| 64 | (hcf : HasCompactSupport f) (i : Fin 3) : |
| 65 | (∫ x, spatialPartial i f x) = 0 := by |
| 66 | have hi : Integrable (spatialPartial i f) := |
| 67 | (spatial_partial_contDiff hf i).continuous.integrable_of_hasCompactSupport |
| 68 | (compact_partial hcf i) |
| 69 | have h := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable |
| 70 | (μ := volume) (f := fun _ : Space => (1 : ℝ)) (g := f) (v := coordinateVector i) |
| 71 | (by simp) |
| 72 | (by simpa only [spatialPartial, one_mul] using! hi) |
| 73 | (by simpa only [one_mul] using hf.continuous.integrable_of_hasCompactSupport hcf) |
| 74 | (fun x _ => differentiableAt_const (1 : ℝ)) (fun x _ => hf.differentiable (by simp) x) |
| 75 | simpa [spatialPartial] using h |
| 76 | |
| 77 | theorem integral_mul_partial {f g : Space → ℝ} |
| 78 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 79 | (hcf : HasCompactSupport f) (i : Fin 3) : |
| 80 | (∫ x, f x * spatialPartial i g x) = |
| 81 | -(∫ x, g x * spatialPartial i f x) := by |
| 82 | have h := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable |
| 83 | (μ := volume) (f := f) (g := g) (v := coordinateVector i) |
| 84 | (((spatial_partial_contDiff hf i).continuous.mul hg.continuous).integrable_of_hasCompactSupport |
| 85 | (compact_partial hcf i).mul_right) |
| 86 | ((hf.continuous.mul (spatial_partial_contDiff hg i).continuous).integrable_of_hasCompactSupport |
| 87 | hcf.mul_right) |
| 88 | ((hf.continuous.mul hg.continuous).integrable_of_hasCompactSupport hcf.mul_right) |
| 89 | (fun x _ => hf.differentiable (by simp) x) (fun x _ => hg.differentiable (by simp) x) |
| 90 | simpa only [spatialPartial, mul_comm] using h |
| 91 | |
| 92 | /-- Integration against a compactly supported vector field transfers a |
| 93 | directional derivative to its divergence. -/ |
| 94 | theorem integral_fderiv_apply {f : Space → ℝ} {v : Space → Space} |
| 95 | (hf : ContDiff ℝ ∞ f) (hv : ContDiff ℝ ∞ v) (hcv : HasCompactSupport v) : |
| 96 | (∫ x, fderiv ℝ f x (v x)) = |
| 97 | -(∫ x, f x * ∑ i : Fin 3, spatialPartial i v x i) := by |
| 98 | have hleft : (fun x => fderiv ℝ f x (v x)) = |
| 99 | (fun x => ∑ i : Fin 3, v x i * spatialPartial i f x) := by |
| 100 | funext x |
| 101 | exact fderiv_apply_eq_sum f x (v x) |
| 102 | have hright : (fun x => f x * ∑ i : Fin 3, spatialPartial i v x i) = |
| 103 | (fun x => ∑ i : Fin 3, f x * spatialPartial i v x i) := by |
| 104 | funext x |
| 105 | exact Finset.mul_sum _ _ _ |
| 106 | have hIl (i : Fin 3) : Integrable (fun x => v x i * spatialPartial i f x) := |
| 107 | ((component_contDiff hv i).continuous.mul (spatial_partial_contDiff hf i).continuous).integrable_of_hasCompactSupport |
| 108 | (compact_component hcv i).mul_right |
| 109 | have hIr (i : Fin 3) : Integrable (fun x => f x * spatialPartial i v x i) := |
| 110 | (hf.continuous.mul (component_contDiff (spatial_partial_contDiff hv i) i).continuous).integrable_of_hasCompactSupport |
| 111 | (compact_component (compact_partial hcv i) i).mul_left |
| 112 | rw [hleft, hright, integral_finsetSum _ (fun i _ => hIl i), |
| 113 | integral_finsetSum _ (fun i _ => hIr i), ← Finset.sum_neg_distrib] |
| 114 | apply Finset.sum_congr rfl |
| 115 | intro i _ |
| 116 | have h := integral_mul_partial (component_contDiff hv i) hf (compact_component hcv i) i |
| 117 | simpa only [spatialPartial, fderiv_component hv] using h |
| 118 | |
| 119 | theorem integral_fderiv_apply_zero {f : Space → ℝ} {v : Space → Space} |
| 120 | (hf : ContDiff ℝ ∞ f) (hv : ContDiff ℝ ∞ v) (hcv : HasCompactSupport v) |
| 121 | (hdiv : ∀ x, (∑ i : Fin 3, spatialPartial i v x i) = 0) : |
| 122 | (∫ x, fderiv ℝ f x (v x)) = 0 := by |
| 123 | rw [integral_fderiv_apply hf hv hcv] |
| 124 | simp only [hdiv, mul_zero, integral_zero, neg_zero] |
| 125 | |
| 126 | /-- Divergence-free transport contributes zero to the whole-space energy. -/ |
| 127 | theorem integral_transport_energy_zero {w v : Space → Space} |
| 128 | (hw : ContDiff ℝ ∞ w) (hv : ContDiff ℝ ∞ v) (hcv : HasCompactSupport v) |
| 129 | (hdiv : ∀ x, (∑ i : Fin 3, spatialPartial i v x i) = 0) : |
| 130 | (∫ x, ⟪w x, fderiv ℝ w x (v x)⟫_ℝ) = 0 := by |
| 131 | have h := integral_fderiv_apply_zero (hw.norm_sq ℝ) hv hcv hdiv |
| 132 | have hfun : (fun x => fderiv ℝ (fun y => ‖w y‖ ^ 2) x (v x)) = |
| 133 | (fun x => 2 * ⟪w x, fderiv ℝ w x (v x)⟫_ℝ) := by |
| 134 | funext x |
| 135 | exact fderiv_normsq hw x (v x) |
| 136 | rw [hfun, integral_const_mul] at h |
| 137 | linarith |
| 138 | |
| 139 | theorem integral_inner_partial {f g : Space → Space} |
| 140 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 141 | (hcf : HasCompactSupport f) (i : Fin 3) : |
| 142 | (∫ x, ⟪f x, spatialPartial i g x⟫_ℝ) = |
| 143 | -(∫ x, ⟪spatialPartial i f x, g x⟫_ℝ) := by |
| 144 | have h := integral_partial_eq_zero (hf.inner ℝ hg) (compact_inner_left hcf) i |
| 145 | have hfun : spatialPartial i (fun x => ⟪f x, g x⟫_ℝ) = |
| 146 | (fun x => ⟪f x, spatialPartial i g x⟫_ℝ + ⟪spatialPartial i f x, g x⟫_ℝ) := by |
| 147 | funext x |
| 148 | exact fderiv_inner hf hg x (coordinateVector i) |
| 149 | rw [hfun] at h |
| 150 | dsimp only [spatialPartial] at h ⊢ |
| 151 | rw [integral_add (integrable_inner_left hf.continuous |
| 152 | (spatial_partial_contDiff hg i).continuous hcf) |
| 153 | (integrable_inner_left (spatial_partial_contDiff hf i).continuous hg.continuous |
| 154 | (compact_partial hcf i))] at h |
| 155 | exact eq_neg_of_add_eq_zero_left h |
| 156 | |
| 157 | theorem integral_laplacian_energy {u : VelocityField} {t : ℝ} |
| 158 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 159 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) : |
| 160 | (∫ x, ⟪u (t, x), spatialLaplacian u t x⟫_ℝ) = |
| 161 | -(∑ i : Fin 3, ∫ x, ‖spatialPartial i (fun y => u (t, y)) x‖ ^ 2) := by |
| 162 | have hsum : (∫ x, ⟪u (t, x), spatialLaplacian u t x⟫_ℝ) = |
| 163 | ∑ i : Fin 3, ∫ x, ⟪u (t, x), |
| 164 | spatialPartial i (spatialPartial i (fun y => u (t, y))) x⟫_ℝ := by |
| 165 | simp only [spatialLaplacian, inner_sum] |
| 166 | exact integral_finsetSum _ (fun i _ => integrable_inner_left hu.continuous |
| 167 | (spatial_partial_contDiff (spatial_partial_contDiff hu i) i).continuous hcu) |
| 168 | rw [hsum, ← Finset.sum_neg_distrib] |
| 169 | apply Finset.sum_congr rfl |
| 170 | intro i _ |
| 171 | simpa only [spatialPartial, real_inner_self_eq_norm_sq] using! |
| 172 | integral_inner_partial hu (spatial_partial_contDiff hu i) hcu i |
| 173 | |
| 174 | /-- The pressure need not have compact support: the compact velocity already |
| 175 | makes every integration-by-parts product integrable. -/ |
| 176 | theorem integral_pressure_energy_zero {u : VelocityField} {p : PressureField} {t : ℝ} |
| 177 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 178 | (hp : ContDiff ℝ ∞ (fun x : Space => p (t, x))) |
| 179 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) |
| 180 | (hdiv : ∀ x, spatialDivergence u t x = 0) : |
| 181 | (∫ x, ⟪u (t, x), pressureGradient p t x⟫_ℝ) = 0 := by |
| 182 | have hfun : (fun x => ⟪u (t, x), pressureGradient p t x⟫_ℝ) = |
| 183 | (fun x => fderiv ℝ (fun y => p (t, y)) x (u (t, x))) := by |
| 184 | funext x |
| 185 | exact inner_pressureGradient p t x (u (t, x)) |
| 186 | rw [hfun] |
| 187 | exact integral_fderiv_apply_zero hp hu hcu hdiv |
| 188 | |
| 189 | /-- The full squared spatial L2 norm with ordinary Euclidean volume. -/ |
| 190 | def l2Sq (u : VelocityField) (t : ℝ) : ℝ := ∫ x : Space, ‖u (t, x)‖ ^ 2 |
| 191 | |
| 192 | def energyRate (u : VelocityField) (t : ℝ) : ℝ := |
| 193 | ∫ x : Space, 2 * ⟪u (t, x), temporalDerivative u t x⟫_ℝ |
| 194 | |
| 195 | def dissipation (u : VelocityField) (t : ℝ) : ℝ := |
| 196 | ∑ i : Fin 3, ∫ x : Space, ‖spatialPartial i (fun y => u (t, y)) x‖ ^ 2 |
| 197 | |
| 198 | theorem dissipation_nonneg (u : VelocityField) (t : ℝ) : 0 ≤ dissipation u t := |
| 199 | Finset.sum_nonneg (fun _ _ => integral_nonneg (fun _ => sq_nonneg _)) |
| 200 | |
| 201 | /-- The exact forced Navier--Stokes energy balance on all of Euclidean space. -/ |
| 202 | theorem energy_balance {u f : VelocityField} {p : PressureField} {t : ℝ} |
| 203 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 204 | (hp : ContDiff ℝ ∞ (fun x : Space => p (t, x))) |
| 205 | (hf : Continuous (fun x : Space => f (t, x))) |
| 206 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) |
| 207 | (hdiv : ∀ x, spatialDivergence u t x = 0) |
| 208 | (hNS : ∀ x, navierStokesResidual u p t x = f (t, x)) : |
| 209 | energyRate u t = -2 * dissipation u t + 2 * ∫ x, ⟪u (t, x), f (t, x)⟫_ℝ := by |
| 210 | have hL := (hu.inner ℝ (spatialLaplacian_contDiff hu)).continuous |
| 211 | have hN := (hu.inner ℝ ((hu.fderiv_right infty_add_one_le).clm_apply hu)).continuous |
| 212 | have hP := (hu.inner ℝ (pressureGradient_contDiff hp)).continuous |
| 213 | have hF : Continuous (fun x : Space => ⟪u (t, x), f (t, x)⟫_ℝ) := hu.continuous.inner hf |
| 214 | have hiL : Integrable (fun x => ⟪u (t, x), spatialLaplacian u t x⟫_ℝ) := |
| 215 | hL.integrable_of_hasCompactSupport (compact_inner_left hcu) |
| 216 | have hiN : Integrable (fun x => ⟪u (t, x), advection u t x⟫_ℝ) := |
| 217 | hN.integrable_of_hasCompactSupport (compact_inner_left hcu) |
| 218 | have hiP : Integrable (fun x => ⟪u (t, x), pressureGradient p t x⟫_ℝ) := |
| 219 | hP.integrable_of_hasCompactSupport (compact_inner_left hcu) |
| 220 | have hiF : Integrable (fun x => ⟪u (t, x), f (t, x)⟫_ℝ) := |
| 221 | hF.integrable_of_hasCompactSupport (compact_inner_left hcu) |
| 222 | have hiLN : Integrable (fun x => ⟪u (t, x), spatialLaplacian u t x⟫_ℝ - |
| 223 | ⟪u (t, x), advection u t x⟫_ℝ) := hiL.sub hiN |
| 224 | have hiLNP : Integrable (fun x => ⟪u (t, x), spatialLaplacian u t x⟫_ℝ - |
| 225 | ⟪u (t, x), advection u t x⟫_ℝ - ⟪u (t, x), pressureGradient p t x⟫_ℝ) := hiLN.sub hiP |
| 226 | have hEq : (fun x => ⟪u (t, x), temporalDerivative u t x⟫_ℝ) = |
| 227 | (fun x => ⟪u (t, x), spatialLaplacian u t x⟫_ℝ - |
| 228 | ⟪u (t, x), advection u t x⟫_ℝ - ⟪u (t, x), pressureGradient p t x⟫_ℝ + |
| 229 | ⟪u (t, x), f (t, x)⟫_ℝ) := by |
| 230 | funext x |
| 231 | have heq : temporalDerivative u t x = |
| 232 | spatialLaplacian u t x - advection u t x - pressureGradient p t x + f (t, x) := by |
| 233 | have h := hNS x |
| 234 | unfold navierStokesResidual at h |
| 235 | rw [← h] |
| 236 | abel |
| 237 | rw [heq] |
| 238 | simp only [inner_add_right, inner_sub_right] |
| 239 | unfold energyRate |
| 240 | rw [integral_const_mul, hEq, |
| 241 | integral_add hiLNP hiF, |
| 242 | integral_sub hiLN hiP, integral_sub hiL hiN, |
| 243 | integral_laplacian_energy hu hcu, |
| 244 | integral_pressure_energy_zero hu hp hcu hdiv] |
| 245 | have htransport := integral_transport_energy_zero hu hu hcu hdiv |
| 246 | change (∫ x, ⟪u (t, x), advection u t x⟫_ℝ) = 0 at htransport |
| 247 | rw [htransport] |
| 248 | simp only [sub_zero, dissipation] |
| 249 | ring |
| 250 | |
| 251 | /-- Young's inequality controls the forcing by the two actual squared L2 |
| 252 | norms. All terms are integrable before the integral is compared. -/ |
| 253 | theorem energy_rate_le {u f : VelocityField} {p : PressureField} {t : ℝ} |
| 254 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 255 | (hp : ContDiff ℝ ∞ (fun x : Space => p (t, x))) |
| 256 | (hf : Continuous (fun x : Space => f (t, x))) |
| 257 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) |
| 258 | (hfi : Integrable (fun x : Space => ‖f (t, x)‖ ^ 2)) |
| 259 | (hdiv : ∀ x, spatialDivergence u t x = 0) |
| 260 | (hNS : ∀ x, navierStokesResidual u p t x = f (t, x)) : |
| 261 | energyRate u t ≤ l2Sq u t + l2Sq f t := by |
| 262 | have hui := integrable_norm_sq hu.continuous hcu |
| 263 | have hip := integrable_inner_left hu.continuous hf hcu |
| 264 | have hsum : Integrable (fun x : Space => ‖u (t, x)‖ ^ 2 + ‖f (t, x)‖ ^ 2) := hui.add hfi |
| 265 | have hpoint (x : Space) : |
| 266 | 2 * ⟪u (t, x), f (t, x)⟫_ℝ ≤ ‖u (t, x)‖ ^ 2 + ‖f (t, x)‖ ^ 2 := by |
| 267 | have hinner := (le_abs_self ⟪u (t, x), f (t, x)⟫_ℝ).trans |
| 268 | (abs_real_inner_le_norm (u (t, x)) (f (t, x))) |
| 269 | nlinarith [sq_nonneg (‖u (t, x)‖ - ‖f (t, x)‖)] |
| 270 | have hforce : 2 * (∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) ≤ l2Sq u t + l2Sq f t := by |
| 271 | rw [← integral_const_mul] |
| 272 | unfold l2Sq |
| 273 | rw [← integral_add hui hfi] |
| 274 | exact integral_mono (hip.const_mul 2) hsum hpoint |
| 275 | rw [energy_balance hu hp hf hcu hdiv hNS] |
| 276 | have hd := dissipation_nonneg u t |
| 277 | linarith |
| 278 | |
| 279 | theorem slice_compact {u : VelocityField} {K : Set Space} |
| 280 | (hK : IsCompact K) {t : ℝ} (hsupp : tsupport (fun x => u (t, x)) ⊆ K) : |
| 281 | HasCompactSupport (fun x => u (t, x)) := |
| 282 | hK.of_isClosed_subset (isClosed_tsupport _) hsupp |
| 283 | |
| 284 | theorem zero_outside {u : VelocityField} {K : Set Space} {t : ℝ} |
| 285 | (hsupp : tsupport (fun x => u (t, x)) ⊆ K) {x : Space} (hx : x ∉ K) : |
| 286 | u (t, x) = 0 := |
| 287 | image_eq_zero_of_notMem_tsupport (f := fun y => u (t, y)) (fun h => hx (hsupp h)) |
| 288 | |
| 289 | theorem l2Sq_continuousOn {a b : ℝ} {u : VelocityField} {K : Set Space} |
| 290 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 291 | (hsupp : ∀ t ∈ Icc a b, tsupport (fun x => u (t, x)) ⊆ K) : |
| 292 | ContinuousOn (l2Sq u) (Icc a b) := by |
| 293 | have hF : ContinuousOn (fun z : SpaceTime => ‖u z‖ ^ 2) (Icc a b ×ˢ univ) := |
| 294 | (hu.norm_sq ℝ).continuousOn |
| 295 | apply CompactTimeIntegral.continuousOn_integral hK hF |
| 296 | intro t ht x hx |
| 297 | rw [zero_outside (hsupp t ht) hx] |
| 298 | simp |
| 299 | |
| 300 | /-- Differentiation under the ordinary whole-space energy integral follows |
| 301 | from joint smoothness and fixed compact spatial support. -/ |
| 302 | theorem energy_hasDerivAt {a b t : ℝ} {u : VelocityField} {K : Set Space} |
| 303 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 304 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 305 | (ht : t ∈ Ioo a b) : HasDerivAt (l2Sq u) (energyRate u t) t := by |
| 306 | have hF : ContDiffOn ℝ 1 (fun z : SpaceTime => ‖u z‖ ^ 2) (Icc a b ×ˢ univ) := |
| 307 | (hu.norm_sq ℝ).of_le (nat_le_infty 1) |
| 308 | refine CompactTimeIntegral.hasDerivAt_integral_of_contDiffOn_of_hasDerivAt hK hF ?_ ht ?_ |
| 309 | · intro r hr x hx |
| 310 | rw [zero_outside (hsupp r hr) hx] |
| 311 | simp |
| 312 | · intro x |
| 313 | exact energy_density_derivative (time_differentiable_at_interior hu ht x) |
| 314 | |
| 315 | theorem integrable_dissipation_terms {u : VelocityField} {t : ℝ} |
| 316 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 317 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) (i : Fin 3) : |
| 318 | Integrable (fun x : Space => ‖spatialPartial i (fun y => u (t, y)) x‖ ^ 2) := |
| 319 | integrable_norm_sq (spatial_partial_contDiff hu i).continuous (compact_partial hcu i) |
| 320 | |
| 321 | /-- The exact energy identity, with the derivative justified and all spatial |
| 322 | integrals taken against ordinary Lebesgue volume on R³. -/ |
| 323 | theorem hasDerivAt_energy_balance {a b t : ℝ} {u f : VelocityField} |
| 324 | {p : PressureField} {K : Set Space} |
| 325 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 326 | (hp : ContDiffOn ℝ ∞ p (slab a b)) |
| 327 | (hf : Continuous (fun x : Space => f (t, x))) |
| 328 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 329 | (ht : t ∈ Ioo a b) |
| 330 | (hdiv : ∀ x, spatialDivergence u t x = 0) |
| 331 | (hNS : ∀ x, navierStokesResidual u p t x = f (t, x)) : |
| 332 | HasDerivAt (l2Sq u) |
| 333 | (-2 * dissipation u t + 2 * ∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) t := by |
| 334 | have h := energy_hasDerivAt hK hu hsupp ht |
| 335 | rw [energy_balance (spatial_smooth hu ⟨ht.1.le, ht.2.le⟩) |
| 336 | (spatial_smooth hp ⟨ht.1.le, ht.2.le⟩) hf |
| 337 | (slice_compact hK (hsupp t ⟨ht.1.le, ht.2.le⟩)) hdiv hNS] at h |
| 338 | exact h |
| 339 | |
| 340 | /-- A smooth compact force yields one uniform bound for the kinetic energy |
| 341 | before time one. The proof includes square integrability at every time, then |
| 342 | uses the PDE-derived energy inequality and a scalar integrating factor. -/ |
| 343 | theorem uniform_finite_energy {u f : VelocityField} {p : PressureField} {K : Set Space} |
| 344 | (hK : IsCompact K) |
| 345 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 346 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) |
| 347 | (hsupp : ∀ t ∈ Ico (0 : ℝ) 1, tsupport (fun x => u (t, x)) ⊆ K) |
| 348 | (hf : ContDiff ℝ ∞ f) (hcf : HasCompactSupport f) |
| 349 | (hinitial : ∀ x : Space, u (0, x) = 0) |
| 350 | (hdiv : ∀ t ∈ Ioo (0 : ℝ) 1, ∀ x, spatialDivergence u t x = 0) |
| 351 | (hNS : ∀ t ∈ Ioo (0 : ℝ) 1, ∀ x, navierStokesResidual u p t x = f (t, x)) : |
| 352 | ProblemStatement.UniformFiniteEnergy (Ico (0 : ℝ) 1) u := by |
| 353 | obtain ⟨C, hC, hforce⟩ := CompactForceBound.exists_uniform_l2sq_bound hf.continuous hcf |
| 354 | refine ⟨(1 / 2 : ℝ) * (C * Real.exp 1), |
| 355 | mul_nonneg (by norm_num) (mul_nonneg hC (Real.exp_pos _).le), ?_⟩ |
| 356 | intro t ht |
| 357 | have hsub : slab 0 t ⊆ preSingularDomain := by |
| 358 | intro z hz |
| 359 | exact ⟨⟨hz.1.1, lt_of_le_of_lt hz.1.2 ht.2⟩, hz.2⟩ |
| 360 | have huT := hu.mono hsub |
| 361 | have hpT := hp.mono hsub |
| 362 | have hsuppT : ∀ r ∈ Icc (0 : ℝ) t, tsupport (fun x => u (r, x)) ⊆ K := by |
| 363 | intro r hr |
| 364 | exact hsupp r ⟨hr.1, lt_of_le_of_lt hr.2 ht.2⟩ |
| 365 | have hzero : l2Sq u 0 = 0 := by simp [l2Sq, hinitial] |
| 366 | have hbound : l2Sq u t ≤ C * Real.exp 1 := by |
| 367 | apply ScalarEnergyBound.forced_gronwall_uniform ht.1 ht.2.le hC |
| 368 | (l2Sq_continuousOn hK huT hsuppT) hzero |
| 369 | (fun r hr => energy_hasDerivAt hK huT hsuppT hr) _ t ⟨ht.1, le_rfl⟩ |
| 370 | intro r hr |
| 371 | have hrT : r ∈ Icc (0 : ℝ) t := ⟨hr.1.le, hr.2.le⟩ |
| 372 | have hr1 : r ∈ Ioo (0 : ℝ) 1 := ⟨hr.1, hr.2.trans ht.2⟩ |
| 373 | have hrf := hforce r ⟨hr.1.le, hr1.2.le⟩ |
| 374 | have hrate := energy_rate_le (spatial_smooth huT hrT) (spatial_smooth hpT hrT) |
| 375 | (hf.continuous.comp (continuous_const.prodMk continuous_id)) |
| 376 | (slice_compact hK (hsuppT r hrT)) hrf.1 (hdiv r hr1) (hNS r hr1) |
| 377 | exact hrate.trans (add_le_add_right hrf.2 _) |
| 378 | refine ⟨integrable_norm_sq (spatial_smooth huT ⟨ht.1, le_rfl⟩).continuous |
| 379 | (slice_compact hK (hsupp t ht)), ?_⟩ |
| 380 | exact mul_le_mul_of_nonneg_left hbound (by norm_num) |
| 381 | |
| 382 | end NavierStokesR3.CompactEnergy |