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 positiveOrder_pressure_coefficient (h C : ℝ) |
| 153 | (phi axial beta pressure : ℕ → InnerProfile) (k : InnerProfile) (n : ℕ) |
| 154 | {w : InnerPoint} (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) |
| 155 | (hb : ∀ j < n, ContDiffAt ℝ 2 (beta j) w) |
| 156 | (he : PositiveAxisSystem.PositiveOrderEquations h C w.2 w.1 n |
| 157 | (fun j => PositiveAxisSystem.actualJet (phi j) w) |
| 158 | (fun j => PositiveAxisSystem.actualJet (axial j) w) (fun j => beta j w) |
| 159 | (PositiveAxisSystem.actualJet k w) (PositiveAxisSystem.actualJet (pressure n) w) |
| 160 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.angularPower h) phi n w) |
| 161 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.axialPower h) axial n w) |
| 162 | (AxisSourceRegularity.previousOmegaDivX h axial beta n w)) : |
| 163 | pressureCoefficient h C (ofBeta phi axial beta pressure) n w = 0 := by |
| 164 | apply (pressureCoefficient_eq_zero_iff h C _ n w).2 |
| 165 | have hp := previousOmega_ofBeta h phi axial beta pressure n w hX hL hb |
| 166 | have hd : previous (fun j => omegaCoefficient h (ofBeta phi axial beta pressure) j w) n / |
| 167 | (2 * w.1) = AxisSourceRegularity.previousOmegaDivX h axial beta n w / 2 := by |
| 168 | rw [← hp] |
| 169 | ring |
| 170 | rw [hd] |
| 171 | dsimp only [ofBeta] |
| 172 | rw [convolution_eq_positiveAxis] |
| 173 | simpa only [PositiveAxisSystem.actualJet, PositiveAxisSystem.inverseSquare, inv_pow] using he.2.1 |
| 174 | |
| 175 | theorem partialX_congr_germ {f g : InnerProfile} {w : InnerPoint} |
| 176 | (hfg : f =ᶠ[𝓝 w] g) : partialX f =ᶠ[𝓝 w] partialX g := by |
| 177 | filter_upwards [hfg.fderiv (𝕜 := ℝ)] with y hy |
| 178 | exact congrArg (fun L => L (1, 0)) hy |
| 179 | |
| 180 | theorem Z_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 181 | (hfg : f =ᶠ[𝓝 w] g) : Z h b f =ᶠ[𝓝 w] Z h b g := by |
| 182 | filter_upwards [hfg.eventuallyEq_nhds] with y hy |
| 183 | exact AxisSourceRegularity.Z_congr_germ h b hy |
| 184 | |
| 185 | theorem Z2_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 186 | (hfg : f =ᶠ[𝓝 w] g) : Z2 h b f w = Z2 h b g w := |
| 187 | AxisSourceRegularity.Z_congr_germ h (b - CoordinateAlgebra.D h) (Z_congr_germ h b hfg) |
| 188 | |
| 189 | theorem T_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 190 | (hfg : f =ᶠ[𝓝 w] g) : T h b f w = T h b g w := by |
| 191 | simp only [T, CoordinateAlgebra.timeCoeff, partialX, partialEta, |
| 192 | hfg.eq_of_nhds, hfg.fderiv_eq] |
| 193 | |
| 194 | /-- A finite residual coefficient depends only on the germs of the |
| 195 | coefficients through its own order. No global equality is required. -/ |
| 196 | theorem transportCoefficient_congr_germ (h e α m : ℝ) |
| 197 | {v u f s v' u' f' s' : ℕ → InnerProfile} (n : ℕ) {w : InnerPoint} |
| 198 | (hv : ∀ j ≤ n, v j =ᶠ[𝓝 w] v' j) (hu : ∀ j ≤ n, u j =ᶠ[𝓝 w] u' j) |
| 199 | (hf : ∀ j ≤ n, f j =ᶠ[𝓝 w] f' j) (hs : s n w = s' n w) : |
| 200 | transportCoefficient h e α m v u f s n w = |
| 201 | transportCoefficient h e α m v' u' f' s' n w := by |
| 202 | have hlin : |
| 203 | transportLinear w.1 m (fun j => T h (e + slowOrder h j) (f j) w) |
| 204 | (fun j => partialX (f j) w) (fun j => partialX (partialX (f j)) w) |
| 205 | (fun j => s j w) n = |
| 206 | transportLinear w.1 m (fun j => T h (e + slowOrder h j) (f' j) w) |
| 207 | (fun j => partialX (f' j) w) (fun j => partialX (partialX (f' j)) w) |
| 208 | (fun j => s' j w) n := by |
| 209 | simp only [transportLinear, T_congr_germ h (e + slowOrder h n) (hf n le_rfl), |
| 210 | (partialX_congr_germ (hf n le_rfl)).eq_of_nhds, |
| 211 | (partialX_congr_germ (partialX_congr_germ (hf n le_rfl))).eq_of_nhds, hs] |
| 212 | have hconv : |
| 213 | convolution (transportPair w.1 α (fun j => v j w) (fun j => u j w) |
| 214 | (fun j => f j w) (fun j => partialX (f j) w) |
| 215 | (fun j => Z h (e + slowOrder h j) (f j) w)) n = |
| 216 | convolution (transportPair w.1 α (fun j => v' j w) (fun j => u' j w) |
| 217 | (fun j => f' j w) (fun j => partialX (f' j) w) |
| 218 | (fun j => Z h (e + slowOrder h j) (f' j) w)) n := by |
| 219 | apply Finset.sum_congr rfl |
| 220 | intro ij hij |
| 221 | have hi : ij.1 ≤ n := Nat.le.intro (Finset.mem_antidiagonal.mp hij) |
| 222 | have hj : ij.2 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 223 | simp only [transportPair, (hv ij.1 hi).eq_of_nhds, (hu ij.1 hi).eq_of_nhds, |
| 224 | (hf ij.2 hj).eq_of_nhds, (partialX_congr_germ (hf ij.2 hj)).eq_of_nhds, |
| 225 | (Z_congr_germ h (e + slowOrder h ij.2) (hf ij.2 hj)).eq_of_nhds] |
| 226 | have hprev : previous (fun j => Z2 h (e + slowOrder h j) (f j) w) n = |
| 227 | previous (fun j => Z2 h (e + slowOrder h j) (f' j) w) n := by |
| 228 | cases n with |
| 229 | | zero => rfl |
| 230 | | succ n => exact Z2_congr_germ h (e + slowOrder h n) (hf n (Nat.le_succ n)) |
| 231 | exact congrArg₂ Sub.sub (congrArg₂ Add.add hlin hconv) hprev |
| 232 | |
| 233 | theorem angularCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 234 | (n : ℕ) {w : InnerPoint} |
| 235 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 236 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) |
| 237 | (hf : ∀ j ≤ n, f.phi j =ᶠ[𝓝 w] g.phi j) : |
| 238 | angularCoefficient h f n w = angularCoefficient h g n w := |
| 239 | transportCoefficient_congr_germ h (angularExponent h) 1 2 n hv hu hf rfl |
| 240 | |
| 241 | theorem axialCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 242 | (n : ℕ) {w : InnerPoint} |
| 243 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 244 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) |
| 245 | (hp : f.pressure n =ᶠ[𝓝 w] g.pressure n) : |
| 246 | axialCoefficient h f n w = axialCoefficient h g n w := |
| 247 | transportCoefficient_congr_germ h (axialExponent h) 0 1 n hv hu hu |
| 248 | ((Z_congr_germ h (pressureExponent h + slowOrder h n) hp).eq_of_nhds) |
| 249 | |
| 250 | theorem omegaCoefficient_congr_germ (h : ℝ) {f g : SlowProfiles} |
| 251 | (n : ℕ) {w : InnerPoint} |
| 252 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 w] g.flux j) |
| 253 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 w] g.axial j) : |
| 254 | omegaCoefficient h f n w = omegaCoefficient h g n w := |
| 255 | transportCoefficient_congr_germ h 0 (-(1 / 2)) 0 n hv hu hv rfl |
| 256 | |
| 257 | /-- Monotonicity of slow orders is the precise reason every omitted pair |
| 258 | has at least the next power of q. -/ |
| 259 | theorem slowOrder_mono {h : ℝ} (hh : 0 ≤ h) : Monotone (slowOrder h) := by |
| 260 | intro i j hij |
| 261 | unfold slowOrder |
| 262 | exact mul_le_mul_of_nonneg_right (by exact_mod_cast (Nat.mul_le_mul_left 2 hij)) hh |
| 263 | |
| 264 | noncomputable def pairTailSize (N : ℕ) (K : ℕ → ℕ → ℝ) : ℝ := |
| 265 | ∑ ij ∈ (pairs N).filter (fun ij => N < ij.1 + ij.2), |K ij.1 ij.2| |
| 266 | |
| 267 | theorem pairTailSize_nonneg (N : ℕ) (K : ℕ → ℕ → ℝ) : 0 ≤ pairTailSize N K := |
| 268 | Finset.sum_nonneg (fun _ _ => abs_nonneg _) |
| 269 | |
| 270 | theorem pairTail_bound {q h : ℝ} (hq : 0 < q) (hq1 : q ≤ 1) (hh : 0 ≤ h) |
| 271 | (N : ℕ) (b : ℝ) (K : ℕ → ℕ → ℝ) : |
| 272 | |pairTail N (fun n => q ^ (b + slowOrder h n)) K| ≤ |
| 273 | pairTailSize N K * q ^ (b + slowOrder h (N + 1)) := by |
| 274 | unfold pairTail pairTailSize |
| 275 | calc |
| 276 | _ ≤ ∑ ij ∈ (pairs N).filter (fun ij => N < ij.1 + ij.2), |
| 277 | |q ^ (b + slowOrder h (ij.1 + ij.2)) * K ij.1 ij.2| := |
| 278 | Finset.abs_sum_le_sum_abs _ _ |
| 279 | _ ≤ ∑ ij ∈ (pairs N).filter (fun ij => N < ij.1 + ij.2), |
| 280 | |K ij.1 ij.2| * q ^ (b + slowOrder h (N + 1)) := by |
| 281 | apply Finset.sum_le_sum |
| 282 | intro ij hij |
| 283 | rw [abs_mul, abs_of_pos (Real.rpow_pos_of_pos hq _), mul_comm] |
| 284 | apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) |
| 285 | apply Real.rpow_le_rpow_of_exponent_ge hq hq1 |
| 286 | exact add_le_add_right (slowOrder_mono hh (Finset.mem_filter.mp hij).2) b |
| 287 | _ = _ := (Finset.sum_mul _ _ _).symm |
| 288 | |
| 289 | noncomputable def transportKernel (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 290 | (w : InnerPoint) : ℕ → ℕ → ℝ := |
| 291 | transportPair w.1 α (fun j => v j w) (fun j => u j w) (fun j => f j w) |
| 292 | (fun j => partialX (f j) w) (fun j => Z h (e + slowOrder h j) (f j) w) |
| 293 | |
| 294 | noncomputable def transportTailSize (N : ℕ) (h e α : ℝ) |
| 295 | (v u f : ℕ → InnerProfile) (w : InnerPoint) : ℝ := |
| 296 | pairTailSize N (transportKernel h e α v u f w) + |
| 297 | |Z2 h (e + slowOrder h N) (f N) w| |
| 298 | |
| 299 | theorem transportTailSize_nonneg (N : ℕ) (h e α : ℝ) |
| 300 | (v u f : ℕ → InnerProfile) (w : InnerPoint) : |
| 301 | 0 ≤ transportTailSize N h e α v u f w := |
| 302 | add_nonneg (pairTailSize_nonneg _ _) (abs_nonneg _) |
| 303 | |
| 304 | /-- Both the omitted quadratic interactions and the last axial viscosity |
| 305 | are bounded, with their true next-order power. -/ |
| 306 | theorem transportTail_bound {q h : ℝ} (hq : 0 < q) (hq1 : q ≤ 1) (hh : 0 ≤ h) |
| 307 | (N : ℕ) (e α : ℝ) (v u f : ℕ → InnerProfile) (w : InnerPoint) : |
| 308 | |transportTail N q h e α v u f w| ≤ |
| 309 | transportTailSize N h e α v u f w * q ^ (e - 1 + slowOrder h (N + 1)) := by |
| 310 | change |pairTail N (fun n => q ^ (e - 1 + slowOrder h n)) |
| 311 | (transportKernel h e α v u f w) - |
| 312 | q ^ (e - 1 + slowOrder h (N + 1)) * Z2 h (e + slowOrder h N) (f N) w| ≤ _ |
| 313 | refine (abs_sub _ _).trans ?_ |
| 314 | rw [abs_mul, abs_of_pos (Real.rpow_pos_of_pos hq _)] |
| 315 | have hb := pairTail_bound hq hq1 hh N (e - 1) (transportKernel h e α v u f w) |
| 316 | dsimp only [transportTailSize] |
| 317 | nlinarith |
| 318 | |
| 319 | noncomputable def pressureTailSize (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 320 | (w : InnerPoint) : ℝ := |
| 321 | transportTailSize N h 0 (-1 / 2) f.flux f.axial f.flux w + |
| 322 | |omegaCoefficient h f N w| + |
| 323 | |2 * w.1 * C⁻¹ ^ 2| * pairTailSize N (fun i j => f.phi i w * f.phi j w) |
| 324 | |
| 325 | theorem pressureTailSize_nonneg (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 326 | (w : InnerPoint) : 0 ≤ pressureTailSize N h C f w := |
| 327 | add_nonneg (add_nonneg (transportTailSize_nonneg _ _ _ _ _ _ _ _) (abs_nonneg _)) |
| 328 | (mul_nonneg (abs_nonneg _) (pairTailSize_nonneg _ _)) |
| 329 | |
| 330 | /-- The radial remainder retains the last radial acceleration as well as |
| 331 | the omitted swirl products. Its exponent is not silently equated with the |
| 332 | stronger tangential exponent. -/ |
| 333 | theorem pressureTail_bound {q h : ℝ} (hq : 0 < q) (hq1 : q ≤ 1) (hh : 0 ≤ h) |
| 334 | (N : ℕ) (C : ℝ) (f : SlowProfiles) (w : InnerPoint) : |
| 335 | |pressureTail N q h C f w| ≤ |
| 336 | pressureTailSize N h C f w * q ^ (pressureExponent h + slowOrder h (N + 1)) := by |
| 337 | have ht := transportTail_bound hq hq1 hh N 0 (-1 / 2) f.flux f.axial f.flux w |
| 338 | have he : pressureExponent h + slowOrder h (N + 1) ≤ |
| 339 | 0 - 1 + slowOrder h (N + 1) := by |
| 340 | unfold pressureExponent CoordinateAlgebra.A |
| 341 | linarith |
| 342 | have ht' := ht.trans (mul_le_mul_of_nonneg_left |
| 343 | (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) |
| 344 | (transportTailSize_nonneg N h 0 (-1/2) f.flux f.axial f.flux w)) |
| 345 | have hp := pairTail_bound hq hq1 hh N (pressureExponent h) |
| 346 | (fun i j => f.phi i w * f.phi j w) |
| 347 | unfold pressureTail |
| 348 | refine (abs_sub _ _).trans ((add_le_add_left (abs_add_le _ _) _).trans ?_) |
| 349 | rw [abs_mul, abs_mul, abs_of_pos (Real.rpow_pos_of_pos hq _)] |
| 350 | have hh' := mul_le_mul_of_nonneg_left hp (abs_nonneg (2 * w.1 * C⁻¹ ^ 2)) |
| 351 | dsimp only [pressureTailSize] |
| 352 | nlinarith |
| 353 | |
| 354 | /-- The change from cylindrical radius R to the regular variable X. -/ |
| 355 | noncomputable def radiusPoint (w : InnerPoint) : InnerPoint := (w.1 ^ 2 / 2, w.2) |
| 356 | |
| 357 | noncomputable def fromRadius (F : InnerProfile) (w : InnerPoint) : ℝ := |
| 358 | F (Real.sqrt (2 * w.1), w.2) |
| 359 | |
| 360 | noncomputable def toRadius (f : InnerProfile) (w : InnerPoint) : ℝ := f (radiusPoint w) |
| 361 | |
| 362 | noncomputable def swirlRadius (C : ℝ) (f : InnerProfile) (w : InnerPoint) : ℝ := |
| 363 | w.1 / C * toRadius f w |
| 364 | |
| 365 | theorem radiusPoint_smooth : ContDiff ℝ ∞ radiusPoint := |
| 366 | ((contDiff_fst.pow 2).div_const 2).prodMk contDiff_snd |
| 367 | |
| 368 | theorem fromRadius_smoothAt {F : InnerProfile} {w : InnerPoint} (hX : 0 < w.1) |
| 369 | (hF : ContDiffAt ℝ ∞ F (Real.sqrt (2 * w.1), w.2)) : |
| 370 | ContDiffAt ℝ ∞ (fromRadius F) w := |
| 371 | hF.comp w (((contDiffAt_const.mul contDiffAt_fst).sqrt (by positivity)).prodMk contDiffAt_snd) |
| 372 | |
| 373 | theorem partialX_fromRadius {F : InnerProfile} {w : InnerPoint} (hX : 0 < w.1) |
| 374 | (hF : DifferentiableAt ℝ F (Real.sqrt (2 * w.1), w.2)) : |
| 375 | partialX (fromRadius F) w = |
| 376 | partialX F (Real.sqrt (2 * w.1), w.2) / Real.sqrt (2 * w.1) := by |
| 377 | have hs := (Real.hasDerivAt_sqrt (show 2 * w.1 ≠ 0 by positivity)).comp w.1 |
| 378 | ((hasDerivAt_id w.1).const_mul 2) |
| 379 | have hd := hF.hasFDerivAt.comp_hasDerivAt w.1 |
| 380 | (hs.prodMk (hasDerivAt_const w.1 w.2)) |
| 381 | have hc : DifferentiableAt ℝ (fromRadius F) w := |
| 382 | hF.comp w ((((differentiableAt_const (2 : ℝ)).fun_mul differentiableAt_fst).sqrt |
| 383 | (by positivity)).prodMk differentiableAt_snd) |
| 384 | have he := (LeadingStress.partialX_hasDerivAt hc).unique hd |
| 385 | refine he.trans ?_ |
| 386 | simp only [SimilarityProfile.fderiv_inner_apply, mul_zero, add_zero, |
| 387 | mul_one, one_mul, div_eq_mul_inv, mul_inv_rev] |
| 388 | ring |
| 389 | |
| 390 | /-- At a positive radius the primitive stress is smooth without an axis |
| 391 | vanishing assumption. The latter is needed only to extend through R=0. -/ |
| 392 | theorem primitive_stress_smoothAt {S : Set ℝ} (hS : IsOpen S) |
| 393 | {F : InnerProfile} (hF : SlowStressSupport.Smooth S F) (m : ℕ) |
| 394 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) : |
| 395 | ContDiffAt ℝ ∞ (SlowStressSupport.stress m F) w := by |
| 396 | have hP := (ProfileHistories.primitive_smooth |
| 397 | (PositiveOrderMoments.parameterDomain S hS) hF).contDiffAt |
| 398 | ((isOpen_univ.prod hS).mem_nhds ⟨mem_univ _, heta⟩) |
| 399 | have ht : ContDiffAt ℝ ∞ (fun p : InnerPoint => -ProfileHistories.primitive F p / p.1 ^ m) w := |
| 400 | hP.neg.div (contDiffAt_fst.pow m) (pow_ne_zero m hR.ne') |
| 401 | apply ht.congr_of_eventuallyEq |
| 402 | filter_upwards [continuous_fst.continuousAt (Ioi_mem_nhds hR)] with p hp |
| 403 | exact SlowStressSupport.stress_of_pos m F hp |
| 404 | |
| 405 | theorem primitive_stress_radial_identity {S : Set ℝ} (hS : IsOpen S) |
| 406 | {F : InnerProfile} (hF : SlowStressSupport.Smooth S F) (m : ℕ) |
| 407 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) : |
| 408 | (m : ℝ) * w.1 ^ (m - 1) * SlowStressSupport.stress m F w + |
| 409 | w.1 ^ m * partialX (SlowStressSupport.stress m F) w = -F w := by |
| 410 | have ht := LeadingStress.partialX_hasDerivAt |
| 411 | ((primitive_stress_smoothAt hS hF m hR heta).differentiableAt (by simp)) |
| 412 | have hp := ((hasDerivAt_id w.1).fun_pow m).fun_mul ht |
| 413 | have he := hp.unique (SlowStressSupport.stress_weighted_hasDerivAt hS hF m hR heta) |
| 414 | simpa only [id_eq, mul_one, Prod.eta] using he |
| 415 | |
| 416 | /-- Literal R²-weighted angular residual. -/ |
| 417 | noncomputable def thetaDensity (h C : ℝ) (f : SlowProfiles) (n : ℕ) (w : InnerPoint) : ℝ := |
| 418 | w.1 ^ 3 / C * angularCoefficient h f n (radiusPoint w) |
| 419 | |
| 420 | /-- Literal R-weighted axial residual. -/ |
| 421 | noncomputable def zDensity (h : ℝ) (f : SlowProfiles) (n : ℕ) (w : InnerPoint) : ℝ := |
| 422 | w.1 * axialCoefficient h f n (radiusPoint w) |
| 423 | |
| 424 | noncomputable def thetaStress (h C : ℝ) (f : SlowProfiles) (n : ℕ) : InnerProfile := |
| 425 | fromRadius (SlowStressSupport.stress 2 (thetaDensity h C f n)) |
| 426 | |
| 427 | noncomputable def zStress (h : ℝ) (f : SlowProfiles) (n : ℕ) : InnerProfile := |
| 428 | fromRadius (SlowStressSupport.stress 1 (zDensity h f n)) |
| 429 | |
| 430 | theorem thetaStress_smoothAt {S : Set ℝ} (hS : IsOpen S) (h C : ℝ) |
| 431 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 432 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 433 | ContDiffAt ℝ ∞ (thetaStress h C f n) w := |
| 434 | fromRadius_smoothAt hX (primitive_stress_smoothAt hS hF 2 |
| 435 | (Real.sqrt_pos.2 (by positivity)) heta) |
| 436 | |
| 437 | theorem zStress_smoothAt {S : Set ℝ} (hS : IsOpen S) (h : ℝ) |
| 438 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (zDensity h f n)) |
| 439 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 440 | ContDiffAt ℝ ∞ (zStress h f n) w := |
| 441 | fromRadius_smoothAt hX (primitive_stress_smoothAt hS hF 1 |
| 442 | (Real.sqrt_pos.2 (by positivity)) heta) |
| 443 | |
| 444 | /-- The angular primitive has exactly the required unweighted divergence. -/ |
| 445 | theorem thetaStress_identity {S : Set ℝ} (hS : IsOpen S) (h C : ℝ) |
| 446 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 447 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 448 | Real.sqrt (2 * w.1) * partialX (thetaStress h C f n) w + |
| 449 | 2 * thetaStress h C f n w / Real.sqrt (2 * w.1) = |
| 450 | -(Real.sqrt (2 * w.1) / C * angularCoefficient h f n w) := by |
| 451 | let r := Real.sqrt (2 * w.1) |
| 452 | have hr : 0 < r := Real.sqrt_pos.2 (by positivity) |
| 453 | have hr2 : r ^ 2 = 2 * w.1 := Real.sq_sqrt (by positivity) |
| 454 | have hw : radiusPoint (r, w.2) = w := by |
| 455 | ext <;> simp [radiusPoint, hr2] |
| 456 | have hi := primitive_stress_radial_identity hS hF 2 (w := (r, w.2)) hr heta |
| 457 | norm_num only [Nat.cast_ofNat, Nat.reduceSub, pow_one] at hi |
| 458 | rw [thetaDensity, hw] at hi |
| 459 | unfold thetaStress |
| 460 | rw [partialX_fromRadius hX ((primitive_stress_smoothAt hS hF 2 |
| 461 | (w := (r, w.2)) hr heta).differentiableAt (by simp))] |
| 462 | change r * (partialX (SlowStressSupport.stress 2 (thetaDensity h C f n)) (r, w.2) / r) + |
| 463 | 2 * SlowStressSupport.stress 2 (thetaDensity h C f n) (r, w.2) / r = |
| 464 | -(r / C * angularCoefficient h f n w) |
| 465 | apply mul_right_injective₀ (pow_ne_zero 2 hr.ne') |
| 466 | field_simp [hr.ne'] |
| 467 | apply mul_left_cancel₀ hr.ne' |
| 468 | linear_combination hi |
| 469 | |
| 470 | theorem zStress_identity {S : Set ℝ} (hS : IsOpen S) (h : ℝ) |
| 471 | (f : SlowProfiles) (n : ℕ) (hF : SlowStressSupport.Smooth S (zDensity h f n)) |
| 472 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : |
| 473 | Real.sqrt (2 * w.1) * partialX (zStress h f n) w + |
| 474 | zStress h f n w / Real.sqrt (2 * w.1) = -axialCoefficient h f n w := by |
| 475 | let r := Real.sqrt (2 * w.1) |
| 476 | have hr : 0 < r := Real.sqrt_pos.2 (by positivity) |
| 477 | have hr2 : r ^ 2 = 2 * w.1 := Real.sq_sqrt (by positivity) |
| 478 | have hw : radiusPoint (r, w.2) = w := by ext <;> simp [radiusPoint, hr2] |
| 479 | have hi := primitive_stress_radial_identity hS hF 1 (w := (r, w.2)) hr heta |
| 480 | norm_num only [Nat.cast_one, Nat.reduceSub, pow_zero, pow_one, one_mul] at hi |
| 481 | rw [zDensity, hw] at hi |
| 482 | unfold zStress |
| 483 | rw [partialX_fromRadius hX ((primitive_stress_smoothAt hS hF 1 |
| 484 | (w := (r, w.2)) hr heta).differentiableAt (by simp))] |
| 485 | change r * (partialX (SlowStressSupport.stress 1 (zDensity h f n)) (r, w.2) / r) + |
| 486 | SlowStressSupport.stress 1 (zDensity h f n) (r, w.2) / r = -axialCoefficient h f n w |
| 487 | apply mul_right_injective₀ hr.ne' |
| 488 | field_simp [hr.ne'] |
| 489 | linear_combination hi |
| 490 | |
| 491 | noncomputable def physicalThetaStress (N : ℕ) (h C : ℝ) (f : SlowProfiles) : PhysicalProfile := |
| 492 | finiteProfile N h (angularExponent h) (thetaStress h C f) |
| 493 | |
| 494 | noncomputable def physicalZStress (N : ℕ) (h : ℝ) (f : SlowProfiles) : PhysicalProfile := |
| 495 | finiteProfile N h (angularExponent h) (zStress h f) |
| 496 | |
| 497 | theorem radialDivergence_sum {ι : Type*} (s : Finset ι) (k : ℝ) |
| 498 | (F : ι → PhysicalProfile) (p : PhysicalPoint) |
| 499 | (hF : ∀ i ∈ s, DifferentiableAt ℝ (F i) p) : |
| 500 | LeadingStress.radialDivergence k (fun y => ∑ i ∈ s, F i y) p = |
| 501 | ∑ i ∈ s, LeadingStress.radialDivergence k (F i) p := by |
| 502 | unfold LeadingStress.radialDivergence |
| 503 | change Real.sqrt (2 * p.2.1) * derivativeAlong (0, (1, 0)) _ p + _ = _ |
| 504 | rw [derivativeAlong_sum s F (0, (1, 0)) p hF] |
| 505 | simp only [Finset.mul_sum, Finset.sum_div, Finset.sum_add_distrib] |
| 506 | rfl |
| 507 | |
| 508 | theorem physicalThetaStress_divergence {S : Set ℝ} (hS : IsOpen S) |
| 509 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 510 | (hF : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 511 | {p : PhysicalPoint} (hp : p.1 < 1) (hs : 0 < p.2.1) |
| 512 | (heta : (SimilarityProfile.inner h p).2 ∈ S) : |
| 513 | LeadingStress.radialDivergence 2 (physicalThetaStress N h C f) p = |
| 514 | -(Real.sqrt (2 * p.2.1) * C⁻¹ * |
| 515 | finiteSeries N (SimilarityProfile.q h p) h (angularExponent h - 1) |
| 516 | (fun n => angularCoefficient h f n (SimilarityProfile.inner h p))) := by |
| 517 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 518 | have hd : ∀ n ≤ N, DifferentiableAt ℝ (thetaStress h C f n) (SimilarityProfile.inner h p) := |
| 519 | fun n hn => (thetaStress_smoothAt hS h C f n (hF n hn) hX heta).differentiableAt (by simp) |
| 520 | unfold physicalThetaStress finiteProfile |
| 521 | rw [radialDivergence_sum _ _ _ _ (fun n hn => SimilarityProfile.pullback_differentiableAt |
| 522 | hh hh1 hp (hd n (Nat.le_of_lt_succ (Finset.mem_range.mp hn))))] |
| 523 | unfold finiteSeries |
| 524 | rw [Finset.mul_sum, ← Finset.sum_neg_distrib] |
| 525 | apply Finset.sum_congr rfl |
| 526 | intro n hn |
| 527 | have hnN := Nat.le_of_lt_succ (Finset.mem_range.mp hn) |
| 528 | rw [LeadingStress.radialDivergence_pullback hh hh1 2 hp (hd n hnN), |
| 529 | thetaStress_identity hS h C f n (hF n hnN) hX heta] |
| 530 | have he := LeadingStress.radius_mul_rpow hh hh1 (angularExponent h - 1 + slowOrder h n) hp |
| 531 | rw [show angularExponent h - 1 + slowOrder h n + 1 / 2 = |
| 532 | angularExponent h + slowOrder h n - 1 / 2 by ring] at he |
| 533 | rw [show -(Real.sqrt (2 * p.2.1) * C⁻¹ * |
| 534 | (SimilarityProfile.q h p ^ (angularExponent h - 1 + slowOrder h n) * |
| 535 | angularCoefficient h f n (SimilarityProfile.inner h p))) = |
| 536 | -(Real.sqrt (2 * p.2.1) * |
| 537 | SimilarityProfile.q h p ^ (angularExponent h - 1 + slowOrder h n)) * |
| 538 | (C⁻¹ * angularCoefficient h f n (SimilarityProfile.inner h p)) by ring, he] |
| 539 | ring |
| 540 | |
| 541 | theorem physicalZStress_divergence {S : Set ℝ} (hS : IsOpen S) |
| 542 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (f : SlowProfiles) |
| 543 | (hF : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 544 | {p : PhysicalPoint} (hp : p.1 < 1) (hs : 0 < p.2.1) |
| 545 | (heta : (SimilarityProfile.inner h p).2 ∈ S) : |
| 546 | LeadingStress.radialDivergence 1 (physicalZStress N h f) p = |
| 547 | -finiteSeries N (SimilarityProfile.q h p) h (axialExponent h - 1) |
| 548 | (fun n => axialCoefficient h f n (SimilarityProfile.inner h p)) := by |
| 549 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 550 | have hd : ∀ n ≤ N, DifferentiableAt ℝ (zStress h f n) (SimilarityProfile.inner h p) := |
| 551 | fun n hn => (zStress_smoothAt hS h f n (hF n hn) hX heta).differentiableAt (by simp) |
| 552 | unfold physicalZStress finiteProfile |
| 553 | rw [radialDivergence_sum _ _ _ _ (fun n hn => SimilarityProfile.pullback_differentiableAt |
| 554 | hh hh1 hp (hd n (Nat.le_of_lt_succ (Finset.mem_range.mp hn))))] |
| 555 | unfold finiteSeries |
| 556 | rw [← Finset.sum_neg_distrib] |
| 557 | apply Finset.sum_congr rfl |
| 558 | intro n hn |
| 559 | have hnN := Nat.le_of_lt_succ (Finset.mem_range.mp hn) |
| 560 | rw [LeadingStress.radialDivergence_pullback hh hh1 1 hp (hd n hnN), one_mul, |
| 561 | zStress_identity hS h f n (hF n hnN) hX heta] |
| 562 | rw [show angularExponent h + slowOrder h n - 1 / 2 = |
| 563 | axialExponent h - 1 + slowOrder h n by unfold angularExponent axialExponent; ring] |
| 564 | ring |
| 565 | |
| 566 | /-- The two radial tangential operators appearing in the manuscript. |
| 567 | They are written as an actual Cartesian vector; no unspecified tensor is used. -/ |
| 568 | noncomputable def tangentialStressForce (theta axial : PhysicalProfile) |
| 569 | (t : ℝ) (x : ProblemStatement.Space) : ProblemStatement.Space := |
| 570 | let r := Real.sqrt (2 * radialEnergy x) |
| 571 | let a := LeadingStress.radialDivergence 2 theta (profilePoint t x) |
| 572 | let z := LeadingStress.radialDivergence 1 axial (profilePoint t x) |
| 573 | AxisymmetricResidual.pack (x 1 / r * a) (-x 0 / r * a) (-z) |
| 574 | |
| 575 | /-- The pressure recurrence contributes this separate radial vector. -/ |
| 576 | noncomputable def retainedRadialForce (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 577 | (t : ℝ) (x : ProblemStatement.Space) : ProblemStatement.Space := |
| 578 | let q := SimilarityProfile.q h (profilePoint t x) |
| 579 | let w := SimilarityProfile.inner h (profilePoint t x) |
| 580 | let r := (2 * w.1 * finiteSeries N q h (pressureExponent h) |
| 581 | (fun n => pressureCoefficient h C f n w)) / (2 * radialEnergy x) |
| 582 | AxisymmetricResidual.pack (x 0 * r) (x 1 * r) 0 |
| 583 | |
| 584 | /-- Exact finite field matching. All nonlinear interactions not in the |
| 585 | retained coefficients, the final axial viscosities, and the final radial |
| 586 | acceleration remain in the explicitly defined `truncationResidual`. -/ |
| 587 | theorem navierStokesResidual_eq_stress_add_tails {S : Set ℝ} (hS : IsOpen S) |
| 588 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 589 | (hTheta : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 590 | (hZ : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 591 | {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) (hs : 0 < radialEnergy x) |
| 592 | (heta : (SimilarityProfile.inner h (profilePoint t x)).2 ∈ S) |
| 593 | (hv : ∀ n ≤ N, ContDiffAt ℝ 2 (f.flux n) (SimilarityProfile.inner h (profilePoint t x))) |
| 594 | (hphi : ∀ n ≤ N, ContDiffAt ℝ 2 (f.phi n) (SimilarityProfile.inner h (profilePoint t x))) |
| 595 | (hu : ∀ n ≤ N, ContDiffAt ℝ 2 (f.axial n) (SimilarityProfile.inner h (profilePoint t x))) |
| 596 | (hp : ∀ n ≤ N, DifferentiableAt ℝ (f.pressure n) (SimilarityProfile.inner h (profilePoint t x))) : |
| 597 | ProblemStatement.navierStokesResidual (slowVelocity N h C f) (slowPressureField N h f) t x = |
| 598 | tangentialStressForce (physicalThetaStress N h C f) (physicalZStress N h f) t x + |
| 599 | retainedRadialForce N h C f t x + truncationResidual N h C f t x := by |
| 600 | rw [navierStokesResidual_slowVelocity hh hh1 N C f ht hs hv hphi hu hp] |
| 601 | have ha := physicalThetaStress_divergence hS hh hh1 N C f hTheta ht hs heta |
| 602 | have hz := physicalZStress_divergence hS hh hh1 N f hZ ht hs heta |
| 603 | have hr : Real.sqrt (2 * radialEnergy x) ≠ 0 := (Real.sqrt_pos.2 (by positivity)).ne' |
| 604 | unfold tangentialStressForce |
| 605 | rw [ha, hz] |
| 606 | simp only [profilePoint] at * |
| 607 | generalize hrdef : Real.sqrt (2 * radialEnergy x) = r at * |
| 608 | ext i |
| 609 | fin_cases i <;> |
| 610 | simp [retainedRadialForce, truncationResidual, radialFluxExpansion, |
| 611 | angularExpansion, axialExpansion, AxisymmetricResidual.pack, |
| 612 | ProblemStatement.coordinateVector, profilePoint] |
| 613 | all_goals field_simp [hr, hs.ne'] |
| 614 | all_goals ring_nf |
| 615 | |
| 616 | /-- If the pressure was recomputed from its actual radial recurrence, the |
| 617 | finite residual consists of the tangential stress force and the explicit tails. -/ |
| 618 | theorem navierStokesResidual_eq_stress_add_truncation {S : Set ℝ} (hS : IsOpen S) |
| 619 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (C : ℝ) (f : SlowProfiles) |
| 620 | (hTheta : ∀ n ≤ N, SlowStressSupport.Smooth S (thetaDensity h C f n)) |
| 621 | (hZ : ∀ n ≤ N, SlowStressSupport.Smooth S (zDensity h f n)) |
| 622 | {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) (hs : 0 < radialEnergy x) |
| 623 | (heta : (SimilarityProfile.inner h (profilePoint t x)).2 ∈ S) |
| 624 | (hv : ∀ n ≤ N, ContDiffAt ℝ 2 (f.flux n) (SimilarityProfile.inner h (profilePoint t x))) |
| 625 | (hphi : ∀ n ≤ N, ContDiffAt ℝ 2 (f.phi n) (SimilarityProfile.inner h (profilePoint t x))) |
| 626 | (hu : ∀ n ≤ N, ContDiffAt ℝ 2 (f.axial n) (SimilarityProfile.inner h (profilePoint t x))) |
| 627 | (hp : ∀ n ≤ N, DifferentiableAt ℝ (f.pressure n) (SimilarityProfile.inner h (profilePoint t x))) |
| 628 | (hpressure : ∀ n ≤ N, pressureCoefficient h C f n (SimilarityProfile.inner h (profilePoint t x)) = 0) : |
| 629 | ProblemStatement.navierStokesResidual (slowVelocity N h C f) (slowPressureField N h f) t x = |
| 630 | tangentialStressForce (physicalThetaStress N h C f) (physicalZStress N h f) t x + |
| 631 | truncationResidual N h C f t x := by |
| 632 | rw [navierStokesResidual_eq_stress_add_tails hS hh hh1 N C f hTheta hZ ht hs heta hv hphi hu hp] |
| 633 | have he : retainedRadialForce N h C f t x = 0 := by |
| 634 | unfold retainedRadialForce |
| 635 | dsimp only |
| 636 | rw [finiteSeries_eq_zero _ _ _ _ _ hpressure] |
| 637 | ext i |
| 638 | fin_cases i <;> simp [AxisymmetricResidual.pack] |
| 639 | rw [he, add_zero] |
| 640 | |
| 641 | theorem toRadius_differentiableAt {f : InnerProfile} {w : InnerPoint} |
| 642 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : DifferentiableAt ℝ (toRadius f) w := |
| 643 | hf.comp w (radiusPoint_smooth.differentiable (by simp)).differentiableAt |
| 644 | |
| 645 | theorem toRadius_contDiffAt_two {f : InnerProfile} {w : InnerPoint} |
| 646 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) : ContDiffAt ℝ 2 (toRadius f) w := |
| 647 | hf.comp w ((radiusPoint_smooth.of_le |
| 648 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).contDiffAt) |
| 649 | |
| 650 | theorem partialX_toRadius {f : InnerProfile} {w : InnerPoint} |
| 651 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 652 | partialX (toRadius f) w = w.1 * partialX f (radiusPoint w) := by |
| 653 | have hs : HasDerivAt (fun r : ℝ => r ^ 2 / 2) w.1 w.1 := by |
| 654 | convert! ((hasDerivAt_id w.1).pow 2).div_const 2 using 1 |
| 655 | simp |
| 656 | have hd := hf.hasFDerivAt.comp_hasDerivAt w.1 (hs.prodMk (hasDerivAt_const w.1 w.2)) |
| 657 | have he := (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf)).unique hd |
| 658 | simpa only [SimilarityProfile.fderiv_inner_apply, mul_zero, zero_mul, add_zero, |
| 659 | radiusPoint, mul_comm] using he |
| 660 | |
| 661 | theorem partialEta_toRadius {f : InnerProfile} {w : InnerPoint} |
| 662 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 663 | partialEta (toRadius f) w = partialEta f (radiusPoint w) := by |
| 664 | have hd := hf.hasFDerivAt.comp_hasDerivAt w.2 |
| 665 | ((hasDerivAt_const w.2 (w.1 ^ 2 / 2)).prodMk (hasDerivAt_id w.2)) |
| 666 | have he := (PositiveAxisSystem.hasDerivAt_parameterProfile |
| 667 | (toRadius_differentiableAt hf)).unique hd |
| 668 | simpa only [SimilarityProfile.fderiv_inner_apply, mul_zero, zero_mul, zero_add, |
| 669 | one_mul, mul_one, radiusPoint, Prod.eta] using he |
| 670 | |
| 671 | theorem partialX_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 672 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 673 | partialX (swirlRadius C f) w = |
| 674 | f (radiusPoint w) / C + w.1 ^ 2 / C * partialX f (radiusPoint w) := by |
| 675 | have hg : DifferentiableAt ℝ (swirlRadius C f) w := by |
| 676 | change DifferentiableAt ℝ (fun y : InnerPoint => y.1 / C * toRadius f y) w |
| 677 | simpa only [div_eq_mul_inv] using ((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 678 | differentiableAt_fst).mul_const C⁻¹).fun_mul (toRadius_differentiableAt hf) |
| 679 | have hd := ((hasDerivAt_id w.1).div_const C).mul |
| 680 | (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf)) |
| 681 | have he := (LeadingStress.partialX_hasDerivAt hg).unique hd |
| 682 | rw [partialX_toRadius hf] at he |
| 683 | exact he.trans (by simp only [id_eq, toRadius]; ring) |
| 684 | |
| 685 | theorem partialEta_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 686 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 687 | partialEta (swirlRadius C f) w = w.1 / C * partialEta f (radiusPoint w) := by |
| 688 | have hg : DifferentiableAt ℝ (swirlRadius C f) w := by |
| 689 | change DifferentiableAt ℝ (fun y : InnerPoint => y.1 / C * toRadius f y) w |
| 690 | simpa only [div_eq_mul_inv] using ((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 691 | differentiableAt_fst).mul_const C⁻¹).fun_mul (toRadius_differentiableAt hf) |
| 692 | have hd := (PositiveAxisSystem.hasDerivAt_parameterProfile |
| 693 | (toRadius_differentiableAt hf)).const_mul (w.1 / C) |
| 694 | have he := (PositiveAxisSystem.hasDerivAt_parameterProfile hg).unique hd |
| 695 | simpa only [partialEta_toRadius hf] using he |
| 696 | |
| 697 | theorem partialXX_toRadius {f : InnerProfile} {w : InnerPoint} |
| 698 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) : |
| 699 | partialX (partialX (toRadius f)) w = |
| 700 | partialX f (radiusPoint w) + w.1 ^ 2 * partialX (partialX f) (radiusPoint w) := by |
| 701 | have he : partialX (toRadius f) =ᶠ[𝓝 w] |
| 702 | AxisSourceRegularity.axisFactor (toRadius (partialX f)) := by |
| 703 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 704 | filter_upwards [hh] with y hy |
| 705 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 706 | exact partialX_toRadius (hy.differentiableAt (by norm_num)) |
| 707 | have hx := (PositiveAxisSystem.partialX_contDiffAt hf).differentiableAt (by norm_num) |
| 708 | change (fderiv ℝ (partialX (toRadius f)) w) (1, 0) = _ |
| 709 | rw [he.fderiv_eq] |
| 710 | change partialX (AxisSourceRegularity.axisFactor (toRadius (partialX f))) w = _ |
| 711 | rw [AxisSourceRegularity.partialX_axisFactor (toRadius_differentiableAt hx), partialX_toRadius hx] |
| 712 | simp only [toRadius] |
| 713 | ring |
| 714 | |
| 715 | theorem timeOp_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 716 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 717 | SlowStressSupport.timeOp h b (toRadius f) w = T h b f (radiusPoint w) := by |
| 718 | unfold SlowStressSupport.timeOp |
| 719 | change (-b * toRadius f w + PositiveAxisSystem.dScale h * w.2 * partialEta (toRadius f) w + |
| 720 | w.1 / 2 * partialX (toRadius f) w) / _ = _ |
| 721 | rw [partialX_toRadius hf, partialEta_toRadius hf] |
| 722 | simp only [T, CoordinateAlgebra.timeCoeff, radiusPoint, toRadius, |
| 723 | PositiveAxisSystem.dScale, CoordinateAlgebra.D, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 724 | ring |
| 725 | |
| 726 | theorem axialOp_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 727 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 728 | SlowStressSupport.axialOp h b (toRadius f) w = Z h b f (radiusPoint w) := by |
| 729 | unfold SlowStressSupport.axialOp |
| 730 | change (2 * w.2 * b * toRadius f w + PositiveAxisSystem.edge w.2 * partialEta (toRadius f) w - |
| 731 | w.2 * w.1 * partialX (toRadius f) w) / _ = _ |
| 732 | rw [partialX_toRadius hf, partialEta_toRadius hf] |
| 733 | simp only [Z, CoordinateAlgebra.axialCoeff, radiusPoint, toRadius, |
| 734 | PositiveAxisSystem.edge, CoordinateAlgebra.d, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 735 | ring |
| 736 | |
| 737 | theorem timeOp_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 738 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 739 | SlowStressSupport.timeOp h b (swirlRadius C f) w = |
| 740 | w.1 / C * T h (b - 1 / 2) f (radiusPoint w) := by |
| 741 | unfold SlowStressSupport.timeOp |
| 742 | change (-b * swirlRadius C f w + PositiveAxisSystem.dScale h * w.2 * partialEta (swirlRadius C f) w + |
| 743 | w.1 / 2 * partialX (swirlRadius C f) w) / _ = _ |
| 744 | rw [partialX_swirlRadius C hf, partialEta_swirlRadius C hf] |
| 745 | simp only [T, CoordinateAlgebra.timeCoeff, swirlRadius, toRadius, radiusPoint, |
| 746 | PositiveAxisSystem.dScale, CoordinateAlgebra.D, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 747 | ring |
| 748 | |
| 749 | theorem axialOp_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 750 | (hf : DifferentiableAt ℝ f (radiusPoint w)) : |
| 751 | SlowStressSupport.axialOp h b (swirlRadius C f) w = |
| 752 | w.1 / C * Z h (b - 1 / 2) f (radiusPoint w) := by |
| 753 | unfold SlowStressSupport.axialOp |
| 754 | change (2 * w.2 * b * swirlRadius C f w + PositiveAxisSystem.edge w.2 * partialEta (swirlRadius C f) w - |
| 755 | w.2 * w.1 * partialX (swirlRadius C f) w) / _ = _ |
| 756 | rw [partialX_swirlRadius C hf, partialEta_swirlRadius C hf] |
| 757 | simp only [Z, CoordinateAlgebra.axialCoeff, swirlRadius, toRadius, radiusPoint, |
| 758 | PositiveAxisSystem.edge, CoordinateAlgebra.d, PositiveAxisSystem.ell, CoordinateAlgebra.L] |
| 759 | ring |
| 760 | |
| 761 | theorem axialOp_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 762 | (hfg : f =ᶠ[𝓝 w] g) : |
| 763 | SlowStressSupport.axialOp h b f w = SlowStressSupport.axialOp h b g w := by |
| 764 | simp only [SlowStressSupport.axialOp, SlowStressSupport.dr, SlowStressSupport.de, |
| 765 | ProfileHistories.radialPartial, ProfileHistories.parameterPartial, |
| 766 | hfg.eq_of_nhds, hfg.fderiv_eq] |
| 767 | |
| 768 | theorem axialOp2_toRadius (h b : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 769 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 770 | SlowStressSupport.axialOp2 h b (toRadius f) w = Z2 h b f (radiusPoint w) := by |
| 771 | have he : SlowStressSupport.axialOp h b (toRadius f) =ᶠ[𝓝 w] toRadius (Z h b f) := by |
| 772 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 773 | filter_upwards [hh] with y hy |
| 774 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 775 | exact axialOp_toRadius h b (hy.differentiableAt (by norm_num)) |
| 776 | unfold SlowStressSupport.axialOp2 |
| 777 | rw [axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he, |
| 778 | axialOp_toRadius h (b - PositiveAxisSystem.dScale h) |
| 779 | ((SimilarityProfile.Z_smoothAt hf hL).differentiableAt (by norm_num))] |
| 780 | rfl |
| 781 | |
| 782 | theorem axialOp2_swirlRadius (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 783 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 784 | SlowStressSupport.axialOp2 h b (swirlRadius C f) w = |
| 785 | w.1 / C * Z2 h (b - 1 / 2) f (radiusPoint w) := by |
| 786 | have he : SlowStressSupport.axialOp h b (swirlRadius C f) =ᶠ[𝓝 w] |
| 787 | swirlRadius C (Z h (b - 1 / 2) f) := by |
| 788 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 789 | filter_upwards [hh] with y hy |
| 790 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 791 | exact axialOp_swirlRadius h b C (hy.differentiableAt (by norm_num)) |
| 792 | unfold SlowStressSupport.axialOp2 |
| 793 | rw [axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he, |
| 794 | axialOp_swirlRadius h (b - PositiveAxisSystem.dScale h) C |
| 795 | ((SimilarityProfile.Z_smoothAt hf hL).differentiableAt (by norm_num))] |
| 796 | rw [show b - PositiveAxisSystem.dScale h - 1 / 2 = |
| 797 | b - 1 / 2 - CoordinateAlgebra.D h by |
| 798 | unfold PositiveAxisSystem.dScale CoordinateAlgebra.D; ring] |
| 799 | rfl |
| 800 | |
| 801 | theorem partialXX_swirlRadius (C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 802 | (hf : ContDiffAt ℝ 2 f (radiusPoint w)) : |
| 803 | partialX (partialX (swirlRadius C f)) w = |
| 804 | 3 * w.1 / C * partialX f (radiusPoint w) + |
| 805 | w.1 ^ 3 / C * partialX (partialX f) (radiusPoint w) := by |
| 806 | have he : partialX (swirlRadius C f) =ᶠ[𝓝 w] |
| 807 | (fun y => toRadius f y / C + y.1 ^ 2 / C * toRadius (partialX f) y) := by |
| 808 | have hh := radiusPoint_smooth.continuous.continuousAt (hf.eventually (by norm_num)) |
| 809 | filter_upwards [hh] with y hy |
| 810 | change ContDiffAt ℝ 2 f (radiusPoint y) at hy |
| 811 | exact partialX_swirlRadius C (hy.differentiableAt (by norm_num)) |
| 812 | have hf' := hf.differentiableAt (by norm_num) |
| 813 | have hfx := (PositiveAxisSystem.partialX_contDiffAt hf).differentiableAt (by norm_num) |
| 814 | have hG : DifferentiableAt ℝ |
| 815 | (fun y : InnerPoint => toRadius f y / C + y.1 ^ 2 / C * toRadius (partialX f) y) w := by |
| 816 | simpa only [div_eq_mul_inv] using ((toRadius_differentiableAt hf').mul_const C⁻¹).fun_add |
| 817 | (((show DifferentiableAt ℝ (fun y : InnerPoint => y.1) w from |
| 818 | differentiableAt_fst).fun_pow 2).mul_const C⁻¹ |>.fun_mul (toRadius_differentiableAt hfx)) |
| 819 | have hd := ((LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hf')).div_const C).fun_add |
| 820 | ((((hasDerivAt_id w.1).fun_pow 2).div_const C).fun_mul |
| 821 | (LeadingStress.partialX_hasDerivAt (toRadius_differentiableAt hfx))) |
| 822 | have hv := (LeadingStress.partialX_hasDerivAt hG).unique hd |
| 823 | change (fderiv ℝ (partialX (swirlRadius C f)) w) (1, 0) = _ |
| 824 | rw [he.fderiv_eq] |
| 825 | change partialX (fun y : InnerPoint => toRadius f y / C + |
| 826 | y.1 ^ 2 / C * toRadius (partialX f) y) w = _ |
| 827 | rw [hv, partialX_toRadius hf', partialX_toRadius hfx] |
| 828 | simp only [toRadius, id_eq, Nat.cast_ofNat, Nat.reduceSub, pow_one, mul_one] |
| 829 | ring |
| 830 | |
| 831 | /-- An explicit finite index for all omitted transport terms. `none` is |
| 832 | the last axial-viscosity coefficient. -/ |
| 833 | abbrev TailIndex := Option (ℕ × ℕ) |
| 834 | |
| 835 | noncomputable def transportIndices (N : ℕ) : Finset TailIndex := |
| 836 | insert none (((pairs N).filter (fun ij => N < ij.1 + ij.2)).image some) |
| 837 | |
| 838 | noncomputable def transportPower (N : ℕ) (h e : ℝ) : TailIndex → ℝ |
| 839 | | none => e - 1 + slowOrder h (N + 1) |
| 840 | | some ij => e - 1 + slowOrder h (ij.1 + ij.2) |
| 841 | |
| 842 | noncomputable def transportTerm (N : ℕ) (h e α : ℝ) |
| 843 | (v u f : ℕ → InnerProfile) : TailIndex → InnerProfile |
| 844 | | none => fun w => -Z2 h (e + slowOrder h N) (f N) w |
| 845 | | some ij => fun w => transportKernel h e α v u f w ij.1 ij.2 |
| 846 | |
| 847 | theorem mem_transportIndices_some (N : ℕ) (ij : ℕ × ℕ) : |
| 848 | some ij ∈ transportIndices N ↔ ij ∈ pairs N ∧ N < ij.1 + ij.2 := by |
| 849 | simp [transportIndices] |
| 850 | |
| 851 | /-- This equality is an identity of actual functions, suitable for taking |
| 852 | any fixed number of derivatives in q and the inner variables. -/ |
| 853 | theorem transportTail_eq_finite_monomials (N : ℕ) (q h e α : ℝ) |
| 854 | (v u f : ℕ → InnerProfile) (w : InnerPoint) : |
| 855 | transportTail N q h e α v u f w = |
| 856 | ∑ i ∈ transportIndices N, q ^ transportPower N h e i * transportTerm N h e α v u f i w := by |
| 857 | unfold transportIndices |
| 858 | rw [Finset.sum_insert (by simp), Finset.sum_image] |
| 859 | · simp only [transportPower, transportTerm] |
| 860 | change _ = _ + pairTail N (fun n => q ^ (e - 1 + slowOrder h n)) |
| 861 | (transportKernel h e α v u f w) |
| 862 | unfold transportTail transportKernel |
| 863 | ring |
| 864 | · intro i hi j hj he |
| 865 | exact Option.some.inj he |
| 866 | |
| 867 | theorem transportPower_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) (e : ℝ) |
| 868 | {i : TailIndex} (hi : i ∈ transportIndices N) : |
| 869 | e - 1 + slowOrder h (N + 1) ≤ transportPower N h e i := by |
| 870 | cases i with |
| 871 | | none => exact le_rfl |
| 872 | | some ij => |
| 873 | exact add_le_add_right (slowOrder_mono hh ((mem_transportIndices_some N ij).mp hi).2) _ |
| 874 | |
| 875 | theorem transportKernel_smoothAt (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 876 | (i j : ℕ) {w : InnerPoint} |
| 877 | (hv : ContDiffAt ℝ ∞ (v i) w) (hu : ContDiffAt ℝ ∞ (u i) w) |
| 878 | (hf : ContDiffAt ℝ ∞ (f j) w) (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 879 | ContDiffAt ℝ ∞ (fun y => transportKernel h e α v u f y i j) w := by |
| 880 | exact (hv.mul ((AxisSourceRegularity.partialX_smooth hf).add |
| 881 | ((contDiffAt_const.mul hf).div contDiffAt_fst hX))).add |
| 882 | (hu.mul (AxisSourceRegularity.Z_smooth h (e + slowOrder h j) hf hL)) |
| 883 | |
| 884 | theorem transportTerm_smoothOn {O : Set InnerPoint} (hO : IsOpen O) |
| 885 | (N : ℕ) (h e α : ℝ) (v u f : ℕ → InnerProfile) |
| 886 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (v j) O) |
| 887 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (u j) O) |
| 888 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f j) O) |
| 889 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) |
| 890 | {i : TailIndex} (hi : i ∈ transportIndices N) : |
| 891 | ContDiffOn ℝ ∞ (transportTerm N h e α v u f i) O := by |
| 892 | intro w hw |
| 893 | apply ContDiffAt.contDiffWithinAt |
| 894 | cases i with |
| 895 | | none => |
| 896 | exact (AxisSourceRegularity.Z2_smooth h (e + slowOrder h N) |
| 897 | ((hf N le_rfl).contDiffAt (hO.mem_nhds hw)) (hL w hw)).neg |
| 898 | | some ij => |
| 899 | have hij := (mem_transportIndices_some N ij).mp hi |
| 900 | have hj : ij.2 ≤ N := by |
| 901 | have := (Finset.mem_product.mp hij.1).2 |
| 902 | exact Nat.le_of_lt_succ (Finset.mem_range.mp this) |
| 903 | have hi' : ij.1 ≤ N := by |
| 904 | have := (Finset.mem_product.mp hij.1).1 |
| 905 | exact Nat.le_of_lt_succ (Finset.mem_range.mp this) |
| 906 | exact transportKernel_smoothAt h e α v u f ij.1 ij.2 |
| 907 | ((hv ij.1 hi').contDiffAt (hO.mem_nhds hw)) |
| 908 | ((hu ij.1 hi').contDiffAt (hO.mem_nhds hw)) |
| 909 | ((hf ij.2 hj).contDiffAt (hO.mem_nhds hw)) (hX w hw) (hL w hw) |
| 910 | |
| 911 | theorem transportCoefficient_smoothAt (h e α m : ℝ) |
| 912 | (v u f source : ℕ → InnerProfile) (n : ℕ) {w : InnerPoint} |
| 913 | (hv : ∀ j ≤ n, ContDiffAt ℝ ∞ (v j) w) |
| 914 | (hu : ∀ j ≤ n, ContDiffAt ℝ ∞ (u j) w) |
| 915 | (hf : ∀ j ≤ n, ContDiffAt ℝ ∞ (f j) w) |
| 916 | (hs : ContDiffAt ℝ ∞ (source n) w) |
| 917 | (hX : w.1 ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 918 | ContDiffAt ℝ ∞ (transportCoefficient h e α m v u f source n) w := by |
| 919 | have hx := AxisSourceRegularity.partialX_smooth (hf n le_rfl) |
| 920 | have hxx := AxisSourceRegularity.partialX_smooth hx |
| 921 | have hlin : ContDiffAt ℝ ∞ |
| 922 | (fun y => transportLinear y.1 m (fun j => T h (e + slowOrder h j) (f j) y) |
| 923 | (fun j => partialX (f j) y) (fun j => partialX (partialX (f j)) y) |
| 924 | (fun j => source j y) n) w := |
| 925 | ((AxisSourceRegularity.T_smooth h (e + slowOrder h n) (hf n le_rfl) hL).sub |
| 926 | (contDiffAt_const.mul ((contDiffAt_fst.mul hxx).add (contDiffAt_const.mul hx)))).add hs |
| 927 | have hc : ContDiffAt ℝ ∞ |
| 928 | (fun y => convolution (transportKernel h e α v u f y) n) w := by |
| 929 | apply ContDiffAt.sum |
| 930 | intro ij hij |
| 931 | have hi : ij.1 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 932 | have hj : ij.2 ≤ n := by have := Finset.mem_antidiagonal.mp hij; omega |
| 933 | exact transportKernel_smoothAt h e α v u f ij.1 ij.2 (hv ij.1 hi) (hu ij.1 hi) |
| 934 | (hf ij.2 hj) hX hL |
| 935 | have hp : ContDiffAt ℝ ∞ |
| 936 | (fun y => previous (fun j => Z2 h (e + slowOrder h j) (f j) y) n) w := by |
| 937 | cases n with |
| 938 | | zero => exact contDiffAt_const |
| 939 | | succ n => |
| 940 | exact AxisSourceRegularity.Z2_smooth h (e + slowOrder h n) (hf n (Nat.le_succ n)) hL |
| 941 | exact (hlin.add hc).sub hp |
| 942 | |
| 943 | abbrev PressureIndex := Sum TailIndex TailIndex |
| 944 | |
| 945 | noncomputable def pressureIndices (N : ℕ) : Finset PressureIndex := |
| 946 | ((transportIndices N).image Sum.inl) ∪ ((transportIndices N).image Sum.inr) |
| 947 | |
| 948 | noncomputable def pressurePower (N : ℕ) (h : ℝ) : PressureIndex → ℝ |
| 949 | | Sum.inl i => transportPower N h 0 i |
| 950 | | Sum.inr none => pressureExponent h + slowOrder h (N + 1) |
| 951 | | Sum.inr (some ij) => pressureExponent h + slowOrder h (ij.1 + ij.2) |
| 952 | |
| 953 | noncomputable def pressureTerm (N : ℕ) (h C : ℝ) (f : SlowProfiles) : PressureIndex → InnerProfile |
| 954 | | Sum.inl i => transportTerm N h 0 (-(1 / 2)) f.flux f.axial f.flux i |
| 955 | | Sum.inr none => omegaCoefficient h f N |
| 956 | | Sum.inr (some ij) => fun w => -(2 * w.1 * C⁻¹ ^ 2) * (f.phi ij.1 w * f.phi ij.2 w) |
| 957 | |
| 958 | theorem pressure_indices_disjoint (N : ℕ) : |
| 959 | Disjoint ((transportIndices N).image (Sum.inl : TailIndex → PressureIndex)) |
| 960 | ((transportIndices N).image Sum.inr) := by |
| 961 | apply Finset.disjoint_left.mpr |
| 962 | intro i hi hj |
| 963 | rcases Finset.mem_image.mp hi with ⟨a, ha, rfl⟩ |
| 964 | rcases Finset.mem_image.mp hj with ⟨b, hb, he⟩ |
| 965 | cases he |
| 966 | |
| 967 | theorem pressureTail_eq_finite_monomials (N : ℕ) (q h C : ℝ) |
| 968 | (f : SlowProfiles) (w : InnerPoint) : |
| 969 | pressureTail N q h C f w = |
| 970 | ∑ i ∈ pressureIndices N, q ^ pressurePower N h i * pressureTerm N h C f i w := by |
| 971 | unfold pressureIndices |
| 972 | rw [Finset.sum_union (pressure_indices_disjoint N), |
| 973 | Finset.sum_image (fun _ _ _ _ he => Sum.inl.inj he), |
| 974 | Finset.sum_image (fun _ _ _ _ he => Sum.inr.inj he)] |
| 975 | simp only [pressurePower, pressureTerm] |
| 976 | rw [← transportTail_eq_finite_monomials] |
| 977 | unfold transportIndices |
| 978 | rw [Finset.sum_insert (by simp), Finset.sum_image (fun _ _ _ _ he => Option.some.inj he)] |
| 979 | simp only [] |
| 980 | unfold pressureTail pairTail |
| 981 | rw [Finset.mul_sum] |
| 982 | have he : (∑ x ∈ {ij ∈ pairs N | N < ij.1 + ij.2}, |
| 983 | q ^ (pressureExponent h + slowOrder h (x.1 + x.2)) * |
| 984 | (-(2 * w.1 * C⁻¹ ^ 2) * (f.phi x.1 w * f.phi x.2 w))) = |
| 985 | -(∑ x ∈ {ij ∈ pairs N | N < ij.1 + ij.2}, |
| 986 | 2 * w.1 * C⁻¹ ^ 2 * |
| 987 | (q ^ (pressureExponent h + slowOrder h (x.1 + x.2)) * (f.phi x.1 w * f.phi x.2 w))) := by |
| 988 | rw [← Finset.sum_neg_distrib] |
| 989 | apply Finset.sum_congr rfl |
| 990 | intro i hi |
| 991 | ring |
| 992 | rw [he] |
| 993 | ring |
| 994 | |
| 995 | theorem pressurePower_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) |
| 996 | {i : PressureIndex} (hi : i ∈ pressureIndices N) : |
| 997 | pressureExponent h + slowOrder h (N + 1) ≤ pressurePower N h i := by |
| 998 | cases i with |
| 999 | | inl i => |
| 1000 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 1001 | refine le_trans ?_ (transportPower_lower hh N 0 hi') |
| 1002 | unfold pressureExponent CoordinateAlgebra.A |
| 1003 | linarith |
| 1004 | | inr i => |
| 1005 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 1006 | cases i with |
| 1007 | | none => exact le_rfl |
| 1008 | | some ij => |
| 1009 | exact add_le_add_right (slowOrder_mono hh ((mem_transportIndices_some N ij).mp hi').2) _ |
| 1010 | |
| 1011 | theorem pressureTerm_smoothOn {O : Set InnerPoint} (hO : IsOpen O) |
| 1012 | (N : ℕ) (h C : ℝ) (f : SlowProfiles) |
| 1013 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.flux j) O) |
| 1014 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.axial j) O) |
| 1015 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.phi j) O) |
| 1016 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) |
| 1017 | {i : PressureIndex} (hi : i ∈ pressureIndices N) : |
| 1018 | ContDiffOn ℝ ∞ (pressureTerm N h C f i) O := by |
| 1019 | cases i with |
| 1020 | | inl i => |
| 1021 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 1022 | exact transportTerm_smoothOn hO N h 0 (-(1/2)) f.flux f.axial f.flux hv hu hv hX hL hi' |
| 1023 | | inr i => |
| 1024 | have hi' : i ∈ transportIndices N := by simpa [pressureIndices] using hi |
| 1025 | cases i with |
| 1026 | | none => |
| 1027 | intro w hw |
| 1028 | exact (transportCoefficient_smoothAt h 0 (-(1/2)) 0 f.flux f.axial f.flux (fun _ _ => 0) N |
| 1029 | (fun j hj => (hv j hj).contDiffAt (hO.mem_nhds hw)) |
| 1030 | (fun j hj => (hu j hj).contDiffAt (hO.mem_nhds hw)) |
| 1031 | (fun j hj => (hv j hj).contDiffAt (hO.mem_nhds hw)) |
| 1032 | contDiffAt_const (hX w hw) (hL w hw)).contDiffWithinAt |
| 1033 | | some ij => |
| 1034 | have hij := (mem_transportIndices_some N ij).mp hi' |
| 1035 | have hiN : ij.1 ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp (Finset.mem_product.mp hij.1).1) |
| 1036 | have hjN : ij.2 ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp (Finset.mem_product.mp hij.1).2) |
| 1037 | exact (((contDiffOn_const.mul contDiffOn_fst).mul contDiffOn_const).neg).mul |
| 1038 | ((hf ij.1 hiN).mul (hf ij.2 hjN)) |
| 1039 | |
| 1040 | /-- Division by the physical radial energy is converted to a single q |
| 1041 | power and an ordinary smooth inner coefficient away from X=0. -/ |
| 1042 | theorem radialTail_eq_finite_monomials {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1043 | (N : ℕ) (C : ℝ) (f : SlowProfiles) {p : PhysicalPoint} (hp : p.1 < 1) |
| 1044 | (hs : 0 < p.2.1) : |
| 1045 | pressureTail N (SimilarityProfile.q h p) h C f (SimilarityProfile.inner h p) / (2 * p.2.1) = |
| 1046 | ∑ i ∈ pressureIndices N, |
| 1047 | SimilarityProfile.q h p ^ (pressurePower N h i - 1) * |
| 1048 | (pressureTerm N h C f i (SimilarityProfile.inner h p) / |
| 1049 | (2 * (SimilarityProfile.inner h p).1)) := by |
| 1050 | have hq := SimilarityProfile.q_pos hh hh1 hp |
| 1051 | have hX := LeadingStress.inner_X_pos hh hh1 hp hs |
| 1052 | rw [pressureTail_eq_finite_monomials, Finset.sum_div] |
| 1053 | apply Finset.sum_congr rfl |
| 1054 | intro i hi |
| 1055 | rw [Real.rpow_sub hq, Real.rpow_one, ← q_mul_X hh hh1 hp] |
| 1056 | field_simp [hq.ne', hX.ne'] |
| 1057 | |
| 1058 | theorem common_tail_power_lower {h : ℝ} (hh : 0 ≤ h) (N : ℕ) : |
| 1059 | pressureExponent h - 1 + slowOrder h (N + 1) = 2 * (N : ℝ) * h - 2 ∧ |
| 1060 | pressureExponent h - 1 + slowOrder h (N + 1) ≤ |
| 1061 | angularExponent h - 1 + slowOrder h (N + 1) ∧ |
| 1062 | pressureExponent h - 1 + slowOrder h (N + 1) ≤ |
| 1063 | axialExponent h - 1 + slowOrder h (N + 1) := by |
| 1064 | simp only [pressureExponent, angularExponent, axialExponent, CoordinateAlgebra.A, |
| 1065 | slowOrder, Nat.cast_add, Nat.cast_one] |
| 1066 | constructor |
| 1067 | · ring |
| 1068 | constructor <;> linarith |
| 1069 | |
| 1070 | /-- Compact coefficient jets give a uniform bound for every fixed inner |
| 1071 | derivative of a finite sum of actual powers. The exponent is unchanged by |
| 1072 | inner differentiation. -/ |
| 1073 | theorem finite_monomial_inner_jet_bound {ι : Type*} (s : Finset ι) |
| 1074 | (b : ι → ℝ) (F : ι → InnerProfile) (bmin : ℝ) |
| 1075 | {O K : Set InnerPoint} (hO : IsOpen O) (hK : IsCompact K) (hKO : K ⊆ O) |
| 1076 | (hF : ∀ i ∈ s, ContDiffOn ℝ ∞ (F i) O) (hb : ∀ i ∈ s, bmin ≤ b i) (m : ℕ) : |
| 1077 | ∃ C : ℝ, 0 < C ∧ ∀ q : ℝ, 0 < q → q ≤ 1 → ∀ w ∈ K, |
| 1078 | ‖iteratedFDeriv ℝ m (fun y => ∑ i ∈ s, q ^ b i * F i y) w‖ ≤ C * q ^ bmin := by |
| 1079 | classical |
| 1080 | have hex : ∀ i : ι, ∃ D : ℝ, 1 ≤ D ∧ |
| 1081 | ∀ w ∈ K, i ∈ s → ‖iteratedFDeriv ℝ m (F i) w‖ ≤ D := by |
| 1082 | intro i |
| 1083 | by_cases hi : i ∈ s |
| 1084 | · obtain ⟨D, hD, hDb⟩ := SlowBorelBase.compact_jet_bound hO (hF i hi) hK hKO m |
| 1085 | exact ⟨D, hD, fun w hw _ => hDb w hw⟩ |
| 1086 | · exact ⟨1, le_rfl, fun _ _ hi' => (hi hi').elim⟩ |
| 1087 | choose D hD hDb using hex |
| 1088 | have hDn : ∀ i, 0 ≤ D i := fun i => zero_le_one.trans (hD i) |
| 1089 | let C := 1 + ∑ i ∈ s, D i |
| 1090 | have hC : 0 < C := by |
| 1091 | have := Finset.sum_nonneg (fun i (_ : i ∈ s) => hDn i) |
| 1092 | dsimp [C] |
| 1093 | linarith |
| 1094 | refine ⟨C, hC, fun q hq hq1 w hw => ?_⟩ |
| 1095 | have hwO := hKO hw |
| 1096 | have hmn : (m : WithTop ℕ∞) ≤ ∞ := ENat.natCast_le_of_coe_top_le_withTop le_rfl m |
| 1097 | have hsum := iteratedFDerivWithin_fun_sum_apply (𝕜 := ℝ) (i := m) hO.uniqueDiffOn hwO |
| 1098 | (fun i hi => ((hF i hi w hwO).const_smul (q ^ b i)).of_le hmn) |
| 1099 | have hs : iteratedFDeriv ℝ m (fun y => ∑ i ∈ s, q ^ b i * F i y) w = |
| 1100 | ∑ i ∈ s, iteratedFDeriv ℝ m (fun y => q ^ b i * F i y) w := by |
| 1101 | simpa only [iteratedFDerivWithin_of_isOpen _ hO hwO, smul_eq_mul] using hsum |
| 1102 | rw [hs] |
| 1103 | calc |
| 1104 | _ ≤ ∑ i ∈ s, ‖iteratedFDeriv ℝ m (fun y => q ^ b i * F i y) w‖ := norm_sum_le _ _ |
| 1105 | _ ≤ ∑ i ∈ s, D i * q ^ bmin := by |
| 1106 | apply Finset.sum_le_sum |
| 1107 | intro i hi |
| 1108 | have he : iteratedFDeriv ℝ m (fun y => q ^ b i * F i y) w = |
| 1109 | q ^ b i • iteratedFDeriv ℝ m (F i) w := by |
| 1110 | simpa only [smul_eq_mul] using iteratedFDeriv_const_smul_apply' (a := q ^ b i) |
| 1111 | (((hF i hi).contDiffAt (hO.mem_nhds hwO)).of_le hmn) |
| 1112 | rw [he, norm_smul (q ^ b i : ℝ) (iteratedFDeriv ℝ m (F i) w), |
| 1113 | Real.norm_eq_abs, abs_of_pos (Real.rpow_pos_of_pos hq _)] |
| 1114 | calc |
| 1115 | _ ≤ q ^ b i * D i := mul_le_mul_of_nonneg_left (hDb i w hw hi) (Real.rpow_nonneg hq.le _) |
| 1116 | _ ≤ q ^ bmin * D i := mul_le_mul_of_nonneg_right |
| 1117 | (Real.rpow_le_rpow_of_exponent_ge hq hq1 (hb i hi)) (hDn i) |
| 1118 | _ = _ := mul_comm _ _ |
| 1119 | _ = (∑ i ∈ s, D i) * q ^ bmin := (Finset.sum_mul _ _ _).symm |
| 1120 | _ ≤ C * q ^ bmin := mul_le_mul_of_nonneg_right (by dsimp [C]; linarith) |
| 1121 | (Real.rpow_nonneg hq.le _) |
| 1122 | |
| 1123 | theorem transportTail_inner_jet_bound {O K : Set InnerPoint} (hO : IsOpen O) |
| 1124 | (hK : IsCompact K) (hKO : K ⊆ O) {h : ℝ} (hh : 0 ≤ h) |
| 1125 | (N : ℕ) (e α : ℝ) (v u f : ℕ → InnerProfile) |
| 1126 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (v j) O) |
| 1127 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (u j) O) |
| 1128 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f j) O) |
| 1129 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) (m : ℕ) : |
| 1130 | ∃ C : ℝ, 0 < C ∧ ∀ q : ℝ, 0 < q → q ≤ 1 → ∀ w ∈ K, |
| 1131 | ‖iteratedFDeriv ℝ m (transportTail N q h e α v u f) w‖ ≤ |
| 1132 | C * q ^ (e - 1 + slowOrder h (N + 1)) := by |
| 1133 | obtain ⟨C, hC, hb⟩ := finite_monomial_inner_jet_bound (transportIndices N) |
| 1134 | (transportPower N h e) (transportTerm N h e α v u f) (e - 1 + slowOrder h (N + 1)) |
| 1135 | hO hK hKO (fun i hi => transportTerm_smoothOn hO N h e α v u f hv hu hf hX hL hi) |
| 1136 | (fun i hi => transportPower_lower hh N e hi) m |
| 1137 | refine ⟨C, hC, fun q hq hq1 w hw => ?_⟩ |
| 1138 | have he : transportTail N q h e α v u f = |
| 1139 | fun y => ∑ i ∈ transportIndices N, q ^ transportPower N h e i * transportTerm N h e α v u f i y := |
| 1140 | funext (transportTail_eq_finite_monomials N q h e α v u f) |
| 1141 | rw [he] |
| 1142 | exact hb q hq hq1 w hw |
| 1143 | |
| 1144 | theorem pressureTail_inner_jet_bound {O K : Set InnerPoint} (hO : IsOpen O) |
| 1145 | (hK : IsCompact K) (hKO : K ⊆ O) {h : ℝ} (hh : 0 ≤ h) |
| 1146 | (N : ℕ) (C₀ : ℝ) (f : SlowProfiles) |
| 1147 | (hv : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.flux j) O) |
| 1148 | (hu : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.axial j) O) |
| 1149 | (hf : ∀ j ≤ N, ContDiffOn ℝ ∞ (f.phi j) O) |
| 1150 | (hX : ∀ w ∈ O, w.1 ≠ 0) (hL : ∀ w ∈ O, CoordinateAlgebra.L h w.2 ≠ 0) (m : ℕ) : |
| 1151 | ∃ C : ℝ, 0 < C ∧ ∀ q : ℝ, 0 < q → q ≤ 1 → ∀ w ∈ K, |
| 1152 | ‖iteratedFDeriv ℝ m (pressureTail N q h C₀ f) w‖ ≤ |
| 1153 | C * q ^ (pressureExponent h + slowOrder h (N + 1)) := by |
| 1154 | obtain ⟨C, hC, hb⟩ := finite_monomial_inner_jet_bound (pressureIndices N) |
| 1155 | (pressurePower N h) (pressureTerm N h C₀ f) (pressureExponent h + slowOrder h (N + 1)) |
| 1156 | hO hK hKO (fun i hi => pressureTerm_smoothOn hO N h C₀ f hv hu hf hX hL hi) |
| 1157 | (fun i hi => pressurePower_lower hh N hi) m |
| 1158 | refine ⟨C, hC, fun q hq hq1 w hw => ?_⟩ |
| 1159 | have he : pressureTail N q h C₀ f = |
| 1160 | fun y => ∑ i ∈ pressureIndices N, q ^ pressurePower N h i * pressureTerm N h C₀ f i y := |
| 1161 | funext (pressureTail_eq_finite_monomials N q h C₀ f) |
| 1162 | rw [he] |
| 1163 | exact hb q hq hq1 w hw |
| 1164 | |
| 1165 | theorem orderExponent_eq_axial (h : ℝ) (n : ℕ) : |
| 1166 | SlowStressSupport.orderExponent h n = axialExponent h + slowOrder h n := rfl |
| 1167 | |
| 1168 | theorem orderExponent_sub_half (h : ℝ) (n : ℕ) : |
| 1169 | SlowStressSupport.orderExponent h n - 1 / 2 = angularExponent h + slowOrder h n := by |
| 1170 | unfold SlowStressSupport.orderExponent angularExponent PositiveAxisSystem.a CoordinateAlgebra.A |
| 1171 | ring |
| 1172 | |
| 1173 | theorem previous_of_pos (a : ℕ → ℝ) {n : ℕ} (hn : 0 < n) : previous a n = a (n - 1) := by |
| 1174 | cases n with |
| 1175 | | zero => omega |
| 1176 | | succ n => rfl |
| 1177 | |
| 1178 | theorem angular_radius_pair (h C : ℝ) (hC : C ≠ 0) (f : SlowProfiles) (i j : ℕ) |
| 1179 | {w : InnerPoint} (hR : w.1 ≠ 0) |
| 1180 | (hf : DifferentiableAt ℝ (f.phi j) (radiusPoint w)) : |
| 1181 | w.1 * toRadius (f.flux i) w * partialX (swirlRadius C (f.phi j)) w + |
| 1182 | toRadius (f.flux i) w * swirlRadius C (f.phi j) w + |
| 1183 | w.1 ^ 2 * toRadius (f.axial i) w * |
| 1184 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) (swirlRadius C (f.phi j)) w = |
| 1185 | w.1 ^ 3 / C * transportKernel h (angularExponent h) 1 f.flux f.axial f.phi |
| 1186 | (radiusPoint w) i j := by |
| 1187 | rw [partialX_swirlRadius C hf, axialOp_swirlRadius h _ C hf, orderExponent_sub_half] |
| 1188 | simp only [toRadius, swirlRadius, transportKernel, transportPair, one_mul, radiusPoint] |
| 1189 | field_simp [hC, hR] ; ring |
| 1190 | |
| 1191 | theorem axial_radius_pair (h : ℝ) (f : SlowProfiles) (i j : ℕ) |
| 1192 | {w : InnerPoint} (hf : DifferentiableAt ℝ (f.axial j) (radiusPoint w)) : |
| 1193 | toRadius (f.flux i) w * partialX (toRadius (f.axial j)) w + |
| 1194 | w.1 * toRadius (f.axial i) w * |
| 1195 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) (toRadius (f.axial j)) w = |
| 1196 | w.1 * transportKernel h (axialExponent h) 0 f.flux f.axial f.axial |
| 1197 | (radiusPoint w) i j := by |
| 1198 | rw [partialX_toRadius hf, axialOp_toRadius h _ hf, orderExponent_eq_axial] |
| 1199 | simp only [toRadius, transportKernel, transportPair, zero_mul, zero_div, add_zero] |
| 1200 | ring |
| 1201 | |
| 1202 | /-- The canonical R-coordinate weighted angular residual is exactly the |
| 1203 | coefficient used by the finite Cartesian expansion. -/ |
| 1204 | theorem angularWeighted_eq_thetaDensity (h C : ℝ) (hC : C ≠ 0) |
| 1205 | (f : SlowProfiles) {n : ℕ} (hn : 0 < n) {w : InnerPoint} (hR : w.1 ≠ 0) |
| 1206 | (hf : ∀ j ≤ n, ContDiffAt ℝ 2 (f.phi j) (radiusPoint w)) |
| 1207 | (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1208 | SlowStressSupport.angularWeighted h n (fun j => toRadius (f.flux j)) |
| 1209 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j)) w = |
| 1210 | thetaDensity h C f n w := by |
| 1211 | have hsum : (∑ j ∈ Finset.range (n + 1), |
| 1212 | (w.1 * toRadius (f.flux j) w * partialX (swirlRadius C (f.phi (n-j))) w + |
| 1213 | toRadius (f.flux j) w * swirlRadius C (f.phi (n-j)) w + |
| 1214 | w.1 ^ 2 * toRadius (f.axial j) w * |
| 1215 | SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h (n-j)) |
| 1216 | (swirlRadius C (f.phi (n-j))) w)) = |
| 1217 | w.1 ^ 3 / C * convolution |
| 1218 | (transportKernel h (angularExponent h) 1 f.flux f.axial f.phi (radiusPoint w)) n := by |
| 1219 | rw [convolution_eq_positiveAxis] |
| 1220 | unfold PositiveAxisSystem.convolution |
| 1221 | rw [Finset.mul_sum] |
| 1222 | apply Finset.sum_congr rfl |
| 1223 | intro j hj |
| 1224 | exact angular_radius_pair h C hC f j (n-j) hR |
| 1225 | ((hf (n-j) (Nat.sub_le _ _)).differentiableAt (by norm_num)) |
| 1226 | unfold SlowStressSupport.angularWeighted |
| 1227 | simp only [show SlowStressSupport.dr = partialX from rfl] |
| 1228 | change w.1 ^ 2 * SlowStressSupport.timeOp h (SlowStressSupport.orderExponent h n) |
| 1229 | (swirlRadius C (f.phi n)) w + _ - |
| 1230 | (w.1 ^ 2 * partialX (partialX (swirlRadius C (f.phi n))) w + |
| 1231 | w.1 * partialX (swirlRadius C (f.phi n)) w - swirlRadius C (f.phi n) w) - _ = _ |
| 1232 | rw [hsum, timeOp_swirlRadius h _ C ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1233 | partialXX_swirlRadius C (hf n le_rfl), partialX_swirlRadius C |
| 1234 | ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1235 | axialOp2_swirlRadius h _ C (hf (n-1) (Nat.sub_le _ _)) hL, |
| 1236 | orderExponent_sub_half, orderExponent_sub_half] |
| 1237 | simp only [thetaDensity, angularCoefficient, transportCoefficient, recurrence, transportLinear, |
| 1238 | previous_of_pos _ hn, add_zero] |
| 1239 | simp only [swirlRadius, toRadius, radiusPoint, transportKernel] |
| 1240 | ring |
| 1241 | |
| 1242 | /-- The canonical weighted axial residual uses the same pressure derivative |
| 1243 | and preceding viscosity as the finite Cartesian expansion. -/ |
| 1244 | theorem axialWeighted_eq_zDensity (h : ℝ) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1245 | {w : InnerPoint} (hf : ∀ j ≤ n, ContDiffAt ℝ 2 (f.axial j) (radiusPoint w)) |
| 1246 | (hp : DifferentiableAt ℝ (f.pressure n) (radiusPoint w)) |
| 1247 | (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1248 | SlowStressSupport.axialWeighted h n (fun j => toRadius (f.flux j)) |
| 1249 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n)) w = zDensity h f n w := by |
| 1250 | have hsum : (∑ j ∈ Finset.range (n+1), |
| 1251 | (toRadius (f.flux j) w * partialX (toRadius (f.axial (n-j))) w + |
| 1252 | w.1 * toRadius (f.axial j) w * SlowStressSupport.axialOp h |
| 1253 | (SlowStressSupport.orderExponent h (n-j)) (toRadius (f.axial (n-j))) w)) = |
| 1254 | w.1 * convolution |
| 1255 | (transportKernel h (axialExponent h) 0 f.flux f.axial f.axial (radiusPoint w)) n := by |
| 1256 | rw [convolution_eq_positiveAxis] |
| 1257 | unfold PositiveAxisSystem.convolution |
| 1258 | rw [Finset.mul_sum] |
| 1259 | apply Finset.sum_congr rfl |
| 1260 | intro j hj |
| 1261 | exact axial_radius_pair h f j (n-j) |
| 1262 | ((hf (n-j) (Nat.sub_le _ _)).differentiableAt (by norm_num)) |
| 1263 | unfold SlowStressSupport.axialWeighted |
| 1264 | simp only [show SlowStressSupport.dr = partialX from rfl] |
| 1265 | change w.1 * SlowStressSupport.timeOp h (SlowStressSupport.orderExponent h n) |
| 1266 | (toRadius (f.axial n)) w + _ + _ - |
| 1267 | (w.1 * partialX (partialX (toRadius (f.axial n))) w + |
| 1268 | partialX (toRadius (f.axial n)) w) - _ = _ |
| 1269 | rw [hsum, timeOp_toRadius h _ ((hf n le_rfl).differentiableAt (by norm_num)), |
| 1270 | partialXX_toRadius (hf n le_rfl), partialX_toRadius |
| 1271 | ((hf n le_rfl).differentiableAt (by norm_num)), axialOp_toRadius h _ hp, |
| 1272 | axialOp2_toRadius h _ (hf (n-1) (Nat.sub_le _ _)) hL, |
| 1273 | orderExponent_eq_axial, orderExponent_eq_axial] |
| 1274 | simp only [zDensity, axialCoefficient, transportCoefficient, recurrence, transportLinear, |
| 1275 | previous_of_pos _ hn, axialPressureSource] |
| 1276 | simp only [radiusPoint, transportKernel] |
| 1277 | change _ = w.1 * (T h (axialExponent h + slowOrder h n) (f.axial n) (radiusPoint w) - |
| 1278 | 2 * (w.1^2 / 2 * partialX (partialX (f.axial n)) (radiusPoint w) + |
| 1279 | 1 * partialX (f.axial n) (radiusPoint w)) + |
| 1280 | Z h (pressureExponent h + slowOrder h n) (f.pressure n) (radiusPoint w) + _ - _) |
| 1281 | simp only [radiusPoint, SlowStressSupport.pressureExponent, pressureExponent, |
| 1282 | PositiveAxisSystem.a, CoordinateAlgebra.A] |
| 1283 | ring |
| 1284 | |
| 1285 | theorem radius_divergence (h : ℝ) (f : SlowProfiles) (n : ℕ) {w : InnerPoint} |
| 1286 | (hv : DifferentiableAt ℝ (f.flux n) (radiusPoint w)) |
| 1287 | (hu : DifferentiableAt ℝ (f.axial n) (radiusPoint w)) |
| 1288 | (hd : divergenceCoefficient h f n (radiusPoint w) = 0) : |
| 1289 | SlowStressSupport.dr (toRadius (f.flux n)) w = |
| 1290 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h n) |
| 1291 | (toRadius (f.axial n)) w := by |
| 1292 | change partialX (toRadius (f.flux n)) w = _ |
| 1293 | rw [partialX_toRadius hv, axialOp_toRadius h _ hu, orderExponent_eq_axial, |
| 1294 | (divergenceCoefficient_eq_zero_iff h f n (radiusPoint w)).mp hd] |
| 1295 | ring |
| 1296 | |
| 1297 | theorem partialX_toRadius_zero {f : InnerProfile} {eta : ℝ} |
| 1298 | (hf : DifferentiableAt ℝ (toRadius f) (0, eta)) : partialX (toRadius f) (0, eta) = 0 := by |
| 1299 | have he : Function.Even (fun R => toRadius f (R, eta)) := by |
| 1300 | intro R |
| 1301 | simp [toRadius, radiusPoint] |
| 1302 | exact (LeadingStress.partialX_hasDerivAt hf).deriv.symm.trans |
| 1303 | (EvenSmoothDescent.deriv_zero_of_even he) |
| 1304 | |
| 1305 | /-- The primitive source is the canonical conservative density, including |
| 1306 | the axis. At the axis the equality uses the actual radial parity. -/ |
| 1307 | theorem thetaDensity_eq_angularDensity {S : Set ℝ} (hS : IsOpen S) |
| 1308 | (h C : ℝ) (hC : C ≠ 0) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1309 | (hv : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.flux j))) |
| 1310 | (hu : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.axial j))) |
| 1311 | (he : ∀ j ≤ n, SlowStressSupport.Smooth S (swirlRadius C (f.phi j))) |
| 1312 | (hf : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → ∀ j ≤ n, |
| 1313 | ContDiffAt ℝ 2 (f.phi j) (radiusPoint w)) |
| 1314 | (hL : ∀ eta ∈ S, CoordinateAlgebra.L h eta ≠ 0) |
| 1315 | (hdiv : ∀ w : InnerPoint, w.2 ∈ S → ∀ j ≤ n, |
| 1316 | SlowStressSupport.dr (toRadius (f.flux j)) w = |
| 1317 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) |
| 1318 | (toRadius (f.axial j)) w) : |
| 1319 | EqOn (thetaDensity h C f n) |
| 1320 | (SlowStressSupport.angularDensity h n (fun j => toRadius (f.flux j)) |
| 1321 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j))) |
| 1322 | (SlowStressSupport.region S) := by |
| 1323 | intro w hw |
| 1324 | rw [← SlowStressSupport.angularWeighted_eq_density hS hv hu he h hw.2 (hdiv w hw.2)] |
| 1325 | by_cases hR : w.1 = 0 |
| 1326 | · simp [thetaDensity, SlowStressSupport.angularWeighted, swirlRadius, hR] |
| 1327 | · exact (angularWeighted_eq_thetaDensity h C hC f hn hR (hf w hw.2 hR) (hL w.2 hw.2)).symm |
| 1328 | |
| 1329 | theorem zDensity_eq_axialDensity {S : Set ℝ} (hS : IsOpen S) |
| 1330 | (h : ℝ) (f : SlowProfiles) {n : ℕ} (hn : 0 < n) |
| 1331 | (hv : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.flux j))) |
| 1332 | (hu : ∀ j ≤ n, SlowStressSupport.Smooth S (toRadius (f.axial j))) |
| 1333 | (hp : SlowStressSupport.Smooth S (toRadius (f.pressure n))) |
| 1334 | (hf : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → ∀ j ≤ n, |
| 1335 | ContDiffAt ℝ 2 (f.axial j) (radiusPoint w)) |
| 1336 | (hp' : ∀ w : InnerPoint, w.2 ∈ S → w.1 ≠ 0 → |
| 1337 | DifferentiableAt ℝ (f.pressure n) (radiusPoint w)) |
| 1338 | (hL : ∀ eta ∈ S, CoordinateAlgebra.L h eta ≠ 0) |
| 1339 | (hdiv : ∀ w : InnerPoint, w.2 ∈ S → ∀ j ≤ n, |
| 1340 | SlowStressSupport.dr (toRadius (f.flux j)) w = |
| 1341 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h j) |
| 1342 | (toRadius (f.axial j)) w) : |
| 1343 | EqOn (zDensity h f n) |
| 1344 | (SlowStressSupport.axialDensity h n (fun j => toRadius (f.flux j)) |
| 1345 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n))) |
| 1346 | (SlowStressSupport.region S) := by |
| 1347 | intro w hw |
| 1348 | rw [← SlowStressSupport.axialWeighted_eq_density hS hv hu hp h hw.2 (hdiv w hw.2)] |
| 1349 | by_cases hR : w.1 = 0 |
| 1350 | · have hdz : ∀ j ≤ n, SlowStressSupport.dr (toRadius (f.axial j)) w = 0 := by |
| 1351 | intro j hj |
| 1352 | have hw' : w = (0, w.2) := by ext <;> simp [hR] |
| 1353 | rw [hw'] |
| 1354 | exact partialX_toRadius_zero (((hu j hj).contDiffAt (x := (0, w.2)) |
| 1355 | ((isOpen_univ.prod hS).mem_nhds ⟨mem_univ _, hw.2⟩)).differentiableAt (by simp)) |
| 1356 | simp only [zDensity, hR, zero_mul, SlowStressSupport.axialWeighted, add_zero, zero_add, sub_zero, hdz n le_rfl] |
| 1357 | symm |
| 1358 | apply Finset.sum_eq_zero |
| 1359 | intro j hj |
| 1360 | rw [hdz (n-j) (Nat.sub_le _ _), mul_zero] |
| 1361 | · exact (axialWeighted_eq_zDensity h f hn (hf w hw.2 hR) (hp' w hw.2 hR) (hL w.2 hw.2)).symm |
| 1362 | |
| 1363 | theorem primitive_stress_congr_slice (m : ℕ) {F G : InnerProfile} {R eta : ℝ} |
| 1364 | (hFG : ∀ r : ℝ, F (r, eta) = G (r, eta)) : |
| 1365 | SlowStressSupport.stress m F (R, eta) = SlowStressSupport.stress m G (R, eta) := by |
| 1366 | have hp : ProfileHistories.primitive F (R, eta) = ProfileHistories.primitive G (R, eta) := |
| 1367 | intervalIntegral.integral_congr (fun r _ => hFG r) |
| 1368 | simp only [SlowStressSupport.stress, hp] |
| 1369 | |
| 1370 | /-- Equality of the actual negative integrals, not just their derivatives. -/ |
| 1371 | theorem thetaStress_eq_canonical {S : Set ℝ} (h C : ℝ) (f : SlowProfiles) (n : ℕ) |
| 1372 | (hEq : EqOn (thetaDensity h C f n) |
| 1373 | (SlowStressSupport.angularDensity h n (fun j => toRadius (f.flux j)) |
| 1374 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j))) |
| 1375 | (SlowStressSupport.region S)) {w : InnerPoint} (hw : w.2 ∈ S) : |
| 1376 | thetaStress h C f n w = fromRadius |
| 1377 | (SlowStressSupport.angularStress h n (fun j => toRadius (f.flux j)) |
| 1378 | (fun j => toRadius (f.axial j)) (fun j => swirlRadius C (f.phi j))) w := |
| 1379 | primitive_stress_congr_slice 2 (fun r => hEq ⟨mem_univ r, hw⟩) |
| 1380 | |
| 1381 | theorem zStress_eq_canonical {S : Set ℝ} (h : ℝ) (f : SlowProfiles) (n : ℕ) |
| 1382 | (hEq : EqOn (zDensity h f n) |
| 1383 | (SlowStressSupport.axialDensity h n (fun j => toRadius (f.flux j)) |
| 1384 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n))) |
| 1385 | (SlowStressSupport.region S)) {w : InnerPoint} (hw : w.2 ∈ S) : |
| 1386 | zStress h f n w = fromRadius |
| 1387 | (SlowStressSupport.axialStress h n (fun j => toRadius (f.flux j)) |
| 1388 | (fun j => toRadius (f.axial j)) (toRadius (f.pressure n))) w := |
| 1389 | primitive_stress_congr_slice 1 (fun r => hEq ⟨mem_univ r, hw⟩) |
| 1390 | |
| 1391 | theorem inner_smoothAt_of_radial {S : Set ℝ} (hS : IsOpen S) {F E : InnerProfile} |
| 1392 | (hF : SlowStressSupport.Smooth S F) |
| 1393 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ S, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1394 | {w : InnerPoint} (hX : 0 < w.1) (heta : w.2 ∈ S) : ContDiffAt ℝ ∞ E w := by |
| 1395 | have hs := fromRadius_smoothAt hX ((hF.contDiffAt |
| 1396 | ((isOpen_univ.prod hS).mem_nhds (show (Real.sqrt (2 * w.1), w.2) ∈ SlowStressSupport.region S from |
| 1397 | ⟨mem_univ _, heta⟩)))) |
| 1398 | apply hs.congr_of_eventuallyEq |
| 1399 | filter_upwards [(isOpen_Ioi.prod hS).mem_nhds ⟨hX, heta⟩] with y hy |
| 1400 | have hyX : 0 < y.1 := hy.1 |
| 1401 | have hyR : 0 < Real.sqrt (2 * y.1) := Real.sqrt_pos.2 (by positivity) |
| 1402 | have hr2 := Real.sq_sqrt (show 0 ≤ 2 * y.1 by positivity) |
| 1403 | have hval := hFE (Real.sqrt (2 * y.1)) hyR y.2 hy.2 |
| 1404 | have hpoint : (Real.sqrt (2 * y.1) ^ 2 / 2, y.2) = y := by |
| 1405 | rw [hr2] |
| 1406 | ext <;> simp |
| 1407 | rw [hpoint] at hval |
| 1408 | exact hval.symm |
| 1409 | |
| 1410 | theorem axialOp2_congr_germ (h b : ℝ) {f g : InnerProfile} {w : InnerPoint} |
| 1411 | (hfg : f =ᶠ[𝓝 w] g) : |
| 1412 | SlowStressSupport.axialOp2 h b f w = SlowStressSupport.axialOp2 h b g w := by |
| 1413 | have he : SlowStressSupport.axialOp h b f =ᶠ[𝓝 w] SlowStressSupport.axialOp h b g := by |
| 1414 | filter_upwards [hfg.eventuallyEq_nhds] with y hy |
| 1415 | exact axialOp_congr_germ h b hy |
| 1416 | exact axialOp_congr_germ h (b - PositiveAxisSystem.dScale h) he |
| 1417 | |
| 1418 | theorem axialOp2_radial_eq_Z2 {S : Set ℝ} (hS : IsOpen S) (h b : ℝ) |
| 1419 | {F E : InnerProfile} (hF : SlowStressSupport.Smooth S F) |
| 1420 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ S, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1421 | {w : InnerPoint} (hR : 0 < w.1) (heta : w.2 ∈ S) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 1422 | SlowStressSupport.axialOp2 h b F w = Z2 h b E (radiusPoint w) := by |
| 1423 | have he : F =ᶠ[𝓝 w] toRadius E := by |
| 1424 | filter_upwards [(isOpen_Ioi.prod hS).mem_nhds ⟨hR, heta⟩] with y hy |
| 1425 | exact hFE y.1 hy.1 y.2 hy.2 |
| 1426 | rw [axialOp2_congr_germ h b he] |
| 1427 | exact axialOp2_toRadius h b |
| 1428 | ((inner_smoothAt_of_radial hS hF hFE (w := radiusPoint w) |
| 1429 | (by dsimp [radiusPoint]; positivity) heta).of_le |
| 1430 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) hL |
| 1431 | |
| 1432 | theorem deriv_deriv_pullback_z {h b : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1433 | {f : InnerProfile} {p : PhysicalPoint} (hp : p.1 < 1) |
| 1434 | (hf : ContDiffAt ℝ 2 f (SimilarityProfile.inner h p)) : |
| 1435 | deriv (deriv (fun z => pullback h b f (p.1, (p.2.1, z)))) p.2.2 = |
| 1436 | pullback h (b - 2 * CoordinateAlgebra.D h) (Z2 h b f) p := by |
| 1437 | have hc : ContinuousAt (fun z : ℝ => (p.1, (p.2.1, z))) p.2.2 := |
| 1438 | continuousAt_const.prodMk (continuousAt_const.prodMk continuousAt_id) |
| 1439 | have he : deriv (fun z => pullback h b f (p.1, (p.2.1, z))) =ᶠ[𝓝 p.2.2] |
| 1440 | (fun z => pullback h (b - CoordinateAlgebra.D h) (Z h b f) (p.1, (p.2.1, z))) := by |
| 1441 | have hlocal := hc.eventually (SimilarityProfile.eventually_C2_inner hh hh1 hp hf) |
| 1442 | filter_upwards [hlocal] with z hz |
| 1443 | exact (SimilarityProfile.hasDerivAt_pullback_z hh hh1 |
| 1444 | (p := (p.1, (p.2.1, z))) hp (hz.differentiableAt (by norm_num))).deriv |
| 1445 | rw [he.deriv_eq] |
| 1446 | have hd := (SimilarityProfile.hasDerivAt_pullback_z hh hh1 hp |
| 1447 | ((SimilarityProfile.Z_smoothAt (b := b) hf (SimilarityProfile.L_pos hh hh1 hp).ne').differentiableAt (by norm_num)) |
| 1448 | (b := b - CoordinateAlgebra.D h)).deriv |
| 1449 | rw [show b - CoordinateAlgebra.D h - CoordinateAlgebra.D h = |
| 1450 | b - 2 * CoordinateAlgebra.D h by ring] at hd |
| 1451 | exact hd |
| 1452 | |
| 1453 | /-- At the normalized physical point q=1, the literal second axial |
| 1454 | derivative is exactly the canonical R-coordinate operator. -/ |
| 1455 | theorem normalized_axial_viscosity {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1456 | {F E : InnerProfile} (hF : SlowStressSupport.Smooth (Ioo (-1) 1) F) |
| 1457 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1458 | {eta R : ℝ} (heta : eta ∈ Ioo (-1 : ℝ) 1) (hR : 0 < R) : |
| 1459 | deriv (deriv (RenormalizedHeatMoment.uTheta h E (eta ^ 2) R)) eta = |
| 1460 | SlowStressSupport.axialOp2 h (-CoordinateAlgebra.A h) F (R, eta) := by |
| 1461 | obtain ⟨ht, hq, he⟩ := RenormalizedHeatMoment.normalized_coordinates hh hh1 heta |
| 1462 | let p : PhysicalPoint := (eta ^ 2, (R ^ 2 / 2, eta)) |
| 1463 | have hqp : SimilarityProfile.q h p = 1 := hq |
| 1464 | have hep : SimilarityProfile.eta h p = eta := he |
| 1465 | have hip : SimilarityProfile.inner h p = radiusPoint (R, eta) := by |
| 1466 | ext <;> simp [SimilarityProfile.inner, SimilarityProfile.X, hqp, hep, radiusPoint, p] |
| 1467 | have hL : CoordinateAlgebra.L h eta ≠ 0 := by |
| 1468 | have hl := (SimilarityProfile.L_pos hh hh1 (p := p) ht).ne' |
| 1469 | rwa [hep] at hl |
| 1470 | have hE := inner_smoothAt_of_radial isOpen_Ioo hF hFE |
| 1471 | (w := radiusPoint (R, eta)) (by dsimp [radiusPoint]; positivity) heta |
| 1472 | have hE2 : ContDiffAt ℝ 2 E (SimilarityProfile.inner h p) := by |
| 1473 | rw [hip] |
| 1474 | exact hE.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) |
| 1475 | rw [axialOp2_radial_eq_Z2 isOpen_Ioo h (-CoordinateAlgebra.A h) hF hFE hR heta hL] |
| 1476 | have hfun : RenormalizedHeatMoment.uTheta h E (eta ^ 2) R = |
| 1477 | fun z => pullback h (-CoordinateAlgebra.A h) E (p.1, (p.2.1, z)) := |
| 1478 | funext (RenormalizedHeatMoment.uTheta_eq_similarity_pullback h E (eta ^ 2) R) |
| 1479 | rw [hfun, deriv_deriv_pullback_z hh hh1 (p := p) ht hE2] |
| 1480 | simp only [pullback, hqp, hip, Real.one_rpow, one_mul] |
| 1481 | |
| 1482 | /-- The order-one angular viscosity moment follows from the restored |
| 1483 | renormalized heat moment. Only the stated exterior support is used to |
| 1484 | replace the positive half-line integral by its finite radial integral. -/ |
| 1485 | theorem lowerAngularViscosityMoment_of_renormalized {h C T B : ℝ} |
| 1486 | (hh : 0 < h) (hh1 : h < 1 / 2) (hT : 0 < T) (hB : 0 ≤ B) |
| 1487 | {F E : InnerProfile} (hF : SlowStressSupport.Smooth (Ioo (-1) 1) F) |
| 1488 | (hFE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, F (R, eta) = E (R ^ 2 / 2, eta)) |
| 1489 | (he : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, T ≤ X → |
| 1490 | E (X, eta) = C * X ^ (-RenormalizedHeatMoment.A h) * |
| 1491 | RadialHeatProfile.profile (1 + h) (2 * (1 - eta ^ 2) / X)) |
| 1492 | (hm : ∀ eta ∈ Ioo (-1 : ℝ) 1, RenormalizedHeatMoment.xMoment h C E eta = 0) |
| 1493 | (hExt : SlowStressSupport.exterior B (Ioo (-1) 1) |
| 1494 | (SlowStressSupport.axialOp2 h (SlowStressSupport.orderExponent h 0) F)) : |
| 1495 | SlowStressSupport.LowerAngularViscosityMoment (Ioo (-1) 1) B h F := by |
| 1496 | intro eta heta |
| 1497 | obtain ⟨ht, _, _⟩ := RenormalizedHeatMoment.normalized_coordinates hh hh1 heta |
| 1498 | have hz := RenormalizedHeatMoment.uTheta_axial_viscosity_integral hh hh1 ht hT hF hFE he hm eta |
| 1499 | rw [SlowStressSupport.moment_eq_positive hB hExt heta 2] |
| 1500 | change (∫ R in Ioi (0 : ℝ), R ^ 2 * |
| 1501 | SlowStressSupport.axialOp2 h (SlowStressSupport.orderExponent h 0) F (R, eta)) = 0 |
| 1502 | calc |
| 1503 | _ = ∫ R in Ioi (0 : ℝ), R ^ 2 * |
| 1504 | deriv (deriv (RenormalizedHeatMoment.uTheta h E (eta ^ 2) R)) eta := by |
| 1505 | apply MeasureTheory.setIntegral_congr_fun measurableSet_Ioi |
| 1506 | intro R hR |
| 1507 | dsimp only |
| 1508 | rw [normalized_axial_viscosity hh hh1 hF hFE heta hR] |
| 1509 | simp only [SlowStressSupport.orderExponent, slowOrder_zero, add_zero] |
| 1510 | rfl |
| 1511 | _ = 0 := hz |
| 1512 | |
| 1513 | theorem hierarchy_profile_smoothAt {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 1514 | {base : Fin 5 → InnerProfile} (A : SlowRecursion.LocalHierarchy R U h C base) |
| 1515 | (hR : 0 < R) (hU : IsOpen U) (n : ℕ) (i : Fin 5) |
| 1516 | {w : InnerPoint} (hX : w.1 ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (w.2 : ℂ) ∈ U) : |
| 1517 | ContDiffAt ℝ ∞ (SlowRecursion.profile (A.coefficients n i)) w := by |
| 1518 | have hsub : Ioo (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U ⊆ |
| 1519 | Ico (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U := |
| 1520 | fun _ hw => ⟨⟨hw.1.1.le, hw.1.2⟩, hw.2⟩ |
| 1521 | exact ((A.profiles_smooth hR hU n i).mono hsub).contDiffAt |
| 1522 | ((isOpen_Ioo.prod (PositiveAxisExistence.realParameterDomain_isOpen hU)).mem_nhds ⟨hX, heta⟩) |
| 1523 | |
| 1524 | theorem hierarchy_pressure_coefficient {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 1525 | {base : Fin 5 → InnerProfile} (A : SlowRecursion.LocalHierarchy R U h C base) |
| 1526 | (hR : 0 < R) (hU : IsOpen U) {n : ℕ} (hn : 0 < n) |
| 1527 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) |
| 1528 | (hL : CoordinateAlgebra.L h eta ≠ 0) : |
| 1529 | pressureCoefficient h C (hierarchyProfiles A) n (X, eta) = 0 := by |
| 1530 | exact positiveOrder_pressure_coefficient h C _ _ _ _ _ n hX.1.ne' hL |
| 1531 | (fun j _ => (hierarchy_profile_smoothAt A hR hU j 4 hX heta).of_le |
| 1532 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) |
| 1533 | (A.equations n hn X hX eta heta) |
| 1534 | |
| 1535 | /-- A repaired family that retains the finite input germs retains the |
| 1536 | actual solved angular and axial equations in the inner region. -/ |
| 1537 | theorem repaired_tangential_coefficients {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 1538 | {base : Fin 5 → InnerProfile} (A : SlowRecursion.LocalHierarchy R U h C base) |
| 1539 | (f : SlowProfiles) {n : ℕ} (hn : 0 < n) {X eta : ℝ} |
| 1540 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) |
| 1541 | (hv : ∀ j ≤ n, f.flux j =ᶠ[𝓝 (X, eta)] (hierarchyProfiles A).flux j) |
| 1542 | (hu : ∀ j ≤ n, f.axial j =ᶠ[𝓝 (X, eta)] (hierarchyProfiles A).axial j) |
| 1543 | (hphi : ∀ j ≤ n, f.phi j =ᶠ[𝓝 (X, eta)] (hierarchyProfiles A).phi j) |
| 1544 | (hp : f.pressure n =ᶠ[𝓝 (X, eta)] (hierarchyProfiles A).pressure n) : |
| 1545 | angularCoefficient h f n (X, eta) = 0 ∧ axialCoefficient h f n (X, eta) = 0 := by |
| 1546 | rw [angularCoefficient_congr_germ h n hv hu hphi, axialCoefficient_congr_germ h n hv hu hp] |
| 1547 | exact hierarchy_tangential_coefficients A hn hX heta |
| 1548 | |
| 1549 | end NavierStokes.SlowResidualMatching |