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.SlowExpansionResidual |
| 2 | import NavierStokes.SlowRecursion |
| 3 | import NavierStokes.LeadingStress |
| 4 | import NavierStokes.SlowStressSupport |
| 5 | import NavierStokes.SlowBorelBase |
| 6 | import NavierStokes.RenormalizedHeatMoment |
| 7 | |
| 8 | /-! |
| 9 | # Finite slow residuals and their radial stress primitives |
| 10 | |
| 11 | The finite profiles and all derivatives below are the actual functions from |
| 12 | `SlowExpansionResidual`. The stored radial variable in `SlowRecursion` is |
| 13 | `beta = V / X`; its conversion to a flux includes the factor `X`. |
| 14 | |
| 15 | The stress operator is the two tangential radial operators in (24). It is |
| 16 | not identified with the divergence of an unspecified symmetric tensor. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped BigOperators Topology ContDiff |
| 23 | |
| 24 | namespace NavierStokes.SlowResidualMatching |
| 25 | |
| 26 | open SimilarityProfile (InnerPoint InnerProfile PhysicalPoint PhysicalProfile |
| 27 | partialX partialEta T Z pullback) |
| 28 | open SlowExpansionResidual |
| 29 | open AxisymmetricFields (radialEnergy profilePoint) |
| 30 | |
| 31 | /-- Convert a regular radial quotient to the actual radial flux. -/ |
| 32 | noncomputable def ofBeta (phi axial beta pressure : ℕ → InnerProfile) : SlowProfiles where |
| 33 | phi := phi |
| 34 | axial := axial |
| 35 | flux := fun n => AxisSourceRegularity.axisFactor (beta n) |
| 36 | pressure := pressure |
| 37 | |
| 38 | /-- The actual functions constructed by the regular-axis recursion. -/ |
| 39 | noncomputable def hierarchyProfiles {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 40 | {base : Fin 5 → InnerProfile} (A : SlowRecursion.LocalHierarchy R U h C base) : |
| 41 | SlowProfiles := |
| 42 | ofBeta (fun n => SlowRecursion.profile (A.coefficients n 0)) |
| 43 | (fun n => SlowRecursion.profile (A.coefficients n 1)) |
| 44 | (fun n => SlowRecursion.profile (A.coefficients n 4)) |
| 45 | (fun n => SlowRecursion.profile (A.coefficients n 3)) |
| 46 | |
| 47 | theorem convolution_eq_positiveAxis (F : ℕ → ℕ → ℝ) (n : ℕ) : |
| 48 | convolution F n = PositiveAxisSystem.convolution n F := by |
| 49 | exact Finset.Nat.sum_antidiagonal_eq_sum_range_succ F n |
| 50 | |
| 51 | theorem precedingDiffusion_eq_previous (h b : ℝ) (f : ℕ → InnerProfile) |
| 52 | (n : ℕ) (w : InnerPoint) : |
| 53 | PositiveAxisSystem.precedingDiffusion h b f n w = |
| 54 | previous (fun j => Z2 h (b + slowOrder h j) (f j) w) n := by |
| 55 | cases n with |
| 56 | | zero => simp [PositiveAxisSystem.precedingDiffusion, previous] |
| 57 | | succ n => simp [PositiveAxisSystem.precedingDiffusion, previous, Z2, |
| 58 | PositiveAxisSystem.slowPower, slowOrder, PositiveAxisSystem.dScale, CoordinateAlgebra.D] |
| 59 | |
| 60 | theorem angular_convection_ofBeta (h : ℝ) (phi axial beta pressure : ℕ → InnerProfile) |
| 61 | (n : ℕ) {w : InnerPoint} (hX : w.1 ≠ 0) : |
| 62 | convolution (fun i j => (ofBeta phi axial beta pressure).flux i w * |
| 63 | (partialX (phi j) w + phi j w / w.1) + |
| 64 | axial i w * Z h (angularExponent h + slowOrder h j) (phi j) w) n = |
| 65 | PositiveAxisSystem.convolution n |
| 66 | (PositiveAxisSystem.angularConvection h w.2 w.1 |
| 67 | (fun j => PositiveAxisSystem.actualJet (phi j) w) |
| 68 | (fun j => PositiveAxisSystem.actualJet (axial j) w) (fun j => beta j w)) := by |
| 69 | rw [convolution_eq_positiveAxis] |
| 70 | apply Finset.sum_congr rfl |
| 71 | intro i hi |
| 72 | change (w.1 * beta i w) * (partialX (phi (n - i)) w + phi (n - i) w / w.1) + _ = _ |
| 73 | rw [← PositiveAxisSystem.angularConvection_radial_term hX] |
| 74 | rfl |
| 75 | |
| 76 | theorem axial_convection_ofBeta (h : ℝ) (phi axial beta pressure : ℕ → InnerProfile) |
| 77 | (n : ℕ) (w : InnerPoint) : |
| 78 | convolution (fun i j => (ofBeta phi axial beta pressure).flux i w * |
| 79 | partialX (axial j) w + |
| 80 | axial i w * Z h (axialExponent h + slowOrder h j) (axial j) w) n = |
| 81 | PositiveAxisSystem.convolution n |
| 82 | (PositiveAxisSystem.axialConvection h w.2 w.1 |
| 83 | (fun j => PositiveAxisSystem.actualJet (axial j) w) (fun j => beta j w)) := by |
| 84 | rw [convolution_eq_positiveAxis] |
| 85 | apply Finset.sum_congr rfl |
| 86 | intro i hi |
| 87 | change (w.1 * beta i w) * partialX (axial (n - i)) w + _ = |
| 88 | beta i w * w.1 * partialX (axial (n - i)) w + |
| 89 | axial i w * Z h (axialExponent h + slowOrder h (n-i)) (axial (n-i)) w |
| 90 | ring |
| 91 | |
| 92 | /-- The solved angular and axial rows are the literal residual coefficients. -/ |
| 93 | theorem positiveOrder_tangential_coefficients (h C : ℝ) |
| 94 | (phi axial beta pressure : ℕ → InnerProfile) (k : InnerProfile) (n : ℕ) |
| 95 | {w : InnerPoint} (hX : w.1 ≠ 0) |
| 96 | (he : PositiveAxisSystem.PositiveOrderEquations h C w.2 w.1 n |
| 97 | (fun j => PositiveAxisSystem.actualJet (phi j) w) |
| 98 | (fun j => PositiveAxisSystem.actualJet (axial j) w) (fun j => beta j w) |
| 99 | (PositiveAxisSystem.actualJet k w) (PositiveAxisSystem.actualJet (pressure n) w) |
| 100 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.angularPower h) phi n w) |
| 101 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.axialPower h) axial n w) |
| 102 | (AxisSourceRegularity.previousOmegaDivX h axial beta n w)) : |
| 103 | angularCoefficient h (ofBeta phi axial beta pressure) n w = 0 ∧ |
| 104 | axialCoefficient h (ofBeta phi axial beta pressure) n w = 0 := by |
| 105 | constructor |
| 106 | · apply (angularCoefficient_eq_zero_iff h _ n w).2 |
| 107 | have hc := angular_convection_ofBeta h phi axial beta pressure n hX |
| 108 | dsimp only [ofBeta] at hc ⊢ |
| 109 | rw [hc] |
| 110 | have h := he.2.2.1 |
| 111 | simp only [precedingDiffusion_eq_previous] at h |
| 112 | exact h |
| 113 | · apply (axialCoefficient_eq_zero_iff h _ n w).2 |
| 114 | have hc := axial_convection_ofBeta h phi axial beta pressure n w |
| 115 | dsimp only [ofBeta] at hc ⊢ |
| 116 | rw [hc] |
| 117 | have h := he.2.2.2 |
| 118 | simp only [precedingDiffusion_eq_previous] at h |
| 119 | exact h |
| 120 | |
| 121 | theorem hierarchy_tangential_coefficients {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 122 | {base : Fin 5 → InnerProfile} (A : SlowRecursion.LocalHierarchy R U h C base) |
| 123 | {n : ℕ} (hn : 0 < n) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 124 | (heta : (eta : ℂ) ∈ U) : |
| 125 | angularCoefficient h (hierarchyProfiles A) n (X, eta) = 0 ∧ |
| 126 | axialCoefficient h (hierarchyProfiles A) n (X, eta) = 0 := by |
| 127 | exact positiveOrder_tangential_coefficients h C _ _ _ _ _ n hX.1.ne' |
| 128 | (A.equations n hn X hX eta heta) |
| 129 | |
| 130 | theorem omegaCoefficient_eq_omega (h : ℝ) (f : SlowProfiles) (n : ℕ) (w : InnerPoint) : |
| 131 | omegaCoefficient h f n w = AxisSourceRegularity.omega h f.axial f.flux n w := by |
| 132 | rw [omegaCoefficient_eq] |
| 133 | have hp : previous (fun j => Z2 h (slowOrder h j) (f.flux j) w) n = |
| 134 | AxisSourceRegularity.shiftedAxial h f.flux n w := by |
| 135 | cases n <;> rfl |
| 136 | rw [hp] |
| 137 | rfl |
| 138 | |
| 139 | theorem previousOmega_ofBeta (h : ℝ) (phi axial beta pressure : ℕ → InnerProfile) |
| 140 | (n : ℕ) (w : InnerPoint) (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) |
| 141 | (hb : ∀ j < n, ContDiffAt ℝ 2 (beta j) w) : |
| 142 | previous (fun j => omegaCoefficient h (ofBeta phi axial beta pressure) j w) n / |
| 143 | w.1 = AxisSourceRegularity.previousOmegaDivX h axial beta n w := by |
| 144 | cases n with |
| 145 | | zero => simp [previous, AxisSourceRegularity.previousOmegaDivX] |
| 146 | | succ n => |
| 147 | simp only [previous_succ, AxisSourceRegularity.previousOmegaDivX] |
| 148 | rw [omegaCoefficient_eq_omega] |
| 149 | exact AxisSourceRegularity.omega_quotient_eq h axial beta n w |
| 150 | (fun j hj => hb j (Nat.lt_succ_of_le hj)) hL hX |
| 151 | |
| 152 | theorem partialX_congr_germ {f g : InnerProfile} {w : InnerPoint} |
| 153 | (hfg : f =ᶠ[𝓝 w] g) : partialX f =ᶠ[𝓝 w] partialX g := by |
| 154 | filter_upwards [hfg.fderiv (𝕜 := ℝ)] with y hy |
| 155 | exact congrArg (fun L => L (1, 0)) hy |
| 156 | |
| 157 | theorem Z_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 158 | (hfg : f =ᶠ[𝓝 w] g) : Z h b f =ᶠ[𝓝 w] Z h b g := by |
| 159 | filter_upwards [hfg.eventuallyEq_nhds] with y hy |
| 160 | exact AxisSourceRegularity.Z_congr_germ h b hy |
| 161 | |
| 162 | theorem Z2_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 163 | (hfg : f =ᶠ[𝓝 w] g) : Z2 h b f w = Z2 h b g w := |
| 164 | AxisSourceRegularity.Z_congr_germ h (b - CoordinateAlgebra.D h) (Z_congr_germ h b hfg) |
| 165 | |
| 166 | theorem T_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 167 | (hfg : f =ᶠ[𝓝 w] g) : T h b f w = T h b g w := by |
| 168 | simp only [T, CoordinateAlgebra.timeCoeff, partialX, partialEta, |
| 169 | hfg.eq_of_nhds, hfg.fderiv_eq] |
| 170 | |
| 171 | /-- A finite residual coefficient depends only on the germs of the |
| 172 | coefficients through its own order. No global equality is required. -/ |
| 173 | theorem transportCoefficient_congr_germ (h e α m : ℝ) |
| 174 | {v u f s v' u' f' s' : ℕ → InnerProfile} (n : ℕ) {w : InnerPoint} |
| 175 | (hv : ∀ j ≤ n, v j =ᶠ[𝓝 w] v' j) (hu : ∀ j ≤ n, u j =ᶠ[𝓝 w] u' j) |
| 176 | (hf : ∀ j ≤ n, f j =ᶠ[𝓝 w] f' j) (hs : s n w = s' n w) : |
| 177 | transportCoefficient h e α m v u f s n w = |
| 178 | transportCoefficient h e α m v' u' f' s' n w := by |
| 179 | have hlin : |
| 180 | transportLinear w.1 m (fun j => T h (e + slowOrder h j) (f j) w) |
| 181 | (fun j => partialX (f j) w) (fun j => partialX (partialX (f j)) w) |
| 182 | (fun j => s j w) n = |
| 183 | transportLinear w.1 m (fun j => T h (e + slowOrder h j) (f' j) w) |
| 184 | (fun j => partialX (f' j) w) (fun j => partialX (partialX (f' j)) w) |
| 185 | (fun j => s' j w) n := by |
| 186 | simp only [transportLinear, T_congr_germ h (e + slowOrder h n) (hf n le_rfl), |
| 187 | (partialX_congr_germ (hf n le_rfl)).eq_of_nhds, |
| 188 | (partialX_congr_germ (partialX_congr_germ (hf n le_rfl))).eq_of_nhds, hs] |
| 189 | have hconv : |
| 190 | convolution (transportPair w.1 α (fun j => v j w) (fun j => u j w) |
| 191 | (fun j => f j w) (fun j => partialX (f j) w) |
| 192 | (fun j => Z h (e + slowOrder h j) (f j) w)) n = |
| 193 | convolution (transportPair w.1 α (fun j => v' j w) (fun j => u' j w) |
| 194 | (fun j => f' j w) (fun j => partialX (f' j) w) |
| 195 | (fun j => Z h (e + slowOrder h j) (f' j) w)) n := by |
| 196 | apply Finset.sum_congr rfl |
| 197 | intro ij hij |
| 198 | have hi : ij.1 ≤ n := Nat.le.intro (Finset.mem_antidiagonal.mp hij) |
| 199 | have hj : ij.2 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 200 | simp only [transportPair, (hv ij.1 hi).eq_of_nhds, (hu ij.1 hi).eq_of_nhds, |
| 201 | (hf ij.2 hj).eq_of_nhds, (partialX_congr_germ (hf ij.2 hj)).eq_of_nhds, |
| 202 | (Z_congr_germ h (e + slowOrder h ij.2) (hf ij.2 hj)).eq_of_nhds] |
| 203 | have hprev : previous (fun j => Z2 h (e + slowOrder h j) (f j) w) n = |
| 204 | previous (fun j => Z2 h (e + slowOrder h j) (f' j) w) n := by |
| 205 | cases n with |
| 206 | | zero => rfl |
| 207 | | succ n => exact Z2_congr_germ h (e + slowOrder h n) (hf n (Nat.le_succ n)) |
| 208 | exact congrArg₂ Sub.sub (congrArg₂ Add.add hlin hconv) hprev |
| 209 | |
| 210 | theorem angularCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 211 | (n : ℕ) {w : InnerPoint} |
| 212 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 213 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) |
| 214 | (hf : ∀ j ≤ n, f.phi j =ᶠ[𝓝 w] g.phi j) : |
| 215 | angularCoefficient h f n w = angularCoefficient h g n w := |
| 216 | transportCoefficient_congr_germ h (angularExponent h) 1 2 n hv hu hf rfl |
| 217 | |
| 218 | theorem axialCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 219 | (n : ℕ) {w : InnerPoint} |
| 220 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 221 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) |
| 222 | (hp : f.pressure n =ᶠ[𝓝 w] g.pressure n) : |
| 223 | axialCoefficient h f n w = axialCoefficient h g n w := |
| 224 | transportCoefficient_congr_germ h (axialExponent h) 0 1 n hv hu hu |
| 225 | ((Z_congr_germ h (pressureExponent h + slowOrder h n) hp).eq_of_nhds) |
| 226 | |
| 227 | theorem omegaCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 228 | (n : ℕ) {w : InnerPoint} |
| 229 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 230 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) : |
| 231 | omegaCoefficient h f n w = omegaCoefficient h g n w := |
| 232 | transportCoefficient_congr_germ h 0 (-(1 / 2)) 0 n hv hu hv rfl |
| 233 | |
| 234 | /-- Monotonicity of slow orders is the precise reason every omitted pair |
| 235 | has at least the next power of q. -/ |
| 236 | theorem slowOrder_mono {h : ℝ} (hh : 0 ≤ h) : Monotone (slowOrder h) := by |
| 237 | intro i j hij |
| 238 | unfold slowOrder |
| 239 | exact mul_le_mul_of_nonneg_right (by exact_mod_cast (Nat.mul_le_mul_left 2 hij)) hh |
| 240 | |
| 241 | noncomputable def pairTailSize (N : ℕ) (K : ℕ → ℕ → ℝ) : ℝ := |
| 242 | ∑ ij ∈ (pairs N).filter (fun ij => N < ij.1 + ij.2), |K ij.1 ij.2| |
| 243 | |
| 244 | noncomputable def transportKernel (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 245 | (w : InnerPoint) : ℕ → ℕ → ℝ := |
| 246 | transportPair w.1 α (fun j => v j w) (fun j => u j w) (fun j => f j w) |
| 247 | (fun j => partialX (f j) w) (fun j => Z h (e + slowOrder h j) (f j) w) |
| 248 | |
| 249 | noncomputable def transportTailSize (N : ℕ) (h e α : ℝ) |
| 250 | (v u f : ℕ → InnerProfile) (w : InnerPoint) : ℝ := |
| 251 | pairTailSize N (transportKernel h e α v u f w) + |
| 252 | |Z2 h (e + slowOrder h N) (f N) w| |
| 253 | |
| 254 | noncomputable def pressureTailSize (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 255 | (w : InnerPoint) : ℝ := |
| 256 | transportTailSize N h 0 (-1 / 2) f.flux f.axial f.flux w + |
| 257 | |omegaCoefficient h f N w| + |
| 258 | |2 * w.1 * C⁻¹ ^ 2| * pairTailSize N (fun i j => f.phi i w * f.phi j w) |
| 259 | |
| 260 | /-- The change from cylindrical radius R to the regular variable X. -/ |
| 261 | noncomputable def radiusPoint (w : InnerPoint) : InnerPoint := (w.1 ^ 2 / 2, w.2) |
| 262 | |
| 263 | noncomputable def fromRadius (F : InnerProfile) (w : InnerPoint) : ℝ := |
| 264 | F (Real.sqrt (2 * w.1), w.2) |
| 265 | |
| 266 | noncomputable def toRadius (f : InnerProfile) (w : InnerPoint) : ℝ := f (radiusPoint w) |
| 267 | |
| 268 | noncomputable def swirlRadius (C : ℝ) (f : InnerProfile) (w : InnerPoint) : ℝ := |
| 269 | w.1 / C * toRadius f w |
| 270 | |
| 271 | theorem radiusPoint_smooth : ContDiff ℝ ∞ radiusPoint := |
| 272 | ((contDiff_fst.pow 2).div_const 2).prodMk contDiff_snd |
| 273 | |
| 274 | theorem fromRadius_smoothAt {F : InnerProfile} {w : InnerPoint} (hX : 0 < w.1) |
| 275 | (hF : ContDiffAt ℝ ∞ F (Real.sqrt (2 * w.1), w.2)) : |
| 276 | ContDiffAt ℝ ∞ (fromRadius F) w := |
| 277 | hF.comp w (((contDiffAt_const.mul contDiffAt_fst).sqrt (by positivity)).prodMk contDiffAt_snd) |
| 278 | |
| 279 | theorem partialX_fromRadius {F : InnerProfile} {w : InnerPoint} (hX : 0 < w.1) |
| 280 | (hF : DifferentiableAt ℝ F (Real.sqrt (2 * w.1), w.2)) : |
| 281 | partialX (fromRadius F) w = |
| 282 | partialX F (Real.sqrt (2 * w.1), w.2) / Real.sqrt (2 * w.1) := by |
| 283 | have hs := (Real.hasDerivAt_sqrt (show 2 * w.1 ≠ 0 by positivity)).comp w.1 |
| 284 | ((hasDerivAt_id w.1).const_mul 2) |
| 285 | have hd := hF.hasFDerivAt.comp_hasDerivAt w.1 |
| 286 | (hs.prodMk (hasDerivAt_const w.1 w.2)) |
| 287 | have hc : DifferentiableAt ℝ (fromRadius F) w := |
| 288 | hF.comp w ((((differentiableAt_const (2 : ℝ)).fun_mul differentiableAt_fst).sqrt |
| 289 | (by positivity)).prodMk differentiableAt_snd) |
| 290 | have he := (LeadingStress.partialX_hasDerivAt hc).unique hd |
| 291 | refine he.trans ?_ |
| 292 | simp only [SimilarityProfile.fderiv_inner_apply, mul_zero, add_zero, |
| 293 | mul_one, one_mul, div_eq_mul_inv, mul_inv_rev] |
| 294 | ring |
| 295 | |
| 296 | /-- At a positive radius the primitive stress is smooth without an axis |
| 297 | vanishing assumption. The latter is needed only to extend through R=0. -/ |
| 298 | theorem primitive_stress_smoothAt {S : Set ℝ} (hS : IsOpen S) |
| 299 | {F : InnerProfile} (hF : SlowStressSupport.Smooth S F) (m : ℕ) |
| 300 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) : |
| 301 | ContDiffAt ℝ ∞ (SlowStressSupport.stress m F) w := by |
| 302 | have hP := (ProfileHistories.primitive_smooth |
| 303 | (PositiveOrderMoments.parameterDomain S hS) hF).contDiffAt |
| 304 | ((isOpen_univ.prod hS).mem_nhds ⟨mem_univ _, heta⟩) |
| 305 | have ht : ContDiffAt ℝ ∞ (fun p : InnerPoint => -ProfileHistories.primitive F p / p.1 ^ m) w := |
| 306 | hP.neg.div (contDiffAt_fst.pow m) (pow_ne_zero m hR.ne') |
| 307 | apply ht.congr_of_eventuallyEq |
| 308 | filter_upwards [continuous_fst.continuousAt (Ioi_mem_nhds hR)] with p hp |
| 309 | exact SlowStressSupport.stress_of_pos m F hp |
| 310 | |
| 311 | theorem primitive_stress_radial_identity {S : Set ℝ} (hS : IsOpen S) |
| 312 | {F : InnerProfile} (hF : SlowStressSupport.Smooth S F) (m : ℕ) |
| 313 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) : |
| 314 | (m : ℝ) * w.1 ^ (m - 1) * SlowStressSupport.stress m F w + |
| 315 | w.1 ^ m * partialX (SlowStressSupport.stress m F) w = -F w := by |
| 316 | have ht := LeadingStress.partialX_hasDerivAt |
| 317 | ((primitive_stress_smoothAt hS hF m hR heta).differentiableAt (by simp)) |
| 318 | have hp := ((hasDerivAt_id w.1).fun_pow m).fun_mul ht |
| 319 | have he := hp.unique (SlowStressSupport.stress_weighted_hasDerivAt hS hF m hR heta) |
| 320 | simpa only [id_eq, mul_one, Prod.eta] using he |
| 321 | |
| 322 | /-- Literal R²-weighted angular residual. -/ |
| 323 | noncomputable def thetaDensity (h C : ℝ) (f : SlowProfiles) (n : ℕ) (w : InnerPoint) : ℝ := |
| 324 | w.1 ^ 3 / C * angularCoefficient h f n (radiusPoint w) |
| 325 | |
| 326 | /-- Literal R-weighted axial residual. -/ |
| 327 | noncomputable def zDensity (h : ℝ) (f : SlowProfiles) (n : ℕ) (w : InnerPoint) : ℝ := |
| 328 | w.1 * axialCoefficient h f n (radiusPoint w) |
| 329 | |
| 330 | noncomputable def thetaStress (h C : ℝ) (f : SlowProfiles) (n : ℕ) : InnerProfile := |
| 331 | fromRadius (SlowStressSupport.stress 2 (thetaDensity h C f n)) |
| 332 | |
| 333 | noncomputable def zStress (h : ℝ) (f : SlowProfiles) (n : ℕ) : InnerProfile := |
| 334 | fromRadius (SlowStressSupport.stress 1 (zDensity h f n)) |
| 335 | |
| 336 | theorem thetaStress_smoothAt {S : Set ℝ} (hS : IsOpen S) (h C : ℝ) |
| 337 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 338 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 339 | ContDiffAt ℝ ∞ (thetaStress h C f n) w := |
| 340 | fromRadius_smoothAt hX (primitive_stress_smoothAt hS hF 2 |
| 341 | (Real.sqrt_pos.2 (by positivity)) heta) |
| 342 | |
| 343 | theorem zStress_smoothAt {S : Set ℝ} (hS : IsOpen S) (h : ℝ) |
| 344 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (zDensity h f n)) |
| 345 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 346 | ContDiffAt ℝ ∞ (zStress h f n) w := |
| 347 | fromRadius_smoothAt hX (primitive_stress_smoothAt hS hF 1 |
| 348 | (Real.sqrt_pos.2 (by positivity)) heta) |
| 349 | |
| 350 | /-- The angular primitive has exactly the required unweighted divergence. -/ |
| 351 | theorem thetaStress_identity {S : Set ℝ} (hS : IsOpen S) (h C : ℝ) |
| 352 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 353 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 354 | Real.sqrt (2 * w.1) * partialX (thetaStress h C f n) w + |
| 355 | 2 * thetaStress h C f n w / Real.sqrt (2 * w.1) = |
| 356 | -(Real.sqrt (2 * w.1) / C * angularCoefficient h f n w) := by |
| 357 | let r := Real.sqrt (2 * w.1) |
| 358 | have hr : 0 < r := Real.sqrt_pos.2 (by positivity) |
| 359 | have hr2 : r ^ 2 = 2 * w.1 := Real.sq_sqrt (by positivity) |
| 360 | have hw : radiusPoint (r, w.2) = w := by |
| 361 | ext <;> simp [radiusPoint, hr2] |
| 362 | have hi := primitive_stress_radial_identity hS hF 2 (w := (r, w.2)) hr heta |
| 363 | norm_num only [Nat.cast_ofNat, Nat.reduceSub, pow_one] at hi |
| 364 | rw [thetaDensity, hw] at hi |
| 365 | unfold thetaStress |
| 366 | rw [partialX_fromRadius hX ((primitive_stress_smoothAt hS hF 2 |
| 367 | (w := (r, w.2)) hr heta).differentiableAt (by simp))] |
| 368 | change r * (partialX (SlowStressSupport.stress 2 (thetaDensity h C f n)) (r, w.2) / r) + |
| 369 | 2 * SlowStressSupport.stress 2 (thetaDensity h C f n) (r, w.2) / r = |
| 370 | -(r / C * angularCoefficient h f n w) |
| 371 | apply mul_right_injective₀ (pow_ne_zero 2 hr.ne') |
| 372 | field_simp [hr.ne'] |
| 373 | apply mul_left_cancel₀ hr.ne' |
| 374 | linear_combination hi |
| 375 | |
| 376 | theorem zStress_identity {S : Set ℝ} (hS : IsOpen S) (h : ℝ) |
| 377 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (zDensity h f n)) |
| 378 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 379 | Real.sqrt (2 * w.1) * partialX (zStress h f n) w + |
| 380 | zStress h f n w / Real.sqrt (2 * w.1) = -axialCoefficient h f n w := by |
| 381 | let r := Real.sqrt (2 * w.1) |
| 382 | have hr : 0 < r := Real.sqrt_pos.2 (by positivity) |
| 383 | have hr2 : r ^ 2 = 2 * w.1 := Real.sq_sqrt (by positivity) |
| 384 | have hw : radiusPoint (r, w.2) = w := by ext <;> simp [radiusPoint, hr2] |
| 385 | have hi := primitive_stress_radial_identity hS hF 1 (w := (r, w.2)) hr heta |
| 386 | norm_num only [Nat.cast_one, Nat.reduceSub, pow_zero, pow_one, one_mul] at hi |
| 387 | rw [zDensity, hw] at hi |
| 388 | unfold zStress |
| 389 | rw [partialX_fromRadius hX ((primitive_stress_smoothAt hS hF 1 |
| 390 | (w := (r, w.2)) hr heta).differentiableAt (by simp))] |
| 391 | change r * (partialX (SlowStressSupport.stress 1 (zDensity h f n)) (r, w.2) / r) + |
| 392 | SlowStressSupport.stress 1 (zDensity h f n) (r, w.2) / r = -axialCoefficient h f n w |
| 393 | apply mul_right_injective₀ hr.ne' |
| 394 | field_simp [hr.ne'] |
| 395 | linear_combination hi |
| 396 | |
| 397 | noncomputable def physicalThetaStress (N : ℕ) (h C : ℝ) (f : SlowProfiles) : PhysicalProfile := |
| 398 | finiteProfile N h (angularExponent h) (thetaStress h C f) |
| 399 | |
| 400 | noncomputable def physicalZStress (N : ℕ) (h : ℝ) (f : SlowProfiles) : PhysicalProfile := |
| 401 | finiteProfile N h (angularExponent h) (zStress h f) |
| 402 | |
| 403 | theorem radialDivergence_sum {ι : Type*} (s : Finset ι) (k : ℝ) |
| 404 | (F : ι → PhysicalProfile) (p : PhysicalPoint) |
| 405 | (hF : ∀ i ∈ s, DifferentiableAt ℝ (F i) p) : |
| 406 | LeadingStress.radialDivergence k (fun y => ∑ i ∈ s, F i y) p = |
| 407 | ∑ i ∈ s, LeadingStress.radialDivergence k (F i) p := by |
| 408 | unfold LeadingStress.radialDivergence |
| 409 | change Real.sqrt (2 * p.2.1) * derivativeAlong (0, (1, 0)) _ p + _ = _ |
| 410 | rw [derivativeAlong_sum s F (0, (1, 0)) p hF] |
| 411 | simp only [Finset.mul_sum, Finset.sum_div, Finset.sum_add_distrib] |
| 412 | rfl |
| 413 | |
| 414 | theorem physicalThetaStress_divergence {S : Set ℝ} (hS : IsOpen S) |
| 415 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 416 | (hF : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 417 | {p : PhysicalPoint} (hp : p.1 < 1) (hs : 0 < p.2.1) |
| 418 | (heta : (SimilarityProfile.inner h p).2 ∈ S) : |
| 419 | LeadingStress.radialDivergence 2 (physicalThetaStress N h C f) p = |
| 420 | -(Real.sqrt (2 * p.2.1) * C⁻¹ * |
| 421 | finiteSeries N (SimilarityProfile.q h p) h (angularExponent h - 1) |
| 422 | (fun n => angularCoefficient h f n (SimilarityProfile.inner h p))) := by |
| 423 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 424 | have hd : ∀ n ≤ N, DifferentiableAt ℝ (thetaStress h C f n) (SimilarityProfile.inner h p) := |
| 425 | fun n hn => (thetaStress_smoothAt hS h C f n (hF n hn) hX heta).differentiableAt (by simp) |
| 426 | unfold physicalThetaStress finiteProfile |
| 427 | rw [radialDivergence_sum _ _ _ _ (fun n hn => SimilarityProfile.pullback_differentiableAt |
| 428 | hh hh1 hp (hd n (Nat.le_of_lt_succ (Finset.mem_range.mp hn))))] |
| 429 | unfold finiteSeries |
| 430 | rw [Finset.mul_sum, ← Finset.sum_neg_distrib] |
| 431 | apply Finset.sum_congr rfl |
| 432 | intro n hn |
| 433 | have hnN := Nat.le_of_lt_succ (Finset.mem_range.mp hn) |
| 434 | rw [LeadingStress.radialDivergence_pullback hh hh1 2 hp (hd n hnN), |
| 435 | thetaStress_identity hS h C f n (hF n hnN) hX heta] |
| 436 | have he := LeadingStress.radius_mul_rpow hh hh1 (angularExponent h - 1 + slowOrder h n) hp |
| 437 | rw [show angularExponent h - 1 + slowOrder h n + 1 / 2 = |
| 438 | angularExponent h + slowOrder h n - 1 / 2 by ring] at he |
| 439 | rw [show -(Real.sqrt (2 * p.2.1) * C⁻¹ * |
| 440 | (SimilarityProfile.q h p ^ (angularExponent h - 1 + slowOrder h n) * |
| 441 | angularCoefficient h f n (SimilarityProfile.inner h p))) = |
| 442 | -(Real.sqrt (2 * p.2.1) * |
| 443 | SimilarityProfile.q h p ^ (angularExponent h - 1 + slowOrder h n)) * |
| 444 | (C⁻¹ * angularCoefficient h f n (SimilarityProfile.inner h p)) by ring, he] |
| 445 | ring |
| 446 | |
| 447 | theorem physicalZStress_divergence {S : Set ℝ} (hS : IsOpen S) |
| 448 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (f : SlowProfiles) |
| 449 | (hF : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 450 | {p : PhysicalPoint} (hp : p.1 < 1) (hs : 0 < p.2.1) |
| 451 | (heta : (SimilarityProfile.inner h p).2 ∈ S) : |
| 452 | LeadingStress.radialDivergence 1 (physicalZStress N h f) p = |
| 453 | -finiteSeries N (SimilarityProfile.q h p) h (axialExponent h - 1) |
| 454 | (fun n => axialCoefficient h f n (SimilarityProfile.inner h p)) := by |
| 455 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 456 | have hd : ∀ n ≤ N, DifferentiableAt ℝ (zStress h f n) (SimilarityProfile.inner h p) := |
| 457 | fun n hn => (zStress_smoothAt hS h f n (hF n hn) hX heta).differentiableAt (by simp) |
| 458 | unfold physicalZStress finiteProfile |
| 459 | rw [radialDivergence_sum _ _ _ _ (fun n hn => SimilarityProfile.pullback_differentiableAt |
| 460 | hh hh1 hp (hd n (Nat.le_of_lt_succ (Finset.mem_range.mp hn))))] |
| 461 | unfold finiteSeries |
| 462 | rw [← Finset.sum_neg_distrib] |
| 463 | apply Finset.sum_congr rfl |
| 464 | intro n hn |
| 465 | have hnN := Nat.le_of_lt_succ (Finset.mem_range.mp hn) |
| 466 | rw [LeadingStress.radialDivergence_pullback hh hh1 1 hp (hd n hnN), one_mul, |
| 467 | zStress_identity hS h f n (hF n hnN) hX heta] |
| 468 | rw [show angularExponent h + slowOrder h n - 1 / 2 = |
| 469 | axialExponent h - 1 + slowOrder h n by unfold angularExponent axialExponent; ring] |
| 470 | ring |
| 471 | |
| 472 | /-- The two radial tangential operators appearing in the manuscript. |
| 473 | They are written as an actual Cartesian vector; no unspecified tensor is used. -/ |
| 474 | noncomputable def tangentialStressForce (theta axial : PhysicalProfile) |
| 475 | (t : ℝ) (x : ProblemStatement.Space) : ProblemStatement.Space := |
| 476 | let r := Real.sqrt (2 * radialEnergy x) |
| 477 | let a := LeadingStress.radialDivergence 2 theta (profilePoint t x) |
| 478 | let z := LeadingStress.radialDivergence 1 axial (profilePoint t x) |
| 479 | AxisymmetricResidual.pack (x 1 / r * a) (-x 0 / r * a) (-z) |
| 480 | |
| 481 | /-- The pressure recurrence contributes this separate radial vector. -/ |
| 482 | noncomputable def retainedRadialForce (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 483 | (t : ℝ) (x : ProblemStatement.Space) : ProblemStatement.Space := |
| 484 | let q := SimilarityProfile.q h (profilePoint t x) |
| 485 | let w := SimilarityProfile.inner h (profilePoint t x) |
| 486 | let r := (2 * w.1 * finiteSeries N q h (pressureExponent h) |
| 487 | (fun n => pressureCoefficient h C f n w)) / (2 * radialEnergy x) |
| 488 | AxisymmetricResidual.pack (x 0 * r) (x 1 * r) 0 |
| 489 | |
| 490 | /-- Exact finite field matching. All nonlinear interactions not in the |
| 491 | retained coefficients, the final axial viscosities, and the final radial |
| 492 | acceleration remain in the explicitly defined `truncationResidual`. -/ |
| 493 | theorem navierStokesResidual_eq_stress_add_tails {S : Set ℝ} (hS : IsOpen S) |
| 494 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 495 | (hTheta : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 496 | (hZ : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 497 | {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) (hs : 0 < radialEnergy x) |
| 498 | (heta : (SimilarityProfile.inner h (profilePoint t x)).2 ∈ S) |
| 499 | (hv : ∀ n ≤ N, ContDiffAt ℝ 2 (f.flux n) (SimilarityProfile.inner h (profilePoint t x))) |
| 500 | (hphi : ∀ n ≤ N, ContDiffAt ℝ 2 (f.phi n) (SimilarityProfile.inner h (profilePoint t x))) |
| 501 | (hu : ∀ n ≤ N, ContDiffAt ℝ 2 (f.axial n) (SimilarityProfile.inner h (profilePoint t x))) |
| 502 | (hp : ∀ n ≤ N, DifferentiableAt ℝ (f.pressure n) (SimilarityProfile.inner h (profilePoint t x))) : |
| 503 | ProblemStatement.navierStokesResidual (slowVelocity N h C f) (slowPressureField N h f) t x = |
| 504 | tangentialStressForce (physicalThetaStress N h C f) (physicalZStress N h f) t x + |
| 505 | retainedRadialForce N h C f t x + truncationResidual N h C f t x := by |
| 506 | rw [navierStokesResidual_slowVelocity hh hh1 N C f ht hs hv hphi hu hp] |
| 507 | have ha := physicalThetaStress_divergence hS hh hh1 N C f hTheta ht hs heta |
| 508 | have hz := physicalZStress_divergence hS hh hh1 N f hZ ht hs heta |
| 509 | have hr : Real.sqrt (2 * radialEnergy x) ≠ 0 := (Real.sqrt_pos.2 (by positivity)).ne' |
| 510 | unfold tangentialStressForce |
| 511 | rw [ha, hz] |
| 512 | simp only [profilePoint] at * |
| 513 | generalize hrdef : Real.sqrt (2 * radialEnergy x) = r at * |
| 514 | ext i |
| 515 | fin_cases i <;> |
| 516 | simp [retainedRadialForce, truncationResidual, radialFluxExpansion, |
| 517 | angularExpansion, axialExpansion, AxisymmetricResidual.pack, |
| 518 | ProblemStatement.coordinateVector, profilePoint] |
| 519 | all_goals field_simp [hr, hs.ne'] |
| 520 | all_goals ring_nf |
| 521 | |
| 522 | /-- If the pressure was recomputed from its actual radial recurrence, the |
| 523 | finite residual consists of the tangential stress force and the explicit tails. -/ |
| 524 | theorem navierStokesResidual_eq_stress_add_truncation {S : Set ℝ} (hS : IsOpen S) |
| 525 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 526 | (hTheta : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 527 | (hZ : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 528 | {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) (hs : 0 < radialEnergy x) |
| 529 | (heta : (SimilarityProfile.inner h (profilePoint t x)).2 ∈ S) |
| 530 | (hv : ∀ n ≤ N, ContDiffAt ℝ 2 (f.flux n) (SimilarityProfile.inner h (profilePoint t x))) |
| 531 | (hphi : ∀ n ≤ N, ContDiffAt ℝ 2 (f.phi n) (SimilarityProfile.inner h (profilePoint t x))) |
| 532 | (hu : ∀ n ≤ N, ContDiffAt ℝ 2 (f.axial n) (SimilarityProfile.inner h (profilePoint t x))) |
| 533 | (hp : ∀ n ≤ N, DifferentiableAt ℝ (f.pressure n) (SimilarityProfile.inner h (profilePoint t x))) |
| 534 | (hpressure : ∀ n ≤ N, pressureCoefficient h C f n (SimilarityProfile.inner h (profilePoint t x)) = 0) : |
| 535 | ProblemStatement.navierStokesResidual (slowVelocity N h C f) (slowPressureField N h f) t x = |
| 536 | tangentialStressForce (physicalThetaStress N h C f) (physicalZStress N h f) t x + |
| 537 | truncationResidual N h C f t x := by |
| 538 | rw [navierStokesResidual_eq_stress_add_tails hS hh hh1 N C f hTheta hZ ht hs heta hv hphi hu hp] |
| 539 | have he : retainedRadialForce N h C f t x = 0 := by |
| 540 | unfold retainedRadialForce |
| 541 | dsimp only |
| 542 | rw [finiteSeries_eq_zero _ _ _ _ _ hpressure] |
| 543 | ext i |
| 544 | fin_cases i <;> simp [AxisymmetricResidual.pack] |
| 545 | rw [he, add_zero] |
| 546 | |
| 547 | theorem toRadius_differentiableAt {f : InnerProfile} {w : InnerPoint} |
| 548 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : DifferentiableAt ℝ (toRadius f) w := |
| 549 | hf.comp w (radiusPoint_smooth.differentiable (by simp)).differentiableAt |
| 550 | |
| 551 | theorem partialX_toRadius {f : InnerProfile} {w : InnerPoint} |
| 552 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 553 | partialX (toRadius f) w = w.1 * partialX f (radiusPoint w) := by |
| 554 | have hs : HasDerivAt (fun r : ℝ => r ^ 2 / 2) w.1 w.1 := by |
| 555 | convert! ((hasDerivAt_id w.1).pow 2).div_const 2 using 1 |
| 556 | simp |
| 557 | have hd := hf.hasFDerivAt.comp_hasDerivAt w.1 (hs.prodMk (hasDerivAt_const w.1 w.2)) |
| 558 | have he := (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf)).unique hd |
| 559 | simpa only [SimilarityProfile.fderiv_inner_apply, mul_zero, zero_mul, add_zero, |
| 560 | radiusPoint, mul_comm] using he |
| 561 | |
| 562 | theorem partialEta_toRadius {f : InnerProfile} {w : InnerPoint} |
| 563 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 564 | partialEta (toRadius f) w = partialEta f (radiusPoint w) := by |
| 565 | have hd := hf.hasFDerivAt.comp_hasDerivAt w.2 |
| 566 | ((hasDerivAt_const w.2 (w.1 ^ 2 / 2)).prodMk (hasDerivAt_id w.2)) |
| 567 | have he := (PositiveAxisSystem.hasDerivAt_parameterProfile |
| 568 | (toRadius_differentiableAt hf)).unique hd |
| 569 | simpa only [SimilarityProfile.fderiv_inner_apply, mul_zero, zero_mul, zero_add, |
| 570 | one_mul, mul_one, radiusPoint, Prod.eta] using he |
| 571 | |
| 572 | theorem partialX_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 573 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 574 | partialX (swirlRadius C f) w = |
| 575 | f (radiusPoint w) / C + w.1 ^ 2 / C * partialX f (radiusPoint w) := by |
| 576 | have hg : DifferentiableAt ℝ (swirlRadius C f) w := by |
| 577 | change DifferentiableAt ℝ (fun y : InnerPoint => y.1 / C * toRadius f y) w |
| 578 | simpa only [div_eq_mul_inv] using ((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 579 | differentiableAt_fst).mul_const C⁻¹).fun_mul (toRadius_differentiableAt hf) |
| 580 | have hd := ((hasDerivAt_id w.1).div_const C).mul |
| 581 | (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf)) |
| 582 | have he := (LeadingStress.partialX_hasDerivAt hg).unique hd |
| 583 | rw [partialX_toRadius hf] at he |
| 584 | exact he.trans (by simp only [id_eq, toRadius]; ring) |
| 585 | |
| 586 | theorem partialEta_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 587 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 588 | partialEta (swirlRadius C f) w = w.1 / C * partialEta f (radiusPoint w) := by |
| 589 | have hg : DifferentiableAt ℝ (swirlRadius C f) w := by |
| 590 | change DifferentiableAt ℝ (fun y : InnerPoint => y.1 / C * toRadius f y) w |
| 591 | simpa only [div_eq_mul_inv] using ((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 592 | differentiableAt_fst).mul_const C⁻¹).fun_mul (toRadius_differentiableAt hf) |
| 593 | have hd := (PositiveAxisSystem.hasDerivAt_parameterProfile |
| 594 | (toRadius_differentiableAt hf)).const_mul (w.1 / C) |
| 595 | have he := (PositiveAxisSystem.hasDerivAt_parameterProfile hg).unique hd |
| 596 | simpa only [partialEta_toRadius hf] using he |
| 597 | |
| 598 | theorem partialXX_toRadius {f : InnerProfile} {w : InnerPoint} |
| 599 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) : |
| 600 | partialX (partialX (toRadius f)) w = |
| 601 | partialX f (radiusPoint w) + w.1 ^ 2 * partialX (partialX f) (radiusPoint w) := by |
| 602 | have he : partialX (toRadius f) =ᶠ[𝓝 w] |
| 603 | AxisSourceRegularity.axisFactor (toRadius (partialX f)) := by |
| 604 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 605 | filter_upwards [hh] with y hy |
| 606 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 607 | exact partialX_toRadius (hy.differentiableAt (by norm_num)) |
| 608 | have hx := (PositiveAxisSystem.partialX_contDiffAt hf).differentiableAt (by norm_num) |
| 609 | change (fderiv ℝ (partialX (toRadius f)) w) (1, 0) = _ |
| 610 | rw [he.fderiv_eq] |
| 611 | change partialX (AxisSourceRegularity.axisFactor (toRadius (partialX f))) w = _ |
| 612 | rw [AxisSourceRegularity.partialX_axisFactor (toRadius_differentiableAt hx), partialX_toRadius hx] |
| 613 | simp only [toRadius] |
| 614 | ring |
| 615 | |
| 616 | theorem timeOp_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 617 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 618 | SlowStressSupport.timeOp h b (toRadius f) w = T h b f (radiusPoint w) := by |
| 619 | unfold SlowStressSupport.timeOp |
| 620 | change (-b * toRadius f w + PositiveAxisSystem.dScale h * w.2 * partialEta (toRadius f) w + |
| 621 | w.1 / 2 * partialX (toRadius f) w) / _ = _ |
| 622 | rw [partialX_toRadius hf, partialEta_toRadius hf] |
| 623 | simp only [T, CoordinateAlgebra.timeCoeff, radiusPoint, toRadius, |
| 624 | PositiveAxisSystem.dScale, CoordinateAlgebra.D, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 625 | ring |
| 626 | |
| 627 | theorem axialOp_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 628 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 629 | SlowStressSupport.axialOp h b (toRadius f) w = Z h b f (radiusPoint w) := by |
| 630 | unfold SlowStressSupport.axialOp |
| 631 | change (2 * w.2 * b * toRadius f w + PositiveAxisSystem.edge w.2 * partialEta (toRadius f) w - |
| 632 | w.2 * w.1 * partialX (toRadius f) w) / _ = _ |
| 633 | rw [partialX_toRadius hf, partialEta_toRadius hf] |
| 634 | simp only [Z, CoordinateAlgebra.axialCoeff, radiusPoint, toRadius, |
| 635 | PositiveAxisSystem.edge, CoordinateAlgebra.d, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 636 | ring |
| 637 | |
| 638 | theorem timeOp_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 639 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 640 | SlowStressSupport.timeOp h b (swirlRadius C f) w = |
| 641 | w.1 / C * T h (b - 1 / 2) f (radiusPoint w) := by |
| 642 | unfold SlowStressSupport.timeOp |
| 643 | change (-b * swirlRadius C f w + PositiveAxisSystem.dScale h * w.2 * partialEta (swirlRadius C f) w + |
| 644 | w.1 / 2 * partialX (swirlRadius C f) w) / _ = _ |
| 645 | rw [partialX_swirlRadius C hf, partialEta_swirlRadius C hf] |
| 646 | simp only [T, CoordinateAlgebra.timeCoeff, swirlRadius, toRadius, radiusPoint, |
| 647 | PositiveAxisSystem.dScale, CoordinateAlgebra.D, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 648 | ring |
| 649 | |
| 650 | theorem axialOp_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 651 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 652 | SlowStressSupport.axialOp h b (swirlRadius C f) w = |
| 653 | w.1 / C * Z h (b - 1 / 2) f (radiusPoint w) := by |
| 654 | unfold SlowStressSupport.axialOp |
| 655 | change (2 * w.2 * b * swirlRadius C f w + PositiveAxisSystem.edge w.2 * partialEta (swirlRadius C f) w - |
| 656 | w.2 * w.1 * partialX (swirlRadius C f) w) / _ = _ |
| 657 | rw [partialX_swirlRadius C hf, partialEta_swirlRadius C hf] |
| 658 | simp only [Z, CoordinateAlgebra.axialCoeff, swirlRadius, toRadius, radiusPoint, |
| 659 | PositiveAxisSystem.edge, CoordinateAlgebra.d, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 660 | ring |
| 661 | |
| 662 | theorem axialOp_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 663 | (hfg : f =ᶠ[𝓝 w] g) : |
| 664 | SlowStressSupport.axialOp h b f w = SlowStressSupport.axialOp h b g w := by |
| 665 | simp only [SlowStressSupport.axialOp, SlowStressSupport.dr, SlowStressSupport.de, |
| 666 | ProfileHistories.radialPartial, ProfileHistories.parameterPartial, |
| 667 | hfg.eq_of_nhds, hfg.fderiv_eq] |
| 668 | |
| 669 | theorem axialOp2_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 670 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 671 | SlowStressSupport.axialOp2 h b (toRadius f) w = Z2 h b f (radiusPoint w) := by |
| 672 | have he : SlowStressSupport.axialOp h b (toRadius f) =ᶠ[𝓝 w] toRadius (Z h b f) := by |
| 673 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 674 | filter_upwards [hh] with y hy |
| 675 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 676 | exact axialOp_toRadius h b (hy.differentiableAt (by norm_num)) |
| 677 | unfold SlowStressSupport.axialOp2 |
| 678 | rw [axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he, |
| 679 | axialOp_toRadius h (b - PositiveAxisSystem.dScale h) |
| 680 | ((SimilarityProfile.Z_smoothAt hf hL).differentiableAt (by norm_num))] |
| 681 | rfl |
| 682 | |
| 683 | theorem axialOp2_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 684 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 685 | SlowStressSupport.axialOp2 h b (swirlRadius C f) w = |
| 686 | w.1 / C * Z2 h (b - 1 / 2) f (radiusPoint w) := by |
| 687 | have he : SlowStressSupport.axialOp h b (swirlRadius C f) =ᶠ[𝓝 w] |
| 688 | swirlRadius C (Z h (b - 1 / 2) f) := by |
| 689 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 690 | filter_upwards [hh] with y hy |
| 691 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 692 | exact axialOp_swirlRadius h b C (hy.differentiableAt (by norm_num)) |
| 693 | unfold SlowStressSupport.axialOp2 |
| 694 | rw [axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he, |
| 695 | axialOp_swirlRadius h (b - PositiveAxisSystem.dScale h) C |
| 696 | ((SimilarityProfile.Z_smoothAt hf hL).differentiableAt (by norm_num))] |
| 697 | rw [show b - PositiveAxisSystem.dScale h - 1 / 2 = |
| 698 | b - 1 / 2 - CoordinateAlgebra.D h by |
| 699 | unfold PositiveAxisSystem.dScale CoordinateAlgebra.D; ring] |
| 700 | rfl |
| 701 | |
| 702 | theorem partialXX_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 703 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) : |
| 704 | partialX (partialX (swirlRadius C f)) w = |
| 705 | 3 * w.1 / C * partialX f (radiusPoint w) + |
| 706 | w.1 ^ 3 / C * partialX (partialX f) (radiusPoint w) := by |
| 707 | have he : partialX (swirlRadius C f) =ᶠ[𝓝 w] |
| 708 | (fun y => toRadius f y / C + y.1 ^ 2 / C * toRadius (partialX f) y) := by |
| 709 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 710 | filter_upwards [hh] with y hy |
| 711 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 712 | exact partialX_swirlRadius C (hy.differentiableAt (by norm_num)) |
| 713 | have hf' := hf.differentiableAt (by norm_num) |
| 714 | have hfx := (PositiveAxisSystem.partialX_contDiffAt hf).differentiableAt (by norm_num) |
| 715 | have hG : DifferentiableAt ℝ |
| 716 | (fun y : InnerPoint => toRadius f y / C + y.1 ^ 2 / C * toRadius (partialX f) y) w := by |
| 717 | simpa only [div_eq_mul_inv] using ((toRadius_differentiableAt hf').mul_const C⁻¹).fun_add |
| 718 | (((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 719 | differentiableAt_fst).fun_pow 2).mul_const C⁻¹ |>.fun_mul (toRadius_differentiableAt hfx)) |
| 720 | have hd := ((LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf')).div_const C).fun_add |
| 721 | ((((hasDerivAt_id w.1).fun_pow 2).div_const C).fun_mul |
| 722 | (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hfx))) |
| 723 | have hv := (LeadingStress.partialX_hasDerivAt hG).unique hd |
| 724 | change (fderiv ℝ (partialX (swirlRadius C f)) w) (1, 0) = _ |
| 725 | rw [he.fderiv_eq] |
| 726 | change partialX (fun y : InnerPoint => toRadius f y / C + |
| 727 | y.1 ^ 2 / C * toRadius (partialX f) y) w = _ |
| 728 | rw [hv, partialX_toRadius hf', partialX_toRadius hfx] |
| 729 | simp only [toRadius, id_eq, Nat.cast_ofNat, Nat.reduceSub, pow_one, mul_one] |
| 730 | ring |
| 731 | |
| 732 | /-- An explicit finite index for all omitted transport terms. `none` is |
| 733 | the last axial-viscosity coefficient. -/ |
| 734 | abbrev TailIndex := Option (ℕ × ℕ) |
| 735 | |
| 736 | noncomputable def transportIndices (N : ℕ) : Finset TailIndex := |
| 737 | insert none (((pairs N).filter (fun ij => N < ij.1 + ij.2)).image some) |
| 738 | |
| 739 | noncomputable def transportPower (N : ℕ) (h e : ℝ) : TailIndex → ℝ |
| 740 | | none => e - 1 + slowOrder h (N + 1) |
| 741 | | some ij => e - 1 + slowOrder h (ij.1 + ij.2) |
| 742 | |
| 743 | noncomputable def transportTerm (N : ℕ) (h e α : ℝ) |
| 744 | (v u f : ℕ → InnerProfile) : TailIndex → InnerProfile |
| 745 | | none => fun w => -Z2 h (e + slowOrder h N) (f N) w |
| 746 | | some ij => fun w => transportKernel h e α v u f w ij.1 ij.2 |
| 747 | |
| 748 | theorem mem_transportIndices_some (N : ℕ) (ij : ℕ × ℕ) : |
| 749 | some ij ∈ transportIndices N ↔ ij ∈ pairs N ∧ N < ij.1 + ij.2 := by |
| 750 | simp [transportIndices] |
| 751 | |
| 752 | /-- This equality is an identity of actual functions, suitable for taking |
| 753 | any fixed number of derivatives in q and the inner variables. -/ |
| 754 | theorem transportTail_eq_finite_monomials (N : ℕ) (q h e α : ℝ) |
| 755 | (v u f : ℕ → InnerProfile) (w : InnerPoint) : |
| 756 | transportTail N q h e α v u f w = |
| 757 | ∑ i ∈ transportIndices N, q ^ transportPower N h e i * transportTerm N h e α v u f i w := by |
| 758 | unfold transportIndices |
| 759 | rw [Finset.sum_insert (by simp), Finset.sum_image] |
| 760 | · simp only [transportPower, transportTerm] |
| 761 | change _ = _ + pairTail N (fun n => q ^ (e - 1 + slowOrder h n)) |
| 762 | (transportKernel h e α v u f w) |
| 763 | unfold transportTail transportKernel |
| 764 | ring |
| 765 | · intro i hi j hj he |
| 766 | exact Option.some.inj he |
| 767 | |
| 768 | theorem transportPower_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) (e : ℝ) |
| 769 | {i : TailIndex} (hi : i ∈ transportIndices N) : |
| 770 | e - 1 + slowOrder h (N + 1) ≤ transportPower N h e i := by |
| 771 | cases i with |
| 772 | | none => exact le_rfl |
| 773 | | some ij => |
| 774 | exact add_le_add_right (slowOrder_mono hh ((mem_transportIndices_some N ij).mp hi).2) _ |
| 775 | |
| 776 | theorem transportKernel_smoothAt (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 777 | (i j : ℕ) {w : InnerPoint} |
| 778 | (hv : ContDiffAt ℝ ∞ (v i) w) (hu : ContDiffAt ℝ ∞ (u i) w) |
| 779 | (hf : ContDiffAt ℝ ∞ (f j) w) (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 780 | ContDiffAt ℝ ∞ (fun y => transportKernel h e α v u f y i j) w := by |
| 781 | exact (hv.mul ((AxisSourceRegularity.partialX_smooth hf).add |
| 782 | ((contDiffAt_const.mul hf).div contDiffAt_fst hX))).add |
| 783 | (hu.mul (AxisSourceRegularity.Z_smooth h (e + slowOrder h j) hf hL)) |
| 784 | |
| 785 | theorem transportTerm_smoothOn {O : Set InnerPoint} (hO : IsOpen O) |
| 786 | (N : ℕ) (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 787 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (v j) O) |
| 788 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (u j) O) |
| 789 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f j) O) |
| 790 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) |
| 791 | {i : TailIndex} (hi : i ∈ transportIndices N) : |
| 792 | ContDiffOn ℝ ∞ (transportTerm N h e α v u f i) O := by |
| 793 | intro w hw |
| 794 | apply ContDiffAt.contDiffWithinAt |
| 795 | cases i with |
| 796 | | none => |
| 797 | exact (AxisSourceRegularity.Z2_smooth h (e + slowOrder h N) |
| 798 | ((hf N le_rfl).contDiffAt (hO.mem_nhds hw)) (hL w hw)).neg |
| 799 | | some ij => |
| 800 | have hij := (mem_transportIndices_some N ij).mp hi |
| 801 | have hj : ij.2 ≤ N := by |
| 802 | have := (Finset.mem_product.mp hij.1).2 |
| 803 | exact Nat.le_of_lt_succ (Finset.mem_range.mp this) |
| 804 | have hi' : ij.1 ≤ N := by |
| 805 | have := (Finset.mem_product.mp hij.1).1 |
| 806 | exact Nat.le_of_lt_succ (Finset.mem_range.mp this) |
| 807 | exact transportKernel_smoothAt h e α v u f ij.1 ij.2 |
| 808 | ((hv ij.1 hi').contDiffAt (hO.mem_nhds hw)) |
| 809 | ((hu ij.1 hi').contDiffAt (hO.mem_nhds hw)) |
| 810 | ((hf ij.2 hj).contDiffAt (hO.mem_nhds hw)) (hX w hw) (hL w hw) |
| 811 | |
| 812 | theorem transportCoefficient_smoothAt (h e α m : ℝ) |
| 813 | (v u f source : ℕ → InnerProfile) (n : ℕ) {w : InnerPoint} |
| 814 | (hv : ∀ j ≤ n, ContDiffAt ℝ ∞ (v j) w) |
| 815 | (hu : ∀ j ≤ n, ContDiffAt ℝ ∞ (u j) w) |
| 816 | (hf : ∀ j ≤ n, ContDiffAt ℝ ∞ (f j) w) |
| 817 | (hs : ContDiffAt ℝ ∞ (source n) w) |
| 818 | (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 819 | ContDiffAt ℝ ∞ (transportCoefficient h e α m v u f source n) w := by |
| 820 | have hx := AxisSourceRegularity.partialX_smooth (hf n le_rfl) |
| 821 | have hxx := AxisSourceRegularity.partialX_smooth hx |
| 822 | have hlin : ContDiffAt ℝ ∞ |
| 823 | (fun y => transportLinear y.1 m (fun j => T h (e + slowOrder h j) (f j) y) |
| 824 | (fun j => partialX (f j) y) (fun j => partialX (partialX (f j)) y) |
| 825 | (fun j => source j y) n) w := |
| 826 | ((AxisSourceRegularity.T_smooth h (e + slowOrder h n) (hf n le_rfl) hL).sub |
| 827 | (contDiffAt_const.mul ((contDiffAt_fst.mul hxx).add (contDiffAt_const.mul hx)))).add hs |
| 828 | have hc : ContDiffAt ℝ ∞ |
| 829 | (fun y => convolution (transportKernel h e α v u f y) n) w := by |
| 830 | apply ContDiffAt.sum |
| 831 | intro ij hij |
| 832 | have hi : ij.1 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 833 | have hj : ij.2 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 834 | exact transportKernel_smoothAt h e α v u f ij.1 ij.2 (hv ij.1 hi) (hu ij.1 hi) |
| 835 | (hf ij.2 hj) hX hL |
| 836 | have hp : ContDiffAt ℝ ∞ |
| 837 | (fun y => previous (fun j => Z2 h (e + slowOrder h j) (f j) y) n) w := by |
| 838 | cases n with |
| 839 | | zero => exact contDiffAt_const |
| 840 | | succ n => |
| 841 | exact AxisSourceRegularity.Z2_smooth h (e + slowOrder h n) (hf n (Nat.le_succ n)) hL |
| 842 | exact (hlin.add hc).sub hp |
| 843 | |
| 844 | abbrev PressureIndex := Sum TailIndex TailIndex |
| 845 | |
| 846 | noncomputable def pressureIndices (N : ℕ) : Finset PressureIndex := |
| 847 | ((transportIndices N).image Sum.inl) ∪ ((transportIndices N).image Sum.inr) |
| 848 | |
| 849 | noncomputable def pressurePower (N : ℕ) (h : ℝ) : PressureIndex → ℝ |
| 850 | | Sum.inl i => transportPower N h 0 i |
| 851 | | Sum.inr none => pressureExponent h + slowOrder h (N + 1) |
| 852 | | Sum.inr (some ij) => pressureExponent h + slowOrder h (ij.1 + ij.2) |
| 853 | |
| 854 | noncomputable def pressureTerm (N : ℕ) (h C : ℝ) (f : SlowProfiles) : PressureIndex → InnerProfile |
| 855 | | Sum.inl i => transportTerm N h 0 (-(1 / 2)) f.flux f.axial f.flux i |
| 856 | | Sum.inr none => omegaCoefficient h f N |
| 857 | | Sum.inr (some ij) => fun w => -(2 * w.1 * C⁻¹ ^ 2) * (f.phi ij.1 w * f.phi ij.2 w) |
| 858 | |
| 859 | theorem pressure_indices_disjoint (N : ℕ) : |
| 860 | Disjoint ((transportIndices N).image (Sum.inl : TailIndex → PressureIndex)) |
| 861 | ((transportIndices N).image Sum.inr) := by |
| 862 | apply Finset.disjoint_left.mpr |
| 863 | intro i hi hj |
| 864 | rcases Finset.mem_image.mp hi with ⟨a, ha, rfl⟩ |
| 865 | rcases Finset.mem_image.mp hj with ⟨b, hb, he⟩ |
| 866 | cases he |
| 867 | |
| 868 | theorem pressureTail_eq_finite_monomials (N : ℕ) (q h C : ℝ) |
| 869 | (f : SlowProfiles) (w : InnerPoint) : |
| 870 | pressureTail N q h C f w = |
| 871 | ∑ i ∈ pressureIndices N, q ^ pressurePower N h i * pressureTerm N h C f i w := by |
| 872 | unfold pressureIndices |
| 873 | rw [Finset.sum_union (pressure_indices_disjoint N), |
| 874 | Finset.sum_image (fun _ _ _ _ he => Sum.inl.inj he), |
| 875 | Finset.sum_image (fun _ _ _ _ he => Sum.inr.inj he)] |
| 876 | simp only [pressurePower, pressureTerm] |
| 877 | rw [← transportTail_eq_finite_monomials] |
| 878 | unfold transportIndices |
| 879 | rw [Finset.sum_insert (by simp), Finset.sum_image (fun _ _ _ _ he => Option.some.inj he)] |
| 880 | simp only [] |
| 881 | unfold pressureTail pairTail |
| 882 | rw [Finset.mul_sum] |
| 883 | have he : (∑ x ∈ {ij ∈ pairs N | N < ij.1 + ij.2}, |
| 884 | q ^ (pressureExponent h + slowOrder h (x.1 + x.2)) * |
| 885 | (-(2 * w.1 * C⁻¹ ^ 2) * (f.phi x.1 w * f.phi x.2 w))) = |
| 886 | -(∑ x ∈ {ij ∈ pairs N | N < ij.1 + ij.2}, |
| 887 | 2 * w.1 * C⁻¹ ^ 2 * |
| 888 | (q ^ (pressureExponent h + slowOrder h (x.1 + x.2)) * (f.phi x.1 w * f.phi x.2 w))) := by |
| 889 | rw [← Finset.sum_neg_distrib] |
| 890 | apply Finset.sum_congr rfl |
| 891 | intro i hi |
| 892 | ring |
| 893 | rw [he] |
| 894 | ring |
| 895 | |
| 896 | theorem pressurePower_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) |
| 897 | {i : PressureIndex} (hi : i ∈ pressureIndices N) : |
| 898 | pressureExponent h + slowOrder h (N + 1) ≤ pressurePower N h i := by |
| 899 | cases i with |
| 900 | | inl i => |
| 901 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 902 | refine le_trans ?_ (transportPower_lower hh N 0 hi') |
| 903 | unfold pressureExponent CoordinateAlgebra.A |
| 904 | linarith |
| 905 | | inr i => |
| 906 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 907 | cases i with |
| 908 | | none => exact le_rfl |
| 909 | | some ij => |
| 910 | exact add_le_add_right (slowOrder_mono hh ((mem_transportIndices_some N ij).mp hi').2) _ |
| 911 | |
| 912 | theorem pressureTerm_smoothOn {O : Set InnerPoint} (hO : IsOpen O) |
| 913 | (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 914 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.flux j) O) |
| 915 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.axial j) O) |
| 916 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.phi j) O) |
| 917 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) |
| 918 | {i : PressureIndex} (hi : i ∈ pressureIndices N) : |
| 919 | ContDiffOn ℝ ∞ (pressureTerm N h C f i) O := by |
| 920 | cases i with |
| 921 | | inl i => |
| 922 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 923 | exact transportTerm_smoothOn hO N h 0 (-(1/2)) f.flux f.axial f.flux hv hu hv hX hL hi' |
| 924 | | inr i => |
| 925 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 926 | cases i with |
| 927 | | none => |
| 928 | intro w hw |
| 929 | exact (transportCoefficient_smoothAt h 0 (-(1/2)) 0 f.flux f.axial f.flux (fun _ _ => 0) N |
| 930 | (fun j hj => (hv j hj).contDiffAt (hO.mem_nhds hw)) |
| 931 | (fun j hj => (hu j hj).contDiffAt (hO.mem_nhds hw)) |
| 932 | (fun j hj => (hv j hj).contDiffAt (hO.mem_nhds hw)) |
| 933 | contDiffAt_const (hX w hw) (hL w hw)).contDiffWithinAt |
| 934 | | some ij => |
| 935 | have hij := (mem_transportIndices_some N ij).mp hi' |
| 936 | have hiN : ij.1 ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp (Finset.mem_product.mp hij.1).1) |
| 937 | have hjN : ij.2 ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp (Finset.mem_product.mp hij.1).2) |
| 938 | exact (((contDiffOn_const.mul contDiffOn_fst).mul contDiffOn_const).neg).mul |
| 939 | ((hf ij.1 hiN).mul (hf ij.2 hjN)) |
| 940 | |
| 941 | /-- Division by the physical radial energy is converted to a single q |
| 942 | power and an ordinary smooth inner coefficient away from X=0. -/ |
| 943 | theorem radialTail_eq_finite_monomials {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 944 | (N : ℕ) (C : ℝ) (f : SlowProfiles) {p : PhysicalPoint} (hp : p.1 < 1) |
| 945 | (hs : 0 < p.2.1) : |
| 946 | pressureTail N (SimilarityProfile.q h p) h C f (SimilarityProfile.inner h p) / (2 * p.2.1) = |
| 947 | ∑ i ∈ pressureIndices N, |
| 948 | SimilarityProfile.q h p ^ (pressurePower N h i - 1) * |
| 949 | (pressureTerm N h C f i (SimilarityProfile.inner h p) / |
| 950 | (2 * (SimilarityProfile.inner h p).1)) := by |
| 951 | have hq := SimilarityProfile.q_pos hh hh1 hp |
| 952 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 953 | rw [pressureTail_eq_finite_monomials, Finset.sum_div] |
| 954 | apply Finset.sum_congr rfl |
| 955 | intro i hi |
| 956 | rw [Real.rpow_sub hq, Real.rpow_one, ← q_mul_X hh hh1 hp] |
| 957 | field_simp [hq.ne', hX.ne'] |
| 958 | |
| 959 | theorem common_tail_power_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) : |
| 960 | pressureExponent h - 1 + slowOrder h (N + 1) = 2 * (N : ℝ) * h - 2 ∧ |
| 961 | pressureExponent h - 1 + slowOrder h (N + 1) ≤ |
| 962 | angularExponent h - 1 + slowOrder h (N + 1) ∧ |
| 963 | pressureExponent h - 1 + slowOrder h (N + 1) ≤ |
| 964 | axialExponent h - 1 + slowOrder h (N + 1) := by |
| 965 | simp only [pressureExponent, angularExponent, axialExponent, CoordinateAlgebra.A, |
| 966 | slowOrder, Nat.cast_add, Nat.cast_one] |
| 967 | constructor |
| 968 | · ring |
| 969 | constructor <;> linarith |
| 970 | |
| 971 | theorem orderExponent_eq_axial (h : ℝ) (n : ℕ) : |
| 972 | SlowStressSupport.orderExponent h n = axialExponent h + slowOrder h n := rfl |
| 973 | |
| 974 | theorem orderExponent_sub_half (h : ℝ) (n : ℕ) : |
| 975 | SlowStressSupport.orderExponent h n - 1 / 2 = angularExponent h + slowOrder h n := by |
| 976 | unfold SlowStressSupport.orderExponent angularExponent PositiveAxisSystem.a CoordinateAlgebra.A |
| 977 | ring |
| 978 | |
| 979 | theorem previous_of_pos (a : ℕ → ℝ) {n : ℕ} (hn : 0 < n) : previous a n = a (n - 1) := by |
| 980 | cases n with |
| 981 | | zero => omega |
| 982 | | succ n => rfl |
| 983 | |
| 984 | theorem angular_radius_pair (h C : ℝ) (hC : C ≠ 0) (f : SlowProfiles) (i j : ℕ) |
| 985 | {w : InnerPoint} (hR : w.1 ≠ 0) |
| 986 | (hf : DifferentiableAt ℝ (f.phi j) (radiusPoint w)) : |
| 987 | w.1 * toRadius (f.flux i) w * partialX (swirlRadius C (f.phi j)) w + |
| 988 | toRadius (f.flux i) w * swirlRadius C (f.phi j) w + |
| 989 | w.1 ^ 2 * toRadius (f.axial i) w * |
| 990 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) (swirlRadius C (f.phi j)) w = |
| 991 | w.1 ^ 3 / C * transportKernel h (angularExponent h) 1 f.flux f.axial f.phi |
| 992 | (radiusPoint w) i j := by |
| 993 | rw [partialX_swirlRadius C hf, axialOp_swirlRadius h _ C hf, orderExponent_sub_half] |
| 994 | simp only [toRadius, swirlRadius, transportKernel, transportPair, one_mul, radiusPoint] |
| 995 | field_simp [hC, hR] ; ring |
| 996 | |
| 997 | theorem axial_radius_pair (h : ℝ) (f : SlowProfiles) (i j : ℕ) |
| 998 | {w : InnerPoint} (hf : DifferentiableAt ℝ (f.axial j) (radiusPoint w)) : |
| 999 | toRadius (f.flux i) w * partialX (toRadius (f.axial j)) w + |
| 1000 | w.1 * toRadius (f.axial i) w * |
| 1001 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) (toRadius (f.axial j)) w = |
| 1002 | w.1 * transportKernel h (axialExponent h) 0 f.flux f.axial f.axial |
| 1003 | (radiusPoint w) i j := by |
| 1004 | rw [partialX_toRadius hf, axialOp_toRadius h _ hf, orderExponent_eq_axial] |
| 1005 | simp only [toRadius, transportKernel, transportPair, zero_mul, zero_div, add_zero] |
| 1006 | ring |
| 1007 | |
| 1008 | /-- The canonical R-coordinate weighted angular residual is exactly the |
| 1009 | coefficient used by the finite Cartesian expansion. -/ |
| 1010 | theorem angularWeighted_eq_thetaDensity (h C : ℝ) (hC : C ≠ 0) |
| 1011 | (f : SlowProfiles) {n : ℕ} (hn : 0 < n) {w : InnerPoint} (hR : w.1 ≠ 0) |
| 1012 | (hf : ∀ j ≤ n, ContDiffAt ℝ 2 (f.phi j) (radiusPoint w)) |
| 1013 | (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1014 | SlowStressSupport.angularWeighted h n (fun j => toRadius (f.flux j)) |
| 1015 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j)) w = |
| 1016 | thetaDensity h C f n w := by |
| 1017 | have hsum : (∑ j ∈ Finset.range (n + 1), |
| 1018 | (w.1 * toRadius (f.flux j) w * partialX (swirlRadius C (f.phi (n-j))) w + |
| 1019 | toRadius (f.flux j) w * swirlRadius C (f.phi (n-j)) w + |
| 1020 | w.1 ^ 2 * toRadius (f.axial j) w * |
| 1021 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h (n-j)) |
| 1022 | (swirlRadius C (f.phi (n-j))) w)) = |
| 1023 | w.1 ^ 3 / C * convolution |
| 1024 | (transportKernel h (angularExponent h) 1 f.flux f.axial f.phi (radiusPoint w)) n := by |
| 1025 | rw [convolution_eq_positiveAxis] |
| 1026 | unfold PositiveAxisSystem.convolution |
| 1027 | rw [Finset.mul_sum] |
| 1028 | apply Finset.sum_congr rfl |
| 1029 | intro j hj |
| 1030 | exact angular_radius_pair h C hC f j (n-j) hR |
| 1031 | ((hf (n-j) (Nat.sub_le _ _)).differentiableAt (by norm_num)) |
| 1032 | unfold SlowStressSupport.angularWeighted |
| 1033 | simp only [show SlowStressSupport.dr = partialX from rfl] |
| 1034 | change w.1 ^ 2 * SlowStressSupport.timeOp h (SlowStressSupport.orderExponent h n) |
| 1035 | (swirlRadius C (f.phi n)) w + _ - |
| 1036 | (w.1 ^ 2 * partialX (partialX (swirlRadius C (f.phi n))) w + |
| 1037 | w.1 * partialX (swirlRadius C (f.phi n)) w - swirlRadius C (f.phi n) w) - _ = _ |
| 1038 | rw [hsum, timeOp_swirlRadius h _ C ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1039 | partialXX_swirlRadius C (hf n le_rfl), partialX_swirlRadius C |
| 1040 | ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1041 | axialOp2_swirlRadius h _ C (hf (n-1) (Nat.sub_le _ _)) hL, |
| 1042 | orderExponent_sub_half, orderExponent_sub_half] |
| 1043 | simp only [thetaDensity, angularCoefficient, transportCoefficient, recurrence, transportLinear, |
| 1044 | previous_of_pos _ hn, add_zero] |
| 1045 | simp only [swirlRadius, toRadius, radiusPoint, transportKernel] |
| 1046 | ring |
| 1047 | |
| 1048 | /-- The canonical weighted axial residual uses the same pressure derivative |
| 1049 | and preceding viscosity as the finite Cartesian expansion. -/ |
| 1050 | theorem axialWeighted_eq_zDensity (h : ℝ) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1051 | {w : InnerPoint} (hf : ∀ j ≤ n, ContDiffAt ℝ 2 (f.axial j) (radiusPoint w)) |
| 1052 | (hp : DifferentiableAt ℝ (f.pressure n) (radiusPoint w)) |
| 1053 | (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1054 | SlowStressSupport.axialWeighted h n (fun j => toRadius (f.flux j)) |
| 1055 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n)) w = zDensity h f n w := by |
| 1056 | have hsum : (∑ j ∈ Finset.range (n+1), |
| 1057 | (toRadius (f.flux j) w * partialX (toRadius (f.axial (n-j))) w + |
| 1058 | w.1 * toRadius (f.axial j) w * SlowStressSupport.axialOp h |
| 1059 | (SlowStressSupport.orderExponent h (n-j)) (toRadius (f.axial (n-j))) w)) = |
| 1060 | w.1 * convolution |
| 1061 | (transportKernel h (axialExponent h) 0 f.flux f.axial f.axial (radiusPoint w)) n := by |
| 1062 | rw [convolution_eq_positiveAxis] |
| 1063 | unfold PositiveAxisSystem.convolution |
| 1064 | rw [Finset.mul_sum] |
| 1065 | apply Finset.sum_congr rfl |
| 1066 | intro j hj |
| 1067 | exact axial_radius_pair h f j (n-j) |
| 1068 | ((hf (n-j) (Nat.sub_le _ _)).differentiableAt (by norm_num)) |
| 1069 | unfold SlowStressSupport.axialWeighted |
| 1070 | simp only [show SlowStressSupport.dr = partialX from rfl] |
| 1071 | change w.1 * SlowStressSupport.timeOp h (SlowStressSupport.orderExponent h n) |
| 1072 | (toRadius (f.axial n)) w + _ + _ - |
| 1073 | (w.1 * partialX (partialX (toRadius (f.axial n))) w + |
| 1074 | partialX (toRadius (f.axial n)) w) - _ = _ |
| 1075 | rw [hsum, timeOp_toRadius h _ ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1076 | partialXX_toRadius (hf n le_rfl), partialX_toRadius |
| 1077 | ((hf n le_rfl).differentiableAt (by norm_num)), axialOp_toRadius h _ hp, |
| 1078 | axialOp2_toRadius h _ (hf (n-1) (Nat.sub_le _ _)) hL, |
| 1079 | orderExponent_eq_axial, orderExponent_eq_axial] |
| 1080 | simp only [zDensity, axialCoefficient, transportCoefficient, recurrence, transportLinear, |
| 1081 | previous_of_pos _ hn, axialPressureSource] |
| 1082 | simp only [radiusPoint, transportKernel] |
| 1083 | change _ = w.1 * (T h (axialExponent h + slowOrder h n) (f.axial n) (radiusPoint w) - |
| 1084 | 2 * (w.1^2 / 2 * partialX (partialX (f.axial n)) (radiusPoint w) + |
| 1085 | 1 * partialX (f.axial n) (radiusPoint w)) + |
| 1086 | Z h (pressureExponent h + slowOrder h n) (f.pressure n) (radiusPoint w) + _ - _) |
| 1087 | simp only [radiusPoint, SlowStressSupport.pressureExponent, pressureExponent, |
| 1088 | PositiveAxisSystem.a, CoordinateAlgebra.A] |
| 1089 | ring |
| 1090 | |
| 1091 | theorem partialX_toRadius_zero {f : InnerProfile} {eta : ℝ} |
| 1092 | (hf : DifferentiableAt ℝ (toRadius f) (0, eta)) : partialX (toRadius f) (0, eta) = 0 := by |
| 1093 | have he : Function.Even (fun R => toRadius f (R, eta)) := by |
| 1094 | intro R |
| 1095 | simp [toRadius, radiusPoint] |
| 1096 | exact (LeadingStress.partialX_hasDerivAt hf).deriv.symm.trans |
| 1097 | (EvenSmoothDescent.deriv_zero_of_even he) |
| 1098 | |
| 1099 | /-- The primitive source is the canonical conservative density, including |
| 1100 | the axis. At the axis the equality uses the actual radial parity. -/ |
| 1101 | theorem thetaDensity_eq_angularDensity {S : Set ℝ} (hS : IsOpen S) |
| 1102 | (h C : ℝ) (hC : C ≠ 0) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1103 | (hv : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.flux j))) |
| 1104 | (hu : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.axial j))) |
| 1105 | (he : ∀ j ≤ n, SlowStressSupport.Smooth S (swirlRadius C (f.phi j))) |
| 1106 | (hf : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → ∀ j ≤ n, |
| 1107 | ContDiffAt ℝ 2 (f.phi j) (radiusPoint w)) |
| 1108 | (hL : ∀ eta ∈ S, CoordinateAlgebra.L h eta ≠ 0) |
| 1109 | (hdiv : ∀ w : InnerPoint, w.2 ∈ S → ∀ j ≤ n, |
| 1110 | SlowStressSupport.dr (toRadius (f.flux j)) w = |
| 1111 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) |
| 1112 | (toRadius (f.axial j)) w) : |
| 1113 | EqOn (thetaDensity h C f n) |
| 1114 | (SlowStressSupport.angularDensity h n (fun j => toRadius (f.flux j)) |
| 1115 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j))) |
| 1116 | (SlowStressSupport.region S) := by |
| 1117 | intro w hw |
| 1118 | rw [← SlowStressSupport.angularWeighted_eq_density hS hv hu he h hw.2 (hdiv w hw.2)] |
| 1119 | by_cases hR : w.1 = 0 |
| 1120 | · simp [thetaDensity, SlowStressSupport.angularWeighted, swirlRadius, hR] |
| 1121 | · exact (angularWeighted_eq_thetaDensity h C hC f hn hR (hf w hw.2 hR) (hL w.2 hw.2)).symm |
| 1122 | |
| 1123 | theorem zDensity_eq_axialDensity {S : Set ℝ} (hS : IsOpen S) |
| 1124 | (h : ℝ) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1125 | (hv : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.flux j))) |
| 1126 | (hu : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.axial j))) |
| 1127 | (hp : SlowStressSupport.Smooth S (toRadius (f.pressure n))) |
| 1128 | (hf : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → ∀ j ≤ n, |
| 1129 | ContDiffAt ℝ 2 (f.axial j) (radiusPoint w)) |
| 1130 | (hp' : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → |
| 1131 | DifferentiableAt ℝ (f.pressure n) (radiusPoint w)) |
| 1132 | (hL : ∀ eta ∈ S, CoordinateAlgebra.L h eta ≠ 0) |
| 1133 | (hdiv : ∀ w : InnerPoint, w.2 ∈ S → ∀ j ≤ n, |
| 1134 | SlowStressSupport.dr (toRadius (f.flux j)) w = |
| 1135 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) |
| 1136 | (toRadius (f.axial j)) w) : |
| 1137 | EqOn (zDensity h f n) |
| 1138 | (SlowStressSupport.axialDensity h n (fun j => toRadius (f.flux j)) |
| 1139 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n))) |
| 1140 | (SlowStressSupport.region S) := by |
| 1141 | intro w hw |
| 1142 | rw [← SlowStressSupport.axialWeighted_eq_density hS hv hu hp h hw.2 (hdiv w hw.2)] |
| 1143 | by_cases hR : w.1 = 0 |
| 1144 | · have hdz : ∀ j ≤ n, SlowStressSupport.dr (toRadius (f.axial j)) w = 0 := by |
| 1145 | intro j hj |
| 1146 | have hw' : w = (0, w.2) := by ext <;> simp [hR] |
| 1147 | rw [hw'] |
| 1148 | exact partialX_toRadius_zero (((hu j hj).contDiffAt (x := (0, w.2)) |
| 1149 | ((isOpen_univ.prod hS).mem_nhds ⟨mem_univ _, hw.2⟩)).differentiableAt (by simp)) |
| 1150 | simp only [zDensity, hR, zero_mul, SlowStressSupport.axialWeighted, add_zero, zero_add, sub_zero, hdz n le_rfl] |
| 1151 | symm |
| 1152 | apply Finset.sum_eq_zero |
| 1153 | intro j hj |
| 1154 | rw [hdz (n-j) (Nat.sub_le _ _), mul_zero] |
| 1155 | · exact (axialWeighted_eq_zDensity h f hn (hf w hw.2 hR) (hp' w hw.2 hR) (hL w.2 hw.2)).symm |
| 1156 | |
| 1157 | theorem primitive_stress_congr_slice (m : ℕ) {F G : InnerProfile} {R eta : ℝ} |
| 1158 | (hFG : ∀ r : ℝ, F (r, eta) = G (r, eta)) : |
| 1159 | SlowStressSupport.stress m F (R, eta) = SlowStressSupport.stress m G (R, eta) := by |
| 1160 | have hp : ProfileHistories.primitive F (R, eta) = ProfileHistories.primitive G (R, eta) := |
| 1161 | intervalIntegral.integral_congr (fun r _ => hFG r) |
| 1162 | simp only [SlowStressSupport.stress, hp] |
| 1163 | |
| 1164 | theorem inner_smoothAt_of_radial {S : Set ℝ} (hS : IsOpen S) {F E : InnerProfile} |
| 1165 | (hF : SlowStressSupport.Smooth S F) |
| 1166 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ S, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1167 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : ContDiffAt ℝ ∞ E w := by |
| 1168 | have hs := fromRadius_smoothAt hX ((hF.contDiffAt |
| 1169 | ((isOpen_univ.prod hS).mem_nhds (show (Real.sqrt (2 * w.1), w.2) ∈ SlowStressSupport.region S from |
| 1170 | ⟨mem_univ _, heta⟩)))) |
| 1171 | apply hs.congr_of_eventuallyEq |
| 1172 | filter_upwards [(isOpen_Ioi.prod hS).mem_nhds ⟨hX, heta⟩] with y hy |
| 1173 | have hyX : 0 < y.1 := hy.1 |
| 1174 | have hyR : 0 < Real.sqrt (2 * y.1) := Real.sqrt_pos.2 (by positivity) |
| 1175 | have hr2 := Real.sq_sqrt (show 0 ≤ 2 * y.1 by positivity) |
| 1176 | have hval := hFE (Real.sqrt (2 * y.1)) hyR y.2 hy.2 |
| 1177 | have hpoint : (Real.sqrt (2 * y.1) ^ 2 / 2, y.2) = y := by |
| 1178 | rw [hr2] |
| 1179 | ext <;> simp |
| 1180 | rw [hpoint] at hval |
| 1181 | exact hval.symm |
| 1182 | |
| 1183 | theorem axialOp2_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 1184 | (hfg : f =ᶠ[𝓝 w] g) : |
| 1185 | SlowStressSupport.axialOp2 h b f w = SlowStressSupport.axialOp2 h b g w := by |
| 1186 | have he : SlowStressSupport.axialOp h b f =ᶠ[𝓝 w] SlowStressSupport.axialOp h b g := by |
| 1187 | filter_upwards [hfg.eventuallyEq_nhds] with y hy |
| 1188 | exact axialOp_congr_germ h b hy |
| 1189 | exact axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he |
| 1190 | |
| 1191 | theorem axialOp2_radial_eq_Z2 {S : Set ℝ} (hS : IsOpen S) (h b : ℝ) |
| 1192 | {F E : InnerProfile} (hF : SlowStressSupport.Smooth S F) |
| 1193 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ S, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1194 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1195 | SlowStressSupport.axialOp2 h b F w = Z2 h b E (radiusPoint w) := by |
| 1196 | have he : F =ᶠ[𝓝 w] toRadius E := by |
| 1197 | filter_upwards [(isOpen_Ioi.prod hS).mem_nhds ⟨hR, heta⟩] with y hy |
| 1198 | exact hFE y.1 hy.1 y.2 hy.2 |
| 1199 | rw [axialOp2_congr_germ h b he] |
| 1200 | exact axialOp2_toRadius h b |
| 1201 | ((inner_smoothAt_of_radial hS hF hFE (w := radiusPoint w) |
| 1202 | (by dsimp [radiusPoint]; positivity) heta).of_le |
| 1203 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) hL |
| 1204 | |
| 1205 | theorem deriv_deriv_pullback_z {h b : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1206 | {f : InnerProfile} {p : PhysicalPoint} (hp : p.1 < 1) |
| 1207 | (hf : ContDiffAt ℝ 2 f (SimilarityProfile.inner h p)) : |
| 1208 | deriv (deriv (fun z => pullback h b f (p.1, (p.2.1, z)))) p.2.2 = |
| 1209 | pullback h (b - 2 * CoordinateAlgebra.D h) (Z2 h b f) p := by |
| 1210 | have hc : ContinuousAt (fun z : ℝ => (p.1, (p.2.1, z))) p.2.2 := |
| 1211 | continuousAt_const.prodMk (continuousAt_const.prodMk continuousAt_id) |
| 1212 | have he : deriv (fun z => pullback h b f (p.1, (p.2.1, z))) =ᶠ[𝓝 p.2.2] |
| 1213 | (fun z => pullback h (b - CoordinateAlgebra.D h) (Z h b f) (p.1, (p.2.1, z))) := by |
| 1214 | have hlocal := hc.eventually (SimilarityProfile.eventually_C2_inner hh hh1 hp hf) |
| 1215 | filter_upwards [hlocal] with z hz |
| 1216 | exact (SimilarityProfile.hasDerivAt_pullback_z hh hh1 |
| 1217 | (p := (p.1, (p.2.1, z))) hp (hz.differentiableAt (by norm_num))).deriv |
| 1218 | rw [he.deriv_eq] |
| 1219 | have hd := (SimilarityProfile.hasDerivAt_pullback_z hh hh1 hp |
| 1220 | ((SimilarityProfile.Z_smoothAt (b := b) hf (SimilarityProfile.L_pos hh hh1 hp).ne').differentiableAt (by norm_num)) |
| 1221 | (b := b - CoordinateAlgebra.D h)).deriv |
| 1222 | rw [show b - CoordinateAlgebra.D h - CoordinateAlgebra.D h = |
| 1223 | b - 2 * CoordinateAlgebra.D h by ring] at hd |
| 1224 | exact hd |
| 1225 | |
| 1226 | /-- At the normalized physical point q=1, the literal second axial |
| 1227 | derivative is exactly the canonical R-coordinate operator. -/ |
| 1228 | theorem normalized_axial_viscosity {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1229 | {F E : InnerProfile} (hF : SlowStressSupport.Smooth (Ioo (-1) 1) F) |
| 1230 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1231 | {eta R : ℝ} (heta : eta ∈ Ioo (-1 : ℝ) 1) (hR : 0 < R) : |
| 1232 | deriv (deriv (RenormalizedHeatMoment.uTheta h E (eta ^ 2) R)) eta = |
| 1233 | SlowStressSupport.axialOp2 h (-CoordinateAlgebra.A h) F (R, eta) := by |
| 1234 | obtain ⟨ht, hq, he⟩ := RenormalizedHeatMoment.normalized_coordinates hh hh1 heta |
| 1235 | let p : PhysicalPoint := (eta ^ 2, (R ^ 2 / 2, eta)) |
| 1236 | have hqp : SimilarityProfile.q h p = 1 := hq |
| 1237 | have hep : SimilarityProfile.eta h p = eta := he |
| 1238 | have hip : SimilarityProfile.inner h p = radiusPoint (R, eta) := by |
| 1239 | ext <;> simp [SimilarityProfile.inner, SimilarityProfile.X, hqp, hep, radiusPoint, p] |
| 1240 | have hL : CoordinateAlgebra.L h eta ≠ 0 := by |
| 1241 | have hl := (SimilarityProfile.L_pos hh hh1 (p := p) ht).ne' |
| 1242 | rwa [hep] at hl |
| 1243 | have hE := inner_smoothAt_of_radial isOpen_Ioo hF hFE |
| 1244 | (w := radiusPoint (R, eta)) (by dsimp [radiusPoint]; positivity) heta |
| 1245 | have hE2 : ContDiffAt ℝ 2 E (SimilarityProfile.inner h p) := by |
| 1246 | rw [hip] |
| 1247 | exact hE.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) |
| 1248 | rw [axialOp2_radial_eq_Z2 isOpen_Ioo h (-CoordinateAlgebra.A h) hF hFE hR heta hL] |
| 1249 | have hfun : RenormalizedHeatMoment.uTheta h E (eta ^ 2) R = |
| 1250 | fun z => pullback h (-CoordinateAlgebra.A h) E (p.1, (p.2.1, z)) := |
| 1251 | funext (RenormalizedHeatMoment.uTheta_eq_similarity_pullback h E (eta ^ 2) R) |
| 1252 | rw [hfun, deriv_deriv_pullback_z hh hh1 (p := p) ht hE2] |
| 1253 | simp only [pullback, hqp, hip, Real.one_rpow, one_mul] |
| 1254 | |
| 1255 | end NavierStokes.SlowResidualMatching |