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_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 98 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 99 | Tendsto (fun X => tailJet square h k n X ν) atTop (𝓝 0) := by |
| 100 | apply squeeze_zero_norm' (a := fun X => |
| 101 | (ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-k)) |
| 102 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 103 | exact tailJet_bound hh hk hX le_rfl square n |
| 104 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop hk).const_mul |
| 105 | (ExtendedHeatDebts.editBound square h |ν| n / k) |
| 106 | |
| 107 | theorem mul_decay_power {k X : ℝ} (hX : 0 < X) : |
| 108 | X * X ^ (-k) = X ^ (-(k - 1)) := by |
| 109 | calc |
| 110 | X * X ^ (-k) = X ^ (1 : ℝ) * X ^ (-k) := by rw [Real.rpow_one] |
| 111 | _ = X ^ (1 + -k) := (Real.rpow_add hX _ _).symm |
| 112 | _ = _ := by congr 1; ring |
| 113 | |
| 114 | theorem mul_tailJet_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) |
| 115 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 116 | Tendsto (fun X => X * tailJet square h k n X ν) atTop (𝓝 0) := by |
| 117 | apply squeeze_zero_norm' (a := fun X => |
| 118 | (ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-(k - 1))) |
| 119 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 120 | have hXp := zero_lt_one.trans_le hX |
| 121 | rw [norm_mul, Real.norm_eq_abs, abs_of_pos hXp, Real.norm_eq_abs] |
| 122 | calc |
| 123 | _ ≤ X * ((ExtendedHeatDebts.editBound square h |ν| n / k) * X ^ (-k)) := |
| 124 | mul_le_mul_of_nonneg_left (tailJet_bound hh (zero_lt_one.trans hk) hX le_rfl square n) hXp.le |
| 125 | _ = _ := by rw [mul_left_comm, mul_decay_power hXp] |
| 126 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).const_mul |
| 127 | (ExtendedHeatDebts.editBound square h |ν| n / k) |
| 128 | |
| 129 | noncomputable def etaTail (square : Bool) (h k X η : ℝ) : ℝ := |
| 130 | tailJet square h k 0 X (ParametricHeatTail.diffusion η) |
| 131 | |
| 132 | theorem etaTail_hasDerivAt {h k X : ℝ} (hh : 0 < h) (hk : 0 < k) (hX : 1 ≤ X) |
| 133 | (square : Bool) (η : ℝ) : HasDerivAt (etaTail square h k X) |
| 134 | (tailJet square h k 1 X (ParametricHeatTail.diffusion η) * (-2 * η)) η := |
| 135 | (tailJet_hasDerivAt hh hk hX square 0 _).comp η (ParametricHeatTail.diffusion_hasDerivAt η) |
| 136 | |
| 137 | theorem etaTail_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) (square : Bool) (η : ℝ) : |
| 138 | Tendsto (fun X => etaTail square h k X η) atTop (𝓝 0) := |
| 139 | tailJet_tendsto_zero hh hk square 0 _ |
| 140 | |
| 141 | theorem etaTail_derivative_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 142 | (square : Bool) (η : ℝ) : Tendsto (fun X => deriv (etaTail square h k X) η) atTop (𝓝 0) := by |
| 143 | have ht := (tailJet_tendsto_zero hh hk square 1 (ParametricHeatTail.diffusion η)).mul_const (-2 * η) |
| 144 | apply (show Tendsto (fun X => tailJet square h k 1 X (ParametricHeatTail.diffusion η) * (-2 * η)) |
| 145 | atTop (𝓝 0) by simpa only [zero_mul] using ht).congr' |
| 146 | filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 147 | exact (etaTail_hasDerivAt hh hk hX square η).deriv.symm |
| 148 | |
| 149 | theorem mul_etaTail_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) (square : Bool) (η : ℝ) : |
| 150 | Tendsto (fun X => X * etaTail square h k X η) atTop (𝓝 0) := |
| 151 | mul_tailJet_tendsto_zero hh hk square 0 _ |
| 152 | |
| 153 | theorem mul_etaTail_derivative_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 1 < k) |
| 154 | (square : Bool) (η : ℝ) : Tendsto (fun X => X * deriv (etaTail square h k X) η) atTop (𝓝 0) := by |
| 155 | have ht := (mul_tailJet_tendsto_zero hh hk square 1 (ParametricHeatTail.diffusion η)).mul_const (-2 * η) |
| 156 | apply (show Tendsto (fun X => (X * tailJet square h k 1 X (ParametricHeatTail.diffusion η)) * (-2 * η)) |
| 157 | atTop (𝓝 0) by simpa only [zero_mul] using ht).congr' |
| 158 | filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 159 | rw [(etaTail_hasDerivAt hh (zero_lt_one.trans hk) hX square η).deriv] |
| 160 | ring |
| 161 | |
| 162 | /-! ## Exact exterior formulas for the supplied outgoing profile -/ |
| 163 | |
| 164 | noncomputable def amplitude (F : Profile) (XR : ℝ) : ℝ := |
| 165 | RenormalizedHeatMoment.outgoingPowerAmplitude F XR |
| 166 | |
| 167 | noncomputable def angularAmplitude (F : Profile) (XR : ℝ) : ℝ := |
| 168 | Real.sqrt 2 * amplitude F XR |
| 169 | |
| 170 | noncomputable def tailStart (F : Profile) (XR : ℝ) : ℝ := |
| 171 | max (RenormalizedHeatMoment.heatThreshold F XR) (Real.exp 1) |
| 172 | |
| 173 | theorem tailStart_ge_one (F : Profile) (XR : ℝ) : 1 ≤ tailStart F XR := |
| 174 | (Real.one_le_exp_iff.mpr (by norm_num : (0 : ℝ) ≤ 1)).trans (le_max_right _ _) |
| 175 | |
| 176 | theorem tailStart_ge_switch (F : Profile) {XR : ℝ} (hXR : 0 < XR) : |
| 177 | OutgoingDilation.switchRadius F XR ≤ tailStart F XR := by |
| 178 | have he : 1 ≤ Real.exp (3 : ℝ) := Real.one_le_exp_iff.mpr (by norm_num) |
| 179 | have hp := mul_le_mul_of_nonneg_left he (OutgoingDilation.switchRadius_pos F XR hXR).le |
| 180 | have hg : OutgoingDilation.switchRadius F XR ≤ RenormalizedHeatMoment.heatThreshold F XR := by |
| 181 | simpa only [mul_one, RenormalizedHeatMoment.heatThreshold] using hp |
| 182 | exact hg.trans (le_max_left _ _) |
| 183 | |
| 184 | theorem helper_switch_one {X : ℝ} (hX : Real.exp 1 ≤ X) : HeatTailEdit.switch 1 X = 1 := by |
| 185 | apply HeatTailEdit.switch_one |
| 186 | have h := Real.log_le_log (Real.exp_pos 1) hX |
| 187 | simp only [Real.log_exp, div_one] at * |
| 188 | linarith |
| 189 | |
| 190 | noncomputable def heatFactor (h η X : ℝ) : ℝ := |
| 191 | HeatProfileExtension.physicalProfile (1 + h) X η |
| 192 | |
| 193 | theorem heatFactor_eq_profile (h : ℝ) {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) |
| 194 | (hX : 0 < X) : |
| 195 | heatFactor h η X = RadialHeatProfile.profile (1 + h) (2 * (1 - η ^ 2) / X) := |
| 196 | HeatProfileExtension.physicalProfile_eq_profile _ hX hη |
| 197 | |
| 198 | theorem correction_eq_factor (h : ℝ) (η : ℝ) {X : ℝ} (hX : Real.exp 1 ≤ X) : |
| 199 | ExtendedHeatDebts.editJet false h 1 0 (ParametricHeatTail.diffusion η) X = heatFactor h η X - 1 := by |
| 200 | simp only [ExtendedHeatDebts.editJet, Bool.false_eq_true, ite_false, |
| 201 | ExtendedHeatDebts.correctionJet_zero, ExtendedHeatDebts.correction, |
| 202 | helper_switch_one hX, one_mul] |
| 203 | rfl |
| 204 | |
| 205 | theorem squareCorrection_eq_factor (h : ℝ) (η : ℝ) {X : ℝ} (hX : Real.exp 1 ≤ X) : |
| 206 | ExtendedHeatDebts.editJet true h 1 0 (ParametricHeatTail.diffusion η) X = heatFactor h η X ^ 2 - 1 := by |
| 207 | simp only [ExtendedHeatDebts.editJet, ite_true, |
| 208 | ExtendedHeatDebts.squareCorrectionJet_zero, ExtendedHeatDebts.multiplier, |
| 209 | ExtendedHeatDebts.correction, helper_switch_one hX, one_mul, add_sub_cancel] |
| 210 | rfl |
| 211 | |
| 212 | theorem sqrt_power_identity (h D : ℝ) {X : ℝ} (hX : 0 < X) : |
| 213 | Real.sqrt (2 * X) * (D * X ^ (-(1 / 2 + h))) = Real.sqrt 2 * D * X ^ (-h) := by |
| 214 | have hp : Real.sqrt X * X ^ (-(1 / 2 + h)) = X ^ (-h) := by |
| 215 | rw [Real.sqrt_eq_rpow, ← Real.rpow_add hX] |
| 216 | congr 1 |
| 217 | ring |
| 218 | rw [Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2)] |
| 219 | calc |
| 220 | _ = Real.sqrt 2 * D * (Real.sqrt X * X ^ (-(1 / 2 + h))) := by ring |
| 221 | _ = _ := by rw [hp] |
| 222 | |
| 223 | theorem powerH_eq (F : Profile) {XR X : ℝ} (hXR : 0 < XR) (hX : 0 < X) : |
| 224 | OutgoingDilation.powerH F XR X = angularAmplitude F XR * X ^ (-F.data.h) := by |
| 225 | rw [RenormalizedHeatMoment.outgoing_powerH F hXR hX] |
| 226 | exact sqrt_power_identity F.data.h (amplitude F XR) hX |
| 227 | |
| 228 | theorem heated_H_eq (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 229 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 230 | HeatedOutgoing.H F XR c (X,η) = |
| 231 | angularAmplitude F XR * X ^ (-F.data.h) * heatFactor F.data.h η X := by |
| 232 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 233 | rw [HeatedOutgoing.H, RenormalizedHeatMoment.heated_exterior F hXR c η |
| 234 | ((le_max_left _ _).trans hX), ← heatFactor_eq_profile _ hη hXp, ← mul_assoc] |
| 235 | rw [show RenormalizedHeatMoment.A F.data.h = 1 / 2 + F.data.h from rfl, |
| 236 | sqrt_power_identity _ _ hXp] |
| 237 | rfl |
| 238 | |
| 239 | theorem heated_square_eq (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 240 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 241 | HeatedOutgoing.E F XR c (X,η) ^ 2 = amplitude F XR ^ 2 * |
| 242 | X ^ (-(1 + 2 * F.data.h)) * heatFactor F.data.h η X ^ 2 := by |
| 243 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 244 | rw [RenormalizedHeatMoment.heated_exterior F hXR c η ((le_max_left _ _).trans hX), |
| 245 | ← heatFactor_eq_profile _ hη hXp, mul_pow, mul_pow] |
| 246 | have hp : (X ^ (-RenormalizedHeatMoment.A F.data.h)) ^ 2 = X ^ (-(1 + 2 * F.data.h)) := by |
| 247 | rw [pow_two, ← Real.rpow_add hXp] |
| 248 | congr 1 |
| 249 | unfold RenormalizedHeatMoment.A |
| 250 | ring |
| 251 | rw [hp] |
| 252 | rfl |
| 253 | |
| 254 | theorem heated_difference_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 255 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 256 | HeatedOutgoing.H F XR c (X,η) - OutgoingDilation.powerH F XR X = |
| 257 | angularAmplitude F XR * tailKernel false F.data.h F.data.h 0 (ParametricHeatTail.diffusion η) X := by |
| 258 | rw [heated_H_eq F hXR c hη hX, |
| 259 | powerH_eq F hXR (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX)), |
| 260 | tailKernel, correction_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 261 | ring |
| 262 | |
| 263 | theorem heated_square_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 264 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 265 | HeatedOutgoing.E F XR c (X,η) ^ 2 = amplitude F XR ^ 2 * |
| 266 | (X ^ (-(1 + 2 * F.data.h)) + |
| 267 | tailKernel true F.data.h (1 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) X) := by |
| 268 | rw [heated_square_eq F hXR c hη hX, tailKernel, |
| 269 | squareCorrection_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 270 | ring |
| 271 | |
| 272 | theorem canonicalKernel_eq_kernel (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 273 | {η X : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 274 | HeatedOutgoing.canonicalKernel F XR c η X = amplitude F XR ^ 2 * |
| 275 | (X ^ (-(2 + 2 * F.data.h)) + |
| 276 | tailKernel true F.data.h (2 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) X) := by |
| 277 | have hXp : 0 < X := zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX) |
| 278 | rw [HeatedOutgoing.canonicalKernel, heated_square_eq F hXR c hη hX, |
| 279 | tailKernel, squareCorrection_eq_factor _ _ ((le_max_right _ _).trans hX)] |
| 280 | have hp : X ^ (-(1 + 2 * F.data.h)) / X = X ^ (-(2 + 2 * F.data.h)) := by |
| 281 | rw [← Real.rpow_sub_one hXp.ne'] |
| 282 | congr 1 |
| 283 | ring |
| 284 | calc |
| 285 | _ = amplitude F XR ^ 2 * (X ^ (-(1 + 2 * F.data.h)) / X) * heatFactor F.data.h η X ^ 2 := by ring |
| 286 | _ = _ := by rw [hp]; ring |
| 287 | |
| 288 | /-! ## The constants are fixed by the same compensation witness -/ |
| 289 | |
| 290 | noncomputable def angularHistory (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (η X : ℝ) : ℝ := |
| 291 | ∫ u in Ioc 0 X, HeatedOutgoing.H F XR c (u,η) |
| 292 | |
| 293 | noncomputable def energyHistory (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (η X : ℝ) : ℝ := |
| 294 | ∫ u in Ioc 0 X, HeatedOutgoing.energyDensity F XR c η u |
| 295 | |
| 296 | noncomputable def powerHistory (F : Profile) (XR X : ℝ) : ℝ := |
| 297 | ∫ u in Ioc 0 X, OutgoingDilation.powerH F XR u |
| 298 | |
| 299 | theorem split_positive_integral {f : ℝ → ℝ} (hf : IntegrableOn f (Ioi 0)) {X : ℝ} (hX : 0 ≤ X) : |
| 300 | (∫ u in Ioc 0 X, f u) + (∫ u in Ioi X, f u) = ∫ u in Ioi 0, f u := by |
| 301 | simpa only [Ioc_union_Ioi_eq_Ioi hX] using |
| 302 | (setIntegral_union Ioc_disjoint_Ioi_same measurableSet_Ioi |
| 303 | (hf.mono_set Ioc_subset_Ioi_self) (hf.mono_set (Ioi_subset_Ioi hX))).symm |
| 304 | |
| 305 | theorem angularHistory_integrable {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 306 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : |
| 307 | IntegrableOn (fun u => HeatedOutgoing.H F XR w.coefficients (u,η)) (Ioc 0 X) := by |
| 308 | have hi := (OutgoingDilation.I_integrable F XR η X w.radius_pos hX).add |
| 309 | ((w.changeRow_integrable η 2 hη).mono_set Ioc_subset_Ioi_self) |
| 310 | apply IntegrableOn.congr_fun hi _ measurableSet_Ioc |
| 311 | intro u hu |
| 312 | change Real.sqrt (2*u) * OutgoingDilation.E F XR (u,η) + |
| 313 | Real.sqrt (2*u) * (HeatedOutgoing.E F XR w.coefficients (u,η) - OutgoingDilation.E F XR (u,η)) = |
| 314 | Real.sqrt (2*u) * HeatedOutgoing.E F XR w.coefficients (u,η) |
| 315 | ring |
| 316 | |
| 317 | theorem angularHistory_eq_power_sub_future {F : Profile} {XR C : ℝ} |
| 318 | (w : CompensationWitness F XR C) {η X : ℝ} |
| 319 | (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : |
| 320 | angularHistory F XR w.coefficients η X = powerHistory F XR X - |
| 321 | ∫ u in Ioi X, HeatedOutgoing.H F XR w.coefficients (u,η) - OutgoingDilation.powerH F XR u := by |
| 322 | have hi := angularHistory_integrable w hη hX |
| 323 | have hr := (w.renormalized_integrable η hη).mono_set (show Ioc (0 : ℝ) X ⊆ Ioi 0 from fun _ h => h.1) |
| 324 | have hp : IntegrableOn (OutgoingDilation.powerH F XR) (Ioc 0 X) := by |
| 325 | apply IntegrableOn.congr_fun (hi.sub hr) _ measurableSet_Ioc |
| 326 | intro u hu |
| 327 | dsimp |
| 328 | ring |
| 329 | have hs := split_positive_integral (w.renormalized_integrable η hη) hX.le |
| 330 | rw [w.renormalized_zero η hη, integral_sub hi hp] at hs |
| 331 | unfold angularHistory powerHistory |
| 332 | linarith |
| 333 | |
| 334 | theorem energyHistory_eq_square_future {F : Profile} {XR C B : ℝ} |
| 335 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 336 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) |
| 337 | (hX : OutgoingDilation.switchRadius F XR ≤ X) : |
| 338 | energyHistory F XR w.coefficients η X = |
| 339 | (1/2 : ℝ) * ∫ u in Ioi X, HeatedOutgoing.E F XR w.coefficients (u,η)^2 := by |
| 340 | have hXp := (OutgoingDilation.switchRadius_pos F XR w.radius_pos).trans_le hX |
| 341 | have hs := split_positive_integral (w.energy_integrable η hη) hXp.le |
| 342 | have hz := w.energy_zero hF η hη |
| 343 | unfold HeatedOutgoing.totalS at hz |
| 344 | rw [hz] at hs |
| 345 | have he : (∫ u in Ioi X, HeatedOutgoing.energyDensity F XR w.coefficients η u) = |
| 346 | ∫ u in Ioi X, -(HeatedOutgoing.E F XR w.coefficients (u,η)^2/2) := by |
| 347 | apply setIntegral_congr_fun measurableSet_Ioi |
| 348 | intro u hu |
| 349 | rw [HeatedOutgoing.energyDensity, |
| 350 | HeatedOutgoing.U_after_switch F XR η u w.radius_pos (hX.trans hu.le)] |
| 351 | ring |
| 352 | rw [he, integral_neg, integral_div] at hs |
| 353 | unfold energyHistory |
| 354 | linarith |
| 355 | |
| 356 | noncomputable def powerTail (k X : ℝ) : ℝ := X ^ (-(k - 1)) / (k - 1) |
| 357 | |
| 358 | theorem powerTail_eq_integral {k X : ℝ} (hk : 1 < k) (hX : 0 < X) : |
| 359 | powerTail k X = ∫ u : ℝ in Ioi X, u ^ (-k) := by |
| 360 | rw [integral_Ioi_rpow_of_lt (by linarith : -k < -1) hX, powerTail] |
| 361 | rw [show -k + 1 = -(k - 1) by ring, neg_div_neg_eq] |
| 362 | |
| 363 | theorem angularHistory_formula {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 364 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 365 | angularHistory F XR w.coefficients η X = powerHistory F XR X - |
| 366 | angularAmplitude F XR * etaTail false F.data.h F.data.h X η := by |
| 367 | rw [angularHistory_eq_power_sub_future w hη (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX))] |
| 368 | have he : (∫ u in Ioi X, HeatedOutgoing.H F XR w.coefficients (u,η) - OutgoingDilation.powerH F XR u) = |
| 369 | angularAmplitude F XR * etaTail false F.data.h F.data.h X η := by |
| 370 | rw [etaTail, tailJet, ← integral_const_mul] |
| 371 | apply setIntegral_congr_fun measurableSet_Ioi |
| 372 | intro u hu |
| 373 | exact heated_difference_eq_kernel F w.radius_pos w.coefficients hη (hX.trans hu.le) |
| 374 | rw [he] |
| 375 | |
| 376 | theorem square_future_formula (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 377 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 378 | (∫ u in Ioi X, HeatedOutgoing.E F XR c (u,η)^2) = amplitude F XR ^ 2 * |
| 379 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η) := by |
| 380 | have hX1 := (tailStart_ge_one F XR).trans hX |
| 381 | have hh := F.data.h_pos |
| 382 | have hiP := integrableOn_Ioi_rpow_of_lt (by linarith : -(1 + 2 * F.data.h) < -1) |
| 383 | (zero_lt_one.trans_le hX1) |
| 384 | have hiT := tailKernel_integrable hh (by linarith : 0 < 1 + 2 * F.data.h) hX1 true 0 |
| 385 | (ParametricHeatTail.diffusion η) |
| 386 | have he : (∫ u in Ioi X, HeatedOutgoing.E F XR c (u,η)^2) = |
| 387 | ∫ u in Ioi X, amplitude F XR ^ 2 * (u ^ (-(1 + 2 * F.data.h)) + |
| 388 | tailKernel true F.data.h (1 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) u) := by |
| 389 | apply setIntegral_congr_fun measurableSet_Ioi |
| 390 | intro u hu |
| 391 | exact heated_square_eq_kernel F hXR c hη (hX.trans hu.le) |
| 392 | rw [he, integral_const_mul, integral_add hiP hiT, |
| 393 | ← powerTail_eq_integral (by linarith : 1 < 1 + 2 * F.data.h) (zero_lt_one.trans_le hX1)] |
| 394 | rfl |
| 395 | |
| 396 | theorem energyHistory_formula {F : Profile} {XR C B : ℝ} |
| 397 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 398 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 399 | energyHistory F XR w.coefficients η X = (amplitude F XR ^ 2 / 2) * |
| 400 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η) := by |
| 401 | rw [energyHistory_eq_square_future hF w hη ((tailStart_ge_switch F w.radius_pos).trans hX), |
| 402 | square_future_formula F w.radius_pos w.coefficients hη hX] |
| 403 | ring |
| 404 | |
| 405 | theorem pressure_formula (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 406 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR ≤ X) : |
| 407 | HeatedOutgoing.Pi F XR c (X,η) = -(amplitude F XR ^ 2 / 2) * |
| 408 | (powerTail (2 + 2 * F.data.h) X + etaTail true F.data.h (2 + 2 * F.data.h) X η) := by |
| 409 | have hX1 := (tailStart_ge_one F XR).trans hX |
| 410 | have hh := F.data.h_pos |
| 411 | have hiP := integrableOn_Ioi_rpow_of_lt (by linarith : -(2 + 2 * F.data.h) < -1) |
| 412 | (zero_lt_one.trans_le hX1) |
| 413 | have hiT := tailKernel_integrable hh (by linarith : 0 < 2 + 2 * F.data.h) hX1 true 0 |
| 414 | (ParametricHeatTail.diffusion η) |
| 415 | have he : (∫ u in Ioi X, HeatedOutgoing.canonicalKernel F XR c η u) = |
| 416 | ∫ u in Ioi X, amplitude F XR ^ 2 * (u ^ (-(2 + 2 * F.data.h)) + |
| 417 | tailKernel true F.data.h (2 + 2 * F.data.h) 0 (ParametricHeatTail.diffusion η) u) := by |
| 418 | apply setIntegral_congr_fun measurableSet_Ioi |
| 419 | intro u hu |
| 420 | exact canonicalKernel_eq_kernel F hXR c hη (hX.trans hu.le) |
| 421 | rw [HeatedOutgoing.Pi, he, integral_const_mul, integral_add hiP hiT, |
| 422 | ← powerTail_eq_integral (by linarith : 1 < 2 + 2 * F.data.h) (zero_lt_one.trans_le hX1)] |
| 423 | unfold etaTail tailJet |
| 424 | ring |
| 425 | |
| 426 | /-! ## Genuine parameter derivatives and the history limits -/ |
| 427 | |
| 428 | theorem parameter_germ {f g : ℝ → ℝ} {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) |
| 429 | (he : ∀ t ∈ Icc (-1 : ℝ) 1, f t = g t) : f =ᶠ[𝓝 η] g := by |
| 430 | filter_upwards [Ioo_mem_nhds hη.1 hη.2] with t ht |
| 431 | exact he t ⟨ht.1.le, ht.2.le⟩ |
| 432 | |
| 433 | theorem angularHistory_hasDerivAt {F : Profile} {XR C : ℝ} (w : CompensationWitness F XR C) |
| 434 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 435 | HasDerivAt (fun t => angularHistory F XR w.coefficients t X) |
| 436 | (-angularAmplitude F XR * deriv (etaTail false F.data.h F.data.h X) η) η := by |
| 437 | have ht := (etaTail_hasDerivAt F.data.h_pos F.data.h_pos |
| 438 | ((tailStart_ge_one F XR).trans hX) false η).differentiableAt.hasDerivAt |
| 439 | have hd := ((ht.const_mul (angularAmplitude F XR)).const_sub (powerHistory F XR X)).congr_of_eventuallyEq |
| 440 | (parameter_germ hη (fun t ht => angularHistory_formula w ht hX)) |
| 441 | simpa only [neg_mul] using hd |
| 442 | |
| 443 | theorem energyHistory_hasDerivAt {F : Profile} {XR C B : ℝ} |
| 444 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 445 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 446 | HasDerivAt (fun t => energyHistory F XR w.coefficients t X) |
| 447 | ((amplitude F XR ^ 2 / 2) * deriv (etaTail true F.data.h (1 + 2 * F.data.h) X) η) η := by |
| 448 | have hh := F.data.h_pos |
| 449 | have ht := (etaTail_hasDerivAt hh (by linarith : 0 < 1 + 2 * F.data.h) |
| 450 | ((tailStart_ge_one F XR).trans hX) true η).differentiableAt.hasDerivAt |
| 451 | exact ((ht.const_add (powerTail (1 + 2 * F.data.h) X)).const_mul (amplitude F XR ^ 2 / 2)).congr_of_eventuallyEq |
| 452 | (parameter_germ hη (fun t ht => energyHistory_formula hF w ht hX)) |
| 453 | |
| 454 | theorem pressure_hasDerivAt (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 455 | {η X : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) (hX : tailStart F XR ≤ X) : |
| 456 | HasDerivAt (fun t => HeatedOutgoing.Pi F XR c (X,t)) |
| 457 | (-(amplitude F XR ^ 2 / 2) * deriv (etaTail true F.data.h (2 + 2 * F.data.h) X) η) η := by |
| 458 | have hh := F.data.h_pos |
| 459 | have ht := (etaTail_hasDerivAt hh (by linarith : 0 < 2 + 2 * F.data.h) |
| 460 | ((tailStart_ge_one F XR).trans hX) true η).differentiableAt.hasDerivAt |
| 461 | exact ((ht.const_add (powerTail (2 + 2 * F.data.h) X)).const_mul (-(amplitude F XR ^ 2 / 2))).congr_of_eventuallyEq |
| 462 | (parameter_germ hη (fun t ht => pressure_formula F hXR c ht hX)) |
| 463 | |
| 464 | theorem powerTail_tendsto_zero {k : ℝ} (hk : 1 < k) : |
| 465 | Tendsto (powerTail k) atTop (𝓝 0) := by |
| 466 | unfold powerTail |
| 467 | simpa only [zero_div] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).div_const (k - 1) |
| 468 | |
| 469 | theorem mul_powerTail_tendsto_zero {k : ℝ} (hk : 2 < k) : |
| 470 | Tendsto (fun X => X * powerTail k X) atTop (𝓝 0) := by |
| 471 | have ht : Tendsto (fun X : ℝ => X ^ (-(k - 2)) / (k - 1)) atTop (𝓝 0) := by |
| 472 | simpa only [zero_div] using (tendsto_rpow_neg_atTop (sub_pos.mpr hk)).div_const (k - 1) |
| 473 | apply ht.congr' |
| 474 | filter_upwards [Ioi_mem_atTop (0 : ℝ)] with X hX |
| 475 | rw [powerTail, ← mul_div_assoc, mul_decay_power hX] |
| 476 | congr 2 |
| 477 | ring |
| 478 | |
| 479 | theorem angularHistory_sub_power_tendsto_zero {F : Profile} {XR C : ℝ} |
| 480 | (w : CompensationWitness F XR C) {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 481 | Tendsto (fun X => angularHistory F XR w.coefficients η X - powerHistory F XR X) atTop (𝓝 0) := by |
| 482 | have ht := (etaTail_tendsto_zero F.data.h_pos F.data.h_pos false η).const_mul (-angularAmplitude F XR) |
| 483 | apply (show Tendsto (fun X => -angularAmplitude F XR * etaTail false F.data.h F.data.h X η) |
| 484 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 485 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 486 | rw [angularHistory_formula w hη hX] |
| 487 | ring |
| 488 | |
| 489 | theorem angularHistory_eta_tendsto_zero {F : Profile} {XR C : ℝ} |
| 490 | (w : CompensationWitness F XR C) {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 491 | Tendsto (fun X => deriv (fun t => angularHistory F XR w.coefficients t X) η) atTop (𝓝 0) := by |
| 492 | have ht := (etaTail_derivative_tendsto_zero F.data.h_pos F.data.h_pos false η).const_mul (-angularAmplitude F XR) |
| 493 | apply (show Tendsto (fun X => -angularAmplitude F XR * deriv (etaTail false F.data.h F.data.h X) η) |
| 494 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 495 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 496 | exact (angularHistory_hasDerivAt w hη hX).deriv.symm |
| 497 | |
| 498 | theorem energyHistory_tendsto_zero {F : Profile} {XR C B : ℝ} |
| 499 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 500 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 501 | Tendsto (fun X => energyHistory F XR w.coefficients η X) atTop (𝓝 0) := by |
| 502 | have hh := F.data.h_pos |
| 503 | have ht := ((powerTail_tendsto_zero (by linarith : 1 < 1 + 2 * F.data.h)).add |
| 504 | (etaTail_tendsto_zero hh (by linarith : 0 < 1 + 2 * F.data.h) true η)).const_mul (amplitude F XR ^ 2 / 2) |
| 505 | apply (show Tendsto (fun X => (amplitude F XR ^ 2 / 2) * |
| 506 | (powerTail (1 + 2 * F.data.h) X + etaTail true F.data.h (1 + 2 * F.data.h) X η)) |
| 507 | atTop (𝓝 0) by simpa only [add_zero, mul_zero] using ht).congr' |
| 508 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 509 | exact (energyHistory_formula hF w hη hX).symm |
| 510 | |
| 511 | theorem energyHistory_eta_tendsto_zero {F : Profile} {XR C B : ℝ} |
| 512 | (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) |
| 513 | {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 514 | Tendsto (fun X => deriv (fun t => energyHistory F XR w.coefficients t X) η) atTop (𝓝 0) := by |
| 515 | have hh := F.data.h_pos |
| 516 | have ht := (etaTail_derivative_tendsto_zero hh (by linarith : 0 < 1 + 2 * F.data.h) true η).const_mul (amplitude F XR ^ 2 / 2) |
| 517 | apply (show Tendsto (fun X => (amplitude F XR ^ 2 / 2) * |
| 518 | deriv (etaTail true F.data.h (1 + 2 * F.data.h) X) η) atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 519 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 520 | exact (energyHistory_hasDerivAt hF w hη hX).deriv.symm |
| 521 | |
| 522 | theorem mul_pressure_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 523 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 524 | Tendsto (fun X => X * HeatedOutgoing.Pi F XR c (X,η)) atTop (𝓝 0) := by |
| 525 | have hh := F.data.h_pos |
| 526 | have ht := ((mul_powerTail_tendsto_zero (by linarith : 2 < 2 + 2 * F.data.h)).add |
| 527 | (mul_etaTail_tendsto_zero hh (by linarith : 1 < 2 + 2 * F.data.h) true η)).const_mul (-(amplitude F XR ^ 2 / 2)) |
| 528 | apply (show Tendsto (fun X => -(amplitude F XR ^ 2 / 2) * |
| 529 | (X * powerTail (2 + 2 * F.data.h) X + X * etaTail true F.data.h (2 + 2 * F.data.h) X η)) |
| 530 | atTop (𝓝 0) by simpa only [add_zero, mul_zero] using ht).congr' |
| 531 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 532 | rw [pressure_formula F hXR c hη hX] |
| 533 | ring |
| 534 | |
| 535 | theorem mul_pressure_eta_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 536 | {η : ℝ} (hη : η ∈ Ioo (-1 : ℝ) 1) : |
| 537 | Tendsto (fun X => X * deriv (fun t => HeatedOutgoing.Pi F XR c (X,t)) η) atTop (𝓝 0) := by |
| 538 | have hh := F.data.h_pos |
| 539 | have ht := (mul_etaTail_derivative_tendsto_zero hh (by linarith : 1 < 2 + 2 * F.data.h) true η).const_mul (-(amplitude F XR ^ 2 / 2)) |
| 540 | apply (show Tendsto (fun X => -(amplitude F XR ^ 2 / 2) * |
| 541 | (X * deriv (etaTail true F.data.h (2 + 2 * F.data.h) X) η)) |
| 542 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 543 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 544 | rw [(pressure_hasDerivAt F hXR c hη hX).deriv] |
| 545 | ring |
| 546 | |
| 547 | /-! ## The actual angular field and its radial derivative at infinity -/ |
| 548 | |
| 549 | noncomputable def heatH (h D η X : ℝ) : ℝ := D * X ^ (-h) * heatFactor h η X |
| 550 | |
| 551 | noncomputable def factorSlope (h η X : ℝ) : ℝ := |
| 552 | -h * heatFactor h η X - (2 * (1 - η ^ 2) / X) * |
| 553 | deriv (HeatProfileExtension.extension (1 + h)) (2 * (1 - η ^ 2) / X) |
| 554 | |
| 555 | theorem heatFactor_tendsto_one {h : ℝ} (hh : 0 < h) (η : ℝ) : |
| 556 | Tendsto (heatFactor h η) atTop (𝓝 1) := by |
| 557 | have ha : 1 < 1 + h := by linarith |
| 558 | have hz : Tendsto (fun X : ℝ => 2 * (1 - η ^ 2) / X) atTop (𝓝 0) := |
| 559 | tendsto_const_nhds.div_atTop tendsto_id |
| 560 | have ht := ((HeatProfileExtension.extension_contDiff ha).continuous.continuousAt (x := 0)).tendsto.comp hz |
| 561 | unfold heatFactor HeatProfileExtension.physicalProfile HeatProfileExtension.scaledProfile |
| 562 | simpa only [Function.comp_def, HeatProfileExtension.extension_zero ha] using ht |
| 563 | |
| 564 | theorem factorSlope_tendsto {h : ℝ} (hh : 0 < h) (η : ℝ) : |
| 565 | Tendsto (factorSlope h η) atTop (𝓝 (-h)) := by |
| 566 | have ha : 1 < 1 + h := by linarith |
| 567 | have hext := HeatProfileExtension.extension_contDiff ha |
| 568 | have hdc : Continuous (deriv (HeatProfileExtension.extension (1 + h))) := by |
| 569 | simpa only [iteratedDeriv_one] using |
| 570 | hext.continuous_iteratedDeriv 1 (WithTop.coe_le_coe.mpr le_top) |
| 571 | have hz : Tendsto (fun X : ℝ => 2 * (1 - η ^ 2) / X) atTop (𝓝 0) := |
| 572 | tendsto_const_nhds.div_atTop tendsto_id |
| 573 | have hd := (hdc.continuousAt (x := 0)).tendsto.comp hz |
| 574 | have ht := ((heatFactor_tendsto_one hh η).const_mul (-h)).sub (hz.mul hd) |
| 575 | unfold factorSlope |
| 576 | simpa only [Function.comp_def, mul_one, zero_mul, sub_zero] using ht |
| 577 | |
| 578 | theorem heatH_tendsto_zero {h : ℝ} (hh : 0 < h) (D η : ℝ) : |
| 579 | Tendsto (heatH h D η) atTop (𝓝 0) := by |
| 580 | have ht := ((tendsto_rpow_neg_atTop hh).const_mul D).mul (heatFactor_tendsto_one hh η) |
| 581 | unfold heatH |
| 582 | simpa only [mul_zero, zero_mul] using ht |
| 583 | |
| 584 | theorem heatH_hasDerivAt {h X : ℝ} (hh : 0 < h) (D η : ℝ) (hX : 0 < X) : |
| 585 | HasDerivAt (heatH h D η) (D * X ^ (-h - 1) * factorSlope h η X) X := by |
| 586 | have ha : 1 < 1 + h := by linarith |
| 587 | have hz : HasDerivAt (fun x : ℝ => 2 * (1 - η ^ 2) / x) |
| 588 | (-(2 * (1 - η ^ 2)) / X ^ 2) X := by |
| 589 | convert! (hasDerivAt_const X (2 * (1 - η ^ 2))).div (hasDerivAt_id X) hX.ne' using 1 |
| 590 | simp only [id_eq] |
| 591 | ring |
| 592 | have hf := (((HeatProfileExtension.extension_contDiff ha).differentiable (by simp)) |
| 593 | (2 * (1 - η ^ 2) / X)).hasDerivAt.comp X hz |
| 594 | simp only [Function.comp_def] at hf |
| 595 | have hp := Real.hasDerivAt_rpow_const (p := -h) (Or.inl hX.ne') |
| 596 | change HasDerivAt (fun x : ℝ => D * x ^ (-h) * |
| 597 | HeatProfileExtension.extension (1 + h) (2 * (1 - η ^ 2) / x)) _ X |
| 598 | convert! (hp.const_mul D).fun_mul hf using 1 |
| 599 | dsimp only [factorSlope, heatFactor, HeatProfileExtension.physicalProfile, HeatProfileExtension.scaledProfile] |
| 600 | rw [Real.rpow_sub_one hX.ne'] |
| 601 | field_simp [hX.ne'] ; ring |
| 602 | |
| 603 | theorem heatH_weighted_deriv {h X : ℝ} (hh : 0 < h) (D η : ℝ) (hX : 0 < X) : |
| 604 | X * deriv (heatH h D η) X = D * X ^ (-h) * factorSlope h η X := by |
| 605 | rw [(heatH_hasDerivAt hh D η hX).deriv, Real.rpow_sub_one hX.ne'] |
| 606 | field_simp [hX.ne'] |
| 607 | |
| 608 | theorem heatH_weighted_deriv_tendsto_zero {h : ℝ} (hh : 0 < h) (D η : ℝ) : |
| 609 | Tendsto (fun X => X * deriv (heatH h D η) X) atTop (𝓝 0) := by |
| 610 | have ht := ((tendsto_rpow_neg_atTop hh).const_mul D).mul (factorSlope_tendsto hh η) |
| 611 | apply (show Tendsto (fun X => D * X ^ (-h) * factorSlope h η X) atTop (𝓝 0) |
| 612 | by simpa only [mul_zero, zero_mul] using ht).congr' |
| 613 | filter_upwards [Ioi_mem_atTop (0 : ℝ)] with X hX |
| 614 | exact (heatH_weighted_deriv hh D η hX).symm |
| 615 | |
| 616 | theorem H_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 617 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 618 | Tendsto (fun X => HeatedOutgoing.H F XR c (X,η)) atTop (𝓝 0) := by |
| 619 | apply (heatH_tendsto_zero F.data.h_pos (angularAmplitude F XR) η).congr' |
| 620 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 621 | exact (heated_H_eq F hXR c hη hX).symm |
| 622 | |
| 623 | theorem H_hasDerivAt (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 624 | {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : tailStart F XR < X) : |
| 625 | HasDerivAt (fun u => HeatedOutgoing.H F XR c (u,η)) |
| 626 | (angularAmplitude F XR * X ^ (-F.data.h - 1) * factorSlope F.data.h η X) X := by |
| 627 | have he : (fun u => HeatedOutgoing.H F XR c (u,η)) =ᶠ[𝓝 X] |
| 628 | heatH F.data.h (angularAmplitude F XR) η := by |
| 629 | filter_upwards [Ioi_mem_nhds hX] with u hu |
| 630 | exact heated_H_eq F hXR c hη hu.le |
| 631 | exact (heatH_hasDerivAt F.data.h_pos (angularAmplitude F XR) η |
| 632 | (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX.le))).congr_of_eventuallyEq he |
| 633 | |
| 634 | theorem mul_H_deriv_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 635 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 636 | Tendsto (fun X => X * deriv (fun u => HeatedOutgoing.H F XR c (u,η)) X) atTop (𝓝 0) := by |
| 637 | apply (heatH_weighted_deriv_tendsto_zero F.data.h_pos (angularAmplitude F XR) η).congr' |
| 638 | filter_upwards [Ioi_mem_atTop (tailStart F XR)] with X hX |
| 639 | rw [(H_hasDerivAt F hXR c hη hX).deriv, |
| 640 | (heatH_hasDerivAt F.data.h_pos (angularAmplitude F XR) η |
| 641 | (zero_lt_one.trans_le ((tailStart_ge_one F XR).trans hX.le))).deriv] |
| 642 | |
| 643 | theorem mul_tailKernel_tendsto_zero {h k : ℝ} (hh : 0 < h) (hk : 0 < k) |
| 644 | (square : Bool) (n : ℕ) (ν : ℝ) : |
| 645 | Tendsto (fun X => X * tailKernel square h k n ν X) atTop (𝓝 0) := by |
| 646 | apply squeeze_zero_norm' (a := fun X => ExtendedHeatDebts.editBound square h |ν| n * X ^ (-k)) |
| 647 | · filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX |
| 648 | have hXp := zero_lt_one.trans_le hX |
| 649 | rw [norm_mul, Real.norm_eq_abs, abs_of_pos hXp] |
| 650 | calc |
| 651 | _ ≤ X * (ExtendedHeatDebts.editBound square h |ν| n * X ^ (-k - 1)) := |
| 652 | mul_le_mul_of_nonneg_left (tailKernel_bound hh hX le_rfl square n) hXp.le |
| 653 | _ = _ := by rw [Real.rpow_sub_one hXp.ne']; field_simp [hXp.ne'] |
| 654 | · simpa only [mul_zero] using (tendsto_rpow_neg_atTop hk).const_mul |
| 655 | (ExtendedHeatDebts.editBound square h |ν| n) |
| 656 | |
| 657 | theorem mul_H_sub_powerH_tendsto_zero (F : Profile) {XR : ℝ} (hXR : 0 < XR) (c : ℝ → Coeff) |
| 658 | {η : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) : |
| 659 | Tendsto (fun X => X * (HeatedOutgoing.H F XR c (X,η) - OutgoingDilation.powerH F XR X)) |
| 660 | atTop (𝓝 0) := by |
| 661 | have ht := (mul_tailKernel_tendsto_zero F.data.h_pos F.data.h_pos false 0 |
| 662 | (ParametricHeatTail.diffusion η)).const_mul (angularAmplitude F XR) |
| 663 | apply (show Tendsto (fun X => angularAmplitude F XR * |
| 664 | (X * tailKernel false F.data.h F.data.h 0 (ParametricHeatTail.diffusion η) X)) |
| 665 | atTop (𝓝 0) by simpa only [mul_zero] using ht).congr' |
| 666 | filter_upwards [eventually_ge_atTop (tailStart F XR)] with X hX |
| 667 | rw [heated_difference_eq_kernel F hXR c hη hX] |
| 668 | ring |
| 669 | |
| 670 | end NavierStokes.HeatTailHistoryLimits |