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.TerminalEdgeFactor |
| 2 | |
| 3 | /-! |
| 4 | # The first slow-order stress at the terminal edge |
| 5 | |
| 6 | The source is the angular axial-viscosity term. Its primitive is the actual |
| 7 | backward integral with weight `R²`. The coefficient chart is `(η,δ)`, including |
| 8 | both endpoints `η=±1`; its heat carrier uses the genuine smooth heat extension. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set Filter MeasureTheory |
| 14 | open scoped Topology ContDiff |
| 15 | open scoped BigOperators |
| 16 | open NavierStokes.OutgoingTail NavierStokes.TerminalStress |
| 17 | open NavierStokes.TerminalEdgeFactor |
| 18 | |
| 19 | namespace NavierStokes.SlowFirstOrderEdge |
| 20 | |
| 21 | noncomputable def beta (d : TailData) (η : ℝ) : ℝ := |
| 22 | (2 * CoordinateAlgebra.D d.h * η * profileChi d η - |
| 23 | (1 - η ^ 2) * deriv (profileChi d) η) / profileL d η |
| 24 | |
| 25 | theorem beta_contDiff (d : TailData) : ContDiff ℝ ∞ (beta d) := |
| 26 | (((contDiff_const.mul contDiff_id).mul (profileChi_contDiff d)).sub |
| 27 | ((contDiff_const.sub (contDiff_id.pow 2)).mul |
| 28 | (contDiff_infty_iff_deriv.mp (profileChi_contDiff d)).2)).div |
| 29 | (profileL_contDiff d) (fun η => (profileL_pos d η).ne') |
| 30 | |
| 31 | noncomputable def taperSecondFactor (d : TailData) (x : ℝ) : ℝ := |
| 32 | -8 * taperSlopeFactor d x + 3 * x ^ 2 * taperSlopeFactor d x - |
| 33 | x ^ 3 * deriv (taperSlopeFactor d) x |
| 34 | |
| 35 | theorem taperSecondFactor_contDiff (d : TailData) : ContDiff ℝ ∞ (taperSecondFactor d) := |
| 36 | ((contDiff_const.mul (taperSlopeFactor_contDiff d)).add |
| 37 | ((contDiff_const.mul (contDiff_id.pow 2)).mul (taperSlopeFactor_contDiff d))).sub |
| 38 | ((contDiff_id.pow 3).mul (contDiff_infty_iff_deriv.mp (taperSlopeFactor_contDiff d)).2) |
| 39 | |
| 40 | theorem taperSecond_factorization (d : TailData) (x : ℝ) : |
| 41 | deriv (tailShapeDeriv d) (3 - x) = |
| 42 | (FlatCutoff.edge 4 x / x ^ 6) * taperSecondFactor d x := by |
| 43 | let W : ℝ → ℝ := fun u => FlatCutoff.edge 4 u / u ^ 3 |
| 44 | have hW : ContDiff ℝ ∞ W := FlatCutoff.edge_div_pow_contDiff (by norm_num) 3 |
| 45 | have hL := ((tailShapeDeriv_contDiff d).differentiable (by simp) (3 - x)).hasDerivAt.comp x |
| 46 | ((hasDerivAt_id x).const_sub 3) |
| 47 | have hR := ((hW.differentiable (by simp) x).hasDerivAt).mul |
| 48 | ((taperSlopeFactor_contDiff d).differentiable (by simp) x).hasDerivAt |
| 49 | have he : (fun u => tailShapeDeriv d (3 - u)) = fun u => W u * taperSlopeFactor d u := |
| 50 | funext (tailShapeDeriv_factorization d) |
| 51 | change HasDerivAt (fun u => tailShapeDeriv d (3 - u)) |
| 52 | (deriv (tailShapeDeriv d) (3 - x) * -1) x at hL |
| 53 | rw [he] at hL |
| 54 | have hh := hL.unique hR |
| 55 | simp only [mul_neg_one] at hh |
| 56 | by_cases hx : x = 0 |
| 57 | · subst x |
| 58 | have hz : deriv W 0 = 0 := by |
| 59 | apply norm_eq_zero.mp |
| 60 | have ht := congrArg norm (EdgeWeightJets.edge_div_pow_iteratedFDeriv_zero |
| 61 | (by norm_num : (0 : ℝ) < 4) 3 1) |
| 62 | simpa only [norm_iteratedFDeriv_eq_norm_iteratedDeriv, iteratedDeriv_one, |
| 63 | norm_zero] using ht |
| 64 | have hW0 : W 0 = 0 := by simp [W] |
| 65 | simp only [hz, hW0, zero_mul, add_zero] at hh |
| 66 | simp only [FlatCutoff.edge_zero, zero_pow (by norm_num : 6 ≠ 0), div_zero, zero_mul] |
| 67 | linarith |
| 68 | · have hdW := ((FlatPrimitive.edge_hasDerivAt (by norm_num : (0 : ℝ) < 4) x).div |
| 69 | ((hasDerivAt_id x).pow 3) (pow_ne_zero 3 hx)).deriv |
| 70 | change deriv W x = _ at hdW |
| 71 | have hdW' : deriv W x = (8 * FlatCutoff.edge 4 x - |
| 72 | 3 * x ^ 2 * FlatCutoff.edge 4 x) / x ^ 6 := by |
| 73 | rw [hdW] |
| 74 | dsimp only [id] |
| 75 | norm_num |
| 76 | field_simp [hx] |
| 77 | rw [hdW'] at hh |
| 78 | calc |
| 79 | _ = -((8 * FlatCutoff.edge 4 x - 3 * x ^ 2 * FlatCutoff.edge 4 x) / x ^ 6 * |
| 80 | taperSlopeFactor d x + (FlatCutoff.edge 4 x / x ^ 3) * |
| 81 | deriv (taperSlopeFactor d) x) := by dsimp only [W] at hh; linarith |
| 82 | _ = _ := by unfold taperSecondFactor; field_simp [hx] ; ring |
| 83 | |
| 84 | /-- The normalized negative axial-viscosity source, before radial integration. -/ |
| 85 | noncomputable def profileSource (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 86 | -profileCarrier C d y0 y * |
| 87 | (profileChi d y.1 ^ 2 * deriv (tailShapeDeriv d) (3 - y.2) + |
| 88 | beta d y.1 * tailShapeDeriv d (3 - y.2)) |
| 89 | |
| 90 | noncomputable def sourceFactor (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 91 | -profileCarrier C d y0 y * |
| 92 | (profileChi d y.1 ^ 2 * taperSecondFactor d y.2 + |
| 93 | beta d y.1 * y.2 ^ 3 * taperSlopeFactor d y.2) |
| 94 | |
| 95 | theorem sourceFactor_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 96 | ContDiff ℝ ∞ (sourceFactor C d y0) := |
| 97 | (profileCarrier_contDiff C d y0).neg.mul |
| 98 | (((((profileChi_contDiff d).comp contDiff_fst).pow 2).mul |
| 99 | ((taperSecondFactor_contDiff d).comp contDiff_snd)).add |
| 100 | ((((beta_contDiff d).comp contDiff_fst).mul (contDiff_snd.pow 3)).mul |
| 101 | ((taperSlopeFactor_contDiff d).comp contDiff_snd))) |
| 102 | |
| 103 | theorem profileSource_factorization (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : |
| 104 | profileSource C d y0 y = (FlatCutoff.edge 4 y.2 / y.2 ^ 6) * sourceFactor C d y0 y := by |
| 105 | rw [profileSource, taperSecond_factorization, tailShapeDeriv_factorization] |
| 106 | unfold sourceFactor |
| 107 | by_cases hx : y.2 = 0 |
| 108 | · simp [hx] |
| 109 | · field_simp [hx] |
| 110 | |
| 111 | theorem profileSource_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 112 | ContDiff ℝ ∞ (profileSource C d y0) := by |
| 113 | have he : profileSource C d y0 = EdgeWeightJets.weighted 4 6 (sourceFactor C d y0) := |
| 114 | funext (profileSource_factorization C d y0) |
| 115 | rw [he] |
| 116 | exact EdgeWeightJets.weighted_contDiff (by norm_num) 6 (sourceFactor_contDiff C d y0) |
| 117 | |
| 118 | noncomputable def primitiveCoefficient (C : ℝ) (d : TailData) (y0 : ℝ) |
| 119 | (y : ℝ × ℝ) : ℝ := |
| 120 | (profileRadius y0 y.2 ^ 3 / 2) * sourceFactor C d y0 y |
| 121 | |
| 122 | theorem primitiveCoefficient_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 123 | ContDiff ℝ ∞ (primitiveCoefficient C d y0) := |
| 124 | (((profileRadius_contDiff y0).comp contDiff_snd).pow 3).div_const 2 |>.mul |
| 125 | (sourceFactor_contDiff C d y0) |
| 126 | |
| 127 | /-- The source in the positive normalized radial variable `R=√(2X)`. -/ |
| 128 | noncomputable def radialSource (C : ℝ) (d : TailData) (y0 η R : ℝ) : ℝ := |
| 129 | profileSource C d y0 (η, edgeCoordinate (profileRadius y0 0) R) |
| 130 | |
| 131 | /-- The genuine backward weighted radial primitive, with the stress sign convention. -/ |
| 132 | noncomputable def radialStress (C : ℝ) (d : TailData) (y0 η R : ℝ) : ℝ := |
| 133 | backwardStress (radialSource C d y0 η) R |
| 134 | |
| 135 | noncomputable def profileStress (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 136 | radialStress C d y0 y.1 (profileRadius y0 y.2) |
| 137 | |
| 138 | noncomputable def stressFactor (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 139 | ParametricFlatFactor.factor 4 6 (primitiveCoefficient C d y0) y / profileRadius y0 y.2 ^ 2 |
| 140 | |
| 141 | theorem stressFactor_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 142 | ContDiff ℝ ∞ (stressFactor C d y0) := |
| 143 | (ParametricFlatFactor.factor_contDiff (by norm_num : (0 : ℝ) < 4) 6 |
| 144 | (primitiveCoefficient_contDiff C d y0)).div |
| 145 | (((profileRadius_contDiff y0).comp contDiff_snd).pow 2) |
| 146 | (fun y => (pow_pos (profileRadius_pos y0 y.2) 2).ne') |
| 147 | |
| 148 | theorem profileRadius_eq (y0 x : ℝ) : |
| 149 | profileRadius y0 x = profileRadius y0 0 * Real.exp (-x / 2) := by |
| 150 | simp [profileRadius] |
| 151 | |
| 152 | theorem profileRadius_edgeCoordinate (y0 : ℝ) {R : ℝ} (hR : 0 < R) : |
| 153 | profileRadius y0 (edgeCoordinate (profileRadius y0 0) R) = R := by |
| 154 | rw [profileRadius_eq] |
| 155 | have he : -edgeCoordinate (profileRadius y0 0) R / 2 = |
| 156 | Real.log (R / profileRadius y0 0) := by unfold edgeCoordinate; ring |
| 157 | rw [he, Real.exp_log (div_pos hR (profileRadius_pos y0 0))] |
| 158 | field_simp [(profileRadius_pos y0 0).ne'] |
| 159 | |
| 160 | theorem edgeCoordinate_profileRadius (y0 x : ℝ) : |
| 161 | edgeCoordinate (profileRadius y0 0) (profileRadius y0 x) = x := by |
| 162 | rw [profileRadius_eq y0 x] |
| 163 | unfold edgeCoordinate |
| 164 | rw [mul_div_cancel_left₀ _ (profileRadius_pos y0 0).ne', Real.log_exp] |
| 165 | ring |
| 166 | |
| 167 | theorem radialSource_weight (C : ℝ) (d : TailData) (y0 η : ℝ) {R : ℝ} (hR : 0 < R) : |
| 168 | R ^ 2 * radialSource C d y0 η R = |
| 169 | radialFlatDensity 4 6 (fun x => primitiveCoefficient C d y0 (η, x)) |
| 170 | (profileRadius y0 0) R := by |
| 171 | rw [radialSource, profileSource_factorization] |
| 172 | simp only [radialFlatDensity, FlatPrimitive.integrand, primitiveCoefficient, |
| 173 | profileRadius_edgeCoordinate y0 hR] |
| 174 | by_cases hx : edgeCoordinate (profileRadius y0 0) R = 0 |
| 175 | · simp [hx] |
| 176 | · field_simp [hR.ne', hx] |
| 177 | |
| 178 | theorem radialSource_weight_integrable (C : ℝ) (d : TailData) (y0 η : ℝ) |
| 179 | {R : ℝ} (hR : 0 < R) : |
| 180 | IntegrableOn (fun u => u ^ 2 * radialSource C d y0 η u) (Ioi R) := by |
| 181 | apply (radialFlatDensity_integrable (by norm_num : (0 : ℝ) < 4) |
| 182 | (profileRadius_pos y0 0) hR 6 |
| 183 | ((ParametricFlatFactor.coefficient_slice_contDiff |
| 184 | (primitiveCoefficient_contDiff C d y0) η).continuous)).congr |
| 185 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 186 | exact (radialSource_weight C d y0 η (hR.trans hu)).symm |
| 187 | |
| 188 | theorem radialStress_eq_primitive (C : ℝ) (d : TailData) (y0 η : ℝ) |
| 189 | {R : ℝ} (hR : 0 < R) : |
| 190 | radialStress C d y0 η R = |
| 191 | ParametricFlatFactor.primitive 4 6 (primitiveCoefficient C d y0) |
| 192 | (η, edgeCoordinate (profileRadius y0 0) R) / R ^ 2 := by |
| 193 | unfold radialStress backwardStress |
| 194 | congr 1 |
| 195 | unfold ParametricFlatFactor.primitive |
| 196 | rw [← radialFlatDensity_integral (by norm_num : (0 : ℝ) < 4) |
| 197 | (profileRadius_pos y0 0) hR 6 |
| 198 | ((ParametricFlatFactor.coefficient_slice_contDiff |
| 199 | (primitiveCoefficient_contDiff C d y0) η).continuous)] |
| 200 | apply setIntegral_congr_fun measurableSet_Ioi |
| 201 | intro u hu |
| 202 | exact radialSource_weight C d y0 η (hR.trans hu) |
| 203 | |
| 204 | theorem profileStress_eq_primitive (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : |
| 205 | profileStress C d y0 y = |
| 206 | ParametricFlatFactor.primitive 4 6 (primitiveCoefficient C d y0) y / |
| 207 | profileRadius y0 y.2 ^ 2 := by |
| 208 | rw [profileStress, radialStress_eq_primitive C d y0 y.1 (profileRadius_pos y0 y.2), |
| 209 | edgeCoordinate_profileRadius] |
| 210 | |
| 211 | theorem profileStress_factorization (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : |
| 212 | profileStress C d y0 y = (FlatCutoff.edge 4 y.2 / y.2 ^ 3) * stressFactor C d y0 y := by |
| 213 | rw [profileStress_eq_primitive, ParametricFlatFactor.primitive_eq_scale_mul_factor] |
| 214 | unfold FlatPrimitive.scale stressFactor |
| 215 | by_cases hx : y.2 = 0 |
| 216 | · simp [hx] |
| 217 | · field_simp [hx, (profileRadius_pos y0 y.2).ne'] |
| 218 | |
| 219 | theorem profileStress_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 220 | ContDiff ℝ ∞ (profileStress C d y0) := by |
| 221 | have he : profileStress C d y0 = EdgeWeightJets.weighted 4 3 (stressFactor C d y0) := |
| 222 | funext (profileStress_factorization C d y0) |
| 223 | rw [he] |
| 224 | exact EdgeWeightJets.weighted_contDiff (by norm_num) 3 (stressFactor_contDiff C d y0) |
| 225 | |
| 226 | theorem profileStress_zero_of_nonpos (C : ℝ) (d : TailData) (y0 : ℝ) |
| 227 | {y : ℝ × ℝ} (hy : y.2 ≤ 0) : profileStress C d y0 y = 0 := by |
| 228 | rw [profileStress_factorization, FlatCutoff.edge_of_nonpos 4 hy, zero_div, zero_mul] |
| 229 | |
| 230 | theorem profileStress_edge_jets (C : ℝ) (d : TailData) (y0 η : ℝ) (n : ℕ) : |
| 231 | iteratedFDeriv ℝ n (profileStress C d y0) (η, 0) = 0 := by |
| 232 | have he : profileStress C d y0 = EdgeWeightJets.weighted 4 3 (stressFactor C d y0) := |
| 233 | funext (profileStress_factorization C d y0) |
| 234 | rw [he] |
| 235 | exact EdgeWeightJets.weighted_iteratedFDeriv_zero (by norm_num) 3 |
| 236 | (stressFactor_contDiff C d y0) n η |
| 237 | |
| 238 | /-- All full joint derivative tensors, uniformly including both parameter endpoints. -/ |
| 239 | theorem profileStress_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) |
| 240 | {b : ℝ} (hb : 0 < b) : |
| 241 | ∃ M : ℝ, 0 < M ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ η ∈ Icc (-1 : ℝ) 1, |
| 242 | ∀ x : ℝ, 0 < x → x ≤ b → |
| 243 | ‖iteratedFDeriv ℝ i (profileStress C d y0) (η, x)‖ ≤ |
| 244 | M * FlatCutoff.edge 4 x / x ^ N := by |
| 245 | have he : profileStress C d y0 = EdgeWeightJets.weighted 4 3 (stressFactor C d y0) := |
| 246 | funext (profileStress_factorization C d y0) |
| 247 | rw [he] |
| 248 | exact EdgeWeightJets.edge_mul_iteratedFDeriv_bound (by norm_num) 3 |
| 249 | (stressFactor_contDiff C d y0) isCompact_Icc n hb |
| 250 | |
| 251 | /-! ## The actual `(X,η)` profile coordinates -/ |
| 252 | |
| 253 | noncomputable def xChart (y0 : ℝ) (w : ℝ × ℝ) : ℝ × ℝ := |
| 254 | (w.2, y0 + 3 - Real.log w.1) |
| 255 | |
| 256 | noncomputable def stressX (C : ℝ) (d : TailData) (y0 : ℝ) (w : ℝ × ℝ) : ℝ := |
| 257 | profileStress C d y0 (xChart y0 w) |
| 258 | |
| 259 | theorem xChart_contDiffOn (y0 : ℝ) : |
| 260 | ContDiffOn ℝ ∞ (xChart y0) {w : ℝ × ℝ | 0 < w.1} := by |
| 261 | intro w hw |
| 262 | exact (contDiffAt_snd.prodMk (contDiffAt_const.sub |
| 263 | (contDiffAt_fst.log (show w.1 ≠ 0 from ne_of_gt hw)))).contDiffWithinAt |
| 264 | |
| 265 | theorem stressX_contDiffOn (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 266 | ContDiffOn ℝ ∞ (stressX C d y0) {w : ℝ × ℝ | 0 < w.1} := |
| 267 | (profileStress_contDiff C d y0).comp_contDiffOn (xChart_contDiffOn y0) |
| 268 | |
| 269 | theorem compact_jets_bound_on {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 270 | [NormedAddCommGroup F] [NormedSpace ℝ F] {f : E → F} {S K : Set E} |
| 271 | (hS : IsOpen S) (hf : ContDiffOn ℝ ∞ f S) (hK : IsCompact K) (hKS : K ⊆ S) (n : ℕ) : |
| 272 | ∃ D : ℝ, 1 ≤ D ∧ ∀ i ≤ n, ∀ x ∈ K, ‖iteratedFDeriv ℝ i f x‖ ≤ D := by |
| 273 | have hb : ∀ i : ℕ, ∃ A : ℝ, 0 ≤ A ∧ ∀ x ∈ K, ‖iteratedFDeriv ℝ i f x‖ ≤ A := by |
| 274 | intro i |
| 275 | have hc : ContinuousOn (iteratedFDeriv ℝ i f) S := by |
| 276 | intro x hx |
| 277 | have hi : ContDiffAt ℝ ∞ (iteratedFDeriv ℝ i f) x := |
| 278 | (hf.contDiffAt (hS.mem_nhds hx)).iteratedFDeriv_right |
| 279 | (WithTop.coe_le_coe.mpr le_top) |
| 280 | exact hi.continuousAt.continuousWithinAt |
| 281 | obtain ⟨A, hA⟩ := hK.exists_bound_of_continuousOn (hc.mono hKS) |
| 282 | exact ⟨max A 0, le_max_right _ _, fun x hx => (hA x hx).trans (le_max_left _ _)⟩ |
| 283 | choose A hA hbound using hb |
| 284 | refine ⟨1 + ∑ i ∈ Finset.range (n + 1), A i, ?_, ?_⟩ |
| 285 | · exact le_add_of_nonneg_right (Finset.sum_nonneg (fun i _ => hA i)) |
| 286 | · intro i hi x hx |
| 287 | have hs := Finset.single_le_sum (fun j _ => hA j) |
| 288 | (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 289 | exact (hbound i x hx).trans (by linarith) |
| 290 | |
| 291 | theorem stressX_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) |
| 292 | {b : ℝ} (hb : 0 < b) : |
| 293 | ∃ M : ℝ, 0 < M ∧ ∃ N : ℕ, ∀ X ∈ Ico (Real.exp (y0 + 3 - b)) (Real.exp (y0 + 3)), |
| 294 | ∀ η ∈ Icc (-1 : ℝ) 1, |
| 295 | ‖iteratedFDeriv ℝ n (stressX C d y0) (X, η)‖ ≤ |
| 296 | M * FlatCutoff.edge 4 (y0 + 3 - Real.log X) / (y0 + 3 - Real.log X) ^ N := by |
| 297 | let K := Icc (Real.exp (y0 + 3 - b)) (Real.exp (y0 + 3)) ×ˢ Icc (-1 : ℝ) 1 |
| 298 | have hS : IsOpen {w : ℝ × ℝ | 0 < w.1} := isOpen_lt continuous_const continuous_fst |
| 299 | have hKS : K ⊆ {w : ℝ × ℝ | 0 < w.1} := fun w hw => |
| 300 | (Real.exp_pos _).trans_le hw.1.1 |
| 301 | obtain ⟨D, hD, hchart⟩ := compact_jets_bound_on hS (xChart_contDiffOn y0) |
| 302 | (isCompact_Icc.prod isCompact_Icc) hKS n |
| 303 | obtain ⟨A, hA, N, hprof⟩ := profileStress_jets C d y0 n hb |
| 304 | refine ⟨(n.factorial : ℝ) * A * D ^ n, by positivity, N, ?_⟩ |
| 305 | intro X hX η hη |
| 306 | have hXp : 0 < X := (Real.exp_pos _).trans_le hX.1 |
| 307 | have hl := Real.log_le_log (Real.exp_pos (y0 + 3 - b)) hX.1 |
| 308 | have hu := Real.log_lt_log hXp hX.2 |
| 309 | rw [Real.log_exp] at hl hu |
| 310 | have hδ : 0 < y0 + 3 - Real.log X := by linarith |
| 311 | have hδb : y0 + 3 - Real.log X ≤ b := by linarith |
| 312 | have hc := norm_iteratedFDerivWithin_comp_le (profileStress_contDiff C d y0).contDiffOn |
| 313 | (xChart_contDiffOn y0) (EdgeWeightJets.nat_le_infty n) uniqueDiffOn_univ hS.uniqueDiffOn |
| 314 | (mapsTo_univ _ _) (show (X, η) ∈ {w : ℝ × ℝ | 0 < w.1} from hXp) |
| 315 | (C := A * FlatCutoff.edge 4 (y0 + 3 - Real.log X) / (y0 + 3 - Real.log X) ^ N) |
| 316 | (D := D) |
| 317 | (by |
| 318 | intro i hi |
| 319 | rw [iteratedFDerivWithin_univ] |
| 320 | exact hprof i hi η hη _ hδ hδb) |
| 321 | (by |
| 322 | intro i hi hin |
| 323 | rw [iteratedFDerivWithin_of_isOpen i hS hXp] |
| 324 | exact (hchart i hin (X, η) ⟨⟨hX.1, hX.2.le⟩, hη⟩).trans |
| 325 | (by simpa only [pow_one] using pow_le_pow_right₀ hD hi)) |
| 326 | rw [iteratedFDerivWithin_of_isOpen n hS hXp] at hc |
| 327 | change ‖iteratedFDeriv ℝ n (stressX C d y0) (X, η)‖ ≤ _ at hc |
| 328 | convert! hc using 1 |
| 329 | ring |
| 330 | |
| 331 | /-- The two logarithmic Gaussian factors specified in (20). -/ |
| 332 | noncomputable def zeta (cL a y0 X : ℝ) : ℝ := |
| 333 | FlatCutoff.edge cL (Real.log (X / a)) * FlatCutoff.edge 4 (y0 + 3 - Real.log X) |
| 334 | |
| 335 | noncomputable def edgeDistance (a y0 X : ℝ) : ℝ := |
| 336 | min 1 (min (Real.log (X / a)) (y0 + 3 - Real.log X)) |
| 337 | |
| 338 | theorem stressX_zero_outside (C : ℝ) (d : TailData) (y0 : ℝ) |
| 339 | {X : ℝ} (hX : Real.exp (y0 + 3) ≤ X) (η : ℝ) : stressX C d y0 (X, η) = 0 := by |
| 340 | have hl := Real.log_le_log (Real.exp_pos (y0 + 3)) hX |
| 341 | rw [Real.log_exp] at hl |
| 342 | exact profileStress_zero_of_nonpos C d y0 (by dsimp [xChart]; linarith) |
| 343 | |
| 344 | theorem edge_mono_positive {c x y : ℝ} (hc : 0 ≤ c) (hx : 0 < x) (hxy : x ≤ y) : |
| 345 | FlatCutoff.edge c x ≤ FlatCutoff.edge c y := by |
| 346 | rw [FlatCutoff.edge_of_pos c hx, FlatCutoff.edge_of_pos c (hx.trans_le hxy)] |
| 347 | apply Real.exp_le_exp.mpr |
| 348 | simp only [neg_div] |
| 349 | apply neg_le_neg |
| 350 | exact div_le_div_of_nonneg_left hc (sq_pos_of_pos hx) (by nlinarith) |
| 351 | |
| 352 | /-- The full weight from (20), with the lesser of the two log distances and one. |
| 353 | The only geometric condition is that the closed outer collar avoids the inner edge. -/ |
| 354 | theorem stressX_weighted_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) |
| 355 | {b a cL : ℝ} (hb : 0 < b) (ha : 0 < a) (hcL : 0 < cL) |
| 356 | (hcollar : a < Real.exp (y0 + 3 - b)) : |
| 357 | ∃ M : ℝ, 0 < M ∧ ∃ N : ℕ, ∀ X ∈ Ico (Real.exp (y0 + 3 - b)) (Real.exp (y0 + 3)), |
| 358 | ∀ η ∈ Icc (-1 : ℝ) 1, |
| 359 | ‖iteratedFDeriv ℝ n (stressX C d y0) (X, η)‖ ≤ |
| 360 | M * zeta cL a y0 X / edgeDistance a y0 X ^ N := by |
| 361 | let l := Real.log (Real.exp (y0 + 3 - b) / a) |
| 362 | have hl : 0 < l := Real.log_pos ((one_lt_div ha).mpr hcollar) |
| 363 | let e := FlatCutoff.edge cL l |
| 364 | have he : 0 < e := FlatCutoff.edge_pos cL hl |
| 365 | obtain ⟨A, hA, N, hbnd⟩ := stressX_jets C d y0 n hb |
| 366 | refine ⟨A / e, div_pos hA he, N, ?_⟩ |
| 367 | intro X hX η hη |
| 368 | have hXp : 0 < X := (Real.exp_pos _).trans_le hX.1 |
| 369 | have hlog : l ≤ Real.log (X / a) := |
| 370 | Real.log_le_log (div_pos (Real.exp_pos _) ha) (div_le_div_of_nonneg_right hX.1 ha.le) |
| 371 | have hi : 0 < Real.log (X / a) := hl.trans_le hlog |
| 372 | have hu := Real.log_lt_log hXp hX.2 |
| 373 | rw [Real.log_exp] at hu |
| 374 | have ho : 0 < y0 + 3 - Real.log X := by linarith |
| 375 | have hd : 0 < edgeDistance a y0 X := lt_min zero_lt_one (lt_min hi ho) |
| 376 | have hdo : edgeDistance a y0 X ≤ y0 + 3 - Real.log X := |
| 377 | (min_le_right _ _).trans (min_le_right _ _) |
| 378 | have hinner : e ≤ FlatCutoff.edge cL (Real.log (X / a)) := edge_mono_positive hcL.le hl hlog |
| 379 | have hw : A * FlatCutoff.edge 4 (y0 + 3 - Real.log X) ≤ (A / e) * zeta cL a y0 X := by |
| 380 | unfold zeta |
| 381 | have hm : A ≤ (A / e) * FlatCutoff.edge cL (Real.log (X / a)) := by |
| 382 | calc |
| 383 | A = (A / e) * e := by field_simp |
| 384 | _ ≤ _ := mul_le_mul_of_nonneg_left hinner (div_nonneg hA.le he.le) |
| 385 | simpa only [mul_assoc] using mul_le_mul_of_nonneg_right hm |
| 386 | (FlatCutoff.edge_nonneg 4 (y0 + 3 - Real.log X)) |
| 387 | calc |
| 388 | _ ≤ A * FlatCutoff.edge 4 (y0 + 3 - Real.log X) / (y0 + 3 - Real.log X) ^ N := |
| 389 | hbnd X hX η hη |
| 390 | _ ≤ ((A / e) * zeta cL a y0 X) / (y0 + 3 - Real.log X) ^ N := |
| 391 | div_le_div_of_nonneg_right hw (pow_nonneg ho.le N) |
| 392 | _ ≤ _ := div_le_div_of_nonneg_left |
| 393 | (mul_nonneg (div_nonneg hA.le he.le) |
| 394 | (mul_nonneg (FlatCutoff.edge_nonneg _ _) (FlatCutoff.edge_nonneg _ _))) |
| 395 | (pow_pos hd N) (pow_le_pow_left₀ hd.le hdo N) |
| 396 | |
| 397 | /-! ## Literal axial derivatives in physical coordinates -/ |
| 398 | |
| 399 | open SimilarityProfile |
| 400 | |
| 401 | abbrev PhysicalPoint := SimilarityProfile.PhysicalPoint |
| 402 | |
| 403 | noncomputable def physicalChi (d : TailData) (p : PhysicalPoint) : ℝ := |
| 404 | q d.h p ^ (-CoordinateAlgebra.D d.h) * profileChi d (eta d.h p) |
| 405 | |
| 406 | theorem physicalChi_eq_logScale (d : TailData) {p : PhysicalPoint} (ht : p.1 < 1) : |
| 407 | physicalChi d p = TerminalPressure.logScaleDerivative d.h p := by |
| 408 | rw [TerminalPressure.logScaleDerivative_eq (q_pos d.h_pos d.h_lt_half ht)] |
| 409 | unfold physicalChi profileChi |
| 410 | rw [profileL_eq d (eta_sq_lt_one d.h_pos d.h_lt_half ht).le, |
| 411 | Real.rpow_neg (q_pos d.h_pos d.h_lt_half ht).le] |
| 412 | ring |
| 413 | |
| 414 | theorem physicalChi_hasDerivAt_z (d : TailData) {p : PhysicalPoint} (ht : p.1 < 1) : |
| 415 | HasDerivAt (fun z => physicalChi d (p.1, (p.2.1, z))) |
| 416 | (-(q d.h p ^ (-2 * CoordinateAlgebra.D d.h) * beta d (eta d.h p))) p.2.2 := by |
| 417 | have hq := q_pos d.h_pos d.h_lt_half ht |
| 418 | have hχ := ((profileChi_contDiff d).differentiable (by simp) (eta d.h p)).hasDerivAt.comp p.2.2 |
| 419 | (eta_hasDerivAt_z d.h_pos d.h_lt_half ht) |
| 420 | have hm := ((q_hasDerivAt_z d.h_pos d.h_lt_half ht).rpow_const |
| 421 | (p := -CoordinateAlgebra.D d.h) (Or.inl hq.ne')).mul hχ |
| 422 | apply hm.congr_deriv |
| 423 | have he := CoordinateAlgebra.axial_chain_coefficient hq (-CoordinateAlgebra.D d.h) |
| 424 | d.h (eta d.h p) 0 (profileChi d (eta d.h p)) 0 (deriv (profileChi d) (eta d.h p)) |
| 425 | simp only [zero_mul, zero_add] at he |
| 426 | calc |
| 427 | _ = q d.h p ^ (-CoordinateAlgebra.D d.h - CoordinateAlgebra.D d.h) * |
| 428 | CoordinateAlgebra.axialCoeff (-CoordinateAlgebra.D d.h) d.h (eta d.h p) |
| 429 | 0 (profileChi d (eta d.h p)) 0 (deriv (profileChi d) (eta d.h p)) := by |
| 430 | simpa only [Function.comp_apply, Prod.eta, mul_comm, mul_left_comm, mul_assoc] using he |
| 431 | _ = _ := by |
| 432 | rw [show -CoordinateAlgebra.D d.h - CoordinateAlgebra.D d.h = |
| 433 | -2 * CoordinateAlgebra.D d.h by ring] |
| 434 | unfold CoordinateAlgebra.axialCoeff beta CoordinateAlgebra.d |
| 435 | rw [profileL_eq d (eta_sq_lt_one d.h_pos d.h_lt_half ht).le] |
| 436 | ring |
| 437 | |
| 438 | noncomputable def physicalTaper (d : TailData) (y0 : ℝ) (p : PhysicalPoint) : ℝ := |
| 439 | tailShape d (Real.log (X d.h p) - y0) |
| 440 | |
| 441 | theorem physicalTaper_hasDerivAt_z (d : TailData) (y0 : ℝ) {p : PhysicalPoint} |
| 442 | (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 443 | HasDerivAt (fun z => physicalTaper d y0 (p.1, (p.2.1, z))) |
| 444 | (-physicalChi d p * tailShapeDeriv d (Real.log (X d.h p) - y0)) p.2.2 := by |
| 445 | have hh := (tailShape_hasDerivAt d (Real.log (X d.h p) - y0)).comp p.2.2 |
| 446 | ((TerminalPressure.logX_hasDerivAt_z d.h_pos d.h_lt_half ht hs).sub_const y0) |
| 447 | apply hh.congr_deriv |
| 448 | rw [physicalChi_eq_logScale d ht] |
| 449 | ring |
| 450 | |
| 451 | theorem physicalTaper_second_z (d : TailData) (y0 : ℝ) {p : PhysicalPoint} |
| 452 | (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 453 | deriv (deriv (fun z => physicalTaper d y0 (p.1, (p.2.1, z)))) p.2.2 = |
| 454 | q d.h p ^ (-2 * CoordinateAlgebra.D d.h) * |
| 455 | (profileChi d (eta d.h p) ^ 2 * deriv (tailShapeDeriv d) (Real.log (X d.h p) - y0) + |
| 456 | beta d (eta d.h p) * tailShapeDeriv d (Real.log (X d.h p) - y0)) := by |
| 457 | have he : deriv (fun z => physicalTaper d y0 (p.1, (p.2.1, z))) = |
| 458 | fun z => -physicalChi d (p.1, (p.2.1, z)) * |
| 459 | tailShapeDeriv d (Real.log (X d.h (p.1, (p.2.1, z))) - y0) := by |
| 460 | funext z |
| 461 | exact (physicalTaper_hasDerivAt_z d y0 (p := (p.1, (p.2.1, z))) ht hs).deriv |
| 462 | rw [he] |
| 463 | have hh := ((tailShapeDeriv_contDiff d).differentiable (by simp) |
| 464 | (Real.log (X d.h p) - y0)).hasDerivAt.comp p.2.2 |
| 465 | ((TerminalPressure.logX_hasDerivAt_z d.h_pos d.h_lt_half ht hs).sub_const y0) |
| 466 | have hd := (physicalChi_hasDerivAt_z d ht).fun_neg.fun_mul hh |
| 467 | simp only [Function.comp_def, Prod.eta] at hd |
| 468 | rw [hd.deriv, ← physicalChi_eq_logScale d ht] |
| 469 | have hsq : physicalChi d p ^ 2 = q d.h p ^ (-2 * CoordinateAlgebra.D d.h) * |
| 470 | profileChi d (eta d.h p) ^ 2 := by |
| 471 | unfold physicalChi |
| 472 | rw [mul_pow, pow_two (q d.h p ^ _), ← Real.rpow_add (q_pos d.h_pos d.h_lt_half ht)] |
| 473 | rw [show -CoordinateAlgebra.D d.h + -CoordinateAlgebra.D d.h = |
| 474 | -2 * CoordinateAlgebra.D d.h by ring] |
| 475 | calc |
| 476 | _ = q d.h p ^ (-2 * CoordinateAlgebra.D d.h) * beta d (eta d.h p) * |
| 477 | tailShapeDeriv d (Real.log (X d.h p) - y0) + |
| 478 | physicalChi d p ^ 2 * deriv (tailShapeDeriv d) (Real.log (X d.h p) - y0) := by ring |
| 479 | _ = _ := by rw [hsq]; ring |
| 480 | |
| 481 | theorem profileS_xChart (y0 : ℝ) {w : ℝ × ℝ} (hX : 0 < w.1) : |
| 482 | profileS y0 (xChart y0 w).2 = w.1 := by |
| 483 | unfold profileS xChart |
| 484 | rw [show y0 + 3 - (y0 + 3 - Real.log w.1) = Real.log w.1 by ring, Real.exp_log hX] |
| 485 | |
| 486 | theorem physicalHeat_eq_profileCarrier (C : ℝ) (d : TailData) (y0 : ℝ) |
| 487 | {p : PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 488 | physicalHeat C (1 + d.h) p = |
| 489 | q d.h p ^ (-CoordinateAlgebra.A d.h) * |
| 490 | profileCarrier C d y0 (xChart y0 (inner d.h p)) := by |
| 491 | have hq := q_pos d.h_pos d.h_lt_half ht |
| 492 | have hX : 0 < X d.h p := div_pos hs hq |
| 493 | have hη := eta_sq_lt_one d.h_pos d.h_lt_half ht |
| 494 | have hS := profileS_xChart y0 (w := SimilarityProfile.inner d.h p) hX |
| 495 | have hZ : profileZ y0 (xChart y0 (inner d.h p)) = 2 * (1 - p.1) / p.2.1 := by |
| 496 | unfold profileZ |
| 497 | rw [hS] |
| 498 | exact PhysicalHeatCoordinates.heat_argument d.h_pos d.h_lt_half ht hs |
| 499 | have hz : 0 ≤ profileZ y0 (xChart y0 (inner d.h p)) := by |
| 500 | rw [hZ] |
| 501 | exact div_nonneg (mul_nonneg (by norm_num) (sub_nonneg.mpr ht.le)) hs.le |
| 502 | have ha : RadialHeatProfile.spatialExponent (1 + d.h) = -CoordinateAlgebra.A d.h := by |
| 503 | unfold RadialHeatProfile.spatialExponent CoordinateAlgebra.A |
| 504 | ring |
| 505 | rw [profileCarrier, HeatProfileExtension.extension_eq_profile _ hz, hZ, hS, ha] |
| 506 | unfold physicalHeat RadialHeatProfile.spatialProfile |
| 507 | rw [ha] |
| 508 | have hp : q d.h p ^ (-CoordinateAlgebra.A d.h) * |
| 509 | X d.h p ^ (-CoordinateAlgebra.A d.h) = p.2.1 ^ (-CoordinateAlgebra.A d.h) := by |
| 510 | unfold X |
| 511 | rw [Real.div_rpow hs.le hq.le] |
| 512 | field_simp [(Real.rpow_pos_of_pos hq (-CoordinateAlgebra.A d.h)).ne'] |
| 513 | calc |
| 514 | _ = C * (p.2.1 ^ (-CoordinateAlgebra.A d.h) * |
| 515 | RadialHeatProfile.profile (1 + d.h) (2 * (1 - p.1) / p.2.1)) := rfl |
| 516 | _ = _ := by rw [← hp]; dsimp only [SimilarityProfile.inner]; ring |
| 517 | |
| 518 | /-- Literal physical angular velocity on the switched terminal collar. -/ |
| 519 | noncomputable def physicalAngular (C : ℝ) (d : TailData) (y0 : ℝ) (p : PhysicalPoint) : ℝ := |
| 520 | physicalHeat C (1 + d.h) p * physicalTaper d y0 p |
| 521 | |
| 522 | /-- Literal negative second axial derivative; no independent jet is supplied. -/ |
| 523 | noncomputable def physicalSource (C : ℝ) (d : TailData) (y0 : ℝ) (p : PhysicalPoint) : ℝ := |
| 524 | -deriv (deriv (fun z => physicalAngular C d y0 (p.1, (p.2.1, z)))) p.2.2 |
| 525 | |
| 526 | theorem physicalSource_eq (C : ℝ) (d : TailData) (y0 : ℝ) {p : PhysicalPoint} |
| 527 | : |
| 528 | physicalSource C d y0 p = |
| 529 | -physicalHeat C (1 + d.h) p * |
| 530 | deriv (deriv (fun z => physicalTaper d y0 (p.1, (p.2.1, z)))) p.2.2 := by |
| 531 | change -deriv (deriv (fun z => physicalHeat C (1 + d.h) p * |
| 532 | physicalTaper d y0 (p.1, (p.2.1, z)))) p.2.2 = _ |
| 533 | rw [deriv_const_mul_field', deriv_const_mul_field] |
| 534 | ring |
| 535 | |
| 536 | /-- The residual order is `q^(-A-1+2h)`, before one radial integration. -/ |
| 537 | theorem physicalSource_scaled (C : ℝ) (d : TailData) (y0 : ℝ) {p : PhysicalPoint} |
| 538 | (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 539 | physicalSource C d y0 p = |
| 540 | q d.h p ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h) * |
| 541 | profileSource C d y0 (xChart y0 (inner d.h p)) := by |
| 542 | rw [physicalSource_eq C d y0, physicalTaper_second_z d y0 ht hs, |
| 543 | physicalHeat_eq_profileCarrier C d y0 ht hs] |
| 544 | have he : -CoordinateAlgebra.A d.h - 1 + 2 * d.h = |
| 545 | -CoordinateAlgebra.A d.h + (-2 * CoordinateAlgebra.D d.h) := by |
| 546 | unfold CoordinateAlgebra.D |
| 547 | ring |
| 548 | rw [he, Real.rpow_add (q_pos d.h_pos d.h_lt_half ht)] |
| 549 | simp only [profileSource, xChart, SimilarityProfile.inner] |
| 550 | rw [show 3 - (y0 + 3 - Real.log (X d.h p)) = Real.log (X d.h p) - y0 by ring] |
| 551 | ring |
| 552 | |
| 553 | theorem profileRadius_xChart (y0 : ℝ) {w : ℝ × ℝ} (hX : 0 < w.1) : |
| 554 | profileRadius y0 (xChart y0 w).2 = Real.sqrt (2 * w.1) := by |
| 555 | have hh := profileRadius_square y0 (xChart y0 w).2 |
| 556 | rw [profileS_xChart y0 hX] at hh |
| 557 | have hs := Real.sq_sqrt (show 0 ≤ 2 * w.1 by positivity) |
| 558 | nlinarith [profileRadius_pos y0 (xChart y0 w).2, Real.sqrt_nonneg (2 * w.1)] |
| 559 | |
| 560 | theorem edgeCoordinate_eq_log (y0 : ℝ) {R : ℝ} (hR : 0 < R) : |
| 561 | edgeCoordinate (profileRadius y0 0) R = y0 + 3 - Real.log (R ^ 2 / 2) := by |
| 562 | have hX : 0 < R ^ 2 / 2 := by positivity |
| 563 | have hr := profileRadius_xChart y0 (w := (R ^ 2 / 2, (0 : ℝ))) hX |
| 564 | have hs : Real.sqrt (2 * (R ^ 2 / 2)) = R := by |
| 565 | rw [show 2 * (R ^ 2 / 2) = R ^ 2 by ring, Real.sqrt_sq hR.le] |
| 566 | rw [hs] at hr |
| 567 | calc |
| 568 | _ = edgeCoordinate (profileRadius y0 0) |
| 569 | (profileRadius y0 (xChart y0 (R ^ 2 / 2, (0 : ℝ))).2) := by rw [hr] |
| 570 | _ = _ := edgeCoordinate_profileRadius y0 _ |
| 571 | |
| 572 | theorem stressX_eq_radialStress (C : ℝ) (d : TailData) (y0 : ℝ) |
| 573 | {w : ℝ × ℝ} (hX : 0 < w.1) : |
| 574 | stressX C d y0 w = radialStress C d y0 w.2 (Real.sqrt (2 * w.1)) := by |
| 575 | unfold stressX profileStress |
| 576 | rw [profileRadius_xChart y0 hX] |
| 577 | rfl |
| 578 | |
| 579 | noncomputable def physicalScale (d : TailData) (t z : ℝ) : ℝ := q d.h (t, (0, z)) |
| 580 | noncomputable def physicalEta (d : TailData) (t z : ℝ) : ℝ := eta d.h (t, (0, z)) |
| 581 | |
| 582 | theorem physicalScale_pos (d : TailData) {t z : ℝ} (ht : t < 1) : |
| 583 | 0 < physicalScale d t z := q_pos d.h_pos d.h_lt_half ht |
| 584 | |
| 585 | theorem scaledRadius_identity {Q R : ℝ} (hQ : 0 < Q) : |
| 586 | (R / Real.sqrt Q) ^ 2 / 2 = (R ^ 2 / 2) / Q := by |
| 587 | rw [div_pow, Real.sq_sqrt hQ.le] |
| 588 | ring |
| 589 | |
| 590 | theorem physicalSource_radial_scaled (C : ℝ) (d : TailData) (y0 : ℝ) |
| 591 | {t r z : ℝ} (ht : t < 1) (hr : 0 < r) : |
| 592 | physicalSource C d y0 (radiusPoint t r z) = |
| 593 | physicalScale d t z ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h) * |
| 594 | radialSource C d y0 (physicalEta d t z) (r / Real.sqrt (physicalScale d t z)) := by |
| 595 | rw [physicalSource_scaled C d y0 ht (by dsimp [radiusPoint]; positivity)] |
| 596 | unfold radialSource |
| 597 | rw [edgeCoordinate_eq_log y0 (div_pos hr (Real.sqrt_pos.mpr (physicalScale_pos d ht))), |
| 598 | scaledRadius_identity (physicalScale_pos d ht)] |
| 599 | rfl |
| 600 | |
| 601 | /-- Backward radial integration contributes exactly one half power of `q`. -/ |
| 602 | theorem backwardStress_scale (b : ℝ) {Q r : ℝ} (hQ : 0 < Q) (hr : 0 < r) (g : ℝ → ℝ) : |
| 603 | backwardStress (fun u => Q ^ b * g (u / Real.sqrt Q)) r = |
| 604 | Q ^ (b + 1 / 2) * backwardStress g (r / Real.sqrt Q) := by |
| 605 | have hf : (fun u => u ^ 2 * (Q ^ b * g (u / Real.sqrt Q))) = |
| 606 | fun u => (Q * Q ^ b) * ((u / Real.sqrt Q) ^ 2 * g (u / Real.sqrt Q)) := by |
| 607 | funext u |
| 608 | rw [div_pow, Real.sq_sqrt hQ.le] |
| 609 | field_simp [hQ.ne'] |
| 610 | unfold backwardStress |
| 611 | rw [hf, integral_const_mul] |
| 612 | have hs := integral_comp_mul_right_Ioi (fun R => R ^ 2 * g R) r |
| 613 | (inv_pos.mpr (Real.sqrt_pos.mpr hQ)) |
| 614 | simp only [inv_inv, smul_eq_mul, ← div_eq_mul_inv] at hs |
| 615 | rw [hs] |
| 616 | have hp : Q * Q ^ b * Real.sqrt Q = Q * Q ^ (b + 1 / 2) := by |
| 617 | rw [Real.sqrt_eq_rpow, Real.rpow_add hQ] |
| 618 | ring |
| 619 | rw [← mul_assoc, hp, div_pow, Real.sq_sqrt hQ.le] |
| 620 | field_simp [hQ.ne', hr.ne'] |
| 621 | |
| 622 | noncomputable def physicalStress (C : ℝ) (d : TailData) (y0 t z r : ℝ) : ℝ := |
| 623 | backwardStress (fun u => physicalSource C d y0 (radiusPoint t u z)) r |
| 624 | |
| 625 | theorem physicalStress_scaled_radial (C : ℝ) (d : TailData) (y0 : ℝ) |
| 626 | {t r z : ℝ} (ht : t < 1) (hr : 0 < r) : |
| 627 | physicalStress C d y0 t z r = |
| 628 | physicalScale d t z ^ (-CoordinateAlgebra.A d.h - 1 / 2 + 2 * d.h) * |
| 629 | radialStress C d y0 (physicalEta d t z) (r / Real.sqrt (physicalScale d t z)) := by |
| 630 | have hi : physicalStress C d y0 t z r = |
| 631 | backwardStress (fun u => physicalScale d t z ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h) * |
| 632 | radialSource C d y0 (physicalEta d t z) (u / Real.sqrt (physicalScale d t z))) r := by |
| 633 | unfold physicalStress backwardStress |
| 634 | congr 1 |
| 635 | apply setIntegral_congr_fun measurableSet_Ioi |
| 636 | intro u hu |
| 637 | dsimp only |
| 638 | rw [physicalSource_radial_scaled C d y0 ht (hr.trans hu)] |
| 639 | rw [hi, backwardStress_scale _ (physicalScale_pos d ht) hr] |
| 640 | rw [show -CoordinateAlgebra.A d.h - 1 + 2 * d.h + 1 / 2 = |
| 641 | -CoordinateAlgebra.A d.h - 1 / 2 + 2 * d.h by ring] |
| 642 | rfl |
| 643 | |
| 644 | /-- Identification of the actual physical backward primitive with the first-order |
| 645 | profile coefficient, using the manuscript's exact tensor power. -/ |
| 646 | theorem physicalStress_scaled (C : ℝ) (d : TailData) (y0 : ℝ) |
| 647 | {t r z : ℝ} (ht : t < 1) (hr : 0 < r) : |
| 648 | physicalStress C d y0 t z r = |
| 649 | physicalScale d t z ^ (-CoordinateAlgebra.A d.h - 1 / 2 + 2 * d.h) * |
| 650 | stressX C d y0 ((r ^ 2 / 2) / physicalScale d t z, physicalEta d t z) := by |
| 651 | have hX : 0 < (r ^ 2 / 2) / physicalScale d t z := |
| 652 | div_pos (by positivity) (physicalScale_pos d ht) |
| 653 | rw [physicalStress_scaled_radial C d y0 ht hr, |
| 654 | stressX_eq_radialStress C d y0 hX] |
| 655 | have he : Real.sqrt (2 * ((r ^ 2 / 2) / physicalScale d t z)) = |
| 656 | r / Real.sqrt (physicalScale d t z) := by |
| 657 | rw [← scaledRadius_identity (physicalScale_pos d ht)] |
| 658 | rw [show 2 * ((r / Real.sqrt (physicalScale d t z)) ^ 2 / 2) = |
| 659 | (r / Real.sqrt (physicalScale d t z)) ^ 2 by ring] |
| 660 | exact Real.sqrt_sq (div_pos hr (Real.sqrt_pos.mpr (physicalScale_pos d ht))).le |
| 661 | rw [he] |
| 662 | |
| 663 | /-- Global moment closure is supplied by the separate renormalized-moment and |
| 664 | slow-order moment theorems. Only agreement on the exterior ray is needed here. -/ |
| 665 | theorem forward_eq_physicalStress (C : ℝ) (d : TailData) (y0 t z : ℝ) |
| 666 | {F : ℝ → ℝ} {r : ℝ} (hr : 0 < r) |
| 667 | (hi : IntegrableOn (fun u => u ^ 2 * F u) (Ioi 0)) |
| 668 | (hzero : (∫ u in Ioi (0 : ℝ), u ^ 2 * F u) = 0) |
| 669 | (hmatch : ∀ u, r ≤ u → F u = physicalSource C d y0 (radiusPoint t u z)) : |
| 670 | forwardStress F r = physicalStress C d y0 t z r := by |
| 671 | rw [(forward_eq_backward_iff hr hi).mpr hzero] |
| 672 | unfold physicalStress backwardStress |
| 673 | congr 1 |
| 674 | apply setIntegral_congr_fun measurableSet_Ioi |
| 675 | intro u hu |
| 676 | dsimp only |
| 677 | rw [hmatch u hu.le] |
| 678 | |
| 679 | theorem stressX_edge_jets (C : ℝ) (d : TailData) (y0 η : ℝ) (n : ℕ) : |
| 680 | iteratedFDeriv ℝ n (stressX C d y0) (Real.exp (y0 + 3), η) = 0 := by |
| 681 | let w : ℝ × ℝ := (Real.exp (y0 + 3), η) |
| 682 | have hS : IsOpen {w : ℝ × ℝ | 0 < w.1} := isOpen_lt continuous_const continuous_fst |
| 683 | have hw : w ∈ {w : ℝ × ℝ | 0 < w.1} := Real.exp_pos _ |
| 684 | obtain ⟨D, hD, hchart⟩ := compact_jets_bound_on hS (xChart_contDiffOn y0) |
| 685 | (isCompact_singleton (x := w)) (singleton_subset_iff.mpr hw) n |
| 686 | have he : xChart y0 w = (η, 0) := by simp [xChart, w] |
| 687 | have hc := norm_iteratedFDerivWithin_comp_le (profileStress_contDiff C d y0).contDiffOn |
| 688 | (xChart_contDiffOn y0) (EdgeWeightJets.nat_le_infty n) uniqueDiffOn_univ hS.uniqueDiffOn |
| 689 | (mapsTo_univ _ _) hw (C := 0) (D := D) |
| 690 | (by |
| 691 | intro i hi |
| 692 | rw [iteratedFDerivWithin_univ, he, profileStress_edge_jets, norm_zero]) |
| 693 | (by |
| 694 | intro i hi hin |
| 695 | rw [iteratedFDerivWithin_of_isOpen i hS hw] |
| 696 | exact (hchart i hin w (mem_singleton w)).trans |
| 697 | (by simpa only [pow_one] using pow_le_pow_right₀ hD hi)) |
| 698 | rw [iteratedFDerivWithin_of_isOpen n hS hw] at hc |
| 699 | apply norm_le_zero_iff.mp |
| 700 | simp only [mul_zero, zero_mul] at hc |
| 701 | exact hc |
| 702 | |
| 703 | theorem physicalSource_weight_integrable (C : ℝ) (d : TailData) (y0 : ℝ) |
| 704 | {t r z : ℝ} (ht : t < 1) (hr : 0 < r) : |
| 705 | IntegrableOn (fun u => u ^ 2 * physicalSource C d y0 (radiusPoint t u z)) (Ioi r) := by |
| 706 | let Q := physicalScale d t z |
| 707 | let g : ℝ → ℝ := fun R => R ^ 2 * radialSource C d y0 (physicalEta d t z) R |
| 708 | have hQ : 0 < Q := physicalScale_pos d ht |
| 709 | have hs : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 710 | have hg : IntegrableOn g (Ioi (r / Real.sqrt Q)) := |
| 711 | radialSource_weight_integrable C d y0 (physicalEta d t z) (div_pos hr hs) |
| 712 | have hi : IntegrableOn (fun u => g (u / Real.sqrt Q)) (Ioi r) := by |
| 713 | have hh := (integrableOn_Ioi_comp_mul_right_iff g r (inv_pos.mpr hs)).mpr |
| 714 | (by simpa only [div_eq_mul_inv] using hg) |
| 715 | simpa only [div_eq_mul_inv] using hh |
| 716 | apply (hi.const_mul (Q * Q ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h))).congr |
| 717 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 718 | rw [physicalSource_radial_scaled C d y0 ht (hr.trans hu)] |
| 719 | dsimp only [g] |
| 720 | change Q * Q ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h) * |
| 721 | ((u / Real.sqrt Q) ^ 2 * radialSource C d y0 (physicalEta d t z) (u / Real.sqrt Q)) = |
| 722 | u ^ 2 * (Q ^ (-CoordinateAlgebra.A d.h - 1 + 2 * d.h) * |
| 723 | radialSource C d y0 (physicalEta d t z) (u / Real.sqrt Q)) |
| 724 | rw [div_pow, Real.sq_sqrt hQ.le] |
| 725 | field_simp [hQ.ne'] |
| 726 | |
| 727 | /-- The literal terminal velocity is the actual fully switched heat edit from |
| 728 | the outgoing schedule, with its original amplitude and log origin. -/ |
| 729 | theorem editedAngular_eq_physicalAngular (d : TailData) {K : ℝ} (hK : 0 < K) |
| 730 | {p : PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) |
| 731 | (hfull : 1 / 2 ≤ Real.log (X d.h p / K) + 1 / 5) : |
| 732 | PhysicalHeatCoordinates.editedAngular d K p = |
| 733 | physicalAngular (PhysicalHeatCoordinates.normalization d K) d (Real.log K - 1 / 5) p := by |
| 734 | rw [PhysicalHeatCoordinates.editedAngular_eq_heat d hK d.h_lt_half ht hs hfull] |
| 735 | unfold physicalAngular physicalTaper flattening PhysicalHeatCoordinates.shape |
| 736 | congr 2 |
| 737 | ring |
| 738 | |
| 739 | theorem forward_eq_radialStress (C : ℝ) (d : TailData) (y0 η : ℝ) |
| 740 | {F : ℝ → ℝ} {R : ℝ} (hR : 0 < R) |
| 741 | (hi : IntegrableOn (fun u => u ^ 2 * F u) (Ioi 0)) |
| 742 | (hzero : (∫ u in Ioi (0 : ℝ), u ^ 2 * F u) = 0) |
| 743 | (hmatch : ∀ u, R ≤ u → F u = radialSource C d y0 η u) : |
| 744 | forwardStress F R = radialStress C d y0 η R := by |
| 745 | rw [(forward_eq_backward_iff hR hi).mpr hzero] |
| 746 | unfold radialStress backwardStress |
| 747 | congr 1 |
| 748 | apply setIntegral_congr_fun measurableSet_Ioi |
| 749 | intro u hu |
| 750 | dsimp only |
| 751 | rw [hmatch u hu.le] |
| 752 | |
| 753 | end NavierStokes.SlowFirstOrderEdge |