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.RenormalizedHeatMoment |
| 2 | import NavierStokes.ExtendedHeatDebts |
| 3 | import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals |
| 4 | |
| 5 | /-! |
| 6 | # Actual history limits on the pure heat tail |
| 7 | |
| 8 | All tail integrals below are actual improper integrals. Their differentiated |
| 9 | kernels have explicit integrable power majorants. The physical histories use |
| 10 | the same outgoing profile and the same compensation witness throughout. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter Function MeasureTheory |
| 16 | open scoped ContDiff Topology BigOperators |
| 17 | open NavierStokes.OutgoingProfile (Profile) |
| 18 | open NavierStokes.HeatedOutgoing (CompensationWitness Coeff) |
| 19 | |
| 20 | namespace NavierStokes.HeatTailHistoryLimits |
| 21 | |
| 22 | /-! ## Differentiated heat corrections and their actual tail integrals -/ |
| 23 | |
| 24 | noncomputable def tailKernel (square : Bool) (h k : ℝ) (n : ℕ) (ν u : ℝ) : ℝ := |
| 25 | u ^ (-k) * ExtendedHeatDebts.editJet square h 1 n ν u |
| 26 | |
| 27 | noncomputable def tailJet (square : Bool) (h k : ℝ) (n : ℕ) (X ν : ℝ) : ℝ := |
| 28 | ∫ u in Ioi X, tailKernel square h k n ν u |
| 29 | |
| 30 | theorem integral_decay_power {k X : ℝ} (hk : 0 < k) (hX : 0 < X) : |
| 31 | (∫ u : ℝ in Ioi X, u ^ (-k - 1)) = X ^ (-k) / k := by |
| 32 | have ht := integral_Ioi_rpow_of_lt (by linarith : -k - 1 < -1) hX |
| 33 | simpa only [show -k - 1 + 1 = -k by ring, neg_div_neg_eq] using ht |
| 34 | |
| 35 | theorem tailKernel_bound {h k L ν u : ℝ} (hh : 0 < h) (hu : 1 ≤ u) |
| 36 | (hν : |ν| ≤ L) (square : Bool) (n : ℕ) : |
| 37 | ‖tailKernel square h k n ν u‖ ≤ ExtendedHeatDebts.editBound square h L n * u ^ (-k - 1) := by |
| 38 | have hup : 0 < u := zero_lt_one.trans_le hu |
| 39 | rw [tailKernel, norm_mul, Real.norm_eq_abs, abs_of_pos (Real.rpow_pos_of_pos hup _)] |
| 40 | calc |
| 41 | _ ≤ u ^ (-k) * (ExtendedHeatDebts.editBound square h L n / u) := |
| 42 | mul_le_mul_of_nonneg_left (ExtendedHeatDebts.editJet_bound hh hu hν square n) |
| 43 | (Real.rpow_pos_of_pos hup _).le |
| 44 | _ = _ := by rw [Real.rpow_sub_one hup.ne']; ring |
| 45 | |
| 46 | theorem tailKernel_continuousOn {h : ℝ} (hh : 0 < h) (square : Bool) (k : ℝ) |
| 47 | (n : ℕ) (ν : ℝ) : ContinuousOn (tailKernel square h k n ν) (Ioi 0) := |
| 48 | (continuousOn_id.rpow_const (fun u hu => Or.inl (show 0 < u from hu).ne')).mul |
| 49 | (ExtendedHeatDebts.editJet_continuousOn_X hh zero_lt_one square n ν) |
| 50 | |
| 51 | theorem tailKernel_measurable {h X : ℝ} (hh : 0 < h) (hX : 1 ≤ X) |
| 52 | (square : Bool) (k : ℝ) (n : ℕ) (ν : ℝ) : |
| 53 | AEStronglyMeasurable (tailKernel square h k n ν) (volume.restrict (Ioi X)) := |
| 54 | ((tailKernel_continuousOn hh square k n ν).mono |
| 55 | (Ioi_subset_Ioi (zero_le_one.trans hX))).aestronglyMeasurable measurableSet_Ioi |
| 56 | |
| 57 | theorem tailKernel_dominated {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 58 | (square : Bool) : |
| 59 | ExtendedHeatDebts.ChainDominated (fun n ν u => tailKernel square h k n ν u) |
| 60 | (volume.restrict (Ioi X)) := by |
| 61 | intro n L hL |
| 62 | refine ⟨fun u => ExtendedHeatDebts.editBound square h L n * u ^ (-k - 1), |
| 63 | (integrableOn_Ioi_rpow_of_lt (by linarith : -k - 1 < -1) |
| 64 | (zero_lt_one.trans_le hX)).const_mul _, ?_⟩ |
| 65 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 66 | exact fun ν hν => tailKernel_bound hh (hX.trans hu.le) hν square n |
| 67 | |
| 68 | theorem tailKernel_integrable {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 69 | (square : Bool) (n : ℕ) (ν : ℝ) : IntegrableOn (tailKernel square h k n ν) (Ioi X) := |
| 70 | ExtendedHeatDebts.chain_integrable (tailKernel_measurable hh hX square k) |
| 71 | (tailKernel_dominated hh hk hX square) n ν |
| 72 | |
| 73 | theorem tailJet_bound {h k X L ν : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 74 | (hν : |ν| ≤ L) (square : Bool) (n : ℕ) : |
| 75 | |tailJet square h k n X ν| ≤ |
| 76 | (ExtendedHeatDebts.editBound square h L n / k) * X ^ (-k) := by |
| 77 | have hi := (integrableOn_Ioi_rpow_of_lt (by linarith : -k - 1 < -1) |
| 78 | (zero_lt_one.trans_le hX)).const_mul (ExtendedHeatDebts.editBound square h L n) |
| 79 | have hb := norm_integral_le_of_norm_le hi (by |
| 80 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 81 | exact tailKernel_bound hh (hX.trans hu.le) hν square n) |
| 82 | rw [integral_const_mul, integral_decay_power hk (zero_lt_one.trans_le hX)] at hb |
| 83 | simpa only [tailJet, Real.norm_eq_abs, mul_div_assoc, div_mul_eq_mul_div] using hb |
| 84 | |
| 85 | theorem tailKernel_hasDerivAt {h : ℝ} (hh : 0 < h) (square : Bool) (k : ℝ) |
| 86 | (n : ℕ) (u ν : ℝ) : |
| 87 | HasDerivAt (fun v => tailKernel square h k n v u) (tailKernel square h k (n + 1) ν u) ν := |
| 88 | (ExtendedHeatDebts.editJet_hasDerivAt hh 1 u square n ν).const_mul _ |
| 89 | |
| 90 | theorem tailJet_hasDerivAt {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 91 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 92 | HasDerivAt (tailJet square h k n X) (tailJet square h k (n + 1) X ν) ν := |
| 93 | ExtendedHeatDebts.integral_chain_hasDerivAt |
| 94 | (Eventually.of_forall fun u n ν => tailKernel_hasDerivAt hh square k n u ν) |
| 95 | (tailKernel_measurable hh hX square k) (tailKernel_dominated hh hk hX square) n ν |
| 96 | |
| 97 | theorem tailJet_contDiff {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 98 | (square : Bool) : ContDiff ℝ ∞ (tailJet square h k 0 X) := |
| 99 | ExtendedHeatDebts.contDiff_integral_chain |
| 100 | (Eventually.of_forall fun u n ν => tailKernel_hasDerivAt hh square k n u ν) |
| 101 | (tailKernel_measurable hh hX square k) (tailKernel_dominated hh hk hX square) |
| 102 | |
| 103 | theorem tailJet_eq_iteratedDeriv {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 104 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 105 | iteratedDeriv n (tailJet square h k 0 X) ν = tailJet square h k n X ν := |
| 106 | ExtendedHeatDebts.iteratedDeriv_integral_chain |
| 107 | (Eventually.of_forall fun u n ν => tailKernel_hasDerivAt hh square k n u ν) |
| 108 | (tailKernel_measurable hh hX square k) (tailKernel_dominated hh hk hX square) n ν |
| 109 | |
| 110 | theorem tailJet_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 111 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 112 | Tendsto (fun X => tailJet square h k n X ν) atTop (𝓝 0) := by |
| 113 | apply squeeze_zero_norm' (a := fun X => |
| 114 | (ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-k)) |
| 115 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 116 | exact tailJet_bound hh hk hX le_rfl square n |
| 117 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop hk).const_mul |
| 118 | (ExtendedHeatDebts.editBound square h |ν| n / k) |
| 119 | |
| 120 | theorem mul_decay_power {k X : ℝ} (hX : 0 < X) : |
| 121 | X * X ^ (-k) = X ^ (-(k - 1)) := by |
| 122 | calc |
| 123 | X * X ^ (-k) = X ^ (1 : ℝ) * X ^ (-k) := by rw [Real.rpow_one] |
| 124 | _ = X ^ (1 + -k) := (Real.rpow_add hX _ _).symm |
| 125 | _ = _ := by congr 1; ring |
| 126 | |
| 127 | theorem mul_tailJet_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) |
| 128 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 129 | Tendsto (fun X => X * tailJet square h k n X ν) atTop (𝓝 0) := by |
| 130 | apply squeeze_zero_norm' (a := fun X => |
| 131 | (ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-(k - 1))) |
| 132 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 133 | have hXp := zero_lt_one.trans_le hX |
| 134 | rw [norm_mul, Real.norm_eq_abs, abs_of_pos hXp, Real.norm_eq_abs] |
| 135 | calc |
| 136 | _ ≤ X * ((ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-k)) := |
| 137 | mul_le_mul_of_nonneg_left (tailJet_bound hh (zero_lt_one.trans hk) hX le_rfl square n) hXp.le |
| 138 | _ = _ := by rw [mul_left_comm, mul_decay_power hXp] |
| 139 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).const_mul |
| 140 | (ExtendedHeatDebts.editBound square h |ν| n / k) |
| 141 | |
| 142 | noncomputable def etaTail (square : Bool) (h k X η : ℝ) : ℝ := |
| 143 | tailJet square h k 0 X (ParametricHeatTail.diffusion η) |
| 144 | |
| 145 | theorem etaTail_contDiff {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 146 | (square : Bool) : ContDiff ℝ ∞ (etaTail square h k X) := |
| 147 | (tailJet_contDiff hh hk hX square).comp ParametricHeatTail.diffusion_contDiff |
| 148 | |
| 149 | theorem etaTail_hasDerivAt {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 150 | (square : Bool) (η : ℝ) : HasDerivAt (etaTail square h k X) |
| 151 | (tailJet square h k 1 X (ParametricHeatTail.diffusion η) * (-2 * η)) η := |
| 152 | (tailJet_hasDerivAt hh hk hX square 0 _).comp η (ParametricHeatTail.diffusion_hasDerivAt η) |
| 153 | |
| 154 | theorem etaTail_bound {h k X η : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 155 | (hη : η ∈ Icc (-1 : ℝ) 1) (square : Bool) : |
| 156 | |etaTail square h k X η| ≤ (ExtendedHeatDebts.editBound square h 1 0 / k) * X ^ (-k) := by |
| 157 | exact tailJet_bound hh hk hX |
| 158 | (by rw [abs_of_nonneg (ParametricHeatTail.diffusion_mem hη).1]; exact (ParametricHeatTail.diffusion_mem hη).2) |
| 159 | square 0 |
| 160 | |
| 161 | theorem etaTail_derivative_bound {h k X η : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 162 | (hη : η ∈ Icc (-1 : ℝ) 1) (square : Bool) : |
| 163 | |deriv (etaTail square h k X) η| ≤ |
| 164 | 2 * (ExtendedHeatDebts.editBound square h 1 1 / k) * X ^ (-k) := by |
| 165 | rw [(etaTail_hasDerivAt hh hk hX square η).deriv, abs_mul] |
| 166 | have hη' : |-2 * η| ≤ 2 := by |
| 167 | rw [abs_mul] |
| 168 | norm_num |
| 169 | exact (abs_le.mpr hη).trans_eq (by ring) |
| 170 | have hb := tailJet_bound (L := 1) hh hk hX |
| 171 | (by rw [abs_of_nonneg (ParametricHeatTail.diffusion_mem hη).1]; exact (ParametricHeatTail.diffusion_mem hη).2) |
| 172 | square 1 |
| 173 | nlinarith [abs_nonneg (tailJet square h k 1 X (ParametricHeatTail.diffusion η))] |
| 174 | |
| 175 | theorem etaTail_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) (square : Bool) (η : ℝ) : |
| 176 | Tendsto (fun X => etaTail square h k X η) atTop (𝓝 0) := |
| 177 | tailJet_tendsto_zero hh hk square 0 _ |
| 178 | |
| 179 | theorem etaTail_derivative_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 180 | (square : Bool) (η : ℝ) : Tendsto (fun X => deriv (etaTail square h k X) η) atTop (𝓝 0) := by |
| 181 | have ht := (tailJet_tendsto_zero hh hk square 1 (ParametricHeatTail.diffusion η)).mul_const (-2 * η) |
| 182 | apply (show Tendsto (fun X => tailJet square h k 1 X (ParametricHeatTail.diffusion η) * (-2 * η)) |
| 183 | atTop (𝓝 0) by simpa only [zero_mul] using ht).congr' |
| 184 | filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 185 | exact (etaTail_hasDerivAt hh hk hX square η).deriv.symm |
| 186 | |
| 187 | theorem mul_etaTail_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) (square : Bool) (η : ℝ) : |
| 188 | Tendsto (fun X => X * etaTail square h k X η) atTop (𝓝 0) := |
| 189 | mul_tailJet_tendsto_zero hh hk square 0 _ |
| 190 | |
| 191 | theorem mul_etaTail_derivative_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) |
| 192 | (square : Bool) (η : ℝ) : Tendsto (fun X => X * deriv (etaTail square h k X) η) atTop (𝓝 0) := by |
| 193 | have ht := (mul_tailJet_tendsto_zero hh hk square 1 (ParametricHeatTail.diffusion η)).mul_const (-2 * η) |
| 194 | apply (show Tendsto (fun X => (X * tailJet square h k 1 X (ParametricHeatTail.diffusion η)) * (-2 * η)) |
| 195 | atTop (𝓝 0) by simpa only [zero_mul] using ht).congr' |
| 196 | filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 197 | rw [(etaTail_hasDerivAt hh (zero_lt_one.trans hk) hX square η).deriv] |
| 198 | ring |
| 199 | |
| 200 | /-! ## Exact exterior formulas for the supplied outgoing profile -/ |
| 201 | |
| 202 | noncomputable def amplitude (F : Profile) (XR : ℝ) : ℝ := |
| 203 | RenormalizedHeatMoment.outgoingPowerAmplitude F XR |
| 204 | |
| 205 | noncomputable def angularAmplitude (F : Profile) (XR : ℝ) : ℝ := |
| 206 | Real.sqrt 2 * amplitude F XR |
| 207 | |
| 208 | noncomputable def tailStart (F : Profile) (XR : ℝ) : ℝ := |
| 209 | max (RenormalizedHeatMoment.heatThreshold F XR) (Real.exp 1) |
| 210 | |
| 211 | theorem tailStart_ge_one (F : Profile) (XR : ℝ) : 1 ≤ tailStart F XR := |
| 212 | (Real.one_le_exp_iff.mpr (by norm_num : (0 : ℝ) ≤ 1)).trans (le_max_right _ _) |
| 213 | |
| 214 | theorem tailStart_ge_switch (F : Profile) {XR : ℝ} (hXR : 0 < XR) : |
| 215 | OutgoingDilation.switchRadius F XR ≤ tailStart F XR := by |
| 216 | have he : 1 ≤ Real.exp (3 : ℝ) := Real.one_le_exp_iff.mpr (by norm_num) |
| 217 | have hp := mul_le_mul_of_nonneg_left he (OutgoingDilation.switchRadius_pos F XR hXR).le |
| 218 | have hg : OutgoingDilation.switchRadius F XR ≤ RenormalizedHeatMoment.heatThreshold F XR := by |
| 219 | simpa only [mul_one, RenormalizedHeatMoment.heatThreshold] using hp |
| 220 | exact hg.trans (le_max_left _ _) |
| 221 | |
| 222 | theorem helper_switch_one {X : ℝ} (hX : Real.exp 1 ≤ X) : HeatTailEdit.switch 1 X = 1 := by |
| 223 | apply HeatTailEdit.switch_one |
| 224 | have h := Real.log_le_log (Real.exp_pos 1) hX |
| 225 | simp only [Real.log_exp, div_one] at * |
| 226 | linarith |
| 227 | |
| 228 | noncomputable def heatFactor (h η X : ℝ) : ℝ := |
| 229 | HeatProfileExtension.physicalProfile (1 + h) X η |
| 230 | |
| 231 | theorem heatFactor_eq_profile (h : ℝ) {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) |
| 232 | (hX : 0 < X) : |
| 233 | heatFactor h η X = RadialHeatProfile.profile (1 + h) (2 * (1 - η ^ 2) / X) := |
| 234 | HeatProfileExtension.physicalProfile_eq_profile _ hX hη |
| 235 | |
| 236 | theorem correction_eq_factor (h : ℝ) (η : ℝ) {X : ℝ} (hX : Real.exp 1 ≤ X) : |
| 237 | ExtendedHeatDebts.editJet false h 1 0 (ParametricHeatTail.diffusion η) X = heatFactor h η X - 1 := by |
| 238 | simp only [ExtendedHeatDebts.editJet, Bool.false_eq_true, ite_false, |
| 239 | ExtendedHeatDebts.correctionJet_zero, ExtendedHeatDebts.correction, |
| 240 | helper_switch_one hX, one_mul] |
| 241 | rfl |
| 242 | |
| 243 | theorem squareCorrection_eq_factor (h : ℝ) (η : ℝ) {X : ℝ} (hX : Real.exp 1 ≤ X) : |
| 244 | ExtendedHeatDebts.editJet true h 1 0 (ParametricHeatTail.diffusion η) X = heatFactor h η X ^ 2 - 1 := by |
| 245 | simp only [ExtendedHeatDebts.editJet, ite_true, |
| 246 | ExtendedHeatDebts.squareCorrectionJet_zero, ExtendedHeatDebts.multiplier, |
| 247 | ExtendedHeatDebts.correction, helper_switch_one hX, one_mul, add_sub_cancel] |
| 248 | rfl |
| 249 | |
| 250 | theorem sqrt_power_identity (h D : ℝ) {X : ℝ} (hX : 0 < X) : |
| 251 | Real.sqrt (2 * X) * (D * X ^ (-(1 / 2 + h))) = Real.sqrt 2 * D * X ^ (-h) := by |
| 252 | have hp : Real.sqrt X * X ^ (-(1 / 2 + h)) = X ^ (-h) := by |
| 253 | rw [Real.sqrt_eq_rpow, ← Real.rpow_add hX] |
| 254 | congr 1 |
| 255 | ring |
| 256 | rw [Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2)] |
| 257 | calc |
| 258 | _ = Real.sqrt 2 * D * (Real.sqrt X * X ^ (-(1 / 2 + h))) := by ring |
| 259 | _ = _ := by rw [hp] |
| 260 | |
| 261 | theorem powerH_eq (F : Profile) {XR X : ℝ} (hXR : 0 < XR) (hX : 0 < X) : |
| 262 | OutgoingDilation.powerH F XR X = angularAmplitude F XR * X ^ (-F.data.h) := by |
| 263 | rw [RenormalizedHeatMoment.outgoing_powerH F hXR hX] |
| 264 | exact sqrt_power_identity F.data.h (amplitude F XR) hX |
| 265 | |
| 266 | theorem heated_H_eq (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 267 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 268 | HeatedOutgoing.H F XR c (X,η) = |
| 269 | angularAmplitude F XR * X ^ (-F.data.h) * heatFactor F.data.h η X := by |
| 270 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 271 | rw [HeatedOutgoing.H, RenormalizedHeatMoment.heated_exterior F hXR c η |
| 272 | ((le_max_left _ _).trans hX), ← heatFactor_eq_profile _ hη hXp, ← mul_assoc] |
| 273 | rw [show RenormalizedHeatMoment.A F.data.h = 1 / 2 + F.data.h from rfl, |
| 274 | sqrt_power_identity _ _ hXp] |
| 275 | rfl |
| 276 | |
| 277 | theorem heated_square_eq (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 278 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 279 | HeatedOutgoing.E F XR c (X,η) ^ 2 = amplitude F XR ^ 2 * |
| 280 | X ^ (-(1 + 2 * F.data.h)) * heatFactor F.data.h η X ^ 2 := by |
| 281 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 282 | rw [RenormalizedHeatMoment.heated_exterior F hXR c η ((le_max_left _ _).trans hX), |
| 283 | ← heatFactor_eq_profile _ hη hXp, mul_pow, mul_pow] |
| 284 | have hp : (X ^ (-RenormalizedHeatMoment.A F.data.h)) ^ 2 = X ^ (-(1 + 2 * F.data.h)) := by |
| 285 | rw [pow_two, ← Real.rpow_add hXp] |
| 286 | congr 1 |
| 287 | unfold RenormalizedHeatMoment.A |
| 288 | ring |
| 289 | rw [hp] |
| 290 | rfl |
| 291 | |
| 292 | theorem heated_difference_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 293 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 294 | HeatedOutgoing.H F XR c (X,η) - OutgoingDilation.powerH F XR X = |
| 295 | angularAmplitude F XR * tailKernel false F.data.h F.data.h 0 (ParametricHeatTail.diffusion η) X := by |
| 296 | rw [heated_H_eq F hXR c hη hX, |
| 297 | powerH_eq F hXR (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX)), |
| 298 | tailKernel, correction_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 299 | ring |
| 300 | |
| 301 | theorem heated_square_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 302 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 303 | HeatedOutgoing.E F XR c (X,η) ^ 2 = amplitude F XR ^ 2 * |
| 304 | (X ^ (-(1 + 2 * F.data.h)) + |
| 305 | tailKernel true F.data.h (1 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) X) := by |
| 306 | rw [heated_square_eq F hXR c hη hX, tailKernel, |
| 307 | squareCorrection_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 308 | ring |
| 309 | |
| 310 | theorem canonicalKernel_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 311 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 312 | HeatedOutgoing.canonicalKernel F XR c η X = amplitude F XR ^ 2 * |
| 313 | (X ^ (-(2 + 2 * F.data.h)) + |
| 314 | tailKernel true F.data.h (2 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) X) := by |
| 315 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 316 | rw [HeatedOutgoing.canonicalKernel, heated_square_eq F hXR c hη hX, |
| 317 | tailKernel, squareCorrection_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 318 | have hp : X ^ (-(1 + 2 * F.data.h)) / X = X ^ (-(2 + 2 * F.data.h)) := by |
| 319 | rw [← Real.rpow_sub_one hXp.ne'] |
| 320 | congr 1 |
| 321 | ring |
| 322 | calc |
| 323 | _ = amplitude F XR ^ 2 * (X ^ (-(1 + 2 * F.data.h)) / X) * heatFactor F.data.h η X ^ 2 := by ring |
| 324 | _ = _ := by rw [hp]; ring |
| 325 | |
| 326 | /-! ## The constants are fixed by the same compensation witness -/ |
| 327 | |
| 328 | noncomputable def angularHistory (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (η X : ℝ) : ℝ := |
| 329 | ∫ u in Ioc 0 X, HeatedOutgoing.H F XR c (u,η) |
| 330 | |
| 331 | noncomputable def energyHistory (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (η X : ℝ) : ℝ := |
| 332 | ∫ u in Ioc 0 X, HeatedOutgoing.energyDensity F XR c η u |
| 333 | |
| 334 | noncomputable def powerHistory (F : Profile) (XR X : ℝ) : ℝ := |
| 335 | ∫ u in Ioc 0 X, OutgoingDilation.powerH F XR u |
| 336 | |
| 337 | theorem split_positive_integral {f : ℝ → ℝ} (hf : IntegrableOn f (Ioi 0)) {X : ℝ} (hX : 0 ≤ X) : |
| 338 | (∫ u in Ioc 0 X, f u) + (∫ u in Ioi X, f u) = ∫ u in Ioi 0, f u := by |
| 339 | simpa only [Ioc_union_Ioi_eq_Ioi hX] using |
| 340 | (setIntegral_union Ioc_disjoint_Ioi_same measurableSet_Ioi |
| 341 | (hf.mono_set Ioc_subset_Ioi_self) (hf.mono_set (Ioi_subset_Ioi hX))).symm |
| 342 | |
| 343 | theorem angularHistory_integrable {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 344 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : |
| 345 | IntegrableOn (fun u => HeatedOutgoing.H F XR w.coefficients (u,η)) (Ioc 0 X) := by |
| 346 | have hi := (OutgoingDilation.I_integrable F XR η X w.radius_pos hX).add |
| 347 | ((w.changeRow_integrable η 2 hη).mono_set Ioc_subset_Ioi_self) |
| 348 | apply IntegrableOn.congr_fun hi _ measurableSet_Ioc |
| 349 | intro u hu |
| 350 | change Real.sqrt (2*u) * OutgoingDilation.E F XR (u,η) + |
| 351 | Real.sqrt (2*u) * (HeatedOutgoing.E F XR w.coefficients (u,η) - OutgoingDilation.E F XR (u,η)) = |
| 352 | Real.sqrt (2*u) * HeatedOutgoing.E F XR w.coefficients (u,η) |
| 353 | ring |
| 354 | |
| 355 | theorem angularHistory_eq_power_sub_future {F : Profile} {XR C : ℝ} |
| 356 | (w : CompensationWitness F XR C) {η X : ℝ} |
| 357 | (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : |
| 358 | angularHistory F XR w.coefficients η X = powerHistory F XR X - |
| 359 | ∫ u in Ioi X, HeatedOutgoing.H F XR w.coefficients (u,η) - OutgoingDilation.powerH F XR u := by |
| 360 | have hi := angularHistory_integrable w hη hX |
| 361 | have hr := (w.renormalized_integrable η hη).mono_set (show Ioc (0 : ℝ) X ⊆ Ioi 0 from fun _ h => h.1) |
| 362 | have hp : IntegrableOn (OutgoingDilation.powerH F XR) (Ioc 0 X) := by |
| 363 | apply IntegrableOn.congr_fun (hi.sub hr) _ measurableSet_Ioc |
| 364 | intro u hu |
| 365 | dsimp |
| 366 | ring |
| 367 | have hs := split_positive_integral (w.renormalized_integrable η hη) hX.le |
| 368 | rw [w.renormalized_zero η hη, integral_sub hi hp] at hs |
| 369 | unfold angularHistory powerHistory |
| 370 | linarith |
| 371 | |
| 372 | theorem energyHistory_eq_square_future {F : Profile} {XR C B : ℝ} |
| 373 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 374 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) |
| 375 | (hX : OutgoingDilation.switchRadius F XR ≤ X) : |
| 376 | energyHistory F XR w.coefficients η X = |
| 377 | (1/2 : ℝ) * ∫ u in Ioi X, HeatedOutgoing.E F XR w.coefficients (u,η)^2 := by |
| 378 | have hXp := (OutgoingDilation.switchRadius_pos F XR w.radius_pos).trans_le hX |
| 379 | have hs := split_positive_integral (w.energy_integrable η hη) hXp.le |
| 380 | have hz := w.energy_zero hF η hη |
| 381 | unfold HeatedOutgoing.totalS at hz |
| 382 | rw [hz] at hs |
| 383 | have he : (∫ u in Ioi X, HeatedOutgoing.energyDensity F XR w.coefficients η u) = |
| 384 | ∫ u in Ioi X, -(HeatedOutgoing.E F XR w.coefficients (u,η)^2/2) := by |
| 385 | apply setIntegral_congr_fun measurableSet_Ioi |
| 386 | intro u hu |
| 387 | rw [HeatedOutgoing.energyDensity, |
| 388 | HeatedOutgoing.U_after_switch F XR η u w.radius_pos (hX.trans hu.le)] |
| 389 | ring |
| 390 | rw [he, integral_neg, integral_div] at hs |
| 391 | unfold energyHistory |
| 392 | linarith |
| 393 | |
| 394 | noncomputable def powerTail (k X : ℝ) : ℝ := X ^ (-(k - 1)) / (k - 1) |
| 395 | |
| 396 | theorem powerTail_eq_integral {k X : ℝ} (hk : 1 < k) (hX : 0 < X) : |
| 397 | powerTail k X = ∫ u : ℝ in Ioi X, u ^ (-k) := by |
| 398 | rw [integral_Ioi_rpow_of_lt (by linarith : -k < -1) hX, powerTail] |
| 399 | rw [show -k + 1 = -(k - 1) by ring, neg_div_neg_eq] |
| 400 | |
| 401 | theorem angularHistory_formula {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 402 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 403 | angularHistory F XR w.coefficients η X = powerHistory F XR X - |
| 404 | angularAmplitude F XR * etaTail false F.data.h F.data.h X η := by |
| 405 | rw [angularHistory_eq_power_sub_future w hη (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX))] |
| 406 | have he : (∫ u in Ioi X, HeatedOutgoing.H F XR w.coefficients (u,η) - OutgoingDilation.powerH F XR u) = |
| 407 | angularAmplitude F XR * etaTail false F.data.h F.data.h X η := by |
| 408 | rw [etaTail, tailJet, ← integral_const_mul] |
| 409 | apply setIntegral_congr_fun measurableSet_Ioi |
| 410 | intro u hu |
| 411 | exact heated_difference_eq_kernel F w.radius_pos w.coefficients hη (hX.trans hu.le) |
| 412 | rw [he] |
| 413 | |
| 414 | theorem square_future_formula (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 415 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 416 | (∫ u in Ioi X, HeatedOutgoing.E F XR c (u,η)^2) = amplitude F XR ^ 2 * |
| 417 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η) := by |
| 418 | have hX1 := (tailStart_ge_one F XR).trans hX |
| 419 | have hh := F.data.h_pos |
| 420 | have hiP := integrableOn_Ioi_rpow_of_lt (by linarith : -(1 + 2 * F.data.h) < -1) |
| 421 | (zero_lt_one.trans_le hX1) |
| 422 | have hiT := tailKernel_integrable hh (by linarith : 0 < 1 + 2 * F.data.h) hX1 true 0 |
| 423 | (ParametricHeatTail.diffusion η) |
| 424 | have he : (∫ u in Ioi X, HeatedOutgoing.E F XR c (u,η)^2) = |
| 425 | ∫ u in Ioi X, amplitude F XR ^ 2 * (u ^ (-(1 + 2 * F.data.h)) + |
| 426 | tailKernel true F.data.h (1 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) u) := by |
| 427 | apply setIntegral_congr_fun measurableSet_Ioi |
| 428 | intro u hu |
| 429 | exact heated_square_eq_kernel F hXR c hη (hX.trans hu.le) |
| 430 | rw [he, integral_const_mul, integral_add hiP hiT, |
| 431 | ← powerTail_eq_integral (by linarith : 1 < 1 + 2 * F.data.h) (zero_lt_one.trans_le hX1)] |
| 432 | rfl |
| 433 | |
| 434 | theorem energyHistory_formula {F : Profile} {XR C B : ℝ} |
| 435 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 436 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 437 | energyHistory F XR w.coefficients η X = (amplitude F XR ^ 2 / 2) * |
| 438 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η) := by |
| 439 | rw [energyHistory_eq_square_future hF w hη ((tailStart_ge_switch F w.radius_pos).trans hX), |
| 440 | square_future_formula F w.radius_pos w.coefficients hη hX] |
| 441 | ring |
| 442 | |
| 443 | theorem pressure_formula (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 444 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 445 | HeatedOutgoing.Pi F XR c (X,η) = -(amplitude F XR ^ 2 / 2) * |
| 446 | (powerTail (2 + 2 * F.data.h) X + etaTail true F.data.h (2 + 2 * F.data.h) X η) := by |
| 447 | have hX1 := (tailStart_ge_one F XR).trans hX |
| 448 | have hh := F.data.h_pos |
| 449 | have hiP := integrableOn_Ioi_rpow_of_lt (by linarith : -(2 + 2 * F.data.h) < -1) |
| 450 | (zero_lt_one.trans_le hX1) |
| 451 | have hiT := tailKernel_integrable hh (by linarith : 0 < 2 + 2 * F.data.h) hX1 true 0 |
| 452 | (ParametricHeatTail.diffusion η) |
| 453 | have he : (∫ u in Ioi X, HeatedOutgoing.canonicalKernel F XR c η u) = |
| 454 | ∫ u in Ioi X, amplitude F XR ^ 2 * (u ^ (-(2 + 2 * F.data.h)) + |
| 455 | tailKernel true F.data.h (2 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) u) := by |
| 456 | apply setIntegral_congr_fun measurableSet_Ioi |
| 457 | intro u hu |
| 458 | exact canonicalKernel_eq_kernel F hXR c hη (hX.trans hu.le) |
| 459 | rw [HeatedOutgoing.Pi, he, integral_const_mul, integral_add hiP hiT, |
| 460 | ← powerTail_eq_integral (by linarith : 1 < 2 + 2 * F.data.h) (zero_lt_one.trans_le hX1)] |
| 461 | unfold etaTail tailJet |
| 462 | ring |
| 463 | |
| 464 | /-! ## Genuine parameter derivatives and the history limits -/ |
| 465 | |
| 466 | theorem parameter_germ {f g : ℝ → ℝ} {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) |
| 467 | (he : ∀ t ∈ Icc (-1 : ℝ) 1, f t = g t) : f =ᶠ[𝓝 η] g := by |
| 468 | filter_upwards [Ioo_mem_nhds hη.1 hη.2] with t ht |
| 469 | exact he t ⟨ht.1.le, ht.2.le⟩ |
| 470 | |
| 471 | theorem angularHistory_hasDerivAt {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 472 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 473 | HasDerivAt (fun t => angularHistory F XR w.coefficients t X) |
| 474 | (-angularAmplitude F XR * deriv (etaTail false F.data.h F.data.h X) η) η := by |
| 475 | have ht := (etaTail_hasDerivAt F.data.h_pos F.data.h_pos |
| 476 | ((tailStart_ge_one F XR).trans hX) false η).differentiableAt.hasDerivAt |
| 477 | have hd := ((ht.const_mul (angularAmplitude F XR)).const_sub (powerHistory F XR X)).congr_of_eventuallyEq |
| 478 | (parameter_germ hη (fun t ht => angularHistory_formula w ht hX)) |
| 479 | simpa only [neg_mul] using hd |
| 480 | |
| 481 | theorem energyHistory_hasDerivAt {F : Profile} {XR C B : ℝ} |
| 482 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 483 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 484 | HasDerivAt (fun t => energyHistory F XR w.coefficients t X) |
| 485 | ((amplitude F XR ^ 2 / 2) * deriv (etaTail true F.data.h (1 + 2 * F.data.h) X) η) η := by |
| 486 | have hh := F.data.h_pos |
| 487 | have ht := (etaTail_hasDerivAt hh (by linarith : 0 < 1 + 2 * F.data.h) |
| 488 | ((tailStart_ge_one F XR).trans hX) true η).differentiableAt.hasDerivAt |
| 489 | exact ((ht.const_add (powerTail (1 + 2 * F.data.h) X)).const_mul (amplitude F XR ^ 2 / 2)).congr_of_eventuallyEq |
| 490 | (parameter_germ hη (fun t ht => energyHistory_formula hF w ht hX)) |
| 491 | |
| 492 | theorem pressure_hasDerivAt (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 493 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 494 | HasDerivAt (fun t => HeatedOutgoing.Pi F XR c (X,t)) |
| 495 | (-(amplitude F XR ^ 2 / 2) * deriv (etaTail true F.data.h (2 + 2 * F.data.h) X) η) η := by |
| 496 | have hh := F.data.h_pos |
| 497 | have ht := (etaTail_hasDerivAt hh (by linarith : 0 < 2 + 2 * F.data.h) |
| 498 | ((tailStart_ge_one F XR).trans hX) true η).differentiableAt.hasDerivAt |
| 499 | exact ((ht.const_add (powerTail (2 + 2 * F.data.h) X)).const_mul (-(amplitude F XR ^ 2 / 2))).congr_of_eventuallyEq |
| 500 | (parameter_germ hη (fun t ht => pressure_formula F hXR c ht hX)) |
| 501 | |
| 502 | theorem powerTail_tendsto_zero {k : ℝ} (hk : 1 < k) : |
| 503 | Tendsto (powerTail k) atTop (𝓝 0) := by |
| 504 | unfold powerTail |
| 505 | simpa only [zero_div] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).div_const (k - 1) |
| 506 | |
| 507 | theorem mul_powerTail_tendsto_zero {k : ℝ} (hk : 2 < k) : |
| 508 | Tendsto (fun X => X * powerTail k X) atTop (𝓝 0) := by |
| 509 | have ht : Tendsto (fun X : ℝ => X ^ (-(k - 2)) / (k - 1)) atTop (𝓝 0) := by |
| 510 | simpa only [zero_div] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).div_const (k - 1) |
| 511 | apply ht.congr' |
| 512 | filter_upwards [Ioi_mem_atTop (0 : ℝ)] with X hX |
| 513 | rw [powerTail, ← mul_div_assoc, mul_decay_power hX] |
| 514 | congr 2 |
| 515 | ring |
| 516 | |
| 517 | theorem angularHistory_sub_power_tendsto_zero {F : Profile} {XR C : ℝ} |
| 518 | (w : CompensationWitness F XR C) {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 519 | Tendsto (fun X => angularHistory F XR w.coefficients η X - powerHistory F XR X) atTop (𝓝 0) := by |
| 520 | have ht := (etaTail_tendsto_zero F.data.h_pos F.data.h_pos false η).const_mul (-angularAmplitude F XR) |
| 521 | apply (show Tendsto (fun X => -angularAmplitude F XR * etaTail false F.data.h F.data.h X η) |
| 522 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 523 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 524 | rw [angularHistory_formula w hη hX] |
| 525 | ring |
| 526 | |
| 527 | theorem angularHistory_eta_tendsto_zero {F : Profile} {XR C : ℝ} |
| 528 | (w : CompensationWitness F XR C) {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 529 | Tendsto (fun X => deriv (fun t => angularHistory F XR w.coefficients t X) η) atTop (𝓝 0) := by |
| 530 | have ht := (etaTail_derivative_tendsto_zero F.data.h_pos F.data.h_pos false η).const_mul (-angularAmplitude F XR) |
| 531 | apply (show Tendsto (fun X => -angularAmplitude F XR * deriv (etaTail false F.data.h F.data.h X) η) |
| 532 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 533 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 534 | exact (angularHistory_hasDerivAt w hη hX).deriv.symm |
| 535 | |
| 536 | theorem energyHistory_tendsto_zero {F : Profile} {XR C B : ℝ} |
| 537 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 538 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 539 | Tendsto (fun X => energyHistory F XR w.coefficients η X) atTop (𝓝 0) := by |
| 540 | have hh := F.data.h_pos |
| 541 | have ht := ((powerTail_tendsto_zero (by linarith : 1 < 1 + 2 * F.data.h)).add |
| 542 | (etaTail_tendsto_zero hh (by linarith : 0 < 1 + 2 * F.data.h) true η)).const_mul (amplitude F XR ^ 2 / 2) |
| 543 | apply (show Tendsto (fun X => (amplitude F XR ^ 2 / 2) * |
| 544 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η)) |
| 545 | atTop (𝓝 0) by simpa only [add_zero, mul_zero] using ht).congr' |
| 546 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 547 | exact (energyHistory_formula hF w hη hX).symm |
| 548 | |
| 549 | theorem energyHistory_eta_tendsto_zero {F : Profile} {XR C B : ℝ} |
| 550 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 551 | {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 552 | Tendsto (fun X => deriv (fun t => energyHistory F XR w.coefficients t X) η) atTop (𝓝 0) := by |
| 553 | have hh := F.data.h_pos |
| 554 | have ht := (etaTail_derivative_tendsto_zero hh (by linarith : 0 < 1 + 2 * F.data.h) true η).const_mul (amplitude F XR ^ 2 / 2) |
| 555 | apply (show Tendsto (fun X => (amplitude F XR ^ 2 / 2) * |
| 556 | deriv (etaTail true F.data.h (1 + 2 * F.data.h) X) η) atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 557 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 558 | exact (energyHistory_hasDerivAt hF w hη hX).deriv.symm |
| 559 | |
| 560 | theorem mul_pressure_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 561 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 562 | Tendsto (fun X => X * HeatedOutgoing.Pi F XR c (X,η)) atTop (𝓝 0) := by |
| 563 | have hh := F.data.h_pos |
| 564 | have ht := ((mul_powerTail_tendsto_zero (by linarith : 2 < 2 + 2 * F.data.h)).add |
| 565 | (mul_etaTail_tendsto_zero hh (by linarith : 1 < 2 + 2 * F.data.h) true η)).const_mul (-(amplitude F XR ^ 2 / 2)) |
| 566 | apply (show Tendsto (fun X => -(amplitude F XR ^ 2 / 2) * |
| 567 | (X * powerTail (2 + 2 * F.data.h) X + X * etaTail true F.data.h (2 + 2 * F.data.h) X η)) |
| 568 | atTop (𝓝 0) by simpa only [add_zero, mul_zero] using ht).congr' |
| 569 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 570 | rw [pressure_formula F hXR c hη hX] |
| 571 | ring |
| 572 | |
| 573 | theorem mul_pressure_eta_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 574 | {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 575 | Tendsto (fun X => X * deriv (fun t => HeatedOutgoing.Pi F XR c (X,t)) η) atTop (𝓝 0) := by |
| 576 | have hh := F.data.h_pos |
| 577 | have ht := (mul_etaTail_derivative_tendsto_zero hh (by linarith : 1 < 2 + 2 * F.data.h) true η).const_mul (-(amplitude F XR ^ 2 / 2)) |
| 578 | apply (show Tendsto (fun X => -(amplitude F XR ^ 2 / 2) * |
| 579 | (X * deriv (etaTail true F.data.h (2 + 2 * F.data.h) X) η)) |
| 580 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 581 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 582 | rw [(pressure_hasDerivAt F hXR c hη hX).deriv] |
| 583 | ring |
| 584 | |
| 585 | /-! ## The actual angular field and its radial derivative at infinity -/ |
| 586 | |
| 587 | noncomputable def heatH (h D η X : ℝ) : ℝ := D * X ^ (-h) * heatFactor h η X |
| 588 | |
| 589 | noncomputable def factorSlope (h η X : ℝ) : ℝ := |
| 590 | -h * heatFactor h η X - (2 * (1 - η ^ 2) / X) * |
| 591 | deriv (HeatProfileExtension.extension (1 + h)) (2 * (1 - η ^ 2) / X) |
| 592 | |
| 593 | theorem heatFactor_tendsto_one {h : ℝ} (hh : 0 < h) (η : ℝ) : |
| 594 | Tendsto (heatFactor h η) atTop (𝓝 1) := by |
| 595 | have ha : 1 < 1 + h := by linarith |
| 596 | have hz : Tendsto (fun X : ℝ => 2 * (1 - η ^ 2) / X) atTop (𝓝 0) := |
| 597 | tendsto_const_nhds.div_atTop tendsto_id |
| 598 | have ht := ((HeatProfileExtension.extension_contDiff ha).continuous.continuousAt (x := 0)).tendsto.comp hz |
| 599 | unfold heatFactor HeatProfileExtension.physicalProfile HeatProfileExtension.scaledProfile |
| 600 | simpa only [Function.comp_def, HeatProfileExtension.extension_zero ha] using ht |
| 601 | |
| 602 | theorem factorSlope_tendsto {h : ℝ} (hh : 0 < h) (η : ℝ) : |
| 603 | Tendsto (factorSlope h η) atTop (𝓝 (-h)) := by |
| 604 | have ha : 1 < 1 + h := by linarith |
| 605 | have hext := HeatProfileExtension.extension_contDiff ha |
| 606 | have hdc : Continuous (deriv (HeatProfileExtension.extension (1 + h))) := by |
| 607 | simpa only [iteratedDeriv_one] using |
| 608 | hext.continuous_iteratedDeriv 1 (WithTop.coe_le_coe.mpr le_top) |
| 609 | have hz : Tendsto (fun X : ℝ => 2 * (1 - η ^ 2) / X) atTop (𝓝 0) := |
| 610 | tendsto_const_nhds.div_atTop tendsto_id |
| 611 | have hd := (hdc.continuousAt (x := 0)).tendsto.comp hz |
| 612 | have ht := ((heatFactor_tendsto_one hh η).const_mul (-h)).sub (hz.mul hd) |
| 613 | unfold factorSlope |
| 614 | simpa only [Function.comp_def, mul_one, zero_mul, sub_zero] using ht |
| 615 | |
| 616 | theorem heatH_tendsto_zero {h : ℝ} (hh : 0 < h) (D η : ℝ) : |
| 617 | Tendsto (heatH h D η) atTop (𝓝 0) := by |
| 618 | have ht := ((tendsto_rpow_neg_atTop hh).const_mul D).mul (heatFactor_tendsto_one hh η) |
| 619 | unfold heatH |
| 620 | simpa only [mul_zero, zero_mul] using ht |
| 621 | |
| 622 | theorem heatH_hasDerivAt {h X : ℝ} (hh : 0 < h) (D η : ℝ) (hX : 0 < X) : |
| 623 | HasDerivAt (heatH h D η) (D * X ^ (-h - 1) * factorSlope h η X) X := by |
| 624 | have ha : 1 < 1 + h := by linarith |
| 625 | have hz : HasDerivAt (fun x : ℝ => 2 * (1 - η ^ 2) / x) |
| 626 | (-(2 * (1 - η ^ 2)) / X ^ 2) X := by |
| 627 | convert! (hasDerivAt_const X (2 * (1 - η ^ 2))).div (hasDerivAt_id X) hX.ne' using 1 |
| 628 | simp only [id_eq] |
| 629 | ring |
| 630 | have hf := (((HeatProfileExtension.extension_contDiff ha).differentiable (by simp)) |
| 631 | (2 * (1 - η ^ 2) / X)).hasDerivAt.comp X hz |
| 632 | simp only [Function.comp_def] at hf |
| 633 | have hp := Real.hasDerivAt_rpow_const (p := -h) (Or.inl hX.ne') |
| 634 | change HasDerivAt (fun x : ℝ => D * x ^ (-h) * |
| 635 | HeatProfileExtension.extension (1 + h) (2 * (1 - η ^ 2) / x)) _ X |
| 636 | convert! (hp.const_mul D).fun_mul hf using 1 |
| 637 | dsimp only [factorSlope, heatFactor, HeatProfileExtension.physicalProfile, HeatProfileExtension.scaledProfile] |
| 638 | rw [Real.rpow_sub_one hX.ne'] |
| 639 | field_simp [hX.ne'] ; ring |
| 640 | |
| 641 | theorem heatH_weighted_deriv {h X : ℝ} (hh : 0 < h) (D η : ℝ) (hX : 0 < X) : |
| 642 | X * deriv (heatH h D η) X = D * X ^ (-h) * factorSlope h η X := by |
| 643 | rw [(heatH_hasDerivAt hh D η hX).deriv, Real.rpow_sub_one hX.ne'] |
| 644 | field_simp [hX.ne'] |
| 645 | |
| 646 | theorem heatH_weighted_deriv_tendsto_zero {h : ℝ} (hh : 0 < h) (D η : ℝ) : |
| 647 | Tendsto (fun X => X * deriv (heatH h D η) X) atTop (𝓝 0) := by |
| 648 | have ht := ((tendsto_rpow_neg_atTop hh).const_mul D).mul (factorSlope_tendsto hh η) |
| 649 | apply (show Tendsto (fun X => D * X ^ (-h) * factorSlope h η X) atTop (𝓝 0) |
| 650 | by simpa only [mul_zero, zero_mul] using ht).congr' |
| 651 | filter_upwards [Ioi_mem_atTop (0 : ℝ)] with X hX |
| 652 | exact (heatH_weighted_deriv hh D η hX).symm |
| 653 | |
| 654 | theorem H_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 655 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 656 | Tendsto (fun X => HeatedOutgoing.H F XR c (X,η)) atTop (𝓝 0) := by |
| 657 | apply (heatH_tendsto_zero F.data.h_pos (angularAmplitude F XR) η).congr' |
| 658 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 659 | exact (heated_H_eq F hXR c hη hX).symm |
| 660 | |
| 661 | theorem H_hasDerivAt (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 662 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR < X) : |
| 663 | HasDerivAt (fun u => HeatedOutgoing.H F XR c (u,η)) |
| 664 | (angularAmplitude F XR * X ^ (-F.data.h - 1) * factorSlope F.data.h η X) X := by |
| 665 | have he : (fun u => HeatedOutgoing.H F XR c (u,η)) =ᶠ[𝓝 X] |
| 666 | heatH F.data.h (angularAmplitude F XR) η := by |
| 667 | filter_upwards [Ioi_mem_nhds hX] with u hu |
| 668 | exact heated_H_eq F hXR c hη hu.le |
| 669 | exact (heatH_hasDerivAt F.data.h_pos (angularAmplitude F XR) η |
| 670 | (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX.le))).congr_of_eventuallyEq he |
| 671 | |
| 672 | theorem mul_H_deriv_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 673 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 674 | Tendsto (fun X => X * deriv (fun u => HeatedOutgoing.H F XR c (u,η)) X) atTop (𝓝 0) := by |
| 675 | apply (heatH_weighted_deriv_tendsto_zero F.data.h_pos (angularAmplitude F XR) η).congr' |
| 676 | filter_upwards [Ioi_mem_atTop (tailStart F XR)] with X hX |
| 677 | rw [(H_hasDerivAt F hXR c hη hX).deriv, |
| 678 | (heatH_hasDerivAt F.data.h_pos (angularAmplitude F XR) η |
| 679 | (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX.le))).deriv] |
| 680 | |
| 681 | theorem mul_tailKernel_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 682 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 683 | Tendsto (fun X => X * tailKernel square h k n ν X) atTop (𝓝 0) := by |
| 684 | apply squeeze_zero_norm' (a := fun X => ExtendedHeatDebts.editBound square h |ν| n * X ^ (-k)) |
| 685 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 686 | have hXp := zero_lt_one.trans_le hX |
| 687 | rw [norm_mul, Real.norm_eq_abs, abs_of_pos hXp] |
| 688 | calc |
| 689 | _ ≤ X * (ExtendedHeatDebts.editBound square h |ν| n * X ^ (-k - 1)) := |
| 690 | mul_le_mul_of_nonneg_left (tailKernel_bound hh hX le_rfl square n) hXp.le |
| 691 | _ = _ := by rw [Real.rpow_sub_one hXp.ne']; field_simp [hXp.ne'] |
| 692 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop hk).const_mul |
| 693 | (ExtendedHeatDebts.editBound square h |ν| n) |
| 694 | |
| 695 | theorem mul_H_sub_powerH_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 696 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 697 | Tendsto (fun X => X * (HeatedOutgoing.H F XR c (X,η) - OutgoingDilation.powerH F XR X)) |
| 698 | atTop (𝓝 0) := by |
| 699 | have ht := (mul_tailKernel_tendsto_zero F.data.h_pos F.data.h_pos false 0 |
| 700 | (ParametricHeatTail.diffusion η)).const_mul (angularAmplitude F XR) |
| 701 | apply (show Tendsto (fun X => angularAmplitude F XR * |
| 702 | (X * tailKernel false F.data.h F.data.h 0 (ParametricHeatTail.diffusion η) X)) |
| 703 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 704 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 705 | rw [heated_difference_eq_kernel F hXR c hη hX] |
| 706 | ring |
| 707 | |
| 708 | /-- All required history limits for one and the same actual heat completion. -/ |
| 709 | theorem actual_history_limits {F : Profile} {XR C B : ℝ} |
| 710 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 711 | {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 712 | Tendsto (fun X => angularHistory F XR w.coefficients η X - powerHistory F XR X) atTop (𝓝 0) ∧ |
| 713 | Tendsto (fun X => deriv (fun t => angularHistory F XR w.coefficients t X) η) atTop (𝓝 0) ∧ |
| 714 | Tendsto (fun X => HeatedOutgoing.H F XR w.coefficients (X,η)) atTop (𝓝 0) ∧ |
| 715 | Tendsto (fun X => X * deriv (fun u => HeatedOutgoing.H F XR w.coefficients (u,η)) X) atTop (𝓝 0) ∧ |
| 716 | Tendsto (fun X => energyHistory F XR w.coefficients η X) atTop (𝓝 0) ∧ |
| 717 | Tendsto (fun X => deriv (fun t => energyHistory F XR w.coefficients t X) η) atTop (𝓝 0) ∧ |
| 718 | Tendsto (fun X => X * HeatedOutgoing.Pi F XR w.coefficients (X,η)) atTop (𝓝 0) ∧ |
| 719 | Tendsto (fun X => X * deriv (fun t => HeatedOutgoing.Pi F XR w.coefficients (X,t)) η) atTop (𝓝 0) ∧ |
| 720 | Tendsto (fun X => X * (HeatedOutgoing.H F XR w.coefficients (X,η) - |
| 721 | OutgoingDilation.powerH F XR X)) atTop (𝓝 0) := by |
| 722 | have hb : η ∈ HeatedOutgoing.parameterDomain := ⟨hη.1.le, hη.2.le⟩ |
| 723 | exact ⟨angularHistory_sub_power_tendsto_zero w hb, angularHistory_eta_tendsto_zero w hη, |
| 724 | H_tendsto_zero F w.radius_pos w.coefficients hb, |
| 725 | mul_H_deriv_tendsto_zero F w.radius_pos w.coefficients hb, |
| 726 | energyHistory_tendsto_zero hF w hb, energyHistory_eta_tendsto_zero hF w hη, |
| 727 | mul_pressure_tendsto_zero F w.radius_pos w.coefficients hb, |
| 728 | mul_pressure_eta_tendsto_zero F w.radius_pos w.coefficients hη, |
| 729 | mul_H_sub_powerH_tendsto_zero F w.radius_pos w.coefficients hb⟩ |
| 730 | |
| 731 | end NavierStokes.HeatTailHistoryLimits |