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.ParametricHeatTail |
| 2 | import NavierStokes.ParametricRephase |
| 3 | import NavierStokes.SimilarityProfile |
| 4 | import NavierStokes.OutgoingDilation |
| 5 | import NavierStokes.HeatedOutgoing |
| 6 | import Mathlib.MeasureTheory.Function.Jacobian |
| 7 | import Mathlib.Analysis.SpecialFunctions.Integrals.Basic |
| 8 | |
| 9 | /-! |
| 10 | # The renormalized angular moment and physical axial viscosity |
| 11 | |
| 12 | The nonintegrable reference power is independent of physical axial position. |
| 13 | It is subtracted before integration. Local constancy of the exterior heat |
| 14 | carrier supplies compact support for every axial derivative of the difference. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open Set Filter MeasureTheory |
| 20 | open scoped Topology ContDiff |
| 21 | |
| 22 | namespace NavierStokes.RenormalizedHeatMoment |
| 23 | |
| 24 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 25 | WithTop.coe_le_coe.mpr le_top |
| 26 | |
| 27 | /-! ## Smooth integrals of locally uniformly supported differences -/ |
| 28 | |
| 29 | noncomputable def parameterJet (F : ℝ × ℝ → ℝ) (n : ℕ) (p : ℝ × ℝ) : ℝ := |
| 30 | iteratedDeriv n (fun z => F (z, p.2)) p.1 |
| 31 | |
| 32 | theorem parameterJet_continuous {F : ℝ × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) (n : ℕ) : |
| 33 | Continuous (parameterJet F n) := by |
| 34 | have hj : ContDiff ℝ ∞ (ParametricRephase.parameterJet F n) := by |
| 35 | simpa only [univ_prod_univ, contDiffOn_univ] using |
| 36 | ParametricRephase.parameterJet_contDiffOn F univ isOpen_univ hF.contDiffOn n |
| 37 | exact (ContinuousMultilinearMap.piFieldEquiv ℝ (Fin n) ℝ).symm.continuous.comp hj.continuous |
| 38 | |
| 39 | theorem iteratedDeriv_zero_function (n : ℕ) : |
| 40 | iteratedDeriv n (fun _ : ℝ => (0 : ℝ)) = fun _ => 0 := by |
| 41 | induction n with |
| 42 | | zero => rfl |
| 43 | | succ n ih => |
| 44 | rw [iteratedDeriv_succ, ih] |
| 45 | funext x |
| 46 | exact deriv_const x 0 |
| 47 | |
| 48 | /-- Only the positive integration half-line needs a common support radius. -/ |
| 49 | def LocallyUniformSupport (F : ℝ × ℝ → ℝ) : Prop := |
| 50 | ∀ z : ℝ, ∃ ε B : ℝ, 0 < ε ∧ 0 < B ∧ |
| 51 | ∀ y ∈ Metric.ball z ε, ∀ r : ℝ, B ≤ r → F (y, r) = 0 |
| 52 | |
| 53 | theorem parameterJet_zero_of_support {F : ℝ × ℝ → ℝ} {z ε B y r : ℝ} |
| 54 | (hs : ∀ x ∈ Metric.ball z ε, ∀ r : ℝ, B ≤ r → F (x, r) = 0) |
| 55 | (hy : y ∈ Metric.ball z ε) (hr : B ≤ r) (n : ℕ) : parameterJet F n (y, r) = 0 := by |
| 56 | have he : (fun x => F (x, r)) =ᶠ[𝓝 y] (fun _ => 0) := by |
| 57 | filter_upwards [Metric.isOpen_ball.mem_nhds hy] with x hx |
| 58 | exact hs x hx r hr |
| 59 | simpa only [parameterJet, iteratedDeriv_zero_function] using he.iteratedDeriv_eq n |
| 60 | |
| 61 | theorem supported_locally_dominated {F : ℝ × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) |
| 62 | (hs : LocallyUniformSupport F) : |
| 63 | SmoothParameterIntegral.LocallyDominatedDeriv (fun z r => F (z, r)) |
| 64 | (volume.restrict (Ioi 0)) := by |
| 65 | intro n z |
| 66 | obtain ⟨ε, B, hε, hB, hsupport⟩ := hs z |
| 67 | have hc : IsCompact (Metric.closedBall z (ε / 2) ×ˢ Icc (0 : ℝ) B) := |
| 68 | (isCompact_closedBall z (ε / 2)).prod isCompact_Icc |
| 69 | obtain ⟨C, hC⟩ := hc.exists_bound_of_continuousOn (parameterJet_continuous hF n).continuousOn |
| 70 | let bound : ℝ → ℝ := (Icc (0 : ℝ) B).indicator (fun _ => max C 0) |
| 71 | have hb : Integrable bound (volume.restrict (Ioi 0)) := by |
| 72 | have hc : IntegrableOn (fun _ : ℝ => max C 0) (Icc (0 : ℝ) B) := continuous_const.integrableOn_Icc |
| 73 | exact (hc.integrable_indicator measurableSet_Icc).restrict |
| 74 | refine ⟨ε / 2, by linarith, bound, hb, ?_⟩ |
| 75 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with r hr |
| 76 | intro y hy |
| 77 | by_cases hrB : r ≤ B |
| 78 | · have hp : r ∈ Icc (0 : ℝ) B := ⟨hr.le, hrB⟩ |
| 79 | rw [show bound r = max C 0 by exact indicator_of_mem hp _] |
| 80 | exact (hC (y, r) ⟨Metric.ball_subset_closedBall hy, hp⟩).trans (le_max_left _ _) |
| 81 | · have hy' : y ∈ Metric.ball z ε := Metric.ball_subset_ball (by linarith) hy |
| 82 | have hj := parameterJet_zero_of_support hsupport hy' (le_of_not_ge hrB) n |
| 83 | change ‖parameterJet F n (y, r)‖ ≤ bound r |
| 84 | rw [hj, norm_zero] |
| 85 | exact indicator_nonneg (fun _ _ => le_max_right C 0) r |
| 86 | |
| 87 | theorem parameterJet_measurable {F : ℝ × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) (n : ℕ) (z : ℝ) : |
| 88 | AEStronglyMeasurable (fun r => parameterJet F n (z, r)) (volume.restrict (Ioi 0)) := |
| 89 | ((parameterJet_continuous hF n).comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable |
| 90 | |
| 91 | theorem parameterJet_integrable {F : ℝ × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) |
| 92 | (hs : LocallyUniformSupport F) (n : ℕ) (z : ℝ) : |
| 93 | IntegrableOn (fun r => parameterJet F n (z, r)) (Ioi 0) := by |
| 94 | obtain ⟨ε, hε, b, hb, hbound⟩ := supported_locally_dominated hF hs n z |
| 95 | exact hb.mono' (parameterJet_measurable hF n z) |
| 96 | (hbound.mono fun r hr => hr z (Metric.mem_ball_self hε)) |
| 97 | |
| 98 | theorem iteratedDeriv_integral_supported {F : ℝ × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) |
| 99 | (hs : LocallyUniformSupport F) (n : ℕ) (z : ℝ) : |
| 100 | iteratedDeriv n (fun y => ∫ r in Ioi (0 : ℝ), F (y, r)) z = |
| 101 | ∫ r in Ioi (0 : ℝ), parameterJet F n (z, r) := by |
| 102 | exact SmoothParameterIntegral.iteratedDeriv_integral |
| 103 | (Eventually.of_forall fun r => hF.comp (contDiff_id.prodMk contDiff_const)) |
| 104 | (parameterJet_measurable hF) (supported_locally_dominated hF hs) n z |
| 105 | |
| 106 | noncomputable def centered (u : ℝ × ℝ → ℝ) (z0 : ℝ) (p : ℝ × ℝ) : ℝ := |
| 107 | p.2 ^ 2 * (u p - u (z0, p.2)) |
| 108 | |
| 109 | noncomputable def renormalizedMoment (u : ℝ × ℝ → ℝ) (reference : ℝ → ℝ) (z : ℝ) : ℝ := |
| 110 | ∫ r in Ioi (0 : ℝ), r ^ 2 * (u (z, r) - reference r) |
| 111 | |
| 112 | theorem centered_contDiff {u : ℝ × ℝ → ℝ} (hu : ContDiff ℝ ∞ u) (z0 : ℝ) : |
| 113 | ContDiff ℝ ∞ (centered u z0) := |
| 114 | (contDiff_snd.pow 2).mul (hu.sub (hu.comp (contDiff_const.prodMk contDiff_snd))) |
| 115 | |
| 116 | /-- A locally common exterior carrier is independent of the axial parameter. -/ |
| 117 | def CommonExterior (u : ℝ × ℝ → ℝ) (tail : ℝ → ℝ) : Prop := |
| 118 | ∀ z : ℝ, ∃ ε B : ℝ, 0 < ε ∧ 0 < B ∧ |
| 119 | ∀ y ∈ Metric.ball z ε, ∀ r : ℝ, B ≤ r → u (y, r) = tail r |
| 120 | |
| 121 | theorem centered_support {u : ℝ × ℝ → ℝ} {tail : ℝ → ℝ} |
| 122 | (he : CommonExterior u tail) (z0 : ℝ) : LocallyUniformSupport (centered u z0) := by |
| 123 | obtain ⟨ε0, B0, hε0, hB0, he0⟩ := he z0 |
| 124 | intro z |
| 125 | obtain ⟨ε, B, hε, hB, hz⟩ := he z |
| 126 | refine ⟨ε, max B B0, hε, hB.trans_le (le_max_left _ _), ?_⟩ |
| 127 | intro y hy r hr |
| 128 | simp only [centered, hz y hy r ((le_max_left _ _).trans hr), |
| 129 | he0 z0 (Metric.mem_ball_self hε0) r ((le_max_right _ _).trans hr), sub_self, mul_zero] |
| 130 | |
| 131 | theorem centered_jet {u : ℝ × ℝ → ℝ} (hu : ContDiff ℝ ∞ u) (z0 : ℝ) |
| 132 | (n : ℕ) (hn : 0 < n) (z r : ℝ) : |
| 133 | parameterJet (centered u z0) n (z, r) = |
| 134 | r ^ 2 * iteratedDeriv n (fun y => u (y, r)) z := by |
| 135 | have hc : ContDiff ℝ ∞ (fun y => u (y, r)) := hu.comp (contDiff_id.prodMk contDiff_const) |
| 136 | change iteratedDeriv n (fun y => r ^ 2 * (u (y, r) - u (z0, r))) z = _ |
| 137 | rw [iteratedDeriv_const_mul _ ((hc.sub contDiff_const).contDiffAt.of_le (nat_le_infty n))] |
| 138 | congr 1 |
| 139 | have he : (fun y => u (y, r) - u (z0, r)) = fun y => -u (z0, r) + u (y, r) := by |
| 140 | funext y |
| 141 | ring |
| 142 | rw [he, iteratedDeriv_const_add hn] |
| 143 | |
| 144 | /-- Differentiation of the actual renormalized improper moment. The tail is |
| 145 | subtracted before integration, and all positive-order integrands are proved |
| 146 | integrable by local compact support. -/ |
| 147 | theorem renormalized_moment_derivative {u : ℝ × ℝ → ℝ} {reference tail : ℝ → ℝ} |
| 148 | (hu : ContDiff ℝ ∞ u) (he : CommonExterior u tail) |
| 149 | (hi : ∀ z, IntegrableOn (fun r => r ^ 2 * (u (z, r) - reference r)) (Ioi 0)) |
| 150 | (n : ℕ) (hn : 0 < n) (z : ℝ) : |
| 151 | IntegrableOn (fun r => r ^ 2 * iteratedDeriv n (fun y => u (y, r)) z) (Ioi 0) ∧ |
| 152 | iteratedDeriv n (renormalizedMoment u reference) z = |
| 153 | ∫ r in Ioi (0 : ℝ), r ^ 2 * iteratedDeriv n (fun y => u (y, r)) z := by |
| 154 | have hc := centered_contDiff hu (0 : ℝ) |
| 155 | have hs := centered_support he (0 : ℝ) |
| 156 | have hj : (fun r => parameterJet (centered u 0) n (z, r)) = |
| 157 | (fun r => r ^ 2 * iteratedDeriv n (fun y => u (y, r)) z) := |
| 158 | funext fun r => centered_jet hu 0 n hn z r |
| 159 | refine ⟨by rw [← hj]; exact parameterJet_integrable hc hs n z, ?_⟩ |
| 160 | have hm : renormalizedMoment u reference = fun y => |
| 161 | renormalizedMoment u reference 0 + ∫ r in Ioi (0 : ℝ), centered u 0 (y, r) := by |
| 162 | funext y |
| 163 | have hdiff : (fun r => centered u 0 (y, r)) = fun r => |
| 164 | r ^ 2 * (u (y, r) - reference r) - r ^ 2 * (u (0, r) - reference r) := by |
| 165 | funext r |
| 166 | unfold centered |
| 167 | ring |
| 168 | rw [hdiff, integral_sub (hi y) (hi 0)] |
| 169 | unfold renormalizedMoment |
| 170 | ring |
| 171 | rw [hm, iteratedDeriv_const_add hn, |
| 172 | iteratedDeriv_integral_supported hc hs n z, hj] |
| 173 | |
| 174 | theorem axial_viscosity_moment_zero {u : ℝ × ℝ → ℝ} {reference tail : ℝ → ℝ} |
| 175 | (hu : ContDiff ℝ ∞ u) (he : CommonExterior u tail) |
| 176 | (hi : ∀ z, IntegrableOn (fun r => r ^ 2 * (u (z, r) - reference r)) (Ioi 0)) |
| 177 | (hm : ∀ z, renormalizedMoment u reference z = 0) (z : ℝ) : |
| 178 | IntegrableOn (fun r => r ^ 2 * iteratedDeriv 2 (fun y => u (y, r)) z) (Ioi 0) ∧ |
| 179 | (∫ r in Ioi (0 : ℝ), r ^ 2 * iteratedDeriv 2 (fun y => u (y, r)) z) = 0 := by |
| 180 | obtain ⟨hI, hd⟩ := renormalized_moment_derivative hu he hi 2 (by norm_num) z |
| 181 | refine ⟨hI, hd.symm.trans ?_⟩ |
| 182 | rw [show renormalizedMoment u reference = (fun _ => 0) from funext hm, |
| 183 | iteratedDeriv_zero_function] |
| 184 | |
| 185 | /-! ## The actual implicit physical coordinates -/ |
| 186 | |
| 187 | noncomputable def A (h : ℝ) : ℝ := 1 / 2 + h |
| 188 | noncomputable def Q (h τ z : ℝ) : ℝ := SimilarityCoordinates.coordinateQ (2 * h) (τ, z) |
| 189 | noncomputable def eta (h τ z : ℝ) : ℝ := SimilarityCoordinates.coordinateEta (2 * h) (τ, z) |
| 190 | |
| 191 | noncomputable def referencePower (h C r : ℝ) : ℝ := C * (r ^ 2 / 2) ^ (-A h) |
| 192 | |
| 193 | noncomputable def heatCarrier (h C τ r : ℝ) : ℝ := |
| 194 | C * RadialHeatProfile.radialProfile (1 + h) τ r |
| 195 | |
| 196 | /-- `F` is the signed radial angular profile, with parameter second. -/ |
| 197 | noncomputable def velocity (h τ : ℝ) (F : ℝ × ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 198 | Q h τ p.1 ^ (-A h) * F (p.2 / Real.sqrt (Q h τ p.1), eta h τ p.1) |
| 199 | |
| 200 | theorem Q_pos {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (z : ℝ) : |
| 201 | 0 < Q h τ z := |
| 202 | (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) (p := (τ, z)) hτ).1 |
| 203 | |
| 204 | theorem Q_implicit {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (z : ℝ) : |
| 205 | Q h τ z - z ^ 2 * Q h τ z ^ (2 * h) = τ := |
| 206 | (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) (p := (τ, z)) hτ).2 |
| 207 | |
| 208 | theorem eta_mem {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (z : ℝ) : |
| 209 | eta h τ z ∈ Ioo (-1 : ℝ) 1 := |
| 210 | abs_lt.mp (SimilarityCoordinates.coordinateEta_abs_lt_one |
| 211 | (by linarith) (by linarith) (p := (τ, z)) hτ) |
| 212 | |
| 213 | theorem diffusion_identity {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 214 | (hτ : 0 < τ) (z : ℝ) : 1 - eta h τ z ^ 2 = τ / Q h τ z := by |
| 215 | have he := SimilarityCoordinates.tau_coordinate_identity |
| 216 | (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) (p := (τ, z)) hτ |
| 217 | apply (eq_div_iff (Q_pos hh hh1 hτ z).ne').mpr |
| 218 | simpa only [Q, eta, mul_comm] using he.symm |
| 219 | |
| 220 | /-- Every interior profile parameter is realized at a physical point with |
| 221 | `q=1`, namely `t=eta^2` and `z=eta`. -/ |
| 222 | theorem normalized_coordinates {h e : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 223 | (he : e ∈ Ioo (-1 : ℝ) 1) : |
| 224 | e ^ 2 < 1 ∧ Q h (1 - e ^ 2) e = 1 ∧ eta h (1 - e ^ 2) e = e := by |
| 225 | have hτ : 0 < 1 - e ^ 2 := by |
| 226 | have hp := mul_pos (show 0 < 1 - e by linarith [he.2]) |
| 227 | (show 0 < 1 + e by linarith [he.1]) |
| 228 | nlinarith |
| 229 | have hq : Q h (1 - e ^ 2) e = 1 := |
| 230 | (SimilarityCoordinates.eq_coordinateQ (by linarith : 0 < 2 * h) |
| 231 | (by linarith : 2 * h < 1) (p := (1 - e ^ 2, e)) hτ zero_lt_one |
| 232 | (by simp [SimilarityCoordinates.forwardScalar])).symm |
| 233 | refine ⟨by linarith, hq, ?_⟩ |
| 234 | change e / Q h (1 - e ^ 2) e ^ ((1 - 2 * h) / 2) = e |
| 235 | rw [hq, Real.one_rpow, div_one] |
| 236 | |
| 237 | theorem Q_contDiff {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) : |
| 238 | ContDiff ℝ ∞ (Q h τ) := by |
| 239 | apply contDiff_iff_contDiffAt.mpr |
| 240 | intro z |
| 241 | exact (SimilarityCoordinates.coordinateQ_smooth (by linarith) (by linarith) |
| 242 | (p := (τ, z)) hτ).comp z (contDiffAt_const.prodMk contDiffAt_id) |
| 243 | |
| 244 | theorem eta_contDiff {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) : |
| 245 | ContDiff ℝ ∞ (eta h τ) := by |
| 246 | apply contDiff_iff_contDiffAt.mpr |
| 247 | intro z |
| 248 | exact (SimilarityCoordinates.coordinateEta_smooth (by linarith) (by linarith) |
| 249 | (p := (τ, z)) hτ).comp z (contDiffAt_const.prodMk contDiffAt_id) |
| 250 | |
| 251 | theorem velocity_contDiff {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) |
| 252 | {F : ℝ × ℝ → ℝ} (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) : |
| 253 | ContDiff ℝ ∞ (velocity h τ F) := by |
| 254 | apply contDiff_iff_contDiffAt.mpr |
| 255 | intro p |
| 256 | have hq := ((Q_contDiff hh hh1 hτ).comp contDiff_fst).contDiffAt (x := p) |
| 257 | have hη := ((eta_contDiff hh hh1 hτ).comp contDiff_fst).contDiffAt (x := p) |
| 258 | have hR : ContDiffAt ℝ ∞ (fun p : ℝ × ℝ => p.2 / Real.sqrt (Q h τ p.1)) p := |
| 259 | contDiffAt_snd.div (hq.sqrt (Q_pos hh hh1 hτ p.1).ne') |
| 260 | (Real.sqrt_pos.mpr (Q_pos hh hh1 hτ p.1)).ne' |
| 261 | exact (hq.rpow_const_of_ne (Q_pos hh hh1 hτ p.1).ne').mul |
| 262 | ((hF.contDiffAt ((isOpen_univ.prod isOpen_Ioo).mem_nhds |
| 263 | ⟨mem_univ _, eta_mem hh hh1 hτ p.1⟩)).comp p (hR.prodMk hη)) |
| 264 | |
| 265 | theorem referencePower_scaling (h C : ℝ) {q : ℝ} (hq : 0 < q) (r : ℝ) : |
| 266 | q ^ (-A h) * referencePower h C (r / Real.sqrt q) = referencePower h C r := by |
| 267 | have hp : (r / Real.sqrt q) ^ 2 / 2 = (r ^ 2 / 2) / q := by |
| 268 | rw [div_pow, Real.sq_sqrt hq.le] |
| 269 | ring |
| 270 | rw [referencePower, referencePower, hp, |
| 271 | Real.div_rpow (by positivity) hq.le] |
| 272 | field_simp [(Real.rpow_pos_of_pos hq (-A h)).ne'] |
| 273 | |
| 274 | theorem heatCarrier_scaling (h C : ℝ) {q τ ν r : ℝ} (hq : 0 < q) (hr : 0 < r) |
| 275 | (hν : ν = τ / q) : |
| 276 | q ^ (-A h) * heatCarrier h C ν (r / Real.sqrt q) = heatCarrier h C τ r := by |
| 277 | have hp : (r / Real.sqrt q) ^ 2 / 2 = (r ^ 2 / 2) / q := by |
| 278 | rw [div_pow, Real.sq_sqrt hq.le] |
| 279 | ring |
| 280 | have hexp : RadialHeatProfile.spatialExponent (1 + h) = -A h := by |
| 281 | unfold RadialHeatProfile.spatialExponent A |
| 282 | ring |
| 283 | have hs : 0 < r ^ 2 / 2 := by positivity |
| 284 | simp only [heatCarrier, RadialHeatProfile.radialProfile, |
| 285 | RadialHeatProfile.spatialProfile, hexp, hp, hν, |
| 286 | ParametricHeatTail.heat_ratio_physical hq hs] |
| 287 | rw [Real.div_rpow hs.le hq.le] |
| 288 | field_simp [(Real.rpow_pos_of_pos hq (-A h)).ne'] |
| 289 | |
| 290 | theorem velocity_commonExterior {h τ C B : ℝ} |
| 291 | (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (hB : 0 < B) |
| 292 | {F : ℝ × ℝ → ℝ} |
| 293 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ R : ℝ, B ≤ R → |
| 294 | F (R, eta) = heatCarrier h C (1 - eta ^ 2) R) : |
| 295 | CommonExterior (velocity h τ F) (heatCarrier h C τ) := by |
| 296 | intro z |
| 297 | let Bz := B * Real.sqrt (Q h τ z) + 1 |
| 298 | have hBz : 0 < Bz := by dsimp [Bz]; positivity |
| 299 | have hc : Continuous (fun y => B * Real.sqrt (Q h τ y)) := |
| 300 | continuous_const.mul (Real.continuous_sqrt.comp (Q_contDiff hh hh1 hτ).continuous) |
| 301 | have hev : ∀ᶠ y in 𝓝 z, B * Real.sqrt (Q h τ y) < Bz := |
| 302 | hc.continuousAt.eventually (gt_mem_nhds (by dsimp [Bz]; linarith)) |
| 303 | obtain ⟨ε, hε, hεs⟩ := Metric.mem_nhds_iff.mp hev |
| 304 | refine ⟨ε, Bz, hε, hBz, ?_⟩ |
| 305 | intro y hy r hr |
| 306 | have hq := Q_pos hh hh1 hτ y |
| 307 | have hR : B ≤ r / Real.sqrt (Q h τ y) := by |
| 308 | apply (le_div_iff₀ (Real.sqrt_pos.mpr hq)).mpr |
| 309 | exact (hεs hy).le.trans hr |
| 310 | rw [velocity, he _ (eta_mem hh hh1 hτ y) _ hR] |
| 311 | exact heatCarrier_scaling h C hq (hBz.trans_le hr) (diffusion_identity hh hh1 hτ y) |
| 312 | |
| 313 | noncomputable def radialDifference (h C : ℝ) (F : ℝ × ℝ → ℝ) (eta r : ℝ) : ℝ := |
| 314 | r ^ 2 * (F (r, eta) - referencePower h C r) |
| 315 | |
| 316 | noncomputable def profileMoment (h C : ℝ) (F : ℝ × ℝ → ℝ) (eta : ℝ) : ℝ := |
| 317 | ∫ r in Ioi (0 : ℝ), radialDifference h C F eta r |
| 318 | |
| 319 | theorem physical_difference_scaling {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 320 | (hτ : 0 < τ) (C : ℝ) (F : ℝ × ℝ → ℝ) (z r : ℝ) : |
| 321 | r ^ 2 * (velocity h τ F (z, r) - referencePower h C r) = |
| 322 | (Q h τ z * Q h τ z ^ (-A h)) * |
| 323 | radialDifference h C F (eta h τ z) (r / Real.sqrt (Q h τ z)) := by |
| 324 | have hq := Q_pos hh hh1 hτ z |
| 325 | rw [← referencePower_scaling h C hq r] |
| 326 | simp only [velocity, radialDifference, div_pow, Real.sq_sqrt hq.le] |
| 327 | field_simp [hq.ne'] |
| 328 | |
| 329 | theorem profileMoment_integrable_physical {h τ C : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 330 | (hτ : 0 < τ) {F : ℝ × ℝ → ℝ} |
| 331 | (hi : ∀ eta ∈ Ioo (-1 : ℝ) 1, IntegrableOn (radialDifference h C F eta) (Ioi 0)) |
| 332 | (z : ℝ) : |
| 333 | IntegrableOn (fun r => r ^ 2 * (velocity h τ F (z, r) - referencePower h C r)) (Ioi 0) := by |
| 334 | have hq := Q_pos hh hh1 hτ z |
| 335 | have hc : IntegrableOn (fun r => radialDifference h C F (eta h τ z) |
| 336 | (r / Real.sqrt (Q h τ z))) (Ioi 0) := by |
| 337 | simpa only [div_eq_mul_inv, zero_mul] using |
| 338 | (integrableOn_Ioi_comp_mul_right_iff (radialDifference h C F (eta h τ z)) 0 |
| 339 | (inv_pos.mpr (Real.sqrt_pos.mpr hq))).mpr (by simpa only [zero_mul] using hi _ (eta_mem hh hh1 hτ z)) |
| 340 | apply (hc.const_mul (Q h τ z * Q h τ z ^ (-A h))).congr |
| 341 | filter_upwards with r |
| 342 | exact (physical_difference_scaling hh hh1 hτ C F z r).symm |
| 343 | |
| 344 | theorem physical_moment_scaling {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 345 | (hτ : 0 < τ) (C : ℝ) (F : ℝ × ℝ → ℝ) (z : ℝ) : |
| 346 | renormalizedMoment (velocity h τ F) (referencePower h C) z = |
| 347 | Q h τ z ^ (1 - h) * profileMoment h C F (eta h τ z) := by |
| 348 | have hq := Q_pos hh hh1 hτ z |
| 349 | have he : (fun r => r ^ 2 * (velocity h τ F (z, r) - referencePower h C r)) = |
| 350 | (fun r => (Q h τ z * Q h τ z ^ (-A h)) * |
| 351 | radialDifference h C F (eta h τ z) (r / Real.sqrt (Q h τ z))) := |
| 352 | funext (physical_difference_scaling hh hh1 hτ C F z) |
| 353 | rw [renormalizedMoment, he, integral_const_mul] |
| 354 | have hscale := integral_comp_mul_right_Ioi (radialDifference h C F (eta h τ z)) 0 |
| 355 | (inv_pos.mpr (Real.sqrt_pos.mpr hq)) |
| 356 | simp only [inv_inv, smul_eq_mul, ← div_eq_mul_inv, zero_div] at hscale |
| 357 | rw [hscale] |
| 358 | have hp : Q h τ z * Q h τ z ^ (-A h) * Real.sqrt (Q h τ z) = Q h τ z ^ (1 - h) := by |
| 359 | calc |
| 360 | _ = Q h τ z ^ (1 : ℝ) * Q h τ z ^ (-A h) * Q h τ z ^ (1 / 2 : ℝ) := by |
| 361 | rw [Real.rpow_one, Real.sqrt_eq_rpow] |
| 362 | _ = Q h τ z ^ ((1 + -A h) + 1 / 2) := by rw [Real.rpow_add hq, Real.rpow_add hq] |
| 363 | _ = _ := by congr 1; unfold A; ring |
| 364 | rw [← mul_assoc, hp] |
| 365 | rfl |
| 366 | |
| 367 | /-! ## Integrability at the axis and at infinity -/ |
| 368 | |
| 369 | theorem weighted_referencePower (h C : ℝ) {r : ℝ} (hr : 0 < r) : |
| 370 | r ^ 2 * referencePower h C r = C * (2 : ℝ) ^ A h * r ^ (1 - 2 * h) := by |
| 371 | unfold referencePower |
| 372 | rw [Real.div_rpow (sq_nonneg r) (by norm_num), Real.rpow_neg (by norm_num : (0 : ℝ) ≤ 2), |
| 373 | div_inv_eq_mul, ← Real.rpow_natCast_mul hr.le] |
| 374 | calc |
| 375 | _ = C * (2 : ℝ) ^ A h * (r ^ (2 : ℝ) * r ^ ((2 : ℕ) * -A h)) := by |
| 376 | rw [Real.rpow_two] |
| 377 | ring |
| 378 | _ = _ := by |
| 379 | rw [← Real.rpow_add hr] |
| 380 | congr 2 |
| 381 | unfold A |
| 382 | norm_num |
| 383 | ring |
| 384 | |
| 385 | theorem weighted_referencePower_nonneg_radius {h : ℝ} (hh1 : h < 1 / 2) |
| 386 | (C : ℝ) {r : ℝ} (hr : 0 ≤ r) : |
| 387 | r ^ 2 * referencePower h C r = C * (2 : ℝ) ^ A h * r ^ (1 - 2 * h) := by |
| 388 | rcases eq_or_lt_of_le hr with rfl | hr |
| 389 | · simp [referencePower, Real.zero_rpow (by linarith : 1 - 2 * h ≠ 0)] |
| 390 | · exact weighted_referencePower h C hr |
| 391 | |
| 392 | theorem radialDifference_continuousOn {h C : ℝ} {F : ℝ × ℝ → ℝ} |
| 393 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) {eta : ℝ} |
| 394 | (hη : eta ∈ Ioo (-1 : ℝ) 1) : |
| 395 | ContinuousOn (radialDifference h C F eta) (Ioi 0) := by |
| 396 | have hf : Continuous (fun r => F (r, eta)) := by |
| 397 | exact hF.continuousOn.comp_continuous (continuous_id.prodMk continuous_const) |
| 398 | (fun _ => ⟨mem_univ _, hη⟩) |
| 399 | intro r hr |
| 400 | have hrp : 0 < r := hr |
| 401 | have hp : ContinuousAt (referencePower h C) r := |
| 402 | continuousAt_const.mul (((continuousAt_id.pow 2).div_const 2).rpow_const |
| 403 | (Or.inl (by positivity : r ^ 2 / 2 ≠ 0))) |
| 404 | exact ((continuousAt_id.pow 2).mul (hf.continuousAt.sub hp)).continuousWithinAt |
| 405 | |
| 406 | theorem radialDifference_integrable_near_axis {h C B : ℝ} (hh1 : h < 1 / 2) |
| 407 | {F : ℝ × ℝ → ℝ} (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 408 | {eta : ℝ} (hη : eta ∈ Ioo (-1 : ℝ) 1) : |
| 409 | IntegrableOn (radialDifference h C F eta) (Icc 0 B) := by |
| 410 | have hf : Continuous (fun r => F (r, eta)) := |
| 411 | hF.continuousOn.comp_continuous (continuous_id.prodMk continuous_const) |
| 412 | (fun _ => ⟨mem_univ _, hη⟩) |
| 413 | have hp : ContinuousOn (fun r : ℝ => C * (2 : ℝ) ^ A h * r ^ (1 - 2 * h)) (Icc 0 B) := |
| 414 | continuousOn_const.mul (continuousOn_id.rpow_const (fun _ _ => Or.inr (by linarith))) |
| 415 | have hc : IntegrableOn |
| 416 | (fun r : ℝ => r ^ 2 * F (r, eta) - C * (2 : ℝ) ^ A h * r ^ (1 - 2 * h)) (Icc 0 B) := |
| 417 | (((continuous_id.pow 2).mul hf).continuousOn.sub hp).integrableOn_Icc |
| 418 | apply hc.congr_fun _ measurableSet_Icc |
| 419 | intro r hr |
| 420 | change r ^ 2 * F (r, eta) - C * (2 : ℝ) ^ A h * r ^ (1 - 2 * h) = _ |
| 421 | rw [← weighted_referencePower_nonneg_radius hh1 C hr.1] |
| 422 | unfold radialDifference |
| 423 | ring |
| 424 | |
| 425 | theorem weighted_heat_difference_bound {h ν r : ℝ} (hh : 0 < h) (hν : ν ∈ Icc (0 : ℝ) 1) |
| 426 | (hr : 0 < r) (C : ℝ) : |
| 427 | |r ^ 2 * (heatCarrier h C ν r - referencePower h C r)| ≤ |
| 428 | (4 * |C| * (2 : ℝ) ^ A h * h * (1 + h)) * r ^ (-1 - 2 * h) := by |
| 429 | have hs : 0 < r ^ 2 / 2 := by positivity |
| 430 | have hν0 : 0 ≤ ν := hν.1 |
| 431 | have hz : 0 ≤ 2 * ν / (r ^ 2 / 2) := by positivity |
| 432 | have hH := RadialHeatProfile.profile_h_sub_one_bound hh hz |
| 433 | have he : r ^ 2 * (heatCarrier h C ν r - referencePower h C r) = |
| 434 | (r ^ 2 * referencePower h C r) * |
| 435 | (RadialHeatProfile.profile (1 + h) (2 * ν / (r ^ 2 / 2)) - 1) := by |
| 436 | have hexp : RadialHeatProfile.spatialExponent (1 + h) = -A h := by |
| 437 | unfold RadialHeatProfile.spatialExponent A |
| 438 | ring |
| 439 | simp only [heatCarrier, RadialHeatProfile.radialProfile, |
| 440 | RadialHeatProfile.spatialProfile, hexp, referencePower] |
| 441 | ring |
| 442 | rw [he, weighted_referencePower h C hr, abs_mul, abs_mul, abs_mul, |
| 443 | abs_of_pos (Real.rpow_pos_of_pos (by norm_num : (0 : ℝ) < 2) _), |
| 444 | abs_of_pos (Real.rpow_pos_of_pos hr _)] |
| 445 | calc |
| 446 | _ ≤ |C| * (2 : ℝ) ^ A h * r ^ (1 - 2 * h) * |
| 447 | (h * (1 + h) * (2 * ν / (r ^ 2 / 2))) := |
| 448 | mul_le_mul_of_nonneg_left hH (by positivity) |
| 449 | _ ≤ |C| * (2 : ℝ) ^ A h * r ^ (1 - 2 * h) * |
| 450 | (h * (1 + h) * (2 * 1 / (r ^ 2 / 2))) := by gcongr; exact hν.2 |
| 451 | _ = (4 * |C| * (2 : ℝ) ^ A h * h * (1 + h)) * (r ^ (1 - 2 * h) / r ^ 2) := by ring |
| 452 | _ = _ := by |
| 453 | rw [← Real.rpow_two, ← Real.rpow_sub hr] |
| 454 | congr 2 |
| 455 | ring |
| 456 | |
| 457 | theorem radialDifference_integrable {h C B : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 458 | (hB : 0 < B) {F : ℝ × ℝ → ℝ} |
| 459 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 460 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ R : ℝ, B ≤ R → |
| 461 | F (R, eta) = heatCarrier h C (1 - eta ^ 2) R) |
| 462 | {eta : ℝ} (hη : eta ∈ Ioo (-1 : ℝ) 1) : |
| 463 | IntegrableOn (radialDifference h C F eta) (Ioi 0) := by |
| 464 | have hν : 1 - eta ^ 2 ∈ Icc (0 : ℝ) 1 := by |
| 465 | exact ParametricHeatTail.diffusion_mem ⟨hη.1.le, hη.2.le⟩ |
| 466 | have hout : IntegrableOn (radialDifference h C F eta) (Ioi B) := by |
| 467 | apply ((integrableOn_Ioi_rpow_of_lt (a := -1 - 2 * h) (by linarith) hB).const_mul |
| 468 | (4 * |C| * (2 : ℝ) ^ A h * h * (1 + h))).mono' |
| 469 | (((radialDifference_continuousOn hF hη).mono (Ioi_subset_Ioi hB.le)).aestronglyMeasurable |
| 470 | measurableSet_Ioi) |
| 471 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with r hr |
| 472 | rw [Real.norm_eq_abs, radialDifference, he eta hη r hr.le] |
| 473 | exact weighted_heat_difference_bound hh hν (hB.trans hr) C |
| 474 | apply ((radialDifference_integrable_near_axis hh1 hF hη).union hout).mono_set |
| 475 | intro r hr |
| 476 | by_cases hb : r ≤ B |
| 477 | · exact Or.inl ⟨hr.le, hb⟩ |
| 478 | · exact Or.inr (lt_of_not_ge hb) |
| 479 | |
| 480 | theorem physical_axial_viscosity_moment_zero {h τ C B : ℝ} |
| 481 | (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (hB : 0 < B) |
| 482 | {F : ℝ × ℝ → ℝ} |
| 483 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 484 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ R : ℝ, B ≤ R → |
| 485 | F (R, eta) = heatCarrier h C (1 - eta ^ 2) R) |
| 486 | (hm : ∀ eta ∈ Ioo (-1 : ℝ) 1, profileMoment h C F eta = 0) (z : ℝ) : |
| 487 | IntegrableOn (fun r => r ^ 2 * iteratedDeriv 2 (fun y => velocity h τ F (y, r)) z) (Ioi 0) ∧ |
| 488 | (∫ r in Ioi (0 : ℝ), r ^ 2 * iteratedDeriv 2 (fun y => velocity h τ F (y, r)) z) = 0 := by |
| 489 | apply axial_viscosity_moment_zero (reference := referencePower h C) |
| 490 | (velocity_contDiff hh hh1 hτ hF) (velocity_commonExterior hh hh1 hτ hB he) |
| 491 | · exact profileMoment_integrable_physical hh hh1 hτ |
| 492 | (fun eta hη => radialDifference_integrable hh hh1 hB hF he hη) |
| 493 | · intro y |
| 494 | rw [physical_moment_scaling hh hh1 hτ C F y, hm _ (eta_mem hh hh1 hτ y), mul_zero] |
| 495 | |
| 496 | /-! ## The nominal `X`-moment and the literal physical velocity -/ |
| 497 | |
| 498 | theorem squareHalf_image : (fun r : ℝ => r ^ 2 / 2) '' Ioi 0 = Ioi 0 := by |
| 499 | ext X |
| 500 | constructor |
| 501 | · rintro ⟨r, hr, rfl⟩ |
| 502 | change 0 < r ^ 2 / 2 |
| 503 | exact div_pos (sq_pos_of_pos hr) (by norm_num) |
| 504 | · intro hX |
| 505 | refine ⟨Real.sqrt (2 * X), Real.sqrt_pos.mpr (mul_pos (by norm_num) hX), ?_⟩ |
| 506 | dsimp only |
| 507 | rw [Real.sq_sqrt (show 0 ≤ 2 * X from mul_nonneg (by norm_num) hX.le)] |
| 508 | ring |
| 509 | |
| 510 | theorem squareHalf_injective : InjOn (fun r : ℝ => r ^ 2 / 2) (Ioi 0) := by |
| 511 | intro r hr s hs h |
| 512 | apply (sq_eq_sq₀ hr.le hs.le).mp |
| 513 | linarith |
| 514 | |
| 515 | theorem squareHalf_derivative (r : ℝ) : HasDerivAt (fun r : ℝ => r ^ 2 / 2) r r := by |
| 516 | convert! ((hasDerivAt_id r).pow 2).div_const 2 using 1 ; simp |
| 517 | |
| 518 | theorem profileMoment_eq_X_integral (h C : ℝ) (F : ℝ × ℝ → ℝ) (eta : ℝ) : |
| 519 | profileMoment h C F eta = |
| 520 | ∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * |
| 521 | (F (Real.sqrt (2 * X), eta) - C * X ^ (-A h)) := by |
| 522 | have hc := integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi |
| 523 | (fun r (_ : r ∈ Ioi (0 : ℝ)) => (squareHalf_derivative r).hasDerivWithinAt) |
| 524 | squareHalf_injective |
| 525 | (fun X => Real.sqrt (2 * X) * (F (Real.sqrt (2 * X), eta) - C * X ^ (-A h))) |
| 526 | rw [squareHalf_image] at hc |
| 527 | rw [hc] |
| 528 | apply setIntegral_congr_fun measurableSet_Ioi |
| 529 | intro r hr |
| 530 | dsimp only |
| 531 | rw [abs_of_pos hr, smul_eq_mul, show 2 * (r ^ 2 / 2) = r ^ 2 by ring, |
| 532 | Real.sqrt_sq hr.le] |
| 533 | unfold radialDifference referencePower |
| 534 | ring |
| 535 | |
| 536 | noncomputable def xMoment (h C : ℝ) (E : ℝ × ℝ → ℝ) (eta : ℝ) : ℝ := |
| 537 | ∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * (E (X, eta) - C * X ^ (-A h)) |
| 538 | |
| 539 | theorem profileMoment_eq_xMoment (h C : ℝ) {F E : ℝ × ℝ → ℝ} |
| 540 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 541 | F (R, eta) = E (R ^ 2 / 2, eta)) {eta : ℝ} (hη : eta ∈ Ioo (-1 : ℝ) 1) : |
| 542 | profileMoment h C F eta = xMoment h C E eta := by |
| 543 | rw [profileMoment_eq_X_integral] |
| 544 | apply setIntegral_congr_fun measurableSet_Ioi |
| 545 | intro X hX |
| 546 | dsimp only |
| 547 | rw [hFE _ (Real.sqrt_pos.mpr (mul_pos (by norm_num) hX)) eta hη, |
| 548 | Real.sq_sqrt (show 0 ≤ 2 * X from mul_nonneg (by norm_num) hX.le), show 2 * X / 2 = X by ring] |
| 549 | |
| 550 | noncomputable def profileVelocity (h τ : ℝ) (E : ℝ × ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 551 | Q h τ p.1 ^ (-A h) * E (p.2 ^ 2 / (2 * Q h τ p.1), eta h τ p.1) |
| 552 | |
| 553 | noncomputable def uTheta (h : ℝ) (E : ℝ × ℝ → ℝ) (t r z : ℝ) : ℝ := |
| 554 | profileVelocity h (1 - t) E (z, r) |
| 555 | |
| 556 | theorem velocity_eq_profileVelocity {h τ : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 557 | (hτ : 0 < τ) {F E : ℝ × ℝ → ℝ} |
| 558 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 559 | F (R, eta) = E (R ^ 2 / 2, eta)) {r : ℝ} (hr : 0 < r) (z : ℝ) : |
| 560 | velocity h τ F (z, r) = profileVelocity h τ E (z, r) := by |
| 561 | have hq := Q_pos hh hh1 hτ z |
| 562 | have hp : (r / Real.sqrt (Q h τ z)) ^ 2 / 2 = r ^ 2 / (2 * Q h τ z) := by |
| 563 | rw [div_pow, Real.sq_sqrt hq.le] |
| 564 | ring |
| 565 | rw [velocity, hFE _ (div_pos hr (Real.sqrt_pos.mpr hq)) _ (eta_mem hh hh1 hτ z), hp] |
| 566 | rfl |
| 567 | |
| 568 | theorem radial_exterior_of_X_exterior {h C T : ℝ} (hT : 0 < T) {F E : ℝ × ℝ → ℝ} |
| 569 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 570 | F (R, eta) = E (R ^ 2 / 2, eta)) |
| 571 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, T ≤ X → |
| 572 | E (X, eta) = C * X ^ (-A h) * |
| 573 | RadialHeatProfile.profile (1 + h) (2 * (1 - eta ^ 2) / X)) : |
| 574 | ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ R : ℝ, Real.sqrt (2 * T) ≤ R → |
| 575 | F (R, eta) = heatCarrier h C (1 - eta ^ 2) R := by |
| 576 | intro eta hη R hR |
| 577 | have hRp : 0 < R := (Real.sqrt_pos.mpr (mul_pos (by norm_num) hT)).trans_le hR |
| 578 | have hXT : T ≤ R ^ 2 / 2 := by |
| 579 | have hs := Real.sq_sqrt (show 0 ≤ 2 * T from mul_nonneg (by norm_num) hT.le) |
| 580 | have hsq := sq_le_sq₀ (Real.sqrt_nonneg (2 * T)) hRp.le |
| 581 | nlinarith [(hsq.mpr hR)] |
| 582 | rw [hFE R hRp eta hη, he eta hη _ hXT] |
| 583 | have hexp : RadialHeatProfile.spatialExponent (1 + h) = -A h := by |
| 584 | unfold RadialHeatProfile.spatialExponent A |
| 585 | ring |
| 586 | simp only [heatCarrier, RadialHeatProfile.radialProfile, RadialHeatProfile.spatialProfile, hexp] |
| 587 | ring |
| 588 | |
| 589 | /-- The only nominal input involving an integral is the original renormalized |
| 590 | moment itself. Its differentiated moment is derived, not assumed. -/ |
| 591 | theorem physical_axial_viscosity_zero_of_X_profile {h τ C T : ℝ} |
| 592 | (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (hT : 0 < T) |
| 593 | {F E : ℝ × ℝ → ℝ} |
| 594 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 595 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 596 | F (R, eta) = E (R ^ 2 / 2, eta)) |
| 597 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, T ≤ X → |
| 598 | E (X, eta) = C * X ^ (-A h) * |
| 599 | RadialHeatProfile.profile (1 + h) (2 * (1 - eta ^ 2) / X)) |
| 600 | (hm : ∀ eta ∈ Ioo (-1 : ℝ) 1, xMoment h C E eta = 0) (z : ℝ) : |
| 601 | IntegrableOn (fun r => r ^ 2 * iteratedDeriv 2 (fun y => profileVelocity h τ E (y, r)) z) (Ioi 0) ∧ |
| 602 | (∫ r in Ioi (0 : ℝ), r ^ 2 * iteratedDeriv 2 (fun y => profileVelocity h τ E (y, r)) z) = 0 := by |
| 603 | have hrad := radial_exterior_of_X_exterior hT hFE he |
| 604 | have hmF : ∀ eta ∈ Ioo (-1 : ℝ) 1, profileMoment h C F eta = 0 := by |
| 605 | intro eta hη |
| 606 | rw [profileMoment_eq_xMoment h C hFE hη, hm eta hη] |
| 607 | obtain ⟨hi, hz⟩ := physical_axial_viscosity_moment_zero hh hh1 hτ |
| 608 | (Real.sqrt_pos.mpr (mul_pos (by norm_num) hT)) hF hrad hmF z |
| 609 | have hfg : (fun r => r ^ 2 * iteratedDeriv 2 (fun y => velocity h τ F (y, r)) z) =ᵐ[ |
| 610 | volume.restrict (Ioi 0)] |
| 611 | (fun r => r ^ 2 * iteratedDeriv 2 (fun y => profileVelocity h τ E (y, r)) z) := by |
| 612 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with r hr |
| 613 | have hf : (fun y => velocity h τ F (y, r)) = fun y => profileVelocity h τ E (y, r) := |
| 614 | funext (velocity_eq_profileVelocity hh hh1 hτ hFE hr) |
| 615 | rw [hf] |
| 616 | exact ⟨hi.congr hfg, (integral_congr_ae hfg).symm.trans hz⟩ |
| 617 | |
| 618 | theorem uTheta_axial_viscosity_integral {h t C T : ℝ} |
| 619 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hT : 0 < T) |
| 620 | {F E : ℝ × ℝ → ℝ} |
| 621 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 622 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 623 | F (R, eta) = E (R ^ 2 / 2, eta)) |
| 624 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, T ≤ X → |
| 625 | E (X, eta) = C * X ^ (-A h) * |
| 626 | RadialHeatProfile.profile (1 + h) (2 * (1 - eta ^ 2) / X)) |
| 627 | (hm : ∀ eta ∈ Ioo (-1 : ℝ) 1, xMoment h C E eta = 0) (z : ℝ) : |
| 628 | (∫ r in Ioi (0 : ℝ), r ^ 2 * deriv (deriv (uTheta h E t r)) z) = 0 := by |
| 629 | unfold uTheta |
| 630 | simpa only [show 2 = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_one, iteratedDeriv_zero] using |
| 631 | (physical_axial_viscosity_zero_of_X_profile hh hh1 (sub_pos.mpr ht) hT hF hFE he hm z).2 |
| 632 | |
| 633 | theorem uTheta_eq_similarity_pullback (h : ℝ) (E : ℝ × ℝ → ℝ) (t r z : ℝ) : |
| 634 | uTheta h E t r z = SimilarityProfile.pullback h (-A h) E (t, (r ^ 2 / 2, z)) := by |
| 635 | unfold uTheta profileVelocity SimilarityProfile.pullback SimilarityProfile.inner |
| 636 | SimilarityProfile.X SimilarityProfile.q SimilarityProfile.eta Q eta |
| 637 | have he : r ^ 2 / (2 * SimilarityCoordinates.coordinateQ (2 * h) (1 - t, z)) = |
| 638 | (r ^ 2 / 2) / SimilarityCoordinates.coordinateQ (2 * h) (1 - t, z) := by ring |
| 639 | rw [he] |
| 640 | |
| 641 | /-- The scaling used to transfer the physical order-one viscosity moment to |
| 642 | the radial profile moment: `r = sqrt(q) R` contributes `q^(3/2)`. -/ |
| 643 | theorem integral_weighted_radial_scale (b : ℝ) {q : ℝ} (hq : 0 < q) (g : ℝ → ℝ) : |
| 644 | (∫ r in Ioi (0 : ℝ), r ^ 2 * (q ^ b * g (r / Real.sqrt q))) = |
| 645 | q ^ (b + 3 / 2) * ∫ R in Ioi (0 : ℝ), R ^ 2 * g R := by |
| 646 | have hf : (fun r => r ^ 2 * (q ^ b * g (r / Real.sqrt q))) = |
| 647 | fun r => (q * q ^ b) * ((r / Real.sqrt q) ^ 2 * g (r / Real.sqrt q)) := by |
| 648 | funext r |
| 649 | rw [div_pow, Real.sq_sqrt hq.le] |
| 650 | field_simp [hq.ne'] |
| 651 | rw [hf, integral_const_mul] |
| 652 | have hs := integral_comp_mul_right_Ioi (fun R => R ^ 2 * g R) 0 |
| 653 | (inv_pos.mpr (Real.sqrt_pos.mpr hq)) |
| 654 | simp only [inv_inv, smul_eq_mul, ← div_eq_mul_inv, zero_div] at hs |
| 655 | rw [hs, ← mul_assoc] |
| 656 | have hp : q * q ^ b * Real.sqrt q = q ^ (b + 3 / 2) := by |
| 657 | calc |
| 658 | _ = q ^ (1 : ℝ) * q ^ b * q ^ (1 / 2 : ℝ) := by rw [Real.rpow_one, Real.sqrt_eq_rpow] |
| 659 | _ = q ^ ((1 + b) + 1 / 2) := by rw [Real.rpow_add hq, Real.rpow_add hq] |
| 660 | _ = _ := by congr 1; ring |
| 661 | rw [hp] |
| 662 | |
| 663 | theorem integral_axial_scale (h : ℝ) {q : ℝ} (hq : 0 < q) (g : ℝ → ℝ) : |
| 664 | (∫ r in Ioi (0 : ℝ), r ^ 2 * |
| 665 | (q ^ (-A h - 2 * CoordinateAlgebra.D h) * g (r / Real.sqrt q))) = |
| 666 | q ^ h * ∫ R in Ioi (0 : ℝ), R ^ 2 * g R := by |
| 667 | rw [integral_weighted_radial_scale _ hq] |
| 668 | congr 2 |
| 669 | unfold A CoordinateAlgebra.D |
| 670 | ring |
| 671 | |
| 672 | theorem exterior_second_derivative_zero {u : ℝ × ℝ → ℝ} {tail : ℝ → ℝ} |
| 673 | (he : CommonExterior u tail) (z : ℝ) : |
| 674 | ∃ B : ℝ, 0 < B ∧ ∀ r : ℝ, B ≤ r → iteratedDeriv 2 (fun y => u (y, r)) z = 0 := by |
| 675 | obtain ⟨ε, B, hε, hB, htail⟩ := he z |
| 676 | refine ⟨B, hB, ?_⟩ |
| 677 | intro r hr |
| 678 | have hfun : (fun y => u (y, r)) =ᶠ[𝓝 z] (fun _ => tail r) := by |
| 679 | filter_upwards [Metric.ball_mem_nhds z hε] with y hy |
| 680 | exact htail y hy r hr |
| 681 | rw [hfun.iteratedDeriv_eq 2] |
| 682 | simp only [show 2 = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_zero] |
| 683 | have hc : deriv (fun _ : ℝ => tail r) = fun _ => 0 := funext fun y => deriv_const y (tail r) |
| 684 | rw [hc] |
| 685 | exact deriv_const z 0 |
| 686 | |
| 687 | /-! ## The reference normalization of the constructed outgoing schedule -/ |
| 688 | |
| 689 | noncomputable def outgoingPowerAmplitude (P : OutgoingProfile.Profile) (XR : ℝ) : ℝ := |
| 690 | OutgoingTail.powerConstant P.data * XR ^ A P.data.h |
| 691 | |
| 692 | theorem outgoing_powerH (P : OutgoingProfile.Profile) {XR X : ℝ} |
| 693 | (hXR : 0 < XR) (hX : 0 < X) : |
| 694 | OutgoingDilation.powerH P XR X = |
| 695 | Real.sqrt (2 * X) * (outgoingPowerAmplitude P XR * X ^ (-A P.data.h)) := by |
| 696 | rw [OutgoingDilation.powerH, OutgoingDilation.powerE_coefficient P XR X hXR hX] |
| 697 | rfl |
| 698 | |
| 699 | theorem outgoing_amplitude_eq_heat (P : OutgoingProfile.Profile) {XR : ℝ} (hXR : 0 < XR) : |
| 700 | outgoingPowerAmplitude P XR = |
| 701 | OutgoingDilation.carrierAmplitude P * |
| 702 | OutgoingDilation.switchRadius P XR ^ HeatTailEdit.exponent P.data.h := by |
| 703 | change OutgoingTail.powerConstant P.data * XR ^ A P.data.h = |
| 704 | (OutgoingTail.powerConstant P.data * Real.exp (-A P.data.h * HeatTailEdit.switchStart P.data)) * |
| 705 | (XR * Real.exp (HeatTailEdit.switchStart P.data)) ^ A P.data.h |
| 706 | rw [Real.mul_rpow hXR.le (Real.exp_pos _).le, ← Real.exp_mul] |
| 707 | have he : Real.exp (-A P.data.h * HeatTailEdit.switchStart P.data) * |
| 708 | Real.exp (HeatTailEdit.switchStart P.data * A P.data.h) = 1 := by |
| 709 | rw [← Real.exp_add, show -A P.data.h * HeatTailEdit.switchStart P.data + |
| 710 | HeatTailEdit.switchStart P.data * A P.data.h = 0 by ring, Real.exp_zero] |
| 711 | calc |
| 712 | _ = (OutgoingTail.powerConstant P.data * XR ^ A P.data.h) * 1 := by ring |
| 713 | _ = _ := by rw [← he]; ring |
| 714 | |
| 715 | theorem xMoment_eq_outgoing_reference (P : OutgoingProfile.Profile) {XR : ℝ} (hXR : 0 < XR) |
| 716 | (E : ℝ × ℝ → ℝ) (eta : ℝ) : |
| 717 | xMoment P.data.h (outgoingPowerAmplitude P XR) E eta = |
| 718 | ∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * E (X, eta) - OutgoingDilation.powerH P XR X := by |
| 719 | apply setIntegral_congr_fun measurableSet_Ioi |
| 720 | intro X hX |
| 721 | dsimp only |
| 722 | rw [outgoing_powerH P hXR hX] |
| 723 | ring |
| 724 | |
| 725 | noncomputable def heatThreshold (P : OutgoingProfile.Profile) (XR : ℝ) : ℝ := |
| 726 | OutgoingDilation.switchRadius P XR * Real.exp 3 |
| 727 | |
| 728 | theorem heatThreshold_pos (P : OutgoingProfile.Profile) {XR : ℝ} (hXR : 0 < XR) : |
| 729 | 0 < heatThreshold P XR := |
| 730 | mul_pos (OutgoingDilation.switchRadius_pos P XR hXR) (Real.exp_pos _) |
| 731 | |
| 732 | theorem heated_exterior (P : OutgoingProfile.Profile) {XR : ℝ} (hXR : 0 < XR) |
| 733 | (c : ℝ → HeatedOutgoing.Coeff) (eta : ℝ) {X : ℝ} (hX : heatThreshold P XR ≤ X) : |
| 734 | HeatedOutgoing.E P XR c (X, eta) = |
| 735 | outgoingPowerAmplitude P XR * X ^ (-A P.data.h) * |
| 736 | RadialHeatProfile.profile (1 + P.data.h) (2 * (1 - eta ^ 2) / X) := by |
| 737 | have hK := OutgoingDilation.switchRadius_pos P XR hXR |
| 738 | have hXp := (heatThreshold_pos P hXR).trans_le hX |
| 739 | have hdiv : Real.exp 3 ≤ X / OutgoingDilation.switchRadius P XR := by |
| 740 | apply (le_div_iff₀ hK).mpr |
| 741 | simpa only [heatThreshold, mul_comm] using hX |
| 742 | have hlog : 3 ≤ Real.log (X / OutgoingDilation.switchRadius P XR) := by |
| 743 | simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos 3) hdiv |
| 744 | have he := HeatedOutgoing.E_eventual_heat P XR c eta X hXR hXp (by linarith) |
| 745 | rw [← outgoing_amplitude_eq_heat P hXR] at he |
| 746 | have hexp : RadialHeatProfile.spatialExponent (1 + P.data.h) = -A P.data.h := by |
| 747 | unfold RadialHeatProfile.spatialExponent A |
| 748 | ring |
| 749 | rw [he] |
| 750 | simp only [RadialHeatProfile.spatialProfile, hexp, ParametricHeatTail.diffusion] |
| 751 | ring |
| 752 | |
| 753 | /-- Specialization to the actual heated and compensated outgoing witness. |
| 754 | The remaining upstream conditions are precisely the nominal axis gluing and |
| 755 | its original reset moment, not an axial-viscosity moment or derivative bound. -/ |
| 756 | theorem heated_nominal_axial_viscosity (P : OutgoingProfile.Profile) |
| 757 | {XR cost t : ℝ} (w : HeatedOutgoing.CompensationWitness P XR cost) |
| 758 | (hh1 : P.data.h < 1 / 2) (ht : t < 1) (L : ℝ) |
| 759 | {F E : ℝ × ℝ → ℝ} |
| 760 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ioo (-1 : ℝ) 1)) |
| 761 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 762 | F (R, eta) = E (R ^ 2 / 2, eta)) |
| 763 | (hmatch : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, L ≤ X → |
| 764 | E (X, eta) = HeatedOutgoing.E P XR w.coefficients (X, eta)) |
| 765 | (hreset : ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 766 | (∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * E (X, eta) - OutgoingDilation.powerH P XR X) = |
| 767 | ∫ X in Ioi (0 : ℝ), HeatedOutgoing.H P XR w.coefficients (X, eta) - |
| 768 | OutgoingDilation.powerH P XR X) (z : ℝ) : |
| 769 | IntegrableOn (fun r => r ^ 2 * deriv (deriv (uTheta P.data.h E t r)) z) (Ioi 0) ∧ |
| 770 | (∫ r in Ioi (0 : ℝ), r ^ 2 * deriv (deriv (uTheta P.data.h E t r)) z) = 0 := by |
| 771 | let T := max L (heatThreshold P XR) |
| 772 | have hT : 0 < T := (heatThreshold_pos P w.radius_pos).trans_le (le_max_right _ _) |
| 773 | have he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, T ≤ X → |
| 774 | E (X, eta) = outgoingPowerAmplitude P XR * X ^ (-A P.data.h) * |
| 775 | RadialHeatProfile.profile (1 + P.data.h) (2 * (1 - eta ^ 2) / X) := by |
| 776 | intro eta hη X hX |
| 777 | rw [hmatch eta hη X ((le_max_left _ _).trans hX)] |
| 778 | exact heated_exterior P w.radius_pos w.coefficients eta ((le_max_right _ _).trans hX) |
| 779 | have hm : ∀ eta ∈ Ioo (-1 : ℝ) 1, xMoment P.data.h (outgoingPowerAmplitude P XR) E eta = 0 := by |
| 780 | intro eta hη |
| 781 | rw [xMoment_eq_outgoing_reference P w.radius_pos, hreset eta hη] |
| 782 | exact w.renormalized_zero eta ⟨hη.1.le, hη.2.le⟩ |
| 783 | unfold uTheta |
| 784 | simpa only [show 2 = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_one, iteratedDeriv_zero] using |
| 785 | physical_axial_viscosity_zero_of_X_profile P.data.h_pos hh1 (sub_pos.mpr ht) |
| 786 | hT hF hFE he hm z |
| 787 | |
| 788 | end NavierStokes.RenormalizedHeatMoment |