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.TerminalStress |
| 2 | import NavierStokes.ParametricHeatTail |
| 3 | import NavierStokes.SmoothParameterIntegral |
| 4 | import NavierStokes.TailCone |
| 5 | |
| 6 | /-! |
| 7 | # Canonical pressure of the physical terminal heat tail |
| 8 | |
| 9 | The heat parameter is the physical time `1-t`. The pressure is the actual |
| 10 | improper radial integral. Its regularity is obtained by separating the pure |
| 11 | heat tail from a compact taper correction. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace NavierStokes.TerminalPressure |
| 20 | |
| 21 | |
| 22 | /-- The exponent of the physical angular heat amplitude. -/ |
| 23 | noncomputable def amplitudeExponent (h : ℝ) : ℝ := 1 / 2 + h |
| 24 | |
| 25 | /-- Derivatives with respect to the actual scaled heat parameter. -/ |
| 26 | noncomputable def heatJet (h : ℝ) (n : ℕ) (ν v : ℝ) : ℝ := |
| 27 | (2 / v) ^ n * RadialHeatProfile.profileJet (1 + h) n (2 * ν / v) |
| 28 | |
| 29 | noncomputable def heatJetBound (h : ℝ) (n : ℕ) : ℝ := |
| 30 | 2 ^ n * ParametricHeatTail.heatJetBound h n |
| 31 | |
| 32 | noncomputable def pressureWeight (h v : ℝ) : ℝ := |
| 33 | v ^ (-2 * amplitudeExponent h - 1) |
| 34 | |
| 35 | noncomputable def heatPressureJet (h : ℝ) (n : ℕ) (ν v : ℝ) : ℝ := |
| 36 | pressureWeight h v * ParametricHeatTail.jetProduct (fun i => heatJet h i ν v) |
| 37 | (fun i => heatJet h i ν v) n |
| 38 | |
| 39 | /-- Dimensionless pure-heat pressure integral, including the zero-diffusion endpoint. -/ |
| 40 | noncomputable def heatPressureFactor (h ν : ℝ) : ℝ := |
| 41 | ∫ v in Ioi (1 : ℝ), pressureWeight h v * RadialHeatProfile.profile (1 + h) (2 * ν / v) ^ 2 |
| 42 | |
| 43 | theorem heatJet_zero (h ν v : ℝ) : heatJet h 0 ν v = RadialHeatProfile.profile (1 + h) (2 * ν / v) := by |
| 44 | simp [heatJet, RadialHeatProfile.profileJet, RadialHeatProfile.derivativeCoeff, RadialHeatProfile.profile] |
| 45 | |
| 46 | theorem heatJet_hasDerivWithinAt {h ν v : ℝ} (hh : 0 < h) |
| 47 | (hv : 0 < v) (hν : 0 ≤ ν) (n : ℕ) : |
| 48 | HasDerivWithinAt (fun u => heatJet h n u v) |
| 49 | (heatJet h (n + 1) ν v) (Ici 0) ν := by |
| 50 | have hi : HasDerivWithinAt (fun u : ℝ => 2 * u / v) (2 / v) (Ici 0) ν := by |
| 51 | simpa using (((hasDerivAt_id ν).const_mul 2).div_const v).hasDerivWithinAt (s := Ici 0) |
| 52 | have hmap : MapsTo (fun u : ℝ => 2 * u / v) (Ici 0) (Ici 0) := by |
| 53 | intro u hu |
| 54 | exact div_nonneg (mul_nonneg (by norm_num) hu) hv.le |
| 55 | have hd := ((RadialHeatProfile.profileJet_hasDerivWithinAt (a := 1 + h) |
| 56 | (by linarith) n (by positivity)).comp ν hi hmap).const_mul ((2 / v) ^ n) |
| 57 | convert! hd using 1 |
| 58 | simp only [heatJet, pow_succ] |
| 59 | ring |
| 60 | |
| 61 | theorem heatJet_continuousOn {h ν : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) (n : ℕ) : |
| 62 | ContinuousOn (heatJet h n ν) (Ioi 0) := by |
| 63 | have hi : ContinuousOn (fun v : ℝ => 2 * ν / v) (Ioi 0) := |
| 64 | continuousOn_const.div continuousOn_id (fun v hv => (show 0 < v from hv).ne') |
| 65 | have hj : ContinuousOn (RadialHeatProfile.profileJet (1 + h) n) (Ici 0) := |
| 66 | continuousOn_const.mul (RadialHeatProfile.moment_continuousOn (by linarith) n) |
| 67 | have hk : ContinuousOn (fun v : ℝ => (2 : ℝ) / v) (Ioi 0) := |
| 68 | continuousOn_const.div continuousOn_id (fun v hv => (show 0 < v from hv).ne') |
| 69 | exact (hk.pow n).mul |
| 70 | (hj.comp hi (fun v hv => div_nonneg (mul_nonneg (by norm_num) hν) hv.le)) |
| 71 | |
| 72 | theorem heatJetBound_nonneg {h : ℝ} (hh : 0 < h) (n : ℕ) : 0 ≤ heatJetBound h n := |
| 73 | mul_nonneg (by positivity) (ParametricHeatTail.heatJetBound_nonneg hh n) |
| 74 | |
| 75 | theorem heatJet_bound {h ν v : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) (hv : 1 ≤ v) (n : ℕ) : |
| 76 | |heatJet h n ν v| ≤ heatJetBound h n := by |
| 77 | have hvp : 0 < v := zero_lt_one.trans_le hv |
| 78 | have hj : |RadialHeatProfile.profileJet (1 + h) n (2 * ν / v)| ≤ ParametricHeatTail.heatJetBound h n := by |
| 79 | rw [← RadialHeatProfile.iteratedDerivWithin_profile (by linarith) n (by positivity)] |
| 80 | exact RadialHeatProfile.profile_derivative_bound (by linarith) n (by positivity) |
| 81 | have hp : (2 / v) ^ n ≤ (2 : ℝ) ^ n := by |
| 82 | gcongr |
| 83 | exact div_le_self (by norm_num) hv |
| 84 | rw [heatJet, abs_mul, abs_of_nonneg (pow_nonneg (by positivity) n)] |
| 85 | exact mul_le_mul hp hj (abs_nonneg _) (by positivity) |
| 86 | |
| 87 | theorem pressureWeight_continuousOn (h : ℝ) : ContinuousOn (pressureWeight h) (Ioi 0) := by |
| 88 | intro v hv |
| 89 | exact (((contDiffAt_id (n := ∞)).rpow_const_of_ne (show v ≠ 0 from ne_of_gt hv)).continuousAt).continuousWithinAt |
| 90 | |
| 91 | theorem heatPressureJet_continuousOn {h ν : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) (n : ℕ) : |
| 92 | ContinuousOn (heatPressureJet h n ν) (Ioi 0) := |
| 93 | (pressureWeight_continuousOn h).mul |
| 94 | (ParametricHeatTail.jetProduct_continuousOn (fun i => heatJet_continuousOn hh hν i) |
| 95 | (fun i => heatJet_continuousOn hh hν i) n) |
| 96 | |
| 97 | theorem heatPressureJet_hasDerivWithinAt {h ν v : ℝ} (hh : 0 < h) |
| 98 | (hv : 0 < v) (hν : 0 ≤ ν) (n : ℕ) : |
| 99 | HasDerivWithinAt (fun u => heatPressureJet h n u v) |
| 100 | (heatPressureJet h (n + 1) ν v) (Ici 0) ν := |
| 101 | (ParametricHeatTail.jetProduct_hasDerivWithinAt (fun i => heatJet_hasDerivWithinAt hh hv hν i) |
| 102 | (fun i => heatJet_hasDerivWithinAt hh hv hν i) n).const_mul (pressureWeight h v) |
| 103 | |
| 104 | theorem heatPressureJet_dominated {h : ℝ} (hh : 0 < h) : |
| 105 | ParametricHeatTail.ChainDominated (heatPressureJet h) (volume.restrict (Ioi (1 : ℝ))) := by |
| 106 | intro n L hL |
| 107 | let B := ParametricHeatTail.jetProduct (heatJetBound h) (heatJetBound h) n |
| 108 | refine ⟨fun v => pressureWeight h v * B, ?_, ?_⟩ |
| 109 | · exact (integrableOn_Ioi_rpow_of_lt |
| 110 | (by dsimp [amplitudeExponent]; linarith : -2 * amplitudeExponent h - 1 < -1) |
| 111 | zero_lt_one).mul_const B |
| 112 | · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 113 | intro ν hν |
| 114 | have hBp : 0 ≤ B := ParametricHeatTail.jetProduct_nonneg (heatJetBound_nonneg hh) (heatJetBound_nonneg hh) n |
| 115 | have hb : |ParametricHeatTail.jetProduct (fun i => heatJet h i ν v) (fun i => heatJet h i ν v) n| ≤ B := by |
| 116 | simpa only [div_one] using ParametricHeatTail.jetProduct_bound (X := 1) le_rfl |
| 117 | (heatJetBound_nonneg hh) (heatJetBound_nonneg hh) |
| 118 | (fun i => by simpa only [div_one] using heatJet_bound hh hν.1 hv.le i) |
| 119 | (fun i => by simpa only [div_one] using heatJet_bound hh hν.1 hv.le i) n |
| 120 | rw [Real.norm_eq_abs, heatPressureJet, abs_mul, pressureWeight, |
| 121 | abs_of_nonneg (Real.rpow_nonneg (zero_lt_one.trans hv).le _)] |
| 122 | exact mul_le_mul_of_nonneg_left hb (Real.rpow_nonneg (zero_lt_one.trans hv).le _) |
| 123 | |
| 124 | theorem heatPressureJet_measurable {h : ℝ} (hh : 0 < h) (n : ℕ) {ν : ℝ} (hν : 0 ≤ ν) : |
| 125 | AEStronglyMeasurable (heatPressureJet h n ν) (volume.restrict (Ioi (1 : ℝ))) := |
| 126 | ((heatPressureJet_continuousOn hh hν n).mono (Ioi_subset_Ioi zero_le_one)).aestronglyMeasurable |
| 127 | measurableSet_Ioi |
| 128 | |
| 129 | theorem heatPressureJet_zero (h ν v : ℝ) : |
| 130 | heatPressureJet h 0 ν v = pressureWeight h v * RadialHeatProfile.profile (1 + h) (2 * ν / v) ^ 2 := by |
| 131 | simp only [heatPressureJet, ParametricHeatTail.jetProduct, heatJet_zero, pow_two] |
| 132 | |
| 133 | /-- Every derivative of the heat-only improper integral is dominated by an |
| 134 | integrable power, uniformly all the way to zero diffusion. -/ |
| 135 | theorem heatPressureFactor_contDiffOn {h : ℝ} (hh : 0 < h) : |
| 136 | ContDiffOn ℝ ∞ (heatPressureFactor h) (Ici 0) := by |
| 137 | have hj : ∀ᵐ v ∂volume.restrict (Ioi (1 : ℝ)), ∀ n ν, 0 ≤ ν → |
| 138 | HasDerivWithinAt (fun u => heatPressureJet h n u v) |
| 139 | (heatPressureJet h (n + 1) ν v) (Ici 0) ν := by |
| 140 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 141 | exact fun n ν hν => heatPressureJet_hasDerivWithinAt hh (zero_lt_one.trans hv) hν n |
| 142 | have h := ParametricHeatTail.contDiffOn_integral_chain hj |
| 143 | (fun n ν hν => heatPressureJet_measurable hh n hν) (heatPressureJet_dominated hh) |
| 144 | simp only [heatPressureJet_zero] at h ⊢ |
| 145 | exact h |
| 146 | |
| 147 | /-! ## The compact taper correction -/ |
| 148 | |
| 149 | noncomputable def heatDensity (h ν v : ℝ) : ℝ := |
| 150 | pressureWeight h v * RadialHeatProfile.profile (1 + h) (2 * ν / v) ^ 2 |
| 151 | |
| 152 | noncomputable def taperedDensity (h : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) (v : ℝ) : ℝ := |
| 153 | heatDensity h p.1 v * f (p.2 + Real.log v) ^ 2 |
| 154 | |
| 155 | noncomputable def deficitDensity (h : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) (v : ℝ) : ℝ := |
| 156 | heatDensity h p.1 v * (1 - f (p.2 + Real.log v) ^ 2) |
| 157 | |
| 158 | noncomputable def taperedPressureFactor (h : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 159 | ∫ v in Ioi (1 : ℝ), taperedDensity h f p v |
| 160 | |
| 161 | noncomputable def compactDeficit (h : ℝ) (f : ℝ → ℝ) (B : ℝ) (p : ℝ × ℝ) : ℝ := |
| 162 | (B - 1) * ∫ u in (0 : ℝ)..1, deficitDensity h f p (1 + (B - 1) * u) |
| 163 | |
| 164 | theorem heatDensity_continuousOn {h ν : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) : |
| 165 | ContinuousOn (heatDensity h ν) (Ioi 0) := by |
| 166 | have he : heatDensity h ν = heatPressureJet h 0 ν := |
| 167 | funext fun v => (heatPressureJet_zero h ν v).symm |
| 168 | rw [he] |
| 169 | exact heatPressureJet_continuousOn hh hν 0 |
| 170 | |
| 171 | theorem heatDensity_bounds {h ν v : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) (hv : 0 < v) : |
| 172 | 0 ≤ heatDensity h ν v ∧ heatDensity h ν v ≤ pressureWeight h v := by |
| 173 | have hw : 0 ≤ pressureWeight h v := Real.rpow_nonneg hv.le _ |
| 174 | have hH := RadialHeatProfile.profile_pos (a := 1 + h) (by linarith) |
| 175 | (show 0 ≤ 2 * ν / v by positivity) |
| 176 | have hH1 := RadialHeatProfile.profile_le_one (a := 1 + h) (by linarith) |
| 177 | (show 0 ≤ 2 * ν / v by positivity) |
| 178 | exact ⟨mul_nonneg hw (sq_nonneg _), |
| 179 | (mul_le_mul_of_nonneg_left (show RadialHeatProfile.profile (1 + h) (2 * ν / v) ^ 2 ≤ 1 by |
| 180 | nlinarith) hw).trans_eq (mul_one _)⟩ |
| 181 | |
| 182 | theorem heatDensity_integrable {h ν : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) : |
| 183 | IntegrableOn (heatDensity h ν) (Ioi (1 : ℝ)) := by |
| 184 | apply (integrableOn_Ioi_rpow_of_lt |
| 185 | (by dsimp [amplitudeExponent]; linarith : -2 * amplitudeExponent h - 1 < -1) |
| 186 | zero_lt_one).mono' |
| 187 | · exact ((heatDensity_continuousOn hh hν).mono (Ioi_subset_Ioi zero_le_one)).aestronglyMeasurable |
| 188 | measurableSet_Ioi |
| 189 | · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 190 | rw [Real.norm_eq_abs, abs_of_nonneg (heatDensity_bounds hh hν (zero_lt_one.trans hv)).1] |
| 191 | exact (heatDensity_bounds hh hν (zero_lt_one.trans hv)).2 |
| 192 | |
| 193 | theorem taperedDensity_continuousOn {h ν y : ℝ} {f : ℝ → ℝ} (hh : 0 < h) |
| 194 | (hν : 0 ≤ ν) (hf : Continuous f) : |
| 195 | ContinuousOn (taperedDensity h f (ν, y)) (Ioi 0) := by |
| 196 | apply (heatDensity_continuousOn hh hν).mul |
| 197 | exact (hf.comp_continuousOn (continuousOn_const.add |
| 198 | (Real.continuousOn_log.mono (fun v hv => ne_of_gt hv)))).pow 2 |
| 199 | |
| 200 | theorem taperedDensity_integrable {h ν y : ℝ} {f : ℝ → ℝ} (hh : 0 < h) |
| 201 | (hν : 0 ≤ ν) (hf : Continuous f) (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) : |
| 202 | IntegrableOn (taperedDensity h f (ν, y)) (Ioi (1 : ℝ)) := by |
| 203 | apply (heatDensity_integrable hh hν).mono' |
| 204 | · exact ((taperedDensity_continuousOn hh hν hf).mono |
| 205 | (Ioi_subset_Ioi zero_le_one)).aestronglyMeasurable measurableSet_Ioi |
| 206 | · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 207 | have hd := (heatDensity_bounds hh hν (zero_lt_one.trans hv)).1 |
| 208 | have hsq : f (y + Real.log v) ^ 2 ≤ 1 := by |
| 209 | nlinarith [(hb (y + Real.log v)).1, (hb (y + Real.log v)).2] |
| 210 | rw [Real.norm_eq_abs, taperedDensity, abs_of_nonneg (mul_nonneg hd (sq_nonneg _))] |
| 211 | exact (mul_le_mul_of_nonneg_left hsq hd).trans_eq (mul_one _) |
| 212 | |
| 213 | theorem deficitDensity_integrable {h ν y : ℝ} {f : ℝ → ℝ} (hh : 0 < h) |
| 214 | (hν : 0 ≤ ν) (hf : Continuous f) (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) : |
| 215 | IntegrableOn (deficitDensity h f (ν, y)) (Ioi (1 : ℝ)) := by |
| 216 | have he : deficitDensity h f (ν, y) = heatDensity h ν - taperedDensity h f (ν, y) := by |
| 217 | funext v |
| 218 | simp only [deficitDensity, taperedDensity, Pi.sub_apply] |
| 219 | ring |
| 220 | rw [he] |
| 221 | exact (heatDensity_integrable hh hν).sub (taperedDensity_integrable hh hν hf hb) |
| 222 | |
| 223 | theorem compactDeficit_eq_interval (h B : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) : |
| 224 | compactDeficit h f B p = ∫ v in (1 : ℝ)..B, deficitDensity h f p v := by |
| 225 | simp [compactDeficit, add_comm] |
| 226 | |
| 227 | theorem integral_tail_eq_interval {g : ℝ → ℝ} {a B : ℝ} (hB : a ≤ B) |
| 228 | (hg : ∀ v, B < v → g v = 0) : (∫ v in Ioi a, g v) = ∫ v in a..B, g v := by |
| 229 | rw [intervalIntegral.integral_of_le hB, ← Ioc_union_Ioi_eq_Ioi hB] |
| 230 | exact integral_union_eq_left_of_forall measurableSet_Ioi hg |
| 231 | |
| 232 | theorem deficitDensity_zero {h B Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 233 | (hB : 0 < B) (hy : Y ≤ p.2 + Real.log B) (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 234 | {v : ℝ} (hv : B < v) : deficitDensity h f p v = 0 := by |
| 235 | have hyv : Y ≤ p.2 + Real.log v := hy.trans |
| 236 | (add_le_add_right (Real.log_le_log hB hv.le) _) |
| 237 | simp [deficitDensity, hplateau _ hyv] |
| 238 | |
| 239 | theorem taperedPressureFactor_eq {h B Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 240 | (hh : 0 < h) (hν : 0 ≤ p.1) (hf : Continuous f) |
| 241 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hB : 1 ≤ B) |
| 242 | (hy : Y ≤ p.2 + Real.log B) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 243 | taperedPressureFactor h f p = heatPressureFactor h p.1 - compactDeficit h f B p := by |
| 244 | have hd := deficitDensity_integrable hh hν hf hb (y := p.2) |
| 245 | have he : taperedDensity h f p = heatDensity h p.1 - deficitDensity h f p := by |
| 246 | funext v |
| 247 | simp only [taperedDensity, deficitDensity, Pi.sub_apply] |
| 248 | ring |
| 249 | rw [taperedPressureFactor, he] |
| 250 | simp only [Pi.sub_apply] |
| 251 | rw [integral_sub (heatDensity_integrable hh hν) hd, |
| 252 | integral_tail_eq_interval hB |
| 253 | (fun v hv => deficitDensity_zero (zero_lt_one.trans_le hB) hy hplateau hv), |
| 254 | ← compactDeficit_eq_interval] |
| 255 | rfl |
| 256 | |
| 257 | theorem deficitDensity_contDiffAt {h : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} {v : ℝ} |
| 258 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hν : 0 < p.1) (hv : 0 < v) : |
| 259 | ContDiffAt ℝ ∞ (fun z : (ℝ × ℝ) × ℝ => deficitDensity h f z.1 z.2) (p, v) := by |
| 260 | have ha : ContDiffAt ℝ ∞ (fun z : (ℝ × ℝ) × ℝ => 2 * z.1.1 / z.2) (p, v) := |
| 261 | (contDiffAt_const.mul contDiffAt_fst.fst).div contDiffAt_snd hv.ne' |
| 262 | have hH : ContDiffAt ℝ ∞ (RadialHeatProfile.profile (1 + h)) (2 * p.1 / v) := |
| 263 | (RadialHeatProfile.profile_contDiffOn (by linarith)).contDiffAt |
| 264 | (Ici_mem_nhds (by positivity : 0 < 2 * p.1 / v)) |
| 265 | have hw : ContDiffAt ℝ ∞ (fun z : (ℝ × ℝ) × ℝ => pressureWeight h z.2) (p, v) := |
| 266 | contDiffAt_snd.rpow_const_of_ne hv.ne' |
| 267 | have hy : ContDiffAt ℝ ∞ (fun z : (ℝ × ℝ) × ℝ => z.1.2 + Real.log z.2) (p, v) := |
| 268 | contDiffAt_fst.snd.add (contDiffAt_snd.log hv.ne') |
| 269 | exact (hw.mul ((hH.comp (p, v) ha).pow 2)).mul |
| 270 | (contDiffAt_const.sub ((hf.contDiffAt.comp (p, v) hy).pow 2)) |
| 271 | |
| 272 | theorem compactDeficit_integrand_smooth {h B : ℝ} {f : ℝ → ℝ} |
| 273 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hB : 1 ≤ B) |
| 274 | (p : ℝ × ℝ) (hν : 0 < p.1) (u : ℝ) (hu : u ∈ Icc (0 : ℝ) 1) : |
| 275 | ContDiffAt ℝ ∞ |
| 276 | (fun z : (ℝ × ℝ) × ℝ => deficitDensity h f z.1 (1 + (B - 1) * z.2)) (p, u) := by |
| 277 | have hv : 0 < 1 + (B - 1) * u := by nlinarith [mul_nonneg (sub_nonneg.mpr hB) hu.1] |
| 278 | exact (deficitDensity_contDiffAt hh hf hν hv).comp (p, u) |
| 279 | (contDiffAt_fst.prodMk (contDiffAt_const.add (contDiffAt_const.mul contDiffAt_snd))) |
| 280 | |
| 281 | theorem compactDeficit_contDiffOn {h B : ℝ} {f : ℝ → ℝ} |
| 282 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hB : 1 ≤ B) : |
| 283 | ContDiffOn ℝ ∞ (compactDeficit h f B) {p : ℝ × ℝ | 0 < p.1} := by |
| 284 | apply contDiffOn_const.mul |
| 285 | apply ProfileHistories.compact_parameter_integral_smooth (isOpen_lt continuous_const continuous_fst) |
| 286 | exact fun p hp u hu => compactDeficit_integrand_smooth hh hf hB p hp u hu |
| 287 | |
| 288 | /-- Genuine joint smoothness of the tapered improper integral. Only the compact |
| 289 | taper correction depends on the logarithmic radial coordinate. -/ |
| 290 | theorem taperedPressureFactor_contDiffAt {h Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 291 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) |
| 292 | (hplateau : ∀ y, Y ≤ y → f y = 1) (hν : 0 < p.1) : |
| 293 | ContDiffAt ℝ ∞ (taperedPressureFactor h f) p := by |
| 294 | let B := Real.exp (max 1 (Y - p.2 + 1)) |
| 295 | have hB : 1 ≤ B := Real.one_le_exp (le_max_left _ _ |>.trans' zero_le_one) |
| 296 | have hlog : Real.log B = max 1 (Y - p.2 + 1) := Real.log_exp _ |
| 297 | have hy : Y < p.2 + Real.log B := by rw [hlog]; linarith [le_max_right 1 (Y - p.2 + 1)] |
| 298 | have hnear : ∀ᶠ q : ℝ × ℝ in 𝓝 p, 0 < q.1 ∧ Y < q.2 + Real.log B := |
| 299 | (continuousAt_fst.eventually (Ioi_mem_nhds hν)).and |
| 300 | ((continuousAt_snd.add_const _).eventually (Ioi_mem_nhds hy)) |
| 301 | have he : taperedPressureFactor h f =ᶠ[𝓝 p] |
| 302 | (fun q : ℝ × ℝ => heatPressureFactor h q.1 - compactDeficit h f B q) := by |
| 303 | filter_upwards [hnear] with q hq |
| 304 | exact taperedPressureFactor_eq hh hq.1.le hf.continuous hb hB hq.2.le hplateau |
| 305 | have hheat : ContDiffAt ℝ ∞ (fun q : ℝ × ℝ => heatPressureFactor h q.1) p := |
| 306 | ((heatPressureFactor_contDiffOn hh).contDiffAt (Ici_mem_nhds hν)).comp p contDiffAt_fst |
| 307 | have hdef : ContDiffAt ℝ ∞ (compactDeficit h f B) p := |
| 308 | (compactDeficit_contDiffOn hh hf hB).contDiffAt |
| 309 | ((isOpen_lt continuous_const continuous_fst).mem_nhds hν) |
| 310 | exact (hheat.sub hdef).congr_of_eventuallyEq he |
| 311 | |
| 312 | /-! ## Actual differentiation in the logarithmic radial parameter -/ |
| 313 | |
| 314 | noncomputable def taperDerivativeDensity (h : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) (v : ℝ) : ℝ := |
| 315 | heatDensity h p.1 v * f (p.2 + Real.log v) * deriv f (p.2 + Real.log v) |
| 316 | |
| 317 | noncomputable def taperDerivativeIntegral (h : ℝ) (f : ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 318 | ∫ v in Ioi (1 : ℝ), taperDerivativeDensity h f p v |
| 319 | |
| 320 | theorem parameterPartial_hasDerivAt {G : (ℝ × ℝ) → ℝ} {p : ℝ × ℝ} |
| 321 | (hG : DifferentiableAt ℝ G p) : |
| 322 | HasDerivAt (fun y => G (p.1, y)) (ProfileHistories.parameterPartial G p) p.2 := by |
| 323 | simpa only [ProfileHistories.parameterPartial, Function.comp_def, id_eq, Prod.eta] using |
| 324 | hG.hasFDerivAt.comp_hasDerivAt p.2 |
| 325 | ((hasDerivAt_const p.2 p.1).prodMk (hasDerivAt_id p.2)) |
| 326 | |
| 327 | theorem deficitDensity_hasDerivAt_y (h ν v y : ℝ) {f : ℝ → ℝ} |
| 328 | (hf : DifferentiableAt ℝ f (y + Real.log v)) : |
| 329 | HasDerivAt (fun u => deficitDensity h f (ν, u) v) |
| 330 | (-2 * taperDerivativeDensity h f (ν, y) v) y := by |
| 331 | have hd := (((hf.hasDerivAt.comp y ((hasDerivAt_id y).add_const (Real.log v))).pow 2).const_sub 1).const_mul |
| 332 | (heatDensity h ν v) |
| 333 | convert! hd using 1 |
| 334 | simp only [taperDerivativeDensity, Function.comp_apply, id_eq, mul_one, pow_one, |
| 335 | Nat.cast_ofNat, Nat.reduceSub] |
| 336 | ring |
| 337 | |
| 338 | theorem deriv_zero_after_plateau {f : ℝ → ℝ} {Y y : ℝ} |
| 339 | (hplateau : ∀ x, Y ≤ x → f x = 1) (hy : Y < y) : deriv f y = 0 := by |
| 340 | have he : f =ᶠ[𝓝 y] (fun _ => (1 : ℝ)) := by |
| 341 | filter_upwards [Ioi_mem_nhds hy] with x hx |
| 342 | exact hplateau x (show Y < x from hx).le |
| 343 | simpa only [deriv_const] using he.deriv_eq |
| 344 | |
| 345 | theorem taperDerivativeDensity_zero {h B Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 346 | (hB : 0 < B) (hy : Y ≤ p.2 + Real.log B) (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 347 | {v : ℝ} (hv : B < v) : taperDerivativeDensity h f p v = 0 := by |
| 348 | have hyv : Y < p.2 + Real.log v := hy.trans_lt |
| 349 | (add_lt_add_right (Real.log_lt_log hB hv) _) |
| 350 | simp only [taperDerivativeDensity, deriv_zero_after_plateau hplateau hyv, mul_zero] |
| 351 | |
| 352 | theorem compactDeficit_hasDerivAt_y {h B : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 353 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hB : 1 ≤ B) (hν : 0 < p.1) : |
| 354 | HasDerivAt (fun y => compactDeficit h f B (p.1, y)) |
| 355 | (-2 * (B - 1) * ∫ u in (0 : ℝ)..1, |
| 356 | taperDerivativeDensity h f p (1 + (B - 1) * u)) p.2 := by |
| 357 | let G : (ℝ × ℝ) → ℝ → ℝ := fun p u => deficitDensity h f p (1 + (B - 1) * u) |
| 358 | have hs : IsOpen {p : ℝ × ℝ | 0 < p.1} := isOpen_lt continuous_const continuous_fst |
| 359 | have hG : ∀ q ∈ {p : ℝ × ℝ | 0 < p.1}, ∀ u ∈ Icc (0 : ℝ) 1, |
| 360 | ContDiffAt ℝ ∞ (fun z : (ℝ × ℝ) × ℝ => G z.1 z.2) (q, u) := |
| 361 | fun q hq u hu => compactDeficit_integrand_smooth hh hf hB q hq u hu |
| 362 | have hI := ProfileHistories.compact_parameter_integral_smooth hs hG |
| 363 | have hd := (parameterPartial_hasDerivAt |
| 364 | ((hI.contDiffAt (hs.mem_nhds hν)).differentiableAt (by simp))).const_mul (B - 1) |
| 365 | have hpartial := ProfileHistories.compact_parameter_integral_parameterPartial hs hG hν |
| 366 | have he : (∫ u in (0 : ℝ)..1, ProfileHistories.parameterPartial (fun q => G q u) p) = |
| 367 | -2 * ∫ u in (0 : ℝ)..1, taperDerivativeDensity h f p (1 + (B - 1) * u) := by |
| 368 | rw [← intervalIntegral.integral_const_mul] |
| 369 | apply intervalIntegral.integral_congr |
| 370 | intro u hu |
| 371 | rw [uIcc_of_le zero_le_one] at hu |
| 372 | have hdiff : DifferentiableAt ℝ (fun q => G q u) p := |
| 373 | ((hG p hν u hu).comp p (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt (by simp) |
| 374 | exact (parameterPartial_hasDerivAt hdiff).unique |
| 375 | (deficitDensity_hasDerivAt_y h p.1 (1 + (B - 1) * u) p.2 |
| 376 | (hf.differentiable (by simp) _)) |
| 377 | rw [hpartial, he] at hd |
| 378 | convert! hd using 1 |
| 379 | ring |
| 380 | |
| 381 | /-- The derivative is obtained from the defining improper integral; the |
| 382 | derivative integrand is compactly supported by the actual taper plateau. -/ |
| 383 | theorem taperedPressureFactor_hasDerivAt_y {h Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 384 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) |
| 385 | (hplateau : ∀ y, Y ≤ y → f y = 1) (hν : 0 < p.1) : |
| 386 | HasDerivAt (fun y => taperedPressureFactor h f (p.1, y)) |
| 387 | (2 * taperDerivativeIntegral h f p) p.2 := by |
| 388 | let B := Real.exp (max 1 (Y - p.2 + 1)) |
| 389 | have hB : 1 ≤ B := Real.one_le_exp (le_max_left _ _ |>.trans' zero_le_one) |
| 390 | have hlog : Real.log B = max 1 (Y - p.2 + 1) := Real.log_exp _ |
| 391 | have hy : Y < p.2 + Real.log B := by rw [hlog]; linarith [le_max_right 1 (Y - p.2 + 1)] |
| 392 | have he : (fun y => taperedPressureFactor h f (p.1, y)) =ᶠ[𝓝 p.2] |
| 393 | (fun y => heatPressureFactor h p.1 - compactDeficit h f B (p.1, y)) := by |
| 394 | filter_upwards [(continuousAt_id.add_const (Real.log B)).eventually (Ioi_mem_nhds hy)] with y hy' |
| 395 | exact taperedPressureFactor_eq hh hν.le hf.continuous hb hB (show Y < y + Real.log B from hy').le hplateau |
| 396 | have hi : taperDerivativeIntegral h f p = |
| 397 | (B - 1) * ∫ u in (0 : ℝ)..1, taperDerivativeDensity h f p (1 + (B - 1) * u) := by |
| 398 | rw [taperDerivativeIntegral, integral_tail_eq_interval hB |
| 399 | (fun v hv => taperDerivativeDensity_zero (zero_lt_one.trans_le hB) hy.le hplateau hv)] |
| 400 | simp [add_comm] |
| 401 | have hd := (compactDeficit_hasDerivAt_y hh hf hB hν).const_sub (heatPressureFactor h p.1) |
| 402 | rw [hi] |
| 403 | convert! hd.congr_of_eventuallyEq he using 1 |
| 404 | ring |
| 405 | |
| 406 | /-! ## Identification with the physical canonical pressure -/ |
| 407 | |
| 408 | noncomputable def pressureCoordinates (h : ℝ) (p : SimilarityProfile.PhysicalPoint) : ℝ × ℝ := |
| 409 | ((1 - p.1) / p.2.1, Real.log (SimilarityProfile.X h p)) |
| 410 | |
| 411 | theorem swirlCoefficient_sq (C h : ℝ) (f : ℝ → ℝ) {p : SimilarityProfile.PhysicalPoint} |
| 412 | (hs : 0 < p.2.1) : |
| 413 | TerminalStress.swirlCoefficient C h f p ^ 2 = |
| 414 | (C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h - 1) * |
| 415 | RadialHeatProfile.profile (1 + h) (2 * (1 - p.1) / p.2.1) ^ 2 * |
| 416 | f (Real.log (SimilarityProfile.X h p)) ^ 2 := by |
| 417 | have hexp : RadialHeatProfile.spatialExponent (1 + h) = -amplitudeExponent h := by |
| 418 | unfold RadialHeatProfile.spatialExponent amplitudeExponent |
| 419 | ring |
| 420 | have hp : (p.2.1 ^ (-amplitudeExponent h)) ^ (2 : ℕ) = p.2.1 ^ (-2 * amplitudeExponent h) := by |
| 421 | rw [← Real.rpow_natCast, ← Real.rpow_mul hs.le] |
| 422 | congr 1 |
| 423 | ring |
| 424 | have hpow : p.2.1 ^ (-2 * amplitudeExponent h - 1) = |
| 425 | p.2.1 ^ (-2 * amplitudeExponent h) / p.2.1 := by |
| 426 | rw [Real.rpow_sub hs, Real.rpow_one] |
| 427 | unfold TerminalStress.swirlCoefficient TerminalStress.physicalHeat RadialHeatProfile.spatialProfile |
| 428 | TerminalStress.flattening |
| 429 | rw [hexp, div_pow, mul_pow, mul_pow, mul_pow, hp, |
| 430 | Real.sq_sqrt (by positivity : 0 ≤ 2 * p.2.1), hpow] |
| 431 | field_simp [hs.ne'] |
| 432 | |
| 433 | theorem swirlCoefficient_sq_scaled (C : ℝ) {h : ℝ} (f : ℝ → ℝ) |
| 434 | {p : SimilarityProfile.PhysicalPoint} (hq : 0 < SimilarityProfile.q h p) |
| 435 | (hs : 0 < p.2.1) {v : ℝ} (hv : 0 < v) : |
| 436 | TerminalStress.swirlCoefficient C h f (p.1, (p.2.1 * v, p.2.2)) ^ 2 = |
| 437 | (C ^ 2 / 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1)) * |
| 438 | taperedDensity h f (pressureCoordinates h p) v := by |
| 439 | rw [swirlCoefficient_sq C h f (mul_pos hs hv), Real.mul_rpow hs.le hv.le] |
| 440 | have harg : 2 * (1 - p.1) / (p.2.1 * v) = 2 * ((1 - p.1) / p.2.1) / v := by ring |
| 441 | have hlog : Real.log (SimilarityProfile.X h (p.1, (p.2.1 * v, p.2.2))) = |
| 442 | Real.log (SimilarityProfile.X h p) + Real.log v := by |
| 443 | change Real.log (p.2.1 * v / SimilarityProfile.q h p) = |
| 444 | Real.log (p.2.1 / SimilarityProfile.q h p) + Real.log v |
| 445 | rw [show p.2.1 * v / SimilarityProfile.q h p = (p.2.1 / SimilarityProfile.q h p) * v by ring, |
| 446 | Real.log_mul (div_pos hs hq).ne' hv.ne'] |
| 447 | rw [harg, hlog] |
| 448 | unfold taperedDensity heatDensity pressureWeight pressureCoordinates |
| 449 | ring |
| 450 | |
| 451 | theorem swirlCoefficient_sq_integrable (C : ℝ) {h : ℝ} {f : ℝ → ℝ} |
| 452 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 453 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : Continuous f) |
| 454 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) : |
| 455 | IntegrableOn (fun s => TerminalStress.swirlCoefficient C h f (p.1, (s, p.2.2)) ^ 2) |
| 456 | (Ioi p.2.1) := by |
| 457 | have hν : 0 ≤ (pressureCoordinates h p).1 := (div_pos (sub_pos.mpr ht) hs).le |
| 458 | have hi := (taperedDensity_integrable hh hν hf hb (y := (pressureCoordinates h p).2)).const_mul |
| 459 | (C ^ 2 / 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1)) |
| 460 | have hscl : IntegrableOn |
| 461 | (fun v => TerminalStress.swirlCoefficient C h f (p.1, (p.2.1 * v, p.2.2)) ^ 2) |
| 462 | (Ioi (1 : ℝ)) := by |
| 463 | apply hi.congr |
| 464 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 465 | exact (swirlCoefficient_sq_scaled C f (SimilarityProfile.q_pos hh hh1 ht) hs |
| 466 | (zero_lt_one.trans hv)).symm |
| 467 | simpa only [mul_one] using (integrableOn_Ioi_comp_mul_left_iff |
| 468 | (fun s => TerminalStress.swirlCoefficient C h f (p.1, (s, p.2.2)) ^ 2) 1 hs).mp hscl |
| 469 | |
| 470 | /-- Scaling is performed in the physical radial integral. In particular the |
| 471 | argument of the heat profile is `2(1-t)/s`, rather than a fixed diffusion parameter. -/ |
| 472 | theorem canonicalPressure_eq (C : ℝ) {h : ℝ} (f : ℝ → ℝ) |
| 473 | {p : SimilarityProfile.PhysicalPoint} (hq : 0 < SimilarityProfile.q h p) (hs : 0 < p.2.1) : |
| 474 | TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C h f) p = |
| 475 | -(C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h) * |
| 476 | taperedPressureFactor h f (pressureCoordinates h p) := by |
| 477 | have hscl := integral_comp_mul_left_Ioi |
| 478 | (fun s => TerminalStress.swirlCoefficient C h f (p.1, (s, p.2.2)) ^ 2) 1 hs |
| 479 | have he : (∫ s in Ioi p.2.1, |
| 480 | TerminalStress.swirlCoefficient C h f (p.1, (s, p.2.2)) ^ 2) = |
| 481 | p.2.1 * (∫ v in Ioi (1 : ℝ), |
| 482 | TerminalStress.swirlCoefficient C h f (p.1, (p.2.1 * v, p.2.2)) ^ 2) := by |
| 483 | rw [hscl] |
| 484 | simp only [mul_one, smul_eq_mul] |
| 485 | rw [← mul_assoc, mul_inv_cancel₀ hs.ne', one_mul] |
| 486 | have hd : (∫ v in Ioi (1 : ℝ), |
| 487 | TerminalStress.swirlCoefficient C h f (p.1, (p.2.1 * v, p.2.2)) ^ 2) = |
| 488 | (C ^ 2 / 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1)) * |
| 489 | taperedPressureFactor h f (pressureCoordinates h p) := by |
| 490 | rw [taperedPressureFactor, ← integral_const_mul] |
| 491 | apply integral_congr_ae |
| 492 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 493 | exact swirlCoefficient_sq_scaled C f hq hs (zero_lt_one.trans hv) |
| 494 | rw [TerminalStress.canonicalPressure, he, hd, Real.rpow_sub hs, Real.rpow_one] |
| 495 | field_simp |
| 496 | |
| 497 | theorem pressureCoordinates_contDiffAt {h : ℝ} {p : SimilarityProfile.PhysicalPoint} |
| 498 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 499 | ContDiffAt ℝ ∞ (pressureCoordinates h) p := |
| 500 | ((contDiffAt_const.sub contDiffAt_fst).div contDiffAt_snd.fst hs.ne').prodMk |
| 501 | (((SimilarityProfile.inner_smoothAt hh hh1 ht).fst).log |
| 502 | (div_pos hs (SimilarityProfile.q_pos hh hh1 ht)).ne') |
| 503 | |
| 504 | /-- The actual canonical pressure is jointly smooth throughout the presingular, |
| 505 | positive-radius domain. No differentiability of the pressure is an input. -/ |
| 506 | theorem canonicalPressure_contDiffAt (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 507 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 508 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 509 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 510 | ContDiffAt ℝ ∞ (TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C h f)) p := by |
| 511 | have harg : 0 < (pressureCoordinates h p).1 := div_pos (sub_pos.mpr ht) hs |
| 512 | have hfac := (taperedPressureFactor_contDiffAt hh hf hb hplateau harg).comp p |
| 513 | (pressureCoordinates_contDiffAt hh hh1 ht hs) |
| 514 | have hm : ContDiffAt ℝ ∞ (fun p : SimilarityProfile.PhysicalPoint => |
| 515 | -(C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h)) p := |
| 516 | contDiffAt_const.mul (contDiffAt_snd.fst.rpow_const_of_ne hs.ne') |
| 517 | have he : TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C h f) =ᶠ[𝓝 p] |
| 518 | (fun p => -(C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h) * |
| 519 | taperedPressureFactor h f (pressureCoordinates h p)) := by |
| 520 | filter_upwards [continuousAt_fst.eventually (Iio_mem_nhds ht), |
| 521 | continuousAt_snd.fst.eventually (Ioi_mem_nhds hs)] with q hqt hqs |
| 522 | exact canonicalPressure_eq C f (SimilarityProfile.q_pos hh hh1 hqt) hqs |
| 523 | exact (hm.mul hfac).congr_of_eventuallyEq he |
| 524 | |
| 525 | /-! ## The axial derivative of the physical pressure -/ |
| 526 | |
| 527 | noncomputable def logScaleDerivative (h : ℝ) (p : SimilarityProfile.PhysicalPoint) : ℝ := |
| 528 | CoordinateAlgebra.qAxial (SimilarityProfile.q h p) h (SimilarityProfile.eta h p) / |
| 529 | SimilarityProfile.q h p |
| 530 | |
| 531 | theorem logX_hasDerivAt_z {h : ℝ} {p : SimilarityProfile.PhysicalPoint} |
| 532 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 533 | HasDerivAt (fun z => Real.log (SimilarityProfile.X h (p.1, (p.2.1, z)))) |
| 534 | (-logScaleDerivative h p) p.2.2 := by |
| 535 | have hq := SimilarityProfile.q_pos hh hh1 ht |
| 536 | have hX : 0 < SimilarityProfile.X h p := div_pos hs hq |
| 537 | have hd := (((hasDerivAt_const p.2.2 p.2.1).fun_div |
| 538 | (SimilarityProfile.q_hasDerivAt_z hh hh1 ht) hq.ne').log hX.ne') |
| 539 | change HasDerivAt (fun z => Real.log (p.2.1 / SimilarityProfile.q h (p.1, (p.2.1, z)))) |
| 540 | (-logScaleDerivative h p) p.2.2 |
| 541 | apply hd.congr_deriv |
| 542 | unfold logScaleDerivative |
| 543 | field_simp [hq.ne', hs.ne'] ; ring |
| 544 | |
| 545 | theorem physicalHeat_sq_div (C h : ℝ) {p : SimilarityProfile.PhysicalPoint} (hs : 0 < p.2.1) : |
| 546 | TerminalStress.physicalHeat C (1 + h) p ^ 2 / p.2.1 = |
| 547 | C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1) * |
| 548 | RadialHeatProfile.profile (1 + h) (2 * (1 - p.1) / p.2.1) ^ 2 := by |
| 549 | have he := swirlCoefficient_sq C h (fun _ => 1) hs |
| 550 | simp only [TerminalStress.swirlCoefficient, TerminalStress.flattening, mul_one, |
| 551 | one_pow, div_pow, Real.sq_sqrt (show 0 ≤ 2 * p.2.1 by positivity)] at he |
| 552 | have he' := congrArg (fun a : ℝ => 2 * a) he |
| 553 | convert! he' using 1 <;> ring |
| 554 | |
| 555 | noncomputable def axialPressureIntegral (C h : ℝ) (f : ℝ → ℝ) |
| 556 | (p : SimilarityProfile.PhysicalPoint) : ℝ := |
| 557 | ∫ s in Ioi p.2.1, TerminalStress.physicalHeat C (1 + h) (p.1, (s, p.2.2)) ^ 2 * |
| 558 | f (Real.log (s / SimilarityProfile.q h p)) * |
| 559 | deriv f (Real.log (s / SimilarityProfile.q h p)) / s |
| 560 | |
| 561 | theorem axialPressureIntegral_eq (C : ℝ) {h : ℝ} (f : ℝ → ℝ) |
| 562 | {p : SimilarityProfile.PhysicalPoint} (hq : 0 < SimilarityProfile.q h p) (hs : 0 < p.2.1) : |
| 563 | axialPressureIntegral C h f p = C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h) * |
| 564 | taperDerivativeIntegral h f (pressureCoordinates h p) := by |
| 565 | let G : ℝ → ℝ := fun s => TerminalStress.physicalHeat C (1 + h) (p.1, (s, p.2.2)) ^ 2 * |
| 566 | f (Real.log (s / SimilarityProfile.q h p)) * deriv f (Real.log (s / SimilarityProfile.q h p)) / s |
| 567 | have he : (∫ s in Ioi p.2.1, G s) = p.2.1 * ∫ v in Ioi (1 : ℝ), G (p.2.1 * v) := by |
| 568 | rw [integral_comp_mul_left_Ioi G 1 hs] |
| 569 | simp only [mul_one, smul_eq_mul] |
| 570 | rw [← mul_assoc, mul_inv_cancel₀ hs.ne', one_mul] |
| 571 | have hscale {v : ℝ} (hv : 0 < v) : G (p.2.1 * v) = |
| 572 | (C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1)) * |
| 573 | taperDerivativeDensity h f (pressureCoordinates h p) v := by |
| 574 | have hlog : Real.log (p.2.1 * v / SimilarityProfile.q h p) = |
| 575 | Real.log (SimilarityProfile.X h p) + Real.log v := by |
| 576 | rw [show p.2.1 * v / SimilarityProfile.q h p = (p.2.1 / SimilarityProfile.q h p) * v by ring, |
| 577 | Real.log_mul (div_pos hs hq).ne' hv.ne'] |
| 578 | rfl |
| 579 | have harg : 2 * (1 - p.1) / (p.2.1 * v) = 2 * ((1 - p.1) / p.2.1) / v := by ring |
| 580 | change _ = _ |
| 581 | dsimp only [G] |
| 582 | rw [show TerminalStress.physicalHeat C (1 + h) (p.1, (p.2.1 * v, p.2.2)) ^ 2 * |
| 583 | f (Real.log (p.2.1 * v / SimilarityProfile.q h p)) * |
| 584 | deriv f (Real.log (p.2.1 * v / SimilarityProfile.q h p)) / (p.2.1 * v) = |
| 585 | (TerminalStress.physicalHeat C (1 + h) (p.1, (p.2.1 * v, p.2.2)) ^ 2 / (p.2.1 * v)) * |
| 586 | f (Real.log (p.2.1 * v / SimilarityProfile.q h p)) * |
| 587 | deriv f (Real.log (p.2.1 * v / SimilarityProfile.q h p)) by ring, |
| 588 | physicalHeat_sq_div C h (mul_pos hs hv), Real.mul_rpow hs.le hv.le, harg, hlog] |
| 589 | unfold taperDerivativeDensity pressureCoordinates heatDensity pressureWeight |
| 590 | ring |
| 591 | unfold axialPressureIntegral |
| 592 | change (∫ s in Ioi p.2.1, G s) = _ |
| 593 | rw [he] |
| 594 | have hi : (∫ v in Ioi (1 : ℝ), G (p.2.1 * v)) = |
| 595 | (C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h - 1)) * |
| 596 | taperDerivativeIntegral h f (pressureCoordinates h p) := by |
| 597 | rw [taperDerivativeIntegral, ← integral_const_mul] |
| 598 | apply integral_congr_ae |
| 599 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 600 | exact hscale (zero_lt_one.trans hv) |
| 601 | rw [hi, Real.rpow_sub hs, Real.rpow_one] |
| 602 | field_simp [hs.ne'] |
| 603 | |
| 604 | theorem canonicalPressure_hasDerivAt_z (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 605 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 606 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 607 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 608 | HasDerivAt (fun z => TerminalStress.canonicalPressure |
| 609 | (TerminalStress.swirlCoefficient C h f) (p.1, (p.2.1, z))) |
| 610 | (logScaleDerivative h p * axialPressureIntegral C h f p) p.2.2 := by |
| 611 | have hd := ((taperedPressureFactor_hasDerivAt_y (p := pressureCoordinates h p) hh hf hb hplateau |
| 612 | (div_pos (sub_pos.mpr ht) hs)).comp p.2.2 (logX_hasDerivAt_z hh hh1 ht hs)).const_mul |
| 613 | (-(C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h)) |
| 614 | have he : (fun z => TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C h f) |
| 615 | (p.1, (p.2.1, z))) = fun z => |
| 616 | (-(C ^ 2 / 2) * p.2.1 ^ (-2 * amplitudeExponent h)) * |
| 617 | taperedPressureFactor h f ((1 - p.1) / p.2.1, |
| 618 | Real.log (SimilarityProfile.X h (p.1, (p.2.1, z)))) := by |
| 619 | funext z |
| 620 | exact canonicalPressure_eq C f (SimilarityProfile.q_pos hh hh1 ht) hs |
| 621 | rw [he, axialPressureIntegral_eq C f (SimilarityProfile.q_pos hh hh1 ht) hs] |
| 622 | convert! hd using 1 |
| 623 | ring |
| 624 | |
| 625 | /-- Exact axial derivative of the canonical pressure, including the dependence |
| 626 | of the heat profile on the physical time and of the taper on `q(t,z)`. -/ |
| 627 | theorem canonicalPressure_partialZ (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 628 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 629 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 630 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 631 | SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 632 | (TerminalStress.swirlCoefficient C h f)) p = |
| 633 | logScaleDerivative h p * axialPressureIntegral C h f p := by |
| 634 | have hP := (canonicalPressure_contDiffAt C hh hh1 ht hs hf hb hplateau).differentiableAt (by simp) |
| 635 | have hd := hP.hasFDerivAt.comp_hasDerivAt p.2.2 |
| 636 | ((hasDerivAt_const p.2.2 p.1).prodMk |
| 637 | ((hasDerivAt_const p.2.2 p.2.1).prodMk (hasDerivAt_id p.2.2))) |
| 638 | have hd' : HasDerivAt (fun z => TerminalStress.canonicalPressure |
| 639 | (TerminalStress.swirlCoefficient C h f) (p.1, (p.2.1, z))) |
| 640 | (SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 641 | (TerminalStress.swirlCoefficient C h f)) p) p.2.2 := by |
| 642 | simpa only [Function.comp_def, id_eq, Prod.eta, SimilarityProfile.partialZ] using hd |
| 643 | exact hd'.unique (canonicalPressure_hasDerivAt_z C hh hh1 ht hs hf hb hplateau) |
| 644 | |
| 645 | /-! ## Quantitative pressure estimates from monotonicity of the heat carrier -/ |
| 646 | |
| 647 | theorem spatialHeat_antitoneOn {h ν : ℝ} (hh : 0 < h) (hν : 0 < ν) : |
| 648 | AntitoneOn (RadialHeatProfile.spatialProfile (1 + h) ν) (Ioi 0) := by |
| 649 | apply antitoneOn_of_deriv_nonpos (convex_Ioi 0) |
| 650 | · intro v hv |
| 651 | exact (RadialHeatProfile.spatialProfile_hasDerivAt_s (by linarith) hν hv).continuousAt.continuousWithinAt |
| 652 | · intro v hv |
| 653 | have hv' : 0 < v := by simpa only [interior_Ioi, Set.mem_Ioi] using hv |
| 654 | exact (RadialHeatProfile.spatialProfile_hasDerivAt_s (by linarith) hν hv').differentiableAt.differentiableWithinAt |
| 655 | · intro v hv |
| 656 | have hv' : 0 < v := by simpa only [interior_Ioi, Set.mem_Ioi] using hv |
| 657 | rw [(RadialHeatProfile.spatialProfile_hasDerivAt_s (by linarith) hν hv').deriv] |
| 658 | exact (RadialHeatProfile.spatialFirst_neg (by linarith) hν hv').le |
| 659 | |
| 660 | theorem heatDensity_eq_profileSq (h ν : ℝ) {v : ℝ} (hv : 0 < v) : |
| 661 | heatDensity h ν v = RadialHeatProfile.spatialProfile (1 + h) ν v ^ 2 / v := by |
| 662 | have he := physicalHeat_sq_div 1 h (p := (1 - ν, (v, 0))) hv |
| 663 | simpa only [TerminalStress.physicalHeat, one_mul, one_pow, sub_sub_cancel, heatDensity, |
| 664 | pressureWeight] using he.symm |
| 665 | |
| 666 | theorem taperDerivativeDensity_continuousOn {h ν y : ℝ} {f : ℝ → ℝ} |
| 667 | (hh : 0 < h) (hν : 0 ≤ ν) (hf : ContDiff ℝ ∞ f) : |
| 668 | ContinuousOn (taperDerivativeDensity h f (ν, y)) (Ioi 0) := by |
| 669 | have hy : ContinuousOn (fun v : ℝ => y + Real.log v) (Ioi 0) := |
| 670 | continuousOn_const.add (Real.continuousOn_log.mono (fun v hv => ne_of_gt hv)) |
| 671 | exact ((heatDensity_continuousOn hh hν).mul (hf.continuous.comp_continuousOn hy)).mul |
| 672 | ((hf.continuous_deriv (by simp)).comp_continuousOn hy) |
| 673 | |
| 674 | theorem taperDerivativeIntegral_bound {h Y : ℝ} {f : ℝ → ℝ} {p : ℝ × ℝ} |
| 675 | (hh : 0 < h) (hf : ContDiff ℝ ∞ f) (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) |
| 676 | (hmono : ∀ y, 0 ≤ deriv f y) (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 677 | (hν : 0 < p.1) : |
| 678 | 0 ≤ taperDerivativeIntegral h f p ∧ |
| 679 | taperDerivativeIntegral h f p ≤ |
| 680 | RadialHeatProfile.profile (1 + h) (2 * p.1) ^ 2 * (1 - f p.2) := by |
| 681 | let g : ℝ → ℝ := fun v => f (p.2 + Real.log v) |
| 682 | let dg : ℝ → ℝ := fun v => deriv f (p.2 + Real.log v) / v |
| 683 | let K : ℝ → ℝ := RadialHeatProfile.spatialProfile (1 + h) p.1 |
| 684 | have hd (v : ℝ) (hv : v ∈ Ici (1 : ℝ)) : HasDerivAt g (dg v) v := by |
| 685 | have hvp : 0 < v := zero_lt_one.trans_le hv |
| 686 | have he := (hf.differentiable (by simp) (p.2 + Real.log v)).hasDerivAt.comp v |
| 687 | ((Real.hasDerivAt_log hvp.ne').const_add p.2) |
| 688 | convert! he using 1 |
| 689 | have hdpos (v : ℝ) (hv : v ∈ Ioi (1 : ℝ)) : 0 ≤ dg v := |
| 690 | div_nonneg (hmono _) (zero_lt_one.trans hv).le |
| 691 | have hg : Tendsto g atTop (𝓝 1) := by |
| 692 | apply tendsto_const_nhds.congr' |
| 693 | filter_upwards [eventually_ge_atTop (Real.exp (Y - p.2))] with v hv |
| 694 | have hvp : 0 < v := (Real.exp_pos _).trans_le hv |
| 695 | have hl : Y - p.2 ≤ Real.log v := by |
| 696 | simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos (Y - p.2)) hv |
| 697 | exact (hplateau (p.2 + Real.log v) (by linarith)).symm |
| 698 | have hdi : IntegrableOn dg (Ioi (1 : ℝ)) := integrableOn_Ioi_deriv_of_nonneg' hd hdpos hg |
| 699 | have hdi_eq : (∫ v in Ioi (1 : ℝ), dg v) = 1 - f p.2 := by |
| 700 | simpa only [g, Real.log_one, add_zero] using integral_Ioi_of_hasDerivAt_of_nonneg' hd hdpos hg |
| 701 | have hK1 : K 1 = RadialHeatProfile.profile (1 + h) (2 * p.1) := by |
| 702 | simp only [K, RadialHeatProfile.spatialProfile, Real.one_rpow, div_one, one_mul] |
| 703 | have hpoint (v : ℝ) (hv : v ∈ Ioi (1 : ℝ)) : |
| 704 | 0 ≤ taperDerivativeDensity h f p v ∧ |
| 705 | taperDerivativeDensity h f p v ≤ K 1 ^ 2 * dg v := by |
| 706 | have hvp : 0 < v := zero_lt_one.trans hv |
| 707 | have hKpos : 0 ≤ K v := by |
| 708 | exact mul_nonneg (Real.rpow_nonneg hvp.le _) |
| 709 | (RadialHeatProfile.profile_pos (a := 1 + h) (by linarith) (by positivity)).le |
| 710 | have hKle : K v ≤ K 1 := spatialHeat_antitoneOn hh hν |
| 711 | (show (1 : ℝ) ∈ Ioi 0 by norm_num) hvp hv.le |
| 712 | have he : taperDerivativeDensity h f p v = (K v ^ 2 * f (p.2 + Real.log v)) * dg v := by |
| 713 | rw [taperDerivativeDensity, heatDensity_eq_profileSq h p.1 hvp] |
| 714 | dsimp only [K, dg] |
| 715 | ring |
| 716 | rw [he] |
| 717 | constructor |
| 718 | · exact mul_nonneg (mul_nonneg (sq_nonneg _) (hb _).1) (hdpos v hv) |
| 719 | · apply mul_le_mul_of_nonneg_right _ (hdpos v hv) |
| 720 | calc |
| 721 | _ ≤ K v ^ 2 := mul_le_of_le_one_right (sq_nonneg _) (hb _).2 |
| 722 | _ ≤ K 1 ^ 2 := by nlinarith |
| 723 | have hi : IntegrableOn (taperDerivativeDensity h f p) (Ioi (1 : ℝ)) := by |
| 724 | apply (hdi.const_mul (K 1 ^ 2)).mono' |
| 725 | · exact ((taperDerivativeDensity_continuousOn hh hν.le hf).mono |
| 726 | (Ioi_subset_Ioi zero_le_one)).aestronglyMeasurable measurableSet_Ioi |
| 727 | · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv |
| 728 | rw [Real.norm_eq_abs, abs_of_nonneg (hpoint v hv).1] |
| 729 | exact (hpoint v hv).2 |
| 730 | constructor |
| 731 | · exact setIntegral_nonneg measurableSet_Ioi (fun v hv => (hpoint v hv).1) |
| 732 | · have hle := setIntegral_mono_on hi (hdi.const_mul (K 1 ^ 2)) measurableSet_Ioi |
| 733 | (fun v hv => (hpoint v hv).2) |
| 734 | simpa only [taperDerivativeIntegral, integral_const_mul, hdi_eq, hK1] using hle |
| 735 | |
| 736 | theorem physicalHeat_sq (C h : ℝ) {p : SimilarityProfile.PhysicalPoint} (hs : 0 < p.2.1) : |
| 737 | TerminalStress.physicalHeat C (1 + h) p ^ 2 = |
| 738 | C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h) * |
| 739 | RadialHeatProfile.profile (1 + h) (2 * (1 - p.1) / p.2.1) ^ 2 := by |
| 740 | have he := physicalHeat_sq_div C h hs |
| 741 | rw [Real.rpow_sub hs, Real.rpow_one] at he |
| 742 | apply (div_left_inj' hs.ne').mp |
| 743 | convert! he using 1 |
| 744 | ring |
| 745 | |
| 746 | theorem axialPressureIntegral_bound (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 747 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 748 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 749 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) |
| 750 | (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 751 | 0 ≤ axialPressureIntegral C h f p ∧ axialPressureIntegral C h f p ≤ |
| 752 | TerminalStress.physicalHeat C (1 + h) p ^ 2 * (1 - f (Real.log (SimilarityProfile.X h p))) := by |
| 753 | rw [axialPressureIntegral_eq C f (SimilarityProfile.q_pos hh hh1 ht) hs] |
| 754 | have hbnd := taperDerivativeIntegral_bound (p := pressureCoordinates h p) hh hf hb hmono hplateau |
| 755 | (div_pos (sub_pos.mpr ht) hs) |
| 756 | have hc : 0 ≤ C ^ 2 * p.2.1 ^ (-2 * amplitudeExponent h) := |
| 757 | mul_nonneg (sq_nonneg _) (Real.rpow_nonneg hs.le _) |
| 758 | constructor |
| 759 | · exact mul_nonneg hc hbnd.1 |
| 760 | · rw [physicalHeat_sq C h hs] |
| 761 | have he : 2 * (pressureCoordinates h p).1 = 2 * (1 - p.1) / p.2.1 := by |
| 762 | dsimp [pressureCoordinates] |
| 763 | ring |
| 764 | have h := mul_le_mul_of_nonneg_left hbnd.2 hc |
| 765 | simp only [he, mul_assoc] at h ⊢ |
| 766 | exact h |
| 767 | |
| 768 | theorem canonicalPressure_partialZ_bound (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 769 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 770 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 771 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) |
| 772 | (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 773 | |SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 774 | (TerminalStress.swirlCoefficient C h f)) p| ≤ |
| 775 | |logScaleDerivative h p| * TerminalStress.physicalHeat C (1 + h) p ^ 2 * |
| 776 | (1 - f (Real.log (SimilarityProfile.X h p))) := by |
| 777 | rw [canonicalPressure_partialZ C hh hh1 ht hs hf hb hplateau, abs_mul, |
| 778 | abs_of_nonneg (axialPressureIntegral_bound C hh hh1 ht hs hf hb hmono hplateau).1, |
| 779 | mul_assoc] |
| 780 | exact mul_le_mul_of_nonneg_left |
| 781 | (axialPressureIntegral_bound C hh hh1 ht hs hf hb hmono hplateau).2 (abs_nonneg _) |
| 782 | |
| 783 | theorem logScaleDerivative_eq {h : ℝ} {p : SimilarityProfile.PhysicalPoint} |
| 784 | (hq : 0 < SimilarityProfile.q h p) : |
| 785 | logScaleDerivative h p = 2 * SimilarityProfile.eta h p / |
| 786 | (SimilarityProfile.q h p ^ CoordinateAlgebra.D h * CoordinateAlgebra.L h (SimilarityProfile.eta h p)) := by |
| 787 | unfold logScaleDerivative CoordinateAlgebra.qAxial |
| 788 | rw [div_right_comm, mul_div_cancel_right₀ _ hq.ne'] |
| 789 | |
| 790 | theorem logScaleDerivative_bound {h : ℝ} {p : SimilarityProfile.PhysicalPoint} |
| 791 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : p.1 < 1) : |
| 792 | |logScaleDerivative h p| ≤ 2 / (1 - 2 * h) * SimilarityProfile.q h p ^ (-CoordinateAlgebra.D h) := by |
| 793 | have hq := SimilarityProfile.q_pos hh hh1 ht |
| 794 | have heta := SimilarityProfile.eta_sq_lt_one hh hh1 ht |
| 795 | have heta1 : |SimilarityProfile.eta h p| ≤ 1 := by |
| 796 | exact (abs_le.mpr ⟨by nlinarith, by nlinarith⟩) |
| 797 | have hL := SimilarityProfile.L_pos hh hh1 ht |
| 798 | have hL0 : 1 - 2 * h ≤ CoordinateAlgebra.L h (SimilarityProfile.eta h p) := by |
| 799 | unfold CoordinateAlgebra.L |
| 800 | nlinarith |
| 801 | have hh0 : 0 < 1 - 2 * h := by linarith |
| 802 | have hpow := Real.rpow_pos_of_pos hq (CoordinateAlgebra.D h) |
| 803 | rw [logScaleDerivative_eq hq, abs_div, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2), |
| 804 | abs_of_pos (mul_pos hpow hL)] |
| 805 | calc |
| 806 | _ ≤ 2 / (SimilarityProfile.q h p ^ CoordinateAlgebra.D h * CoordinateAlgebra.L h (SimilarityProfile.eta h p)) := by |
| 807 | exact div_le_div_of_nonneg_right (by nlinarith) (mul_pos hpow hL).le |
| 808 | _ ≤ 2 / (SimilarityProfile.q h p ^ CoordinateAlgebra.D h * (1 - 2 * h)) := |
| 809 | div_le_div_of_nonneg_left (by norm_num) (mul_pos hpow hh0) |
| 810 | (mul_le_mul_of_nonneg_left hL0 hpow.le) |
| 811 | _ = _ := by |
| 812 | rw [Real.rpow_neg hq.le] |
| 813 | field_simp [hpow.ne', hh0.ne'] |
| 814 | |
| 815 | /-! ## The actual outgoing taper and its terminal edge estimate -/ |
| 816 | |
| 817 | noncomputable def outgoingTaper (d : OutgoingTail.TailData) (y0 y : ℝ) : ℝ := |
| 818 | OutgoingTail.tailShape d (y - y0) |
| 819 | |
| 820 | theorem outgoingTaper_contDiff (d : OutgoingTail.TailData) (y0 : ℝ) : |
| 821 | ContDiff ℝ ∞ (outgoingTaper d y0) := |
| 822 | (OutgoingTail.tailShape_contDiff d).comp (contDiff_id.sub contDiff_const) |
| 823 | |
| 824 | theorem outgoingTaper_deriv (d : OutgoingTail.TailData) (y0 y : ℝ) : |
| 825 | deriv (outgoingTaper d y0) y = OutgoingTail.tailShapeDeriv d (y - y0) := by |
| 826 | have h := ((OutgoingTail.tailShape_hasDerivAt d (y - y0)).comp y |
| 827 | ((hasDerivAt_id y).sub_const y0)).deriv |
| 828 | simp only [mul_one] at h |
| 829 | exact h |
| 830 | |
| 831 | theorem outgoingTaper_bounds (d : OutgoingTail.TailData) (y0 y : ℝ) : |
| 832 | 0 ≤ outgoingTaper d y0 y ∧ outgoingTaper d y0 y ≤ 1 := |
| 833 | ⟨(OutgoingTail.tailShape_pos d _).le, (OutgoingTail.tailShape_bounds d _).2⟩ |
| 834 | |
| 835 | theorem outgoingTaper_deriv_nonneg (d : OutgoingTail.TailData) (y0 y : ℝ) : |
| 836 | 0 ≤ deriv (outgoingTaper d y0) y := by |
| 837 | rw [outgoingTaper_deriv] |
| 838 | exact OutgoingTail.tailShapeDeriv_nonneg d _ |
| 839 | |
| 840 | theorem outgoingTaper_plateau (d : OutgoingTail.TailData) (y0 y : ℝ) (hy : y0 + 3 ≤ y) : |
| 841 | outgoingTaper d y0 y = 1 := OutgoingTail.tailShape_late d (by linarith) |
| 842 | |
| 843 | noncomputable def outgoingPressure (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) : |
| 844 | SimilarityProfile.PhysicalProfile := |
| 845 | TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C d.h (outgoingTaper d y0)) |
| 846 | |
| 847 | theorem outgoingPressure_contDiffAt (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| 848 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 849 | ContDiffAt ℝ ∞ (outgoingPressure C d y0) p := |
| 850 | canonicalPressure_contDiffAt C d.h_pos d.h_lt_half ht hs (outgoingTaper_contDiff d y0) |
| 851 | (outgoingTaper_bounds d y0) (outgoingTaper_plateau d y0) |
| 852 | |
| 853 | /-- Fully expanded formula for the actual pressure derivative needed in the |
| 854 | terminal edge chart. The integration coordinate is the physical `s=r^2/2`. -/ |
| 855 | theorem outgoingPressure_partialZ (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| 856 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 857 | SimilarityProfile.partialZ (outgoingPressure C d y0) p = |
| 858 | logScaleDerivative d.h p * ∫ s in Ioi p.2.1, |
| 859 | TerminalStress.physicalHeat C (1 + d.h) (p.1, (s, p.2.2)) ^ 2 * |
| 860 | OutgoingTail.tailShape d (Real.log (s / SimilarityProfile.q d.h p) - y0) * |
| 861 | OutgoingTail.tailShapeDeriv d (Real.log (s / SimilarityProfile.q d.h p) - y0) / s := by |
| 862 | have he := canonicalPressure_partialZ C d.h_pos d.h_lt_half ht hs (outgoingTaper_contDiff d y0) |
| 863 | (outgoingTaper_bounds d y0) (outgoingTaper_plateau d y0) |
| 864 | simpa only [outgoingPressure, axialPressureIntegral, outgoingTaper_deriv, outgoingTaper] using he |
| 865 | |
| 866 | theorem outgoingPressure_partialZ_bound (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| 867 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 868 | |SimilarityProfile.partialZ (outgoingPressure C d y0) p| ≤ |
| 869 | (2 / (1 - 2 * d.h)) * SimilarityProfile.q d.h p ^ (-CoordinateAlgebra.D d.h) * |
| 870 | TerminalStress.physicalHeat C (1 + d.h) p ^ 2 * |
| 871 | (1 - OutgoingTail.tailShape d (Real.log (SimilarityProfile.X d.h p) - y0)) := by |
| 872 | have hb := canonicalPressure_partialZ_bound C d.h_pos d.h_lt_half ht hs |
| 873 | (outgoingTaper_contDiff d y0) (outgoingTaper_bounds d y0) (outgoingTaper_deriv_nonneg d y0) |
| 874 | (outgoingTaper_plateau d y0) |
| 875 | apply hb.trans |
| 876 | exact mul_le_mul_of_nonneg_right |
| 877 | (mul_le_mul_of_nonneg_right (logScaleDerivative_bound d.h_pos d.h_lt_half ht) (sq_nonneg _)) |
| 878 | (sub_nonneg.mpr (outgoingTaper_bounds d y0 _).2) |
| 879 | |
| 880 | theorem outgoingPressure_edge_bound (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| 881 | {p : SimilarityProfile.PhysicalPoint} {δ : ℝ} (ht : p.1 < 1) (hs : 0 < p.2.1) |
| 882 | (hδ : Real.log (SimilarityProfile.X d.h p) = y0 + 3 - δ) : |
| 883 | |SimilarityProfile.partialZ (outgoingPressure C d y0) p| ≤ |
| 884 | (2 / (1 - 2 * d.h)) * SimilarityProfile.q d.h p ^ (-CoordinateAlgebra.D d.h) * |
| 885 | TerminalStress.physicalHeat C (1 + d.h) p ^ 2 * |
| 886 | (d.rho * FlatCutoff.edge 4 δ * TerminalStress.taperFactor δ) := by |
| 887 | have hb := outgoingPressure_partialZ_bound C d y0 ht hs |
| 888 | rwa [hδ, show y0 + 3 - δ - y0 = 3 - δ by ring, TerminalStress.tailShape_deficit] at hb |
| 889 | |
| 890 | /-! ## Compact support of the terminal forcing and its positive mass -/ |
| 891 | |
| 892 | theorem integrableOn_Ioi_of_eventually_zero {g : ℝ → ℝ} {r : ℝ} (hr : 0 < r) |
| 893 | (hg : ContinuousOn g (Ioi 0)) (hz : g =ᶠ[atTop] fun _ => 0) : |
| 894 | IntegrableOn g (Ioi r) := by |
| 895 | obtain ⟨b, hb⟩ := Filter.eventually_atTop.1 hz |
| 896 | have hi : IntegrableOn g (Icc r (max r b)) := |
| 897 | (hg.mono (fun u hu => hr.trans_le hu.1)).integrableOn_Icc |
| 898 | apply (hi.integrable_indicator measurableSet_Icc).integrableOn.congr |
| 899 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 900 | by_cases hm : u ≤ max r b |
| 901 | · simp only [indicator_of_mem (show u ∈ Icc r (max r b) from ⟨hu.le, hm⟩)] |
| 902 | · rw [indicator_of_notMem (show u ∉ Icc r (max r b) from fun h => hm h.2), |
| 903 | hb u ((le_max_right r b).trans (le_of_not_ge hm))] |
| 904 | |
| 905 | theorem logX_radial_contDiffAt {h t z r : ℝ} |
| 906 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) : |
| 907 | ContDiffAt ℝ ∞ (fun u => Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t u z))) r := by |
| 908 | have hs : 0 < (TerminalStress.radiusPoint t r z).2.1 := by |
| 909 | dsimp [TerminalStress.radiusPoint] |
| 910 | positivity |
| 911 | have hX := (SimilarityProfile.inner_smoothAt hh hh1 (p := TerminalStress.radiusPoint t r z) ht).fst |
| 912 | exact (hX.log (div_pos hs (SimilarityProfile.q_pos hh hh1 ht)).ne').comp r |
| 913 | (TerminalStress.radiusPoint_contDiff t z).contDiffAt |
| 914 | |
| 915 | theorem terminal_forcing_integrable (C : ℝ) {h t z r Y : ℝ} {f : ℝ → ℝ} |
| 916 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) |
| 917 | (hf : ContDiff ℝ ∞ f) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 918 | IntegrableOn (fun u => u ^ 2 * TerminalStress.viscousResidual |
| 919 | (TerminalStress.heatAmplitude C (1 + h) t) |
| 920 | (TerminalStress.radialSlice (TerminalStress.flattening h f) t z) u) (Ioi r) ∧ |
| 921 | IntegrableOn (TerminalStress.correction (TerminalStress.heatAmplitude C (1 + h) t) |
| 922 | (TerminalStress.radialSlice (TerminalStress.flattening h f) t z)) (Ioi r) ∧ |
| 923 | IntegrableOn (fun u => u ^ 2 * TerminalStress.timeResidual C h f t z u) (Ioi r) := by |
| 924 | let K := TerminalStress.heatAmplitude C (1 + h) t |
| 925 | let g := TerminalStress.radialSlice (TerminalStress.flattening h f) t z |
| 926 | have hK (u : ℝ) (hu : 0 < u) : ContDiffAt ℝ ∞ K u := |
| 927 | TerminalStress.heatAmplitude_contDiffAt C (by linarith) ht hu |
| 928 | have hg (u : ℝ) (hu : 0 < u) : ContDiffAt ℝ ∞ g u := |
| 929 | hf.contDiffAt.comp u (logX_radial_contDiffAt hh hh1 ht hu) |
| 930 | have hgd (u : ℝ) (hu : 0 < u) : ContDiffAt ℝ ∞ (deriv g) u := |
| 931 | TerminalStress.contDiffAt_deriv (hg u hu) (by simp) |
| 932 | have hgdd (u : ℝ) (hu : 0 < u) : ContDiffAt ℝ ∞ (deriv (deriv g)) u := |
| 933 | TerminalStress.contDiffAt_deriv (hgd u hu) (by simp) |
| 934 | have hKd (u : ℝ) (hu : 0 < u) : ContDiffAt ℝ ∞ (deriv K) u := |
| 935 | TerminalStress.contDiffAt_deriv (hK u hu) (by simp) |
| 936 | have hfp : f =ᶠ[atTop] fun _ => 1 := by |
| 937 | filter_upwards [eventually_ge_atTop Y] with y hy |
| 938 | exact hplateau y hy |
| 939 | have hgp : g =ᶠ[atTop] fun _ => 1 := TerminalStress.radial_flattening_plateau hh hh1 ht hfp |
| 940 | have hgp' := TerminalStress.deriv_eventually_zero_of_eventually_const hgp |
| 941 | have hgp'' := TerminalStress.deriv_eventually_zero_of_eventually_const hgp' |
| 942 | have hfp' := (TerminalStress.logX_radial_tendsto (z := z) hh hh1 ht).eventually |
| 943 | (TerminalStress.deriv_eventually_zero_of_eventually_const hfp) |
| 944 | refine ⟨integrableOn_Ioi_of_eventually_zero hr ?_ ?_, |
| 945 | integrableOn_Ioi_of_eventually_zero hr ?_ ?_, integrableOn_Ioi_of_eventually_zero hr ?_ ?_⟩ |
| 946 | · intro u hu |
| 947 | exact ((continuousAt_id.pow 2).mul |
| 948 | (((hK u hu).continuousAt.neg.mul ((hgdd u hu).continuousAt.add |
| 949 | ((hgd u hu).continuousAt.div continuousAt_id hu.ne'))).sub |
| 950 | ((continuousAt_const.mul (hKd u hu).continuousAt).mul (hgd u hu).continuousAt))).continuousWithinAt |
| 951 | · filter_upwards [hgp', hgp''] with u hu hu' |
| 952 | change u ^ 2 * TerminalStress.viscousResidual K g u = 0 |
| 953 | simp only [TerminalStress.viscousResidual, hu, hu', zero_div, add_zero, mul_zero, sub_zero] |
| 954 | · intro u hu |
| 955 | exact (((continuousAt_id.mul (hK u hu).continuousAt).sub |
| 956 | ((continuousAt_id.pow 2).mul (hKd u hu).continuousAt)).mul (hgd u hu).continuousAt).continuousWithinAt |
| 957 | · filter_upwards [hgp'] with u hu |
| 958 | change TerminalStress.correction K g u = 0 |
| 959 | simp only [TerminalStress.correction, hu, mul_zero] |
| 960 | · intro u hu |
| 961 | exact ((continuousAt_id.pow 2).mul |
| 962 | (((hK u hu).continuousAt.mul ((hf.continuous_deriv (by simp)).continuousAt.comp |
| 963 | (logX_radial_contDiffAt hh hh1 ht hu).continuousAt)).div_const _)).continuousWithinAt |
| 964 | · filter_upwards [hfp'] with u hu |
| 965 | simp only [TerminalStress.timeResidual, hu, mul_zero, zero_div] |
| 966 | |
| 967 | theorem logX_radial_strict {h t z r R : ℝ} |
| 968 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) (hrR : r < R) : |
| 969 | Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t r z)) < |
| 970 | Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z)) := by |
| 971 | have hq := SimilarityProfile.q_pos hh hh1 (p := (t, (0, z))) ht |
| 972 | apply Real.log_lt_log (div_pos (by dsimp [TerminalStress.radiusPoint]; positivity) hq) |
| 973 | change (r ^ 2 / 2) / SimilarityProfile.q h (t, (0, z)) < |
| 974 | (R ^ 2 / 2) / SimilarityProfile.q h (t, (0, z)) |
| 975 | apply (div_lt_div_iff_of_pos_right hq).mpr |
| 976 | nlinarith |
| 977 | |
| 978 | /-- A positive lower bound for the actual backward angular stress. Every tail |
| 979 | integrability hypothesis is discharged using the taper's genuine plateau. -/ |
| 980 | theorem terminalStress_ge_mass {C h t z r R Y : ℝ} {f : ℝ → ℝ} |
| 981 | (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) |
| 982 | (hr : 0 < r) (hrR : r ≤ R) (hf : ContDiff ℝ ∞ f) (hmono : ∀ y, 0 ≤ deriv f y) |
| 983 | (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 984 | (hR : Y ≤ Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z))) : |
| 985 | (r * TerminalStress.heatAmplitude C (1 + h) t R / (2 * TerminalStress.timeDenominator h t z)) * |
| 986 | (1 - f (Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t r z)))) ≤ |
| 987 | TerminalStress.terminalStress C h f t z r := by |
| 988 | let K := TerminalStress.heatAmplitude C (1 + h) t |
| 989 | let g := TerminalStress.radialSlice (TerminalStress.flattening h f) t z |
| 990 | have hK : ∀ u ∈ Ici r, DifferentiableAt ℝ K u := fun u hu => |
| 991 | (TerminalStress.heatAmplitude_contDiffAt C (by linarith) ht (hr.trans_le hu)).differentiableAt (by simp) |
| 992 | have hF : ∀ u ∈ Ici r, ContDiffAt ℝ 2 g u := fun u hu => |
| 993 | TerminalStress.flattening_radial_contDiffAt hh hh1 ht (hr.trans_le hu) |
| 994 | (hf.of_le (WithTop.coe_le_coe.mpr le_top)) |
| 995 | have hgp : g =ᶠ[atTop] fun _ => 1 := by |
| 996 | apply TerminalStress.radial_flattening_plateau hh hh1 ht |
| 997 | filter_upwards [eventually_ge_atTop Y] with y hy |
| 998 | exact hplateau y hy |
| 999 | have hlim : Tendsto g atTop (𝓝 1) := tendsto_const_nhds.congr' hgp.symm |
| 1000 | have hinc : ∀ u ∈ Ici r, 0 ≤ deriv g u := by |
| 1001 | intro u hu |
| 1002 | rw [(TerminalStress.flattening_radial_hasDerivAt hh hh1 ht (hr.trans_le hu) |
| 1003 | (hf.differentiable (by simp) _)).deriv] |
| 1004 | exact div_nonneg (mul_nonneg (by norm_num) (hmono _)) (hr.trans_le hu).le |
| 1005 | have hi := terminal_forcing_integrable C (z := z) hh hh1 ht hr hf hplateau |
| 1006 | have hfi : IntegrableOn (deriv g) (Ioi r) := |
| 1007 | integrableOn_Ioi_deriv_of_nonneg' |
| 1008 | (fun u hu => ((hF u hu).differentiableAt (by norm_num)).hasDerivAt) |
| 1009 | (fun u hu => hinc u (show r ≤ u from le_of_lt hu)) hlim |
| 1010 | have hcompare : ∀ u ∈ Ioi r, |
| 1011 | (r ^ 3 * K R / (2 * TerminalStress.timeDenominator h t z)) * deriv g u ≤ |
| 1012 | u ^ 2 * TerminalStress.timeResidual C h f t z u := by |
| 1013 | intro u hu |
| 1014 | by_cases huR : u ≤ R |
| 1015 | · exact TerminalStress.timeResidual_lower_comparison hC hh hh1 ht hr hu.le huR |
| 1016 | (hf.differentiable (by simp) _) (hmono _) |
| 1017 | · have hRu : R < u := lt_of_not_ge huR |
| 1018 | have hy := hR.trans_lt (logX_radial_strict hh hh1 ht (hr.trans_le hrR) hRu) |
| 1019 | have hdf := deriv_zero_after_plateau hplateau hy |
| 1020 | rw [(TerminalStress.flattening_radial_hasDerivAt hh hh1 ht (hr.trans hu) |
| 1021 | (hf.differentiable (by simp) _)).deriv, hdf] |
| 1022 | simp only [TerminalStress.timeResidual, hdf, mul_zero, zero_div, le_refl] |
| 1023 | have hm := TerminalStress.backwardStress_ge_mass hr hK hF hi.1 hi.2.1 hi.2.2 |
| 1024 | (TerminalStress.boundary_tendsto_zero_of_plateau K hgp) hfi hlim |
| 1025 | (fun u hu => (TerminalStress.heatAmplitude_pos hC (by linarith) ht (hr.trans_le hu)).le) |
| 1026 | (fun u hu => (TerminalStress.heatAmplitude_deriv_neg hC (by linarith) ht (hr.trans hu)).le) |
| 1027 | hinc hcompare |
| 1028 | have he : (fun u => TerminalStress.leadingResidual C h f t u z) = |
| 1029 | (fun u => TerminalStress.timeResidual C h f t z u + TerminalStress.viscousResidual K g u) := |
| 1030 | funext fun u => TerminalStress.leadingResidual_eq_time_add C h f t u z |
| 1031 | rw [TerminalStress.terminalStress, he] |
| 1032 | convert! hm using 1 |
| 1033 | dsimp [K, g, TerminalStress.radialSlice, TerminalStress.flattening] |
| 1034 | field_simp [hr.ne', (TerminalStress.timeDenominator_pos hh hh1 (z := z) ht).ne'] |
| 1035 | |
| 1036 | /-! ## The genuine backward axial pressure stress -/ |
| 1037 | |
| 1038 | theorem canonicalPressure_partialZ_contDiffAt (C : ℝ) {h Y : ℝ} {f : ℝ → ℝ} |
| 1039 | {p : SimilarityProfile.PhysicalPoint} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1040 | (ht : p.1 < 1) (hs : 0 < p.2.1) (hf : ContDiff ℝ ∞ f) |
| 1041 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hplateau : ∀ y, Y ≤ y → f y = 1) : |
| 1042 | ContDiffAt ℝ ∞ (SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 1043 | (TerminalStress.swirlCoefficient C h f))) p := |
| 1044 | ((canonicalPressure_contDiffAt C hh hh1 ht hs hf hb hplateau).fderiv_right |
| 1045 | (by simp)).clm_apply contDiffAt_const |
| 1046 | |
| 1047 | /-- Since `ds = r dr`, this is the cylindrical backward primitive with weight |
| 1048 | `r`. It uses the actual axial derivative of the canonical pressure. -/ |
| 1049 | noncomputable def axialBackwardStress (C h : ℝ) (f : ℝ → ℝ) (t z r : ℝ) : ℝ := |
| 1050 | (∫ s in Ioi (r ^ 2 / 2), SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 1051 | (TerminalStress.swirlCoefficient C h f)) (t, (s, z))) / r |
| 1052 | |
| 1053 | theorem physicalHeat_pos {C h : ℝ} {p : SimilarityProfile.PhysicalPoint} |
| 1054 | (hC : 0 < C) (hh : 0 < h) (ht : p.1 < 1) (hs : 0 < p.2.1) : |
| 1055 | 0 < TerminalStress.physicalHeat C (1 + h) p := by |
| 1056 | exact mul_pos hC (mul_pos (Real.rpow_pos_of_pos hs _) |
| 1057 | (RadialHeatProfile.profile_pos (by linarith) |
| 1058 | (div_nonneg (mul_nonneg (by norm_num) (sub_pos.mpr ht).le) hs.le))) |
| 1059 | |
| 1060 | theorem physicalHeat_radial_le {C h t z a s : ℝ} (hC : 0 < C) (hh : 0 < h) |
| 1061 | (ht : t < 1) (ha : 0 < a) (has : a ≤ s) : |
| 1062 | TerminalStress.physicalHeat C (1 + h) (t, (s, z)) ≤ |
| 1063 | TerminalStress.physicalHeat C (1 + h) (t, (a, z)) := |
| 1064 | mul_le_mul_of_nonneg_left (spatialHeat_antitoneOn hh (sub_pos.mpr ht) ha |
| 1065 | (ha.trans_le has) has) hC.le |
| 1066 | |
| 1067 | theorem axialBackwardStress_bound {C h t z r R Y : ℝ} {f : ℝ → ℝ} |
| 1068 | (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) |
| 1069 | (hr : 0 < r) (hrR : r ≤ R) (hf : ContDiff ℝ ∞ f) |
| 1070 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) |
| 1071 | (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 1072 | (hR : Y ≤ Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z))) : |
| 1073 | IntegrableOn (fun s => SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 1074 | (TerminalStress.swirlCoefficient C h f)) (t, (s, z))) (Ioi (r ^ 2 / 2)) ∧ |
| 1075 | |axialBackwardStress C h f t z r| ≤ ((R ^ 2 - r ^ 2) / (2 * r)) * |
| 1076 | |logScaleDerivative h (TerminalStress.radiusPoint t r z)| * |
| 1077 | TerminalStress.heatAmplitude C (1 + h) t r ^ 2 * |
| 1078 | (1 - f (Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t r z)))) := by |
| 1079 | let p := TerminalStress.radiusPoint t r z |
| 1080 | let P := TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C h f) |
| 1081 | let g : ℝ → ℝ := fun s => SimilarityProfile.partialZ P (t, (s, z)) |
| 1082 | let B := |logScaleDerivative h p| * TerminalStress.physicalHeat C (1 + h) p ^ 2 * |
| 1083 | (1 - f (Real.log (SimilarityProfile.X h p))) |
| 1084 | have ha : 0 < r ^ 2 / 2 := by positivity |
| 1085 | have hRpos : 0 < R := hr.trans_le hrR |
| 1086 | have hS : r ^ 2 / 2 ≤ R ^ 2 / 2 := by nlinarith |
| 1087 | have hq : 0 < SimilarityProfile.q h p := SimilarityProfile.q_pos hh hh1 ht |
| 1088 | have hmonof : Monotone f := monotone_of_deriv_nonneg (hf.differentiable (by simp)) hmono |
| 1089 | have hpoint (s : ℝ) (hs : r ^ 2 / 2 ≤ s) : |g s| ≤ B := by |
| 1090 | have hsp : 0 < s := ha.trans_le hs |
| 1091 | have hbound := canonicalPressure_partialZ_bound C (p := (t, (s, z))) hh hh1 ht hsp hf hb hmono hplateau |
| 1092 | have hK := physicalHeat_radial_le (z := z) hC hh ht ha hs |
| 1093 | change TerminalStress.physicalHeat C (1 + h) (t, (s, z)) ≤ |
| 1094 | TerminalStress.physicalHeat C (1 + h) p at hK |
| 1095 | have hK0 := (physicalHeat_pos (p := (t, (s, z))) hC hh ht hsp).le |
| 1096 | have hKsq : TerminalStress.physicalHeat C (1 + h) (t, (s, z)) ^ 2 ≤ |
| 1097 | TerminalStress.physicalHeat C (1 + h) p ^ 2 := by nlinarith |
| 1098 | have hlog : Real.log (SimilarityProfile.X h p) ≤ Real.log (SimilarityProfile.X h (t, (s, z))) := by |
| 1099 | apply Real.log_le_log (div_pos ha hq) |
| 1100 | exact (div_le_div_iff_of_pos_right hq).mpr hs |
| 1101 | have hfdec := sub_le_sub_left (hmonof hlog) 1 |
| 1102 | exact hbound.trans (mul_le_mul |
| 1103 | (mul_le_mul_of_nonneg_left hKsq (abs_nonneg _)) hfdec |
| 1104 | (sub_nonneg.mpr (hb _).2) (mul_nonneg (abs_nonneg _) (sq_nonneg _))) |
| 1105 | have hzero (s : ℝ) (hs : R ^ 2 / 2 < s) : g s = 0 := by |
| 1106 | have hsp : 0 < s := (show 0 < R ^ 2 / 2 by positivity).trans hs |
| 1107 | have hy : Y ≤ Real.log (SimilarityProfile.X h (t, (s, z))) := by |
| 1108 | apply hR.trans |
| 1109 | apply Real.log_le_log (div_pos (show 0 < R ^ 2 / 2 by positivity) hq) |
| 1110 | exact (div_le_div_iff_of_pos_right hq).mpr hs.le |
| 1111 | have hbound := canonicalPressure_partialZ_bound C (p := (t, (s, z))) hh hh1 ht hsp hf hb hmono hplateau |
| 1112 | rw [hplateau _ hy, sub_self, mul_zero] at hbound |
| 1113 | exact abs_nonpos_iff.mp hbound |
| 1114 | have hcont : ContinuousOn g (Ioi 0) := by |
| 1115 | intro s hs |
| 1116 | exact (((canonicalPressure_partialZ_contDiffAt C (p := (t, (s, z))) hh hh1 ht hs hf hb hplateau).comp s |
| 1117 | (contDiffAt_const.prodMk (contDiffAt_id.prodMk contDiffAt_const))).continuousAt).continuousWithinAt |
| 1118 | have hi : IntegrableOn g (Ioi (r ^ 2 / 2)) := integrableOn_Ioi_of_eventually_zero ha hcont (by |
| 1119 | filter_upwards [eventually_gt_atTop (R ^ 2 / 2)] with s hs |
| 1120 | exact hzero s hs) |
| 1121 | refine ⟨hi, ?_⟩ |
| 1122 | have hnorm : |∫ s in Ioi (r ^ 2 / 2), g s| ≤ B * (R ^ 2 / 2 - r ^ 2 / 2) := by |
| 1123 | rw [integral_tail_eq_interval hS hzero] |
| 1124 | have he := intervalIntegral.norm_integral_le_of_norm_le_const (f := g) (C := B) |
| 1125 | (a := r ^ 2 / 2) (b := R ^ 2 / 2) |
| 1126 | (fun s hs => by |
| 1127 | rw [uIoc_of_le hS] at hs |
| 1128 | simpa only [Real.norm_eq_abs] using hpoint s hs.1.le) |
| 1129 | simpa only [Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr hS)] using he |
| 1130 | rw [axialBackwardStress, abs_div, abs_of_pos hr] |
| 1131 | calc |
| 1132 | _ ≤ B * (R ^ 2 / 2 - r ^ 2 / 2) / r := div_le_div_of_nonneg_right hnorm hr.le |
| 1133 | _ = _ := by dsimp [B, p, TerminalStress.physicalHeat, TerminalStress.heatAmplitude, |
| 1134 | TerminalStress.radiusPoint, RadialHeatProfile.radialProfile]; ring |
| 1135 | |
| 1136 | /-! ## Coarse angular/axial tilt on a fixed terminal annulus -/ |
| 1137 | |
| 1138 | theorem heatProfile_antitoneOn {h : ℝ} (hh : 0 < h) : |
| 1139 | AntitoneOn (RadialHeatProfile.profile (1 + h)) (Ioi 0) := by |
| 1140 | have ha : 1 < 1 + h := by linarith |
| 1141 | apply antitoneOn_of_deriv_nonpos (convex_Ioi 0) |
| 1142 | · exact (RadialHeatProfile.profile_contDiffOn ha).continuousOn.mono Ioi_subset_Ici_self |
| 1143 | · intro u hu |
| 1144 | have hu' : 0 < u := by simpa only [interior_Ioi, Set.mem_Ioi] using hu |
| 1145 | exact (RadialHeatProfile.profile_hasDerivAt ha hu').differentiableAt.differentiableWithinAt |
| 1146 | · intro u hu |
| 1147 | have hu' : 0 < u := by simpa only [interior_Ioi, Set.mem_Ioi] using hu |
| 1148 | rw [← derivWithin_of_mem_nhds (Ici_mem_nhds hu')] |
| 1149 | exact (RadialHeatProfile.profile_derivWithin_neg ha hu'.le).le |
| 1150 | |
| 1151 | theorem heatAmplitude_annulus_lower {C h t r R Λ : ℝ} |
| 1152 | (hC : 0 < C) (hh : 0 < h) (ht : t < 1) (hr : 0 < r) (hrR : r ≤ R) |
| 1153 | (hΛ : 1 ≤ Λ) (hRΛ : R ^ 2 ≤ Λ * r ^ 2) : |
| 1154 | Λ ^ (-amplitudeExponent h) * TerminalStress.heatAmplitude C (1 + h) t r ≤ |
| 1155 | TerminalStress.heatAmplitude C (1 + h) t R := by |
| 1156 | have hR : 0 < R := hr.trans_le hrR |
| 1157 | have hτ : 0 < 1 - t := sub_pos.mpr ht |
| 1158 | have ha : 0 < r ^ 2 / 2 := by positivity |
| 1159 | have hb : 0 < R ^ 2 / 2 := by positivity |
| 1160 | have hab : r ^ 2 / 2 ≤ R ^ 2 / 2 := by nlinarith |
| 1161 | have hΛp : 0 < Λ := zero_lt_one.trans_le hΛ |
| 1162 | have hpow : Λ ^ (-amplitudeExponent h) * (r ^ 2 / 2) ^ (-amplitudeExponent h) ≤ |
| 1163 | (R ^ 2 / 2) ^ (-amplitudeExponent h) := by |
| 1164 | rw [← Real.mul_rpow hΛp.le ha.le] |
| 1165 | exact Real.rpow_le_rpow_of_nonpos hb (by nlinarith) (by dsimp [amplitudeExponent]; linarith) |
| 1166 | have harg : 2 * (1 - t) / (R ^ 2 / 2) ≤ 2 * (1 - t) / (r ^ 2 / 2) := |
| 1167 | div_le_div_of_nonneg_left (by positivity) ha hab |
| 1168 | have hH := heatProfile_antitoneOn hh (div_pos (by positivity) hb) (div_pos (by positivity) ha) harg |
| 1169 | have hHa := (RadialHeatProfile.profile_pos (a := 1 + h) (by linarith) |
| 1170 | (show 0 ≤ 2 * (1 - t) / (r ^ 2 / 2) by positivity)).le |
| 1171 | have he := mul_le_mul hpow hH hHa (Real.rpow_nonneg hb.le _) |
| 1172 | have heC := mul_le_mul_of_nonneg_left he hC.le |
| 1173 | simpa only [TerminalStress.heatAmplitude, RadialHeatProfile.radialProfile_source_formula, |
| 1174 | amplitudeExponent, mul_assoc, mul_left_comm, mul_comm] using heC |
| 1175 | |
| 1176 | theorem timeDenominator_le_q {h t z : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) : |
| 1177 | TerminalStress.timeDenominator h t z ≤ SimilarityProfile.q h (t, (0, z)) := by |
| 1178 | have hq := (SimilarityProfile.q_pos hh hh1 (p := (t, (0, z))) ht).le |
| 1179 | have hL : CoordinateAlgebra.L h (SimilarityProfile.eta h (t, (0, z))) ≤ 1 := by |
| 1180 | unfold CoordinateAlgebra.L |
| 1181 | nlinarith [sq_nonneg (SimilarityProfile.eta h (t, (0, z)))] |
| 1182 | exact (mul_le_mul_of_nonneg_left hL hq).trans_eq (mul_one _) |
| 1183 | |
| 1184 | noncomputable def tiltConstant (h Λ : ℝ) : ℝ := |
| 1185 | (2 / (1 - 2 * h)) * (Λ - 1) / Λ ^ (-amplitudeExponent h) |
| 1186 | |
| 1187 | /-- Actual backward stresses satisfy the coarse tilt estimate on any fixed |
| 1188 | annulus. The factor `q^(1-D) K` is subsequently bounded by the released amplitude. -/ |
| 1189 | theorem terminal_tilt_bound {C h t z r R Y Λ : ℝ} {f : ℝ → ℝ} |
| 1190 | (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) |
| 1191 | (hr : 0 < r) (hrR : r ≤ R) (hf : ContDiff ℝ ∞ f) |
| 1192 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) |
| 1193 | (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 1194 | (hR : Y ≤ Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z))) |
| 1195 | (hΛ : 1 ≤ Λ) (hRΛ : R ^ 2 ≤ Λ * r ^ 2) |
| 1196 | (hinside : f (Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t r z))) < 1) : |
| 1197 | 0 < TerminalStress.terminalStress C h f t z r ∧ |
| 1198 | |axialBackwardStress C h f t z r| / TerminalStress.terminalStress C h f t z r ≤ |
| 1199 | tiltConstant h Λ * SimilarityProfile.q h (TerminalStress.radiusPoint t r z) ^ (1 - CoordinateAlgebra.D h) * |
| 1200 | TerminalStress.heatAmplitude C (1 + h) t r := by |
| 1201 | let p := TerminalStress.radiusPoint t r z |
| 1202 | let q := SimilarityProfile.q h p |
| 1203 | let K := TerminalStress.heatAmplitude C (1 + h) t r |
| 1204 | let E := 1 - f (Real.log (SimilarityProfile.X h p)) |
| 1205 | let b := Λ ^ (-amplitudeExponent h) |
| 1206 | let c := 2 / (1 - 2 * h) |
| 1207 | let S := TerminalStress.terminalStress C h f t z r |
| 1208 | have hq : 0 < q := SimilarityProfile.q_pos hh hh1 ht |
| 1209 | have hK : 0 < K := TerminalStress.heatAmplitude_pos hC (by linarith) ht hr |
| 1210 | have hE : 0 < E := sub_pos.mpr hinside |
| 1211 | have hbpos : 0 < b := Real.rpow_pos_of_pos (zero_lt_one.trans_le hΛ) _ |
| 1212 | have hc : 0 < c := div_pos (by norm_num) (by linarith) |
| 1213 | have hQ := TerminalStress.timeDenominator_pos (z := z) hh hh1 ht |
| 1214 | have hm := terminalStress_ge_mass hC hh hh1 ht hr hrR hf hmono hplateau hR |
| 1215 | have hcarrier := heatAmplitude_annulus_lower hC hh ht hr hrR hΛ hRΛ |
| 1216 | have hlow : r * b * K / (2 * q) * E ≤ S := by |
| 1217 | apply le_trans _ hm |
| 1218 | apply mul_le_mul_of_nonneg_right _ hE.le |
| 1219 | calc |
| 1220 | _ ≤ r * TerminalStress.heatAmplitude C (1 + h) t R / (2 * q) := |
| 1221 | div_le_div_of_nonneg_right (by |
| 1222 | simpa only [mul_assoc] using mul_le_mul_of_nonneg_left hcarrier hr.le) (by positivity) |
| 1223 | _ ≤ _ := div_le_div_of_nonneg_left |
| 1224 | (mul_nonneg hr.le (TerminalStress.heatAmplitude_pos hC (by linarith) ht (hr.trans_le hrR)).le) |
| 1225 | (by positivity) (mul_le_mul_of_nonneg_left (timeDenominator_le_q hh hh1 ht) (by norm_num)) |
| 1226 | have hS : 0 < S := (mul_pos (div_pos (mul_pos (mul_pos hr hbpos) hK) (by positivity)) hE).trans_le hlow |
| 1227 | refine ⟨hS, ?_⟩ |
| 1228 | have hax := (axialBackwardStress_bound hC hh hh1 ht hr hrR hf hb hmono hplateau hR).2 |
| 1229 | have hlength : (R ^ 2 - r ^ 2) / (2 * r) ≤ (Λ - 1) * r / 2 := by |
| 1230 | apply (div_le_iff₀ (by positivity : 0 < 2 * r)).mpr |
| 1231 | nlinarith |
| 1232 | have hB : |axialBackwardStress C h f t z r| ≤ |
| 1233 | ((Λ - 1) * r / 2) * (c * q ^ (-CoordinateAlgebra.D h)) * K ^ 2 * E := by |
| 1234 | apply hax.trans |
| 1235 | apply mul_le_mul_of_nonneg_right _ hE.le |
| 1236 | apply mul_le_mul_of_nonneg_right _ (sq_nonneg K) |
| 1237 | apply mul_le_mul hlength (logScaleDerivative_bound hh hh1 ht) (abs_nonneg _) |
| 1238 | (div_nonneg (mul_nonneg (sub_nonneg.mpr hΛ) hr.le) (by norm_num)) |
| 1239 | let M := tiltConstant h Λ * q ^ (1 - CoordinateAlgebra.D h) * K |
| 1240 | have hM : 0 ≤ M := by |
| 1241 | exact mul_nonneg (mul_nonneg |
| 1242 | (div_nonneg (mul_nonneg hc.le (sub_nonneg.mpr hΛ)) hbpos.le) |
| 1243 | (Real.rpow_nonneg hq.le _)) hK.le |
| 1244 | have halg : ((Λ - 1) * r / 2) * (c * q ^ (-CoordinateAlgebra.D h)) * K ^ 2 * E = |
| 1245 | M * (r * b * K / (2 * q) * E) := by |
| 1246 | dsimp only [M, tiltConstant, b, c] |
| 1247 | rw [Real.rpow_sub hq, Real.rpow_one, Real.rpow_neg hq.le] |
| 1248 | field_simp [hq.ne', (Real.rpow_pos_of_pos hq (CoordinateAlgebra.D h)).ne', |
| 1249 | show Λ ^ (-amplitudeExponent h) ≠ 0 from hbpos.ne', show 1 - 2 * h ≠ 0 by linarith] |
| 1250 | have hfinal : |axialBackwardStress C h f t z r| ≤ M * S := |
| 1251 | hB.trans (halg.trans_le (mul_le_mul_of_nonneg_left hlow hM)) |
| 1252 | exact (div_le_iff₀ hS).mpr hfinal |
| 1253 | |
| 1254 | /-! ## Uniform smallness from the constructed release -/ |
| 1255 | |
| 1256 | theorem outgoingAmplitude_suppressed (d : OutgoingTail.TailData) : |
| 1257 | HeatTailEdit.outgoingAmplitude d ≤ |
| 1258 | 4 * OutgoingTail.finalAngular d (d.releaseStart, 0) * d.h ^ 4 := by |
| 1259 | have hstart : OutgoingTail.tailStart d ≤ HeatTailEdit.switchStart d := by |
| 1260 | unfold HeatTailEdit.switchStart |
| 1261 | linarith |
| 1262 | have hlate : d.releaseStart + d.secondRampStart ≤ HeatTailEdit.switchStart d := by |
| 1263 | dsimp [HeatTailEdit.switchStart, OutgoingTail.tailStart, OutgoingTail.TailData.rampEnd] |
| 1264 | linarith [OutgoingTail.decayHold_pos d] |
| 1265 | have he : OutgoingTail.finalAngular d (HeatTailEdit.switchStart d, 0) = |
| 1266 | HeatTailEdit.outgoingAmplitude d * (1 - d.rho) := by |
| 1267 | rw [OutgoingTail.finalAngular_tail d 0 hstart, OutgoingTail.tailShape_early d] |
| 1268 | · rfl |
| 1269 | · unfold HeatTailEdit.switchStart |
| 1270 | linarith |
| 1271 | have hb := TailCone.finalAngular_suppressed d 0 hlate |
| 1272 | rw [he] at hb |
| 1273 | have hp := HeatTailEdit.outgoingAmplitude_pos d |
| 1274 | have hρ := d.rho_lt_half |
| 1275 | nlinarith |
| 1276 | |
| 1277 | /-- The normalization is exactly the physical carrier normalization in |
| 1278 | `ParametricHeatTail.physicalEdit_heat_carrier`. -/ |
| 1279 | noncomputable def releasedNormalization (d : OutgoingTail.TailData) (K : ℝ) : ℝ := |
| 1280 | HeatTailEdit.outgoingAmplitude d * K ^ amplitudeExponent d.h |
| 1281 | |
| 1282 | theorem releasedNormalization_pos (d : OutgoingTail.TailData) {K : ℝ} (hK : 0 < K) : |
| 1283 | 0 < releasedNormalization d K := |
| 1284 | mul_pos (HeatTailEdit.outgoingAmplitude_pos d) (Real.rpow_pos_of_pos hK _) |
| 1285 | |
| 1286 | /-- The actual parametric heat edit agrees with this module's physical carrier. |
| 1287 | The diffusion identity is proved from the physical similarity coordinates. -/ |
| 1288 | theorem physicalEdit_eq_released_carrier (d : OutgoingTail.TailData) {K : ℝ} (hK : 0 < K) |
| 1289 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) |
| 1290 | (hfull : 1 / 2 ≤ Real.log (SimilarityProfile.X d.h p / K) + 1 / 5) : |
| 1291 | SimilarityProfile.q d.h p ^ (-amplitudeExponent d.h) * |
| 1292 | ParametricHeatTail.physicalEdit d K (SimilarityProfile.eta d.h p) (SimilarityProfile.X d.h p) = |
| 1293 | TerminalStress.physicalHeat (releasedNormalization d K) (1 + d.h) p * |
| 1294 | outgoingTaper d (Real.log K - 1 / 5) (Real.log (SimilarityProfile.X d.h p)) := by |
| 1295 | have hq := SimilarityProfile.q_pos d.h_pos d.h_lt_half ht |
| 1296 | have hτ : 1 - p.1 = SimilarityProfile.q d.h p * (1 - SimilarityProfile.eta d.h p ^ 2) := |
| 1297 | SimilarityCoordinates.tau_coordinate_identity (by linarith [d.h_pos]) |
| 1298 | (by linarith [d.h_lt_half]) (p := (1 - p.1, p.2.2)) (sub_pos.mpr ht) |
| 1299 | have hν : ParametricHeatTail.diffusion (SimilarityProfile.eta d.h p) = |
| 1300 | (1 - p.1) / SimilarityProfile.q d.h p := by |
| 1301 | rw [hτ] |
| 1302 | unfold ParametricHeatTail.diffusion |
| 1303 | field_simp [hq.ne'] |
| 1304 | have he := ParametricHeatTail.physicalEdit_heat_carrier d hK hq hs hν hfull |
| 1305 | have hlog : Real.log (SimilarityProfile.X d.h p / K) + 1 / 5 = |
| 1306 | Real.log (SimilarityProfile.X d.h p) - (Real.log K - 1 / 5) := by |
| 1307 | unfold SimilarityProfile.X |
| 1308 | rw [Real.log_div (div_pos hs hq).ne' hK.ne'] |
| 1309 | ring |
| 1310 | simp only [SimilarityProfile.X] at hlog |
| 1311 | rw [hlog] at he |
| 1312 | simpa only [SimilarityProfile.X, TerminalStress.physicalHeat, releasedNormalization, |
| 1313 | outgoingTaper, HeatTailEdit.exponent, amplitudeExponent] using he |
| 1314 | |
| 1315 | theorem released_heat_bound (d : OutgoingTail.TailData) {K : ℝ} (hK : 0 < K) |
| 1316 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) |
| 1317 | (hX : K ≤ SimilarityProfile.X d.h p) : |
| 1318 | SimilarityProfile.q d.h p ^ (1 - CoordinateAlgebra.D d.h) * |
| 1319 | TerminalStress.physicalHeat (releasedNormalization d K) (1 + d.h) p ≤ |
| 1320 | HeatTailEdit.outgoingAmplitude d := by |
| 1321 | let A := amplitudeExponent d.h |
| 1322 | let q := SimilarityProfile.q d.h p |
| 1323 | have hq : 0 < q := SimilarityProfile.q_pos d.h_pos d.h_lt_half ht |
| 1324 | have hτ : 0 < 1 - p.1 := sub_pos.mpr ht |
| 1325 | have hA : 0 ≤ A := by dsimp [A, amplitudeExponent]; linarith [d.h_pos] |
| 1326 | have hKq : K * q ≤ p.2.1 := (le_div_iff₀ hq).mp hX |
| 1327 | have hratio : (K * q) ^ A / p.2.1 ^ A ≤ 1 := by |
| 1328 | apply (div_le_one (Real.rpow_pos_of_pos hs A)).mpr |
| 1329 | exact Real.rpow_le_rpow (mul_pos hK hq).le hKq hA |
| 1330 | have hratio0 : 0 ≤ (K * q) ^ A / p.2.1 ^ A := by positivity |
| 1331 | have hH := RadialHeatProfile.profile_le_one (a := 1 + d.h) (by linarith [d.h_pos]) |
| 1332 | (show 0 ≤ 2 * (1 - p.1) / p.2.1 by positivity) |
| 1333 | have hH0 := (RadialHeatProfile.profile_pos (a := 1 + d.h) (by linarith [d.h_pos]) |
| 1334 | (show 0 ≤ 2 * (1 - p.1) / p.2.1 by positivity)).le |
| 1335 | have hexp : 1 - CoordinateAlgebra.D d.h = A := by |
| 1336 | dsimp [CoordinateAlgebra.D, A, amplitudeExponent] |
| 1337 | ring |
| 1338 | have hexp' : RadialHeatProfile.spatialExponent (1 + d.h) = -A := by |
| 1339 | dsimp [RadialHeatProfile.spatialExponent, A, amplitudeExponent] |
| 1340 | ring |
| 1341 | calc |
| 1342 | _ = HeatTailEdit.outgoingAmplitude d * ((K * q) ^ A / p.2.1 ^ A) * |
| 1343 | RadialHeatProfile.profile (1 + d.h) (2 * (1 - p.1) / p.2.1) := by |
| 1344 | rw [hexp] |
| 1345 | unfold TerminalStress.physicalHeat RadialHeatProfile.spatialProfile releasedNormalization |
| 1346 | rw [hexp', Real.rpow_neg hs.le, Real.mul_rpow hK.le hq.le] |
| 1347 | dsimp only [A, q] |
| 1348 | ring |
| 1349 | _ ≤ HeatTailEdit.outgoingAmplitude d * 1 * 1 := |
| 1350 | mul_le_mul (mul_le_mul_of_nonneg_left hratio (HeatTailEdit.outgoingAmplitude_pos d).le) |
| 1351 | hH hH0 (mul_nonneg (HeatTailEdit.outgoingAmplitude_pos d).le (by norm_num)) |
| 1352 | _ = _ := by ring |
| 1353 | |
| 1354 | theorem tiltConstant_uniform {h Λ : ℝ} (hh : 0 < h) (hh4 : h ≤ 1 / 4) (hΛ : 1 ≤ Λ) : |
| 1355 | tiltConstant h Λ ≤ 4 * Λ * (Λ - 1) := by |
| 1356 | have hΛp : 0 < Λ := zero_lt_one.trans_le hΛ |
| 1357 | have hc : 2 / (1 - 2 * h) ≤ 4 := by |
| 1358 | apply (div_le_iff₀ (by linarith : 0 < 1 - 2 * h)).mpr |
| 1359 | linarith |
| 1360 | have hp : Λ⁻¹ ≤ Λ ^ (-amplitudeExponent h) := by |
| 1361 | rw [← Real.rpow_neg_one] |
| 1362 | exact Real.rpow_le_rpow_of_exponent_le hΛ (by dsimp [amplitudeExponent]; linarith) |
| 1363 | unfold tiltConstant |
| 1364 | calc |
| 1365 | _ ≤ 4 * (Λ - 1) / Λ ^ (-amplitudeExponent h) := |
| 1366 | div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_right hc (sub_nonneg.mpr hΛ)) |
| 1367 | (Real.rpow_nonneg hΛp.le _) |
| 1368 | _ ≤ 4 * (Λ - 1) / Λ⁻¹ := |
| 1369 | div_le_div_of_nonneg_left (mul_nonneg (by norm_num) (sub_nonneg.mpr hΛ)) (inv_pos.mpr hΛp) hp |
| 1370 | _ = _ := by rw [div_inv_eq_mul]; ring |
| 1371 | |
| 1372 | theorem outgoingTaper_lt_one (d : OutgoingTail.TailData) {y0 y : ℝ} (hy : y < y0 + 3) : |
| 1373 | outgoingTaper d y0 y < 1 := by |
| 1374 | have hδ : 0 < y0 + 3 - y := by linarith |
| 1375 | have he := TerminalStress.tailShape_deficit d (y0 + 3 - y) |
| 1376 | have hp := mul_pos (mul_pos d.rho_pos (FlatCutoff.edge_pos 4 hδ)) |
| 1377 | (TerminalStress.taperFactor_pos (y0 + 3 - y)) |
| 1378 | rw [show 3 - (y0 + 3 - y) = y - y0 by ring] at he |
| 1379 | change OutgoingTail.tailShape d (y - y0) < 1 |
| 1380 | linarith |
| 1381 | |
| 1382 | /-- The bound is uniform in spacetime, in the terminal scale `K`, and in the |
| 1383 | distance to the edge. The released amplitude contributes the proved factor `h^4`. -/ |
| 1384 | theorem released_terminal_tilt (d : OutgoingTail.TailData) {K y0 t z r R Λ : ℝ} |
| 1385 | (hK : 0 < K) (hh4 : d.h ≤ 1 / 4) (ht : t < 1) (hr : 0 < r) (hrR : r ≤ R) |
| 1386 | (hΛ : 1 ≤ Λ) (hRΛ : R ^ 2 ≤ Λ * r ^ 2) |
| 1387 | (hX : K ≤ SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) |
| 1388 | (hR : y0 + 3 ≤ Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t R z))) |
| 1389 | (hinside : Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) < y0 + 3) : |
| 1390 | 0 < TerminalStress.terminalStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r ∧ |
| 1391 | |axialBackwardStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r| / |
| 1392 | TerminalStress.terminalStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r ≤ |
| 1393 | 16 * Λ * (Λ - 1) * OutgoingTail.finalAngular d (d.releaseStart, 0) * d.h ^ 4 := by |
| 1394 | have hb := terminal_tilt_bound (releasedNormalization_pos d hK) d.h_pos d.h_lt_half ht hr hrR |
| 1395 | (outgoingTaper_contDiff d y0) (outgoingTaper_bounds d y0) (outgoingTaper_deriv_nonneg d y0) |
| 1396 | (outgoingTaper_plateau d y0) hR hΛ hRΛ (outgoingTaper_lt_one d hinside) |
| 1397 | refine ⟨hb.1, hb.2.trans ?_⟩ |
| 1398 | have hc := tiltConstant_uniform d.h_pos hh4 hΛ |
| 1399 | have hΛp : 0 ≤ Λ := zero_le_one.trans hΛ |
| 1400 | have hΛsub : 0 ≤ Λ - 1 := sub_nonneg.mpr hΛ |
| 1401 | have hheat := released_heat_bound d hK (p := TerminalStress.radiusPoint t r z) ht |
| 1402 | (by dsimp [TerminalStress.radiusPoint]; positivity) hX |
| 1403 | have hp : 0 ≤ SimilarityProfile.q d.h (TerminalStress.radiusPoint t r z) ^ (1 - CoordinateAlgebra.D d.h) * |
| 1404 | TerminalStress.heatAmplitude (releasedNormalization d K) (1 + d.h) t r := by |
| 1405 | exact mul_nonneg (Real.rpow_nonneg (SimilarityProfile.q_pos d.h_pos d.h_lt_half ht).le _) |
| 1406 | (TerminalStress.heatAmplitude_pos (releasedNormalization_pos d hK) (by linarith [d.h_pos]) ht hr).le |
| 1407 | calc |
| 1408 | _ ≤ (4 * Λ * (Λ - 1)) * HeatTailEdit.outgoingAmplitude d := by |
| 1409 | rw [mul_assoc] |
| 1410 | exact mul_le_mul hc hheat hp (by positivity) |
| 1411 | _ ≤ (4 * Λ * (Λ - 1)) * |
| 1412 | (4 * OutgoingTail.finalAngular d (d.releaseStart, 0) * d.h ^ 4) := |
| 1413 | mul_le_mul_of_nonneg_left (outgoingAmplitude_suppressed d) (by positivity) |
| 1414 | _ = _ := by ring |
| 1415 | |
| 1416 | theorem released_terminal_tilt_small (d : OutgoingTail.TailData) {K y0 t z r R Λ ε : ℝ} |
| 1417 | (hK : 0 < K) (hh4 : d.h ≤ 1 / 4) (ht : t < 1) (hr : 0 < r) (hrR : r ≤ R) |
| 1418 | (hΛ : 1 ≤ Λ) (hRΛ : R ^ 2 ≤ Λ * r ^ 2) |
| 1419 | (hX : K ≤ SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) |
| 1420 | (hR : y0 + 3 ≤ Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t R z))) |
| 1421 | (hinside : Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) < y0 + 3) |
| 1422 | (hsmall : d.h ≤ ε / (1 + 16 * Λ * (Λ - 1) * OutgoingTail.finalAngular d (d.releaseStart, 0))) : |
| 1423 | |axialBackwardStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r| / |
| 1424 | TerminalStress.terminalStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r ≤ ε := by |
| 1425 | have hb := (released_terminal_tilt d hK hh4 ht hr hrR hΛ hRΛ hX hR hinside).2 |
| 1426 | let B := 16 * Λ * (Λ - 1) * OutgoingTail.finalAngular d (d.releaseStart, 0) |
| 1427 | have hB : 0 ≤ B := mul_nonneg (mul_nonneg (mul_nonneg (by norm_num) (zero_le_one.trans hΛ)) |
| 1428 | (sub_nonneg.mpr hΛ)) (OutgoingTail.finalAngular_pos d _).le |
| 1429 | have hh1 : d.h ≤ 1 := by linarith |
| 1430 | have hhpow : d.h ^ 4 ≤ d.h := by |
| 1431 | calc |
| 1432 | _ = d.h * d.h ^ 3 := by ring |
| 1433 | _ ≤ d.h * 1 ^ 3 := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ d.h_pos.le hh1 3) d.h_pos.le |
| 1434 | _ = _ := by ring |
| 1435 | have hs : d.h * (1 + B) ≤ ε := (le_div_iff₀ (by linarith : 0 < 1 + B)).mp hsmall |
| 1436 | apply hb.trans |
| 1437 | change B * d.h ^ 4 ≤ ε |
| 1438 | nlinarith [mul_le_mul_of_nonneg_left hhpow hB, d.h_pos] |
| 1439 | |
| 1440 | /-- Full physical residual formula after discharging the pressure regularity |
| 1441 | and improper-integral assumptions. The axial viscosity of the swirl is retained. -/ |
| 1442 | theorem outgoing_navierStokesResidual (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| 1443 | {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) |
| 1444 | (hs : 0 < AxisymmetricFields.radialEnergy x) : |
| 1445 | ProblemStatement.navierStokesResidual |
| 1446 | (TerminalStress.terminalVelocity C d.h (outgoingTaper d y0)) |
| 1447 | (TerminalStress.terminalPressure C d.h (outgoingTaper d y0)) t x = |
| 1448 | AxisymmetricResidual.pack |
| 1449 | (-x 1 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * |
| 1450 | (TerminalStress.leadingResidual C d.h (outgoingTaper d y0) t |
| 1451 | (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - |
| 1452 | TerminalStress.axialViscosity C d.h (outgoingTaper d y0) (AxisymmetricFields.profilePoint t x))) |
| 1453 | (x 0 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * |
| 1454 | (TerminalStress.leadingResidual C d.h (outgoingTaper d y0) t |
| 1455 | (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - |
| 1456 | TerminalStress.axialViscosity C d.h (outgoingTaper d y0) (AxisymmetricFields.profilePoint t x))) |
| 1457 | (SimilarityProfile.partialZ (outgoingPressure C d y0) (AxisymmetricFields.profilePoint t x)) := by |
| 1458 | let a := AxisymmetricFields.radialEnergy x / 2 |
| 1459 | have ha : 0 < a := by dsimp [a]; positivity |
| 1460 | have hi := swirlCoefficient_sq_integrable C (p := (t, (a, x 2))) d.h_pos d.h_lt_half ht ha |
| 1461 | (outgoingTaper_contDiff d y0).continuous (outgoingTaper_bounds d y0) |
| 1462 | have hc : ContinuousOn (fun s => TerminalStress.swirlCoefficient C d.h (outgoingTaper d y0) |
| 1463 | (t, (s, x 2)) ^ 2) (Ioi a) := by |
| 1464 | intro s hs' |
| 1465 | have hlocal := TerminalStress.swirlCoefficient_contDiffAt C |
| 1466 | (p := (t, (s, x 2))) (f := outgoingTaper d y0) d.h_pos d.h_lt_half ht (ha.trans hs') |
| 1467 | ((outgoingTaper_contDiff d y0).contDiffAt.of_le (WithTop.coe_le_coe.mpr le_top)) |
| 1468 | exact (((hlocal.comp s (contDiffAt_const.prodMk |
| 1469 | (contDiffAt_id.prodMk contDiffAt_const))).continuousAt).pow 2).continuousWithinAt |
| 1470 | exact TerminalStress.terminal_navierStokesResidual C d.h_pos d.h_lt_half ht hs |
| 1471 | ((outgoingTaper_contDiff d y0).contDiffAt.of_le (WithTop.coe_le_coe.mpr le_top)) |
| 1472 | (show a < AxisymmetricFields.radialEnergy x by dsimp [a]; linarith) hi hc |
| 1473 | ((outgoingPressure_contDiffAt C d y0 ht hs).differentiableAt (by simp)) |
| 1474 | |
| 1475 | /-- The backward axial primitive has the required cylindrical divergence, |
| 1476 | computed from actual derivatives of the canonical pressure. -/ |
| 1477 | theorem axialBackwardStress_divergence {C h t z r R Y : ℝ} {f : ℝ → ℝ} |
| 1478 | (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) |
| 1479 | (hr : 0 < r) (hrR : r ≤ R) (hf : ContDiff ℝ ∞ f) |
| 1480 | (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) |
| 1481 | (hplateau : ∀ y, Y ≤ y → f y = 1) |
| 1482 | (hR : Y ≤ Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z))) : |
| 1483 | deriv (axialBackwardStress C h f t z) r + axialBackwardStress C h f t z r / r = |
| 1484 | -SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 1485 | (TerminalStress.swirlCoefficient C h f)) (TerminalStress.radiusPoint t r z) := by |
| 1486 | let g : ℝ → ℝ := fun s => SimilarityProfile.partialZ (TerminalStress.canonicalPressure |
| 1487 | (TerminalStress.swirlCoefficient C h f)) (t, (s, z)) |
| 1488 | have ha : 0 < (r / 2) ^ 2 / 2 := by positivity |
| 1489 | have hab : (r / 2) ^ 2 / 2 < r ^ 2 / 2 := by nlinarith [sq_pos_of_pos hr] |
| 1490 | have hi : IntegrableOn g (Ioi ((r / 2) ^ 2 / 2)) := |
| 1491 | (axialBackwardStress_bound hC hh hh1 ht (by positivity : 0 < r / 2) |
| 1492 | (by linarith : r / 2 ≤ R) hf hb hmono hplateau hR).1 |
| 1493 | have hc : ContinuousOn g (Ioi ((r / 2) ^ 2 / 2)) := by |
| 1494 | intro s hs |
| 1495 | exact (((canonicalPressure_partialZ_contDiffAt C (p := (t, (s, z))) hh hh1 ht |
| 1496 | (ha.trans hs) hf hb hplateau).comp s |
| 1497 | (contDiffAt_const.prodMk (contDiffAt_id.prodMk contDiffAt_const))).continuousAt).continuousWithinAt |
| 1498 | have hd := (TerminalStress.neg_tailIntegral_hasDerivAt hab hi hc).fun_neg |
| 1499 | simp only [neg_neg] at hd |
| 1500 | have hdr := hd.comp r (RadialHeatProfile.radiusSquared_hasDerivAt r) |
| 1501 | have hquot := hdr.fun_div (hasDerivAt_id r) hr.ne' |
| 1502 | change HasDerivAt (axialBackwardStress C h f t z) _ r at hquot |
| 1503 | rw [hquot.deriv] |
| 1504 | change _ = -g (r ^ 2 / 2) |
| 1505 | dsimp only [axialBackwardStress, Function.comp_apply, id_eq] |
| 1506 | field_simp [hr.ne'] ; ring |
| 1507 | |
| 1508 | end NavierStokes.TerminalPressure |