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 Mathlib.Analysis.Calculus.ParametricIntegral |
| 2 | import Mathlib.Analysis.Complex.CauchyIntegral |
| 3 | import Mathlib.Analysis.Complex.RealDeriv |
| 4 | import Mathlib.Analysis.SpecialFunctions.Complex.LogDeriv |
| 5 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 6 | import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals |
| 7 | import Mathlib.MeasureTheory.Group.Integral |
| 8 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 9 | import Mathlib.Tactic.Linarith |
| 10 | import Mathlib.Tactic.Positivity |
| 11 | import Mathlib.Tactic.Ring |
| 12 | |
| 13 | /-! |
| 14 | # The pressure datum from a nonnegative weighted schedule |
| 15 | |
| 16 | The clock weights and bounded exponents are fixed input functions. Regularity |
| 17 | of the pressure is deduced from the integral, not assumed as an input. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.PressureDatum |
| 23 | |
| 24 | open MeasureTheory Set Filter Metric |
| 25 | open scoped Topology ContDiff |
| 26 | |
| 27 | /-- Real form of `(1 + η²)^(-2a)`. -/ |
| 28 | def kernel (a η : ℝ) : ℝ := Real.exp (-2 * a * Real.log (1 + η ^ 2)) |
| 29 | |
| 30 | def pressure (g a : ℝ → ℝ) (η : ℝ) : ℝ := |
| 31 | -(1 / 2 : ℝ) * ∫ y, g y * kernel (a y) η |
| 32 | |
| 33 | /-- Sufficient hypotheses on the fixed clock data. No pressure derivatives occur here. -/ |
| 34 | structure Admissible (g a : ℝ → ℝ) (A : ℝ) : Prop where |
| 35 | cap_nonneg : 0 ≤ A |
| 36 | integrable : Integrable g |
| 37 | nonneg : ∀ y, 0 ≤ g y |
| 38 | measurable : Measurable a |
| 39 | exponent_nonneg : ∀ y, 0 ≤ a y |
| 40 | exponent_le : ∀ y, a y ≤ A |
| 41 | |
| 42 | theorem kernel_eq_rpow (a η : ℝ) : kernel a η = (1 + η ^ 2) ^ (-2 * a) := by |
| 43 | rw [Real.rpow_def_of_pos (by positivity : 0 < 1 + η ^ 2)] |
| 44 | simp [kernel, mul_comm] |
| 45 | |
| 46 | theorem kernel_pos (a η : ℝ) : 0 < kernel a η := Real.exp_pos _ |
| 47 | |
| 48 | theorem kernel_le_one {a : ℝ} (ha : 0 ≤ a) (η : ℝ) : kernel a η ≤ 1 := by |
| 49 | apply Real.exp_le_one_iff.mpr |
| 50 | have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) |
| 51 | exact mul_nonpos_of_nonpos_of_nonneg (by nlinarith) hl |
| 52 | |
| 53 | theorem kernel_antitone {a b : ℝ} (hab : a ≤ b) (η : ℝ) : |
| 54 | kernel b η ≤ kernel a η := by |
| 55 | apply Real.exp_le_exp.mpr |
| 56 | have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) |
| 57 | exact mul_le_mul_of_nonneg_right (by linarith) hl |
| 58 | |
| 59 | @[simp] theorem kernel_neg (a η : ℝ) : kernel a (-η) = kernel a η := by |
| 60 | simp [kernel] |
| 61 | |
| 62 | @[simp] theorem pressure_neg (g a : ℝ → ℝ) (η : ℝ) : |
| 63 | pressure g a (-η) = pressure g a η := by simp [pressure] |
| 64 | |
| 65 | theorem kernel_measurable {a : ℝ → ℝ} (ha : Measurable a) (η : ℝ) : |
| 66 | Measurable (fun y => kernel (a y) η) := by |
| 67 | exact (Real.continuous_exp.measurable.comp |
| 68 | ((measurable_const.mul ha).mul_const (Real.log (1 + η ^ 2)))) |
| 69 | |
| 70 | theorem integrable_kernel {g a : ℝ → ℝ} {A : ℝ} |
| 71 | (h : Admissible g a A) (η : ℝ) : Integrable (fun y => g y * kernel (a y) η) := by |
| 72 | apply h.integrable.mono' |
| 73 | (h.integrable.aestronglyMeasurable.mul (kernel_measurable h.measurable η).aestronglyMeasurable) |
| 74 | exact Filter.Eventually.of_forall fun y => by |
| 75 | change ‖g y * kernel (a y) η‖ ≤ g y |
| 76 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (h.nonneg y) (kernel_pos _ _).le)] |
| 77 | exact mul_le_of_le_one_right (h.nonneg y) (kernel_le_one (h.exponent_nonneg y) η) |
| 78 | |
| 79 | theorem pressure_nonpos {g a : ℝ → ℝ} {A : ℝ} |
| 80 | (h : Admissible g a A) (η : ℝ) : pressure g a η ≤ 0 := by |
| 81 | apply mul_nonpos_of_nonpos_of_nonneg (by norm_num : -(1 / 2 : ℝ) ≤ 0) |
| 82 | exact integral_nonneg fun y => mul_nonneg (h.nonneg y) (kernel_pos _ _).le |
| 83 | |
| 84 | theorem pressure_le_mass {g a : ℝ → ℝ} {A : ℝ} |
| 85 | (h : Admissible g a A) (η : ℝ) : |
| 86 | pressure g a η ≤ -(1 / 2 : ℝ) * kernel A η * ∫ y, g y := by |
| 87 | have hm : (∫ y, g y * kernel A η) ≤ ∫ y, g y * kernel (a y) η := |
| 88 | integral_mono (h.integrable.mul_const _) (integrable_kernel h η) |
| 89 | (fun y => mul_le_mul_of_nonneg_left (kernel_antitone (h.exponent_le y) η) (h.nonneg y)) |
| 90 | rw [integral_mul_const] at hm |
| 91 | dsimp [pressure] |
| 92 | nlinarith |
| 93 | |
| 94 | /-- Shifting the logarithmic clock leaves the datum unchanged. -/ |
| 95 | theorem pressure_translate (g a : ℝ → ℝ) (c η : ℝ) : |
| 96 | pressure (fun y => g (y + c)) (fun y => a (y + c)) η = pressure g a η := by |
| 97 | unfold pressure |
| 98 | rw [integral_add_right_eq_self (fun y => g y * kernel (a y) η) c] |
| 99 | |
| 100 | /-- A strip containing the complete real axis and therefore `[-1,1]`. -/ |
| 101 | def strip : Set ℂ := {z | |z.im| < (1 / 2 : ℝ)} |
| 102 | |
| 103 | theorem strip_open : IsOpen strip := |
| 104 | isOpen_lt (Complex.continuous_im.abs) continuous_const |
| 105 | |
| 106 | @[simp] theorem real_mem_strip (η : ℝ) : (η : ℂ) ∈ strip := by |
| 107 | norm_num [strip] |
| 108 | |
| 109 | theorem base_mem_slitPlane {z : ℂ} (hz : z ∈ strip) : |
| 110 | 1 + z ^ 2 ∈ Complex.slitPlane := by |
| 111 | apply Or.inl |
| 112 | have him := abs_lt.mp (show |z.im| < (1 / 2 : ℝ) from hz) |
| 113 | simp only [Complex.add_re, Complex.one_re, pow_two, Complex.mul_re] |
| 114 | nlinarith [sq_nonneg z.re, sq_nonneg (z.im - 1 / 2), sq_nonneg (z.im + 1 / 2)] |
| 115 | |
| 116 | def complexKernel (a : ℝ) (z : ℂ) : ℂ := |
| 117 | Complex.exp ((-2 * (a : ℂ)) * Complex.log (1 + z ^ 2)) |
| 118 | |
| 119 | def complexKernelDeriv (a : ℝ) (z : ℂ) : ℂ := |
| 120 | complexKernel a z * ((-2 * (a : ℂ)) * ((1 + z ^ 2)⁻¹ * (2 * z))) |
| 121 | |
| 122 | theorem hasDerivAt_complexKernel (a : ℝ) {z : ℂ} (hz : z ∈ strip) : |
| 123 | HasDerivAt (complexKernel a) (complexKernelDeriv a z) z := by |
| 124 | have hb : HasDerivAt (fun w : ℂ => 1 + w ^ 2) (2 * z) z := by |
| 125 | simpa using ((hasDerivAt_id z).pow 2).const_add (1 : ℂ) |
| 126 | exact (((Complex.hasDerivAt_log (base_mem_slitPlane hz)).comp z hb).const_mul |
| 127 | (-2 * (a : ℂ))).cexp |
| 128 | |
| 129 | theorem continuous_complexKernel_parameter (z : ℂ) : |
| 130 | Continuous (fun b : ℝ => complexKernel b z) := by |
| 131 | unfold complexKernel |
| 132 | fun_prop |
| 133 | |
| 134 | theorem continuous_complexKernelDeriv_parameter (z : ℂ) : |
| 135 | Continuous (fun b : ℝ => complexKernelDeriv b z) := by |
| 136 | unfold complexKernelDeriv complexKernel |
| 137 | fun_prop |
| 138 | |
| 139 | theorem continuousOn_complexKernel {s : Set (ℝ × ℂ)} |
| 140 | (hs : ∀ p ∈ s, p.2 ∈ strip) : |
| 141 | ContinuousOn (fun p : ℝ × ℂ => complexKernel p.1 p.2) s := by |
| 142 | have hb : Continuous (fun p : ℝ × ℂ => 1 + p.2 ^ 2) := by fun_prop |
| 143 | have ha : Continuous (fun p : ℝ × ℂ => -2 * (p.1 : ℂ)) := by fun_prop |
| 144 | exact (ha.continuousOn.mul (hb.continuousOn.clog |
| 145 | (fun p hp => base_mem_slitPlane (hs p hp)))).cexp |
| 146 | |
| 147 | theorem continuousOn_complexKernelDeriv {s : Set (ℝ × ℂ)} |
| 148 | (hs : ∀ p ∈ s, p.2 ∈ strip) : |
| 149 | ContinuousOn (fun p : ℝ × ℂ => complexKernelDeriv p.1 p.2) s := by |
| 150 | have hb : Continuous (fun p : ℝ × ℂ => 1 + p.2 ^ 2) := by fun_prop |
| 151 | have ha : Continuous (fun p : ℝ × ℂ => -2 * (p.1 : ℂ)) := by fun_prop |
| 152 | have hz : Continuous (fun p : ℝ × ℂ => 2 * p.2) := by fun_prop |
| 153 | exact (continuousOn_complexKernel hs).mul (ha.continuousOn.mul |
| 154 | ((hb.continuousOn.inv₀ (fun p hp => Complex.slitPlane_ne_zero |
| 155 | (base_mem_slitPlane (hs p hp)))).mul hz.continuousOn)) |
| 156 | |
| 157 | theorem measurable_weighted_parameter {g a : ℝ → ℝ} {A : ℝ} |
| 158 | (h : Admissible g a A) {k : ℝ → ℂ} (hk : Continuous k) : |
| 159 | AEStronglyMeasurable (fun y => (g y : ℂ) * k (a y)) := by |
| 160 | exact (Complex.continuous_ofReal.comp_aestronglyMeasurable |
| 161 | h.integrable.aestronglyMeasurable).mul |
| 162 | (hk.measurable.comp h.measurable).aestronglyMeasurable |
| 163 | |
| 164 | /-- Compactness of the bounded exponent interval supplies the dominating constant. -/ |
| 165 | theorem integrable_weighted_parameter {g a : ℝ → ℝ} {A : ℝ} |
| 166 | (h : Admissible g a A) {k : ℝ → ℂ} (hk : Continuous k) : |
| 167 | Integrable (fun y => (g y : ℂ) * k (a y)) := by |
| 168 | obtain ⟨M, hM⟩ := isCompact_Icc.exists_bound_of_continuousOn |
| 169 | (s := Icc 0 A) hk.continuousOn |
| 170 | apply (h.integrable.mul_const M).mono' (measurable_weighted_parameter h hk) |
| 171 | exact Filter.Eventually.of_forall fun y => by |
| 172 | rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (h.nonneg y)] |
| 173 | exact mul_le_mul_of_nonneg_left (hM (a y) ⟨h.exponent_nonneg y, h.exponent_le y⟩) |
| 174 | (h.nonneg y) |
| 175 | |
| 176 | def complexPressure (g a : ℝ → ℝ) (z : ℂ) : ℂ := |
| 177 | -(1 / 2 : ℂ) * ∫ y, (g y : ℂ) * complexKernel (a y) z |
| 178 | |
| 179 | theorem integrable_complexKernel {g a : ℝ → ℝ} {A : ℝ} |
| 180 | (h : Admissible g a A) (z : ℂ) : |
| 181 | Integrable (fun y => (g y : ℂ) * complexKernel (a y) z) := |
| 182 | integrable_weighted_parameter h (continuous_complexKernel_parameter z) |
| 183 | |
| 184 | theorem hasDerivAt_complexPressure {g a : ℝ → ℝ} {A : ℝ} |
| 185 | (h : Admissible g a A) {z : ℂ} (hz : z ∈ strip) : |
| 186 | HasDerivAt (complexPressure g a) |
| 187 | (-(1 / 2 : ℂ) * ∫ y, (g y : ℂ) * complexKernelDeriv (a y) z) z := by |
| 188 | obtain ⟨ε, hε, hεs⟩ : ∃ ε, 0 < ε ∧ closedBall z ε ⊆ strip := |
| 189 | nhds_basis_closedBall.mem_iff.mp (strip_open.mem_nhds hz) |
| 190 | have hc : IsCompact (Icc (0 : ℝ) A ×ˢ closedBall z ε) := |
| 191 | isCompact_Icc.prod (isCompact_closedBall z ε) |
| 192 | obtain ⟨M, hM⟩ := hc.exists_bound_of_continuousOn |
| 193 | (continuousOn_complexKernelDeriv (fun p hp => hεs hp.2)) |
| 194 | have hd := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 195 | (μ := volume) (F := fun w y => (g y : ℂ) * complexKernel (a y) w) |
| 196 | (F' := fun w y => (g y : ℂ) * complexKernelDeriv (a y) w) |
| 197 | (bound := fun y => g y * M) (Metric.ball_mem_nhds _ hε) |
| 198 | (Filter.Eventually.of_forall fun w => measurable_weighted_parameter h |
| 199 | (continuous_complexKernel_parameter w)) |
| 200 | (integrable_complexKernel h z) |
| 201 | (measurable_weighted_parameter h (continuous_complexKernelDeriv_parameter z)) |
| 202 | (Filter.Eventually.of_forall fun y w hw => by |
| 203 | rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (h.nonneg y)] |
| 204 | exact mul_le_mul_of_nonneg_left |
| 205 | (hM (a y, w) ⟨⟨h.exponent_nonneg y, h.exponent_le y⟩, ball_subset_closedBall hw⟩) |
| 206 | (h.nonneg y)) |
| 207 | (h.integrable.mul_const M) |
| 208 | (Filter.Eventually.of_forall fun y w hw => |
| 209 | (hasDerivAt_complexKernel (a y) (hεs (ball_subset_closedBall hw))).const_mul (g y : ℂ)) |
| 210 | exact hd.2.const_mul (-(1 / 2 : ℂ)) |
| 211 | |
| 212 | /-- Holomorphic extension is proved by dominated differentiation on the strip. -/ |
| 213 | theorem complexPressure_analytic {g a : ℝ → ℝ} {A : ℝ} |
| 214 | (h : Admissible g a A) : AnalyticOnNhd ℂ (complexPressure g a) strip := by |
| 215 | apply DifferentiableOn.analyticOnNhd _ strip_open |
| 216 | intro z hz |
| 217 | exact (hasDerivAt_complexPressure h hz).differentiableAt.differentiableWithinAt |
| 218 | |
| 219 | @[simp] theorem complexKernel_ofReal (a η : ℝ) : |
| 220 | complexKernel a (η : ℂ) = (kernel a η : ℂ) := by |
| 221 | have hb : (1 : ℂ) + (η : ℂ) ^ 2 = ((1 + η ^ 2 : ℝ) : ℂ) := by push_cast; rfl |
| 222 | rw [complexKernel, hb, ← Complex.ofReal_log (by positivity : 0 ≤ 1 + η ^ 2)] |
| 223 | have he : (-2 * (a : ℂ)) * (Real.log (1 + η ^ 2) : ℂ) = |
| 224 | ((-2 * a * Real.log (1 + η ^ 2) : ℝ) : ℂ) := by push_cast; ring |
| 225 | rw [he, ← Complex.ofReal_exp] |
| 226 | rfl |
| 227 | |
| 228 | @[simp] theorem complexPressure_ofReal (g a : ℝ → ℝ) (η : ℝ) : |
| 229 | complexPressure g a (η : ℂ) = (pressure g a η : ℂ) := by |
| 230 | unfold complexPressure pressure |
| 231 | have hi : (∫ y, (g y : ℂ) * complexKernel (a y) (η : ℂ)) = |
| 232 | ((∫ y, g y * kernel (a y) η : ℝ) : ℂ) := by |
| 233 | calc |
| 234 | _ = ∫ y, ((g y * kernel (a y) η : ℝ) : ℂ) := by |
| 235 | apply integral_congr_ae |
| 236 | exact Filter.Eventually.of_forall fun y => by simp |
| 237 | _ = _ := integral_ofReal |
| 238 | rw [hi] |
| 239 | push_cast |
| 240 | rfl |
| 241 | |
| 242 | /-- Smoothness follows from the proved complex extension, for every finite order at once. -/ |
| 243 | theorem pressure_contDiff {g a : ℝ → ℝ} {A : ℝ} |
| 244 | (h : Admissible g a A) : ContDiff ℝ ∞ (pressure g a) := by |
| 245 | apply contDiff_iff_contDiffAt.mpr |
| 246 | intro η |
| 247 | have hc : ContDiffAt ℂ ∞ (complexPressure g a) (η : ℂ) := |
| 248 | (complexPressure_analytic h (η : ℂ) (real_mem_strip η)).contDiffAt |
| 249 | simpa only [complexPressure_ofReal, Complex.ofReal_re] using hc.real_of_complex |
| 250 | |
| 251 | theorem complexPressure_bounded_on_compact {g a : ℝ → ℝ} {A : ℝ} |
| 252 | (h : Admissible g a A) {s : Set ℂ} (hs : IsCompact s) (hss : s ⊆ strip) : |
| 253 | ∃ M : ℝ, ∀ z ∈ s, ‖complexPressure g a z‖ ≤ M := by |
| 254 | apply hs.exists_bound_of_continuousOn |
| 255 | intro z hz |
| 256 | exact ((hasDerivAt_complexPressure h (hss hz)).continuousAt).continuousWithinAt |
| 257 | |
| 258 | theorem integrable_exponent_weight {g a : ℝ → ℝ} {A : ℝ} |
| 259 | (h : Admissible g a A) : Integrable (fun y => g y * a y) := by |
| 260 | apply (h.integrable.mul_const A).mono' |
| 261 | (h.integrable.aestronglyMeasurable.mul h.measurable.aestronglyMeasurable) |
| 262 | exact Filter.Eventually.of_forall fun y => by |
| 263 | change ‖g y * a y‖ ≤ g y * A |
| 264 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (h.nonneg y) (h.exponent_nonneg y))] |
| 265 | exact mul_le_mul_of_nonneg_left (h.exponent_le y) (h.nonneg y) |
| 266 | |
| 267 | theorem exponent_weight_admissible {g a : ℝ → ℝ} {A : ℝ} |
| 268 | (h : Admissible g a A) : Admissible (fun y => g y * a y) a A where |
| 269 | cap_nonneg := h.cap_nonneg |
| 270 | integrable := integrable_exponent_weight h |
| 271 | nonneg := fun y => mul_nonneg (h.nonneg y) (h.exponent_nonneg y) |
| 272 | measurable := h.measurable |
| 273 | exponent_nonneg := h.exponent_nonneg |
| 274 | exponent_le := h.exponent_le |
| 275 | |
| 276 | theorem exponent_mass_pos_of_active {g a : ℝ → ℝ} {A : ℝ} |
| 277 | (h : Admissible g a A) |
| 278 | (hactive : 0 < volume {y | 0 < g y ∧ 0 < a y}) : |
| 279 | 0 < ∫ y, g y * a y := by |
| 280 | apply (integral_pos_iff_support_of_nonneg |
| 281 | (fun y => mul_nonneg (h.nonneg y) (h.exponent_nonneg y)) |
| 282 | (integrable_exponent_weight h)).mpr |
| 283 | have heq : Function.support (fun y => g y * a y) = {y | 0 < g y ∧ 0 < a y} := by |
| 284 | ext y |
| 285 | simp only [Function.mem_support, mem_ofPred_eq, ne_eq, mul_eq_zero, not_or] |
| 286 | constructor |
| 287 | · rintro ⟨hg, ha⟩ |
| 288 | exact ⟨lt_of_le_of_ne (h.nonneg y) (Ne.symm hg), |
| 289 | lt_of_le_of_ne (h.exponent_nonneg y) (Ne.symm ha)⟩ |
| 290 | · rintro ⟨hg, ha⟩ |
| 291 | exact ⟨ne_of_gt hg, ne_of_gt ha⟩ |
| 292 | rwa [heq] |
| 293 | |
| 294 | theorem complexKernelDeriv_ofReal (a η : ℝ) : |
| 295 | complexKernelDeriv a (η : ℂ) = |
| 296 | ((kernel a η * (-4 * a * η / (1 + η ^ 2)) : ℝ) : ℂ) := by |
| 297 | rw [complexKernelDeriv, complexKernel_ofReal] |
| 298 | push_cast |
| 299 | ring |
| 300 | |
| 301 | /-- The derivative is the positive radial factor times the weighted positive-exponent mass. -/ |
| 302 | theorem hasDerivAt_pressure {g a : ℝ → ℝ} {A : ℝ} |
| 303 | (h : Admissible g a A) (η : ℝ) : |
| 304 | HasDerivAt (pressure g a) |
| 305 | ((2 * η / (1 + η ^ 2)) * ∫ y, g y * a y * kernel (a y) η) η := by |
| 306 | have hc := (hasDerivAt_complexPressure h (real_mem_strip η)).real_of_complex |
| 307 | have hi : (∫ y, (g y : ℂ) * complexKernelDeriv (a y) (η : ℂ)) = |
| 308 | (((-4 * η / (1 + η ^ 2)) * ∫ y, g y * a y * kernel (a y) η : ℝ) : ℂ) := by |
| 309 | calc |
| 310 | _ = ∫ y, ((g y * (kernel (a y) η * (-4 * a y * η / (1 + η ^ 2))) : ℝ) : ℂ) := by |
| 311 | apply integral_congr_ae |
| 312 | exact Filter.Eventually.of_forall fun y => by |
| 313 | change (g y : ℂ) * complexKernelDeriv (a y) (η : ℂ) = _ |
| 314 | rw [complexKernelDeriv_ofReal] |
| 315 | push_cast |
| 316 | rfl |
| 317 | _ = ((∫ y, g y * (kernel (a y) η * (-4 * a y * η / (1 + η ^ 2))) : ℝ) : ℂ) := |
| 318 | integral_ofReal |
| 319 | _ = _ := by |
| 320 | congr 1 |
| 321 | rw [← integral_const_mul] |
| 322 | apply integral_congr_ae |
| 323 | exact Filter.Eventually.of_forall fun y => by ring |
| 324 | rw [hi] at hc |
| 325 | have hr : (-(1 / 2 : ℂ) * |
| 326 | (((-4 * η / (1 + η ^ 2)) * ∫ y, g y * a y * kernel (a y) η : ℝ) : ℂ)).re = |
| 327 | (2 * η / (1 + η ^ 2)) * ∫ y, g y * a y * kernel (a y) η := by |
| 328 | have hhalf : -(1 / 2 : ℂ) = ((-(1 / 2 : ℝ) : ℝ) : ℂ) := by norm_num |
| 329 | rw [hhalf, ← Complex.ofReal_mul, Complex.ofReal_re] |
| 330 | ring |
| 331 | rw [hr] at hc |
| 332 | simpa only [complexPressure_ofReal, Complex.ofReal_re] using hc |
| 333 | |
| 334 | theorem deriv_pressure {g a : ℝ → ℝ} {A : ℝ} |
| 335 | (h : Admissible g a A) (η : ℝ) : |
| 336 | deriv (pressure g a) η = |
| 337 | (2 * η / (1 + η ^ 2)) * ∫ y, g y * a y * kernel (a y) η := |
| 338 | (hasDerivAt_pressure h η).deriv |
| 339 | |
| 340 | theorem weighted_kernel_pos {g a : ℝ → ℝ} {A : ℝ} |
| 341 | (h : Admissible g a A) (hmass : 0 < ∫ y, g y * a y) (η : ℝ) : |
| 342 | 0 < ∫ y, g y * a y * kernel (a y) η := by |
| 343 | have hp := pressure_le_mass (exponent_weight_admissible h) η |
| 344 | have hpos := mul_pos (kernel_pos A η) hmass |
| 345 | dsimp [pressure] at hp |
| 346 | nlinarith |
| 347 | |
| 348 | theorem deriv_pressure_pos {g a : ℝ → ℝ} {A : ℝ} |
| 349 | (h : Admissible g a A) (hmass : 0 < ∫ y, g y * a y) |
| 350 | {η : ℝ} (hη : 0 < η) : 0 < deriv (pressure g a) η := by |
| 351 | rw [deriv_pressure h] |
| 352 | exact mul_pos (div_pos (by positivity) (by positivity)) (weighted_kernel_pos h hmass η) |
| 353 | |
| 354 | theorem deriv_pressure_pos_of_active {g a : ℝ → ℝ} {A : ℝ} |
| 355 | (h : Admissible g a A) |
| 356 | (hactive : 0 < volume {y | 0 < g y ∧ 0 < a y}) |
| 357 | {η : ℝ} (hη : 0 < η) : 0 < deriv (pressure g a) η := |
| 358 | deriv_pressure_pos h (exponent_mass_pos_of_active h hactive) hη |
| 359 | |
| 360 | theorem deriv_pressure_neg {g a : ℝ → ℝ} {A : ℝ} |
| 361 | (h : Admissible g a A) (hmass : 0 < ∫ y, g y * a y) |
| 362 | {η : ℝ} (hη : η < 0) : deriv (pressure g a) η < 0 := by |
| 363 | rw [deriv_pressure h] |
| 364 | exact mul_neg_of_neg_of_pos (div_neg_of_neg_of_pos (by linarith) (by positivity)) |
| 365 | (weighted_kernel_pos h hmass η) |
| 366 | |
| 367 | @[simp] theorem deriv_pressure_zero {g a : ℝ → ℝ} {A : ℝ} |
| 368 | (h : Admissible g a A) : deriv (pressure g a) 0 = 0 := by simp [deriv_pressure h] |
| 369 | |
| 370 | /-- An arbitrary measurable positive prefix contributes its exact constant-exponent mass. -/ |
| 371 | theorem pressure_le_prefix {g a : ℝ → ℝ} {A b : ℝ} |
| 372 | (h : Admissible g a A) {s : Set ℝ} (hs : MeasurableSet s) |
| 373 | (ha : ∀ y ∈ s, a y = b) (η : ℝ) : |
| 374 | pressure g a η ≤ -(1 / 2 : ℝ) * kernel b η * ∫ y in s, g y := by |
| 375 | have hp := setIntegral_le_integral (s := s) (integrable_kernel h η) |
| 376 | (Filter.Eventually.of_forall fun y => mul_nonneg (h.nonneg y) (kernel_pos _ _).le) |
| 377 | have heq : (∫ y in s, g y * kernel (a y) η) = (∫ y in s, g y) * kernel b η := by |
| 378 | rw [← integral_mul_const] |
| 379 | apply integral_congr_ae |
| 380 | filter_upwards [ae_restrict_mem hs] with y hy |
| 381 | rw [ha y hy] |
| 382 | rw [heq] at hp |
| 383 | dsimp [pressure] |
| 384 | nlinarith |
| 385 | |
| 386 | theorem pressure_le_prefix_mass {g a : ℝ → ℝ} {A b m : ℝ} |
| 387 | (h : Admissible g a A) {s : Set ℝ} (hs : MeasurableSet s) |
| 388 | (ha : ∀ y ∈ s, a y = b) (hm : m ≤ ∫ y in s, g y) (η : ℝ) : |
| 389 | pressure g a η ≤ -(1 / 2 : ℝ) * m * kernel b η := by |
| 390 | have hp := pressure_le_prefix h hs ha η |
| 391 | have hk := mul_le_mul_of_nonneg_left hm (kernel_pos b η).le |
| 392 | nlinarith |
| 393 | |
| 394 | theorem kernel_one (η : ℝ) : kernel 1 η = (1 + η ^ 2)⁻¹ ^ 2 := by |
| 395 | rw [kernel_eq_rpow] |
| 396 | have hb : 0 ≤ 1 + η ^ 2 := by positivity |
| 397 | norm_num only [mul_one] |
| 398 | rw [Real.rpow_neg hb, Real.rpow_two, inv_pow] |
| 399 | |
| 400 | /-- The manuscript's ideal prefix has exponent one and mass `5 P²`. -/ |
| 401 | theorem manuscript_prefix_bound {g a : ℝ → ℝ} {A P : ℝ} |
| 402 | (h : Admissible g a A) {s : Set ℝ} (hs : MeasurableSet s) |
| 403 | (ha : ∀ y ∈ s, a y = 1) (hm : 5 * P ^ 2 ≤ ∫ y in s, g y) (η : ℝ) : |
| 404 | pressure g a η ≤ -(5 / 2 : ℝ) * P ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 405 | have hp := pressure_le_prefix_mass h hs ha hm η |
| 406 | rw [kernel_one] at hp |
| 407 | nlinarith |
| 408 | |
| 409 | /-- Exact integral of the ideal clock prefix `P² exp(y/5)`. -/ |
| 410 | theorem ideal_prefix_mass (P : ℝ) : |
| 411 | (∫ y in Iic (0 : ℝ), P ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) = 5 * P ^ 2 := by |
| 412 | rw [integral_const_mul, integral_exp_mul_Iic (by norm_num : 0 < (1 / 5 : ℝ))] |
| 413 | norm_num |
| 414 | ring |
| 415 | |
| 416 | theorem prefix_mass_eq {g : ℝ → ℝ} {P : ℝ} |
| 417 | (hg : ∀ y ≤ 0, g y = P ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) : |
| 418 | (∫ y in Iic (0 : ℝ), g y) = 5 * P ^ 2 := by |
| 419 | rw [← ideal_prefix_mass P] |
| 420 | apply integral_congr_ae |
| 421 | filter_upwards [ae_restrict_mem measurableSet_Iic] with y hy |
| 422 | exact hg y hy |
| 423 | |
| 424 | /-- The exact manuscript lower bound, with the prefix integral evaluated. -/ |
| 425 | theorem pressure_le_of_ideal_prefix {g a : ℝ → ℝ} {A P : ℝ} |
| 426 | (h : Admissible g a A) |
| 427 | (hg : ∀ y ≤ 0, g y = P ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 428 | (ha : ∀ y ≤ 0, a y = 1) (η : ℝ) : |
| 429 | pressure g a η ≤ -(5 / 2 : ℝ) * P ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 430 | exact manuscript_prefix_bound h measurableSet_Iic ha (prefix_mass_eq hg).ge η |
| 431 | |
| 432 | theorem exponent_mass_pos_of_ideal_prefix {g a : ℝ → ℝ} {A P : ℝ} |
| 433 | (h : Admissible g a A) (hP : 0 < P) |
| 434 | (hg : ∀ y ≤ 0, g y = P ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 435 | (ha : ∀ y ≤ 0, a y = 1) : 0 < ∫ y, g y * a y := by |
| 436 | have hp := setIntegral_le_integral (s := Iic (0 : ℝ)) (integrable_exponent_weight h) |
| 437 | (Filter.Eventually.of_forall fun y => mul_nonneg (h.nonneg y) (h.exponent_nonneg y)) |
| 438 | have heq : (∫ y in Iic (0 : ℝ), g y * a y) = 5 * P ^ 2 := by |
| 439 | rw [← prefix_mass_eq hg] |
| 440 | apply integral_congr_ae |
| 441 | filter_upwards [ae_restrict_mem measurableSet_Iic] with y hy |
| 442 | rw [ha y hy, mul_one] |
| 443 | rw [heq] at hp |
| 444 | exact lt_of_lt_of_le (by positivity) hp |
| 445 | |
| 446 | theorem pressure_neg_of_ideal_prefix {g a : ℝ → ℝ} {A P : ℝ} |
| 447 | (h : Admissible g a A) (hP : 0 < P) |
| 448 | (hg : ∀ y ≤ 0, g y = P ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 449 | (ha : ∀ y ≤ 0, a y = 1) (η : ℝ) : pressure g a η < 0 := by |
| 450 | apply lt_of_le_of_lt (pressure_le_of_ideal_prefix h hg ha η) |
| 451 | have hb : 0 < ((1 + η ^ 2)⁻¹) ^ 2 := by positivity |
| 452 | have hneg : -(5 / 2 : ℝ) * P ^ 2 < 0 := mul_neg_of_neg_of_pos (by norm_num) (by positivity) |
| 453 | exact mul_neg_of_neg_of_pos hneg hb |
| 454 | |
| 455 | end NavierStokes.PressureDatum |