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.MeanChartCompatibility |
| 2 | import NavierStokes.PhysicalMeanDomain |
| 3 | import NavierStokes.LocalSignedRequest |
| 4 | |
| 5 | /-! |
| 6 | # The actual similarity-dependent mean gauge |
| 7 | |
| 8 | The endpoints are multiplied by the actual `sqrt(q)`. The cutoff and |
| 9 | normalized density are defined explicitly, and the primitive is the existing |
| 10 | integral operator evaluated with those endpoints on each slow fiber. |
| 11 | |
| 12 | The estimates use the moving profile `R / sqrt(q)` and the full ordinary |
| 13 | Fréchet derivatives. Their constants are uniform in the source family and |
| 14 | the radial transport frequency. The exact cutoff alias is retained. |
| 15 | |
| 16 | The final State theorems derive pressure, pressure-change and temporal |
| 17 | increment classes from the actual input fields on the valid slow domain. |
| 18 | The common torus index and its bounded gap from the native index remain |
| 19 | explicit. This module does not assert arbitrary-power alias decay. |
| 20 | -/ |
| 21 | |
| 22 | namespace NavierStokes.VariableGaugeMean |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open Set Function Filter MeasureTheory |
| 27 | open scoped ContDiff Topology Interval BigOperators |
| 28 | |
| 29 | section Scale |
| 30 | |
| 31 | theorem positiveRadius_scale {l : ℝ} (hl : l ≠ 0) (a r : ℝ) : |
| 32 | RadialPullback.positiveRadius (l * a) (l * r) = l * RadialPullback.positiveRadius a r := by |
| 33 | unfold RadialPullback.positiveRadius |
| 34 | rw [show l * r - l * a = l * (r - a) by ring, mul_div_mul_left _ _ hl] |
| 35 | ring |
| 36 | |
| 37 | theorem powerChart_scale {l a : ℝ} (hl : 0 < l) (ha : 0 < a) (d r : ℝ) : |
| 38 | RadialPullback.powerChart d (l * a) (l * r) = l ^ d * RadialPullback.powerChart d a r := by |
| 39 | unfold RadialPullback.powerChart |
| 40 | rw [show l * a / 4 = l * (a / 4) by ring, positiveRadius_scale hl.ne', |
| 41 | Real.mul_rpow hl.le (RadialPullback.positiveRadius_pos (by positivity) r).le] |
| 42 | |
| 43 | theorem physicalCutoff_scale {l a b : ℝ} (hl : 0 < l) (ha : 0 < a) (hab : a < b) |
| 44 | (d r : ℝ) : |
| 45 | RadialPullback.physicalCutoff d (l * a) (l * b) (l * r) = |
| 46 | RadialPullback.physicalCutoff d a b r := by |
| 47 | unfold RadialPullback.physicalCutoff |
| 48 | rw [powerChart_scale hl ha, Real.mul_rpow hl.le ha.le, |
| 49 | Real.mul_rpow hl.le (ha.trans hab).le] |
| 50 | exact MeanChartCompatibility.interiorCutoff_scale (Real.rpow_pos_of_pos hl d).ne' _ _ _ |
| 51 | |
| 52 | end Scale |
| 53 | |
| 54 | section Gauge |
| 55 | |
| 56 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 57 | |
| 58 | noncomputable def radialRatio (ell : S → ℝ) (z : PressureStream.Lift S) : ℝ := z.1 / ell z.2.1 |
| 59 | |
| 60 | noncomputable def cutoff (d a b : ℝ) (ell : S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 61 | RadialPullback.physicalCutoff d a b (radialRatio ell z) |
| 62 | |
| 63 | noncomputable def density (a b : ℝ) (hab : a < b) (ell : S → ℝ) |
| 64 | (z : PressureStream.Lift S) : ℝ := |
| 65 | (ell z.2.1)⁻¹ * PressureStream.rho a b hab (radialRatio ell z) |
| 66 | |
| 67 | noncomputable def SupportedGauge (a b : ℝ) (ell : S → ℝ) (U : Set S) |
| 68 | (f : PressureStream.Lift S → ℝ) : Prop := |
| 69 | ∀ z, z.2.1 ∈ U → f z ≠ 0 → z.1 ∈ Icc (ell z.2.1 * a) (ell z.2.1 * b) |
| 70 | |
| 71 | /-- Genuine integral with the actual endpoints on this slow fiber. -/ |
| 72 | noncomputable def compactPrimitive (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 73 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 74 | RadialPullback.physicalCompact d (ell z.2.1 * a) (ell z.2.1 * b) M ((0 : S), v) f z |
| 75 | |
| 76 | noncomputable def pressureSource (a b : ℝ) (hab : a < b) (ell : S → ℝ) |
| 77 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 78 | f z - density a b hab ell z * PressureStream.pressureMass f z.2.1 |
| 79 | |
| 80 | noncomputable def meanPressure (d a b M : ℝ) (hab : a < b) (ell : S → ℝ) |
| 81 | (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 82 | compactPrimitive d a b M ell v (pressureSource a b hab ell f) |
| 83 | |
| 84 | noncomputable def streamPotential (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 85 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 86 | PressureStream.divideRadius (compactPrimitive d a b M ell v (PressureStream.weightedSource f)) |
| 87 | |
| 88 | noncomputable def compactAlias (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 89 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 90 | RadialPullback.physicalAlias d (ell z.2.1 * a) (ell z.2.1 * b) M ((0 : S), v) f z |
| 91 | |
| 92 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 93 | theorem cutoff_eq_scaled {a b : ℝ} (ha : 0 < a) (hab : a < b) (d : ℝ) |
| 94 | (ell : S → ℝ) (z : PressureStream.Lift S) (hl : 0 < ell z.2.1) : |
| 95 | cutoff d a b ell z = |
| 96 | RadialPullback.physicalCutoff d (ell z.2.1 * a) (ell z.2.1 * b) z.1 := by |
| 97 | have h := physicalCutoff_scale hl ha hab d (z.1 / ell z.2.1) |
| 98 | rw [mul_div_cancel₀ _ hl.ne'] at h |
| 99 | exact h.symm |
| 100 | |
| 101 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 102 | theorem density_eq_scaled {a b : ℝ} (hab : a < b) (ell : S → ℝ) |
| 103 | (z : PressureStream.Lift S) (hl : 0 < ell z.2.1) : |
| 104 | density a b hab ell z = PressureStream.rho (ell z.2.1 * a) (ell z.2.1 * b) |
| 105 | (mul_lt_mul_of_pos_left hab hl) z.1 := by |
| 106 | have h := MeanChartCompatibility.rho_scale hl hab (z.1 / ell z.2.1) |
| 107 | rw [mul_div_cancel₀ _ hl.ne'] at h |
| 108 | exact h.symm |
| 109 | |
| 110 | theorem radialRatio_contDiffOn {ell : S → ℝ} {U : Set S} |
| 111 | (hl : ContDiffOn ℝ ∞ ell U) (hp : ∀ s ∈ U, 0 < ell s) : |
| 112 | ContDiffOn ℝ ∞ (radialRatio ell) (PhysicalMeanDomain.slowDomain U) := |
| 113 | contDiffOn_fst.div (hl.comp contDiffOn_snd.fst (fun _ hs => hs)) (fun _ hs => (hp _ hs).ne') |
| 114 | |
| 115 | theorem cutoff_contDiffOn {a : ℝ} (ha : 0 < a) (d b : ℝ) {ell : S → ℝ} {U : Set S} |
| 116 | (hl : ContDiffOn ℝ ∞ ell U) (hp : ∀ s ∈ U, 0 < ell s) : |
| 117 | ContDiffOn ℝ ∞ (cutoff d a b ell) (PhysicalMeanDomain.slowDomain U) := |
| 118 | (RadialPullback.physicalCutoff_contDiff ha d b).comp_contDiffOn (radialRatio_contDiffOn hl hp) |
| 119 | |
| 120 | theorem density_contDiffOn {a b : ℝ} (hab : a < b) {ell : S → ℝ} {U : Set S} |
| 121 | (hl : ContDiffOn ℝ ∞ ell U) (hp : ∀ s ∈ U, 0 < ell s) : |
| 122 | ContDiffOn ℝ ∞ (density a b hab ell) (PhysicalMeanDomain.slowDomain U) := |
| 123 | ((hl.comp contDiffOn_snd.fst (fun _ hs => hs)).inv (fun _ hs => (hp _ hs).ne')).mul |
| 124 | ((PressureStream.rho_contDiff a b hab).comp_contDiffOn (radialRatio_contDiffOn hl hp)) |
| 125 | |
| 126 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 127 | theorem density_supported {a b : ℝ} (hab : a < b) (ell : S → ℝ) (U : Set S) |
| 128 | (hl : ∀ s ∈ U, 0 < ell s) : SupportedGauge a b ell U (density a b hab ell) := by |
| 129 | intro z hz hn |
| 130 | rw [density_eq_scaled hab ell z (hl _ hz)] at hn |
| 131 | exact PressureStream.rho_support _ _ _ hn |
| 132 | |
| 133 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 134 | theorem pressureSource_supported {a b : ℝ} (hab : a < b) {ell : S → ℝ} {U : Set S} |
| 135 | (hl : ∀ s ∈ U, 0 < ell s) {f : PressureStream.Lift S → ℝ} |
| 136 | (hf : SupportedGauge a b ell U f) : SupportedGauge a b ell U (pressureSource a b hab ell f) := by |
| 137 | intro z hz hn |
| 138 | by_contra hnot |
| 139 | have hf0 : f z = 0 := by by_contra he; exact hnot (hf z hz he) |
| 140 | have hd0 : density a b hab ell z = 0 := by |
| 141 | by_contra he |
| 142 | exact hnot (density_supported hab ell U hl z hz he) |
| 143 | exact hn (by simp [pressureSource, hf0, hd0]) |
| 144 | |
| 145 | end Gauge |
| 146 | |
| 147 | section ActualQ |
| 148 | |
| 149 | open TorusInverse |
| 150 | |
| 151 | /-- Slow variables in this module follow the rank/domain convention `(T,Z)`. -/ |
| 152 | noncomputable def qLength (coord : ℝ) (s : Plane) : ℝ := |
| 153 | Real.sqrt (SimilarityCoordinates.coordinateQ coord s) |
| 154 | |
| 155 | theorem qLength_pos {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 156 | {s : Plane} (hs : 0 < s.1) : 0 < qLength coord s := |
| 157 | Real.sqrt_pos.mpr (SimilarityCoordinates.coordinateQ_spec hc hc1 hs).1 |
| 158 | |
| 159 | theorem qLength_contDiffOn {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) : |
| 160 | ContDiffOn ℝ ∞ (qLength coord) {s : Plane | 0 < s.1} := by |
| 161 | intro s hs |
| 162 | exact ((SimilarityCoordinates.coordinateQ_smooth hc hc1 hs).sqrt |
| 163 | (SimilarityCoordinates.coordinateQ_spec hc hc1 hs).1.ne').contDiffWithinAt |
| 164 | |
| 165 | end ActualQ |
| 166 | |
| 167 | section AnchorReference |
| 168 | |
| 169 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 170 | |
| 171 | noncomputable def physicalPast (d c M : ℝ) (v : E) (f : ℝ × E → ℝ) (z : ℝ × E) : ℝ := |
| 172 | TransportPrimitive.pastIntegral M v (RadialPullback.normalizeSource d c f) |
| 173 | (RadialPullback.liftChart (RadialPullback.powerChart d c) z) |
| 174 | |
| 175 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 176 | theorem normalizeSource_anchor_eq {c a b d : ℝ} (hc : 0 < c) (hca : c ≤ a) |
| 177 | (hab : a < b) (hd : 0 < d) {f : ℝ × E → ℝ} |
| 178 | (hs : RadialAlias.RadiallySupported a b f) : |
| 179 | RadialPullback.normalizeSource d c f = RadialPullback.normalizeSource d a f := by |
| 180 | have ha : 0 < a := hc.trans_le hca |
| 181 | have hcb : c < b := hca.trans_lt hab |
| 182 | have hcs : RadialAlias.RadiallySupported c b f := fun z hz => |
| 183 | ⟨hca.trans (hs hz).1, (hs hz).2⟩ |
| 184 | funext z |
| 185 | by_cases hz : 0 < z.1 |
| 186 | · rw [RadialPullback.normalizeSource_eq_formula hc hcb hd hz hcs, |
| 187 | RadialPullback.normalizeSource_eq_formula ha hab hd hz hs] |
| 188 | · rw [TransportPrimitive.radial_zero_of_lt (RadialPullback.normalizeSource_supported hc hcb hd hcs) |
| 189 | ((le_of_not_gt hz).trans_lt (Real.rpow_pos_of_pos hc d)), |
| 190 | TransportPrimitive.radial_zero_of_lt (RadialPullback.normalizeSource_supported ha hab hd hs) |
| 191 | ((le_of_not_gt hz).trans_lt (Real.rpow_pos_of_pos ha d))] |
| 192 | |
| 193 | theorem powerChart_anchor_lt {c a d R : ℝ} (hc : 0 < c) (hca : c ≤ a) (hd : 0 < d) |
| 194 | (hR : R < a) : RadialPullback.powerChart d c R < a ^ d := by |
| 195 | apply Real.rpow_lt_rpow (RadialPullback.positiveRadius_pos (by positivity) R).le _ hd |
| 196 | exact RadialPullback.positiveRadius_lt (by positivity) (by linarith) hR |
| 197 | |
| 198 | /-- Changing the auxiliary regularization radius leaves the actual primitive |
| 199 | unchanged; only the compactification cutoff remains. -/ |
| 200 | theorem physicalCompact_reference {c a b d M : ℝ} (hc : 0 < c) (hca : c ≤ a) |
| 201 | (hab : a < b) (hd : 0 < d) (v : E) {f : ℝ × E → ℝ} |
| 202 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 203 | RadialPullback.physicalCompact d a b M v f z = physicalPast d c M v f z - |
| 204 | RadialPullback.physicalCutoff d a b z.1 * PressureStream.physicalTotal d c M v f z := by |
| 205 | have ha : 0 < a := hc.trans_le hca |
| 206 | have he := normalizeSource_anchor_eq hc hca hab hd hs |
| 207 | by_cases hz : a ≤ z.1 |
| 208 | · unfold RadialPullback.physicalCompact RadialPullback.pullback TransportPrimitive.compactIntegral |
| 209 | physicalPast PressureStream.physicalTotal RadialPullback.physicalCutoff RadialPullback.liftChart |
| 210 | simp only [Function.comp_apply, smul_eq_mul] |
| 211 | rw [RadialPullback.powerChart_eq ha (by linarith) d, |
| 212 | RadialPullback.powerChart_eq hc (by linarith) d, he] |
| 213 | · have hlt : z.1 < a := lt_of_not_ge hz |
| 214 | rw [TransportPrimitive.radial_zero_of_lt |
| 215 | (RadialPullback.physicalCompact_supported ha hab hd hf hs M v) hlt, |
| 216 | RadialPullback.physicalCutoff_zero_left ha hab hd hlt, zero_mul, sub_zero] |
| 217 | unfold physicalPast |
| 218 | rw [he] |
| 219 | exact (TransportPrimitive.pastIntegral_eq_zero_of_le |
| 220 | (RadialPullback.normalizeSource_contDiff ha hd hf).continuous |
| 221 | (RadialPullback.normalizeSource_supported ha hab hd hs) _ |
| 222 | (powerChart_anchor_lt hc hca hd hlt).le).symm |
| 223 | |
| 224 | theorem physicalPast_contDiff {c e d M : ℝ} (hc : 0 < c) (hce : c < e) (hd : 0 < d) |
| 225 | (v : E) {f : ℝ × E → ℝ} (hf : ContDiff ℝ ∞ f) |
| 226 | (hs : RadialAlias.RadiallySupported c e f) : ContDiff ℝ ∞ (physicalPast d c M v f) := |
| 227 | RadialPullback.pullback_contDiff hc d |
| 228 | (TransportPrimitive.pastIntegral_contDiff (RadialPullback.normalizeSource_contDiff hc hd hf) |
| 229 | (RadialPullback.normalizeSource_supported hc hce hd hs)) |
| 230 | |
| 231 | theorem physicalTotal_contDiff {c e d M : ℝ} (hc : 0 < c) (hce : c < e) (hd : 0 < d) |
| 232 | (v : E) {f : ℝ × E → ℝ} (hf : ContDiff ℝ ∞ f) |
| 233 | (hs : RadialAlias.RadiallySupported c e f) : |
| 234 | ContDiff ℝ ∞ (PressureStream.physicalTotal d c M v f) := |
| 235 | RadialPullback.pullback_contDiff hc d |
| 236 | (TransportPrimitive.totalIntegral_contDiff (RadialPullback.normalizeSource_contDiff hc hd hf) |
| 237 | (RadialPullback.normalizeSource_supported hc hce hd hs)) |
| 238 | |
| 239 | end AnchorReference |
| 240 | |
| 241 | section LocalGauge |
| 242 | |
| 243 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 244 | |
| 245 | theorem compactPrimitive_fiberLocal (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) : |
| 246 | PhysicalMeanDomain.FiberLocal (compactPrimitive d a b M ell v) := by |
| 247 | intro f g s he r Y |
| 248 | exact PhysicalMeanDomain.physicalCompact_fiberLocal d (ell s * a) (ell s * b) M v f g s he r Y |
| 249 | |
| 250 | theorem physicalPast_fiberLocal (d c M : ℝ) (v : PressureStream.Plane) : |
| 251 | PhysicalMeanDomain.FiberLocal (physicalPast d c M ((0 : S), v)) := by |
| 252 | intro f g s he r Y |
| 253 | simp [physicalPast, TransportPrimitive.pastIntegral, TransportPrimitive.shift, |
| 254 | RadialPullback.normalizeSource, RadialPullback.liftChart, he] |
| 255 | |
| 256 | theorem physicalTotal_fiberLocal (d c M : ℝ) (v : PressureStream.Plane) : |
| 257 | PhysicalMeanDomain.FiberLocal (PressureStream.physicalTotal d c M ((0 : S), v)) := by |
| 258 | intro f g s he r Y |
| 259 | simp [PressureStream.physicalTotal, TransportPrimitive.totalIntegral, TransportPrimitive.shift, |
| 260 | RadialPullback.normalizeSource, RadialPullback.liftChart, he] |
| 261 | |
| 262 | theorem freezeSlow_contDiff {U : Set S} (hU : IsOpen U) {s : S} (hs : s ∈ U) |
| 263 | {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) : |
| 264 | ContDiff ℝ ∞ (PhysicalMeanDomain.freezeSlow s f) := by |
| 265 | have hm : ContDiff ℝ ∞ (fun z : PressureStream.Lift S => (z.1, (s, z.2.2))) := |
| 266 | contDiff_fst.prodMk (contDiff_const.prodMk contDiff_snd.snd) |
| 267 | rw [contDiff_iff_contDiffAt] |
| 268 | intro z |
| 269 | exact (hf.contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hs)).comp z hm.contDiffAt |
| 270 | |
| 271 | theorem compactPrimitive_reference {c a b d M : ℝ} (hc : 0 < c) (ha : 0 < a) |
| 272 | (hab : a < b) (hd : 0 < d) (ell : S → ℝ) (v : PressureStream.Plane) |
| 273 | {U : Set S} (hU : IsOpen U) (hl : ∀ s ∈ U, 0 < ell s) |
| 274 | (hleft : ∀ s ∈ U, c ≤ ell s * a) {f : PressureStream.Lift S → ℝ} |
| 275 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) |
| 276 | (z : PressureStream.Lift S) (hz : z.2.1 ∈ U) : |
| 277 | compactPrimitive d a b M ell v f z = physicalPast d c M ((0 : S), v) f z - |
| 278 | cutoff d a b ell z * PressureStream.physicalTotal d c M ((0 : S), v) f z := by |
| 279 | let g := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 280 | have hg : ContDiff ℝ ∞ g := freezeSlow_contDiff hU hz hf |
| 281 | have hgs : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) g := by |
| 282 | intro p hp |
| 283 | exact hs (p.1, (z.2.1, p.2.2)) hz hp |
| 284 | have he (r : ℝ) (Y : PressureStream.Plane) : g (r, (z.2.1, Y)) = f (r, (z.2.1, Y)) := rfl |
| 285 | have hp := physicalCompact_reference (M := M) hc (hleft _ hz) (mul_lt_mul_of_pos_left hab (hl _ hz)) |
| 286 | hd ((0 : S), v) hg hgs z |
| 287 | rw [PhysicalMeanDomain.physicalCompact_fiberLocal d _ _ M v g f z.2.1 he z.1 z.2.2, |
| 288 | physicalPast_fiberLocal d c M v g f z.2.1 he z.1 z.2.2, |
| 289 | physicalTotal_fiberLocal d c M v g f z.2.1 he z.1 z.2.2, |
| 290 | ← cutoff_eq_scaled ha hab d ell z (hl _ hz)] at hp |
| 291 | exact hp |
| 292 | |
| 293 | variable [FiniteDimensional ℝ S] |
| 294 | |
| 295 | theorem physicalPast_contDiffOn {c e d M : ℝ} (hc : 0 < c) (hce : c < e) (hd : 0 < d) |
| 296 | (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} |
| 297 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 298 | (hs : PhysicalMeanDomain.SupportedOn c e U f) : |
| 299 | ContDiffOn ℝ ∞ (physicalPast d c M ((0 : S), v) f) (PhysicalMeanDomain.slowDomain U) := |
| 300 | (physicalPast_fiberLocal d c M v).contDiffOn_of_supported |
| 301 | (fun _ hf hs => physicalPast_contDiff hc hce hd ((0 : S), v) hf hs) hU hf hs |
| 302 | |
| 303 | theorem physicalTotal_contDiffOn {c e d M : ℝ} (hc : 0 < c) (hce : c < e) (hd : 0 < d) |
| 304 | (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} |
| 305 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 306 | (hs : PhysicalMeanDomain.SupportedOn c e U f) : |
| 307 | ContDiffOn ℝ ∞ (PressureStream.physicalTotal d c M ((0 : S), v) f) |
| 308 | (PhysicalMeanDomain.slowDomain U) := |
| 309 | (physicalTotal_fiberLocal d c M v).contDiffOn_of_supported |
| 310 | (fun _ hf hs => physicalTotal_contDiff hc hce hd ((0 : S), v) hf hs) hU hf hs |
| 311 | |
| 312 | theorem compactPrimitive_contDiffOn {c e a b d M : ℝ} (hc : 0 < c) (hce : c < e) |
| 313 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) |
| 314 | {ell : S → ℝ} {U : Set S} (hU : IsOpen U) (hell : ContDiffOn ℝ ∞ ell U) |
| 315 | (hl : ∀ s ∈ U, 0 < ell s) (hleft : ∀ s ∈ U, c ≤ ell s * a) |
| 316 | (hright : ∀ s ∈ U, ell s * b ≤ e) {f : PressureStream.Lift S → ℝ} |
| 317 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) : |
| 318 | ContDiffOn ℝ ∞ (compactPrimitive d a b M ell v f) (PhysicalMeanDomain.slowDomain U) := by |
| 319 | have hsup : PhysicalMeanDomain.SupportedOn c e U f := by |
| 320 | intro z hz hn |
| 321 | exact ⟨(hleft _ hz).trans (hs z hz hn).1, (hs z hz hn).2.trans (hright _ hz)⟩ |
| 322 | have hg := (physicalPast_contDiffOn (M := M) hc hce hd v hU hf hsup).sub |
| 323 | ((cutoff_contDiffOn ha d b hell hl).mul (physicalTotal_contDiffOn (M := M) hc hce hd v hU hf hsup)) |
| 324 | apply hg.congr |
| 325 | intro z hz |
| 326 | exact compactPrimitive_reference hc ha hab hd ell v hU hl hleft hf hs z hz |
| 327 | |
| 328 | end LocalGauge |
| 329 | |
| 330 | section IntegralJets |
| 331 | |
| 332 | open WeightedRadialPrimitive |
| 333 | |
| 334 | theorem logWeight_zero_zero {a b R : ℝ} (ha : 0 < a) (hR : R ∈ Ioo a b) : |
| 335 | logWeight 0 0 a b 0 R = 1 := by |
| 336 | have hx := logPosition_mem ha hR |
| 337 | simp [logWeight, weight, zeta, FlatCutoff.edge_of_pos _ hx.1, |
| 338 | FlatCutoff.edge_of_pos _ (sub_pos.mpr hx.2)] |
| 339 | |
| 340 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 341 | |
| 342 | theorem normalizeSource_unweighted_fiber {c e d : ℝ} (hc : 0 < c) (hce : c < e) |
| 343 | (hd : 0 < d) (m : ℕ) : |
| 344 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (f : PressureStream.Lift S → ℝ), ContDiff ℝ ∞ f → |
| 345 | RadialAlias.RadiallySupported c e f → ∀ A : ℝ, 0 ≤ A → ∀ s : S, |
| 346 | (∀ j ≤ m, ∀ R ∈ Ioo c e, ∀ Y : PressureStream.Plane, |
| 347 | ‖iteratedFDeriv ℝ j f (R, (s, Y))‖ ≤ A) → |
| 348 | ∀ z : PressureStream.Lift S, z.2.1 = s → ∀ j ≤ m, |
| 349 | ‖iteratedFDeriv ℝ j (RadialPullback.normalizeSource d c f) z‖ ≤ K * A := by |
| 350 | obtain ⟨K, hK, hb⟩ := PhysicalMeanDomain.normalizeSource_finiteJets_fiber |
| 351 | (S := S) (V := ℝ) hc hce hd 0 0 0 m |
| 352 | refine ⟨K, hK, ?_⟩ |
| 353 | intro f hf hs A hA s hin z hz j hj |
| 354 | by_cases hR : z.1 ∈ Ioo (c ^ d) (e ^ d) |
| 355 | · have h := hb f hf A hA s (fun j hj R hR Y => by |
| 356 | simpa only [logWeight_zero_zero hc hR, mul_one] using hin j hj R hR Y) z hR hz j hj |
| 357 | simpa only [mul_zero, logWeight_zero_zero (Real.rpow_pos_of_pos hc d) hR, mul_one] using h |
| 358 | · rw [MeanMomentBounds.supported_zero_outside_open |
| 359 | (TransportPrimitive.iteratedFDeriv_contDiff (RadialPullback.normalizeSource_contDiff hc hd hf) j).continuous |
| 360 | (TransportPrimitive.iteratedFDeriv_supported (RadialPullback.normalizeSource_supported hc hce hd hs) j) hR, |
| 361 | norm_zero] |
| 362 | exact mul_nonneg hK hA |
| 363 | |
| 364 | theorem transportIntegrals_jet_bound_fiber {c e M A : ℝ} (hce : c ≤ e) |
| 365 | (v : PressureStream.Plane) {f : PressureStream.Lift S → ℝ} |
| 366 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported c e f) (s : S) (j : ℕ) |
| 367 | (hin : ∀ R ∈ Icc c e, ∀ Y : PressureStream.Plane, |
| 368 | ‖iteratedFDeriv ℝ j f (R, (s, Y))‖ ≤ A) |
| 369 | (z : PressureStream.Lift S) (hz : z.2.1 = s) : |
| 370 | ‖iteratedFDeriv ℝ j (TransportPrimitive.pastIntegral M ((0 : S), v) f) z‖ ≤ A * (e - c) ∧ |
| 371 | ‖iteratedFDeriv ℝ j (TransportPrimitive.totalIntegral M ((0 : S), v) f) z‖ ≤ A * (e - c) := by |
| 372 | let g := iteratedFDeriv ℝ j f |
| 373 | have hg : Continuous g := (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous |
| 374 | have hgs := TransportPrimitive.iteratedFDeriv_supported hs j |
| 375 | have hgc := PhysicalMeanDomain.freezeSlow_continuous hg z.2.1 |
| 376 | have hss := PhysicalMeanDomain.freezeSlow_supported hgs z.2.1 |
| 377 | have hb : ∀ R ∈ Icc c e, ∀ Y : S × PressureStream.Plane, |
| 378 | ‖PhysicalMeanDomain.freezeSlow z.2.1 g (R, Y)‖ ≤ A := by |
| 379 | intro R hR Y |
| 380 | change ‖iteratedFDeriv ℝ j f (R, (z.2.1, Y.2))‖ ≤ A |
| 381 | rw [hz] |
| 382 | exact hin R hR Y.2 |
| 383 | constructor |
| 384 | · rw [TransportPrimitive.iteratedFDeriv_pastIntegral hf hs, |
| 385 | ← PhysicalMeanDomain.pastIntegral_freeze M v g z] |
| 386 | exact TransportPrimitive.pastIntegral_norm_le hce hgc hss hb z |
| 387 | · rw [TransportPrimitive.iteratedFDeriv_totalIntegral hf hs, |
| 388 | ← PhysicalMeanDomain.totalIntegral_freeze M v g z] |
| 389 | exact TransportPrimitive.totalIntegral_norm_le hce hgc hss hb z |
| 390 | |
| 391 | /-- The integration and physical radial pullback cost is uniform in the |
| 392 | transport frequency. Every input and output derivative is an actual joint jet. -/ |
| 393 | theorem physicalIntegrals_finiteJets_fiber {c e d : ℝ} (hc : 0 < c) (hce : c < e) |
| 394 | (hd : 0 < d) (rlo rhi : ℝ) (m : ℕ) : |
| 395 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ), |
| 396 | ContDiff ℝ ∞ f → RadialAlias.RadiallySupported c e f → ∀ A : ℝ, 0 ≤ A → ∀ s : S, |
| 397 | (∀ j ≤ m, ∀ R ∈ Ioo c e, ∀ Y : PressureStream.Plane, |
| 398 | ‖iteratedFDeriv ℝ j f (R, (s, Y))‖ ≤ A) → |
| 399 | ∀ z : PressureStream.Lift S, z.1 ∈ Icc rlo rhi → z.2.1 = s → ∀ j ≤ m, |
| 400 | ‖iteratedFDeriv ℝ j (physicalPast d c M ((0 : S), v) f) z‖ ≤ K * A ∧ |
| 401 | ‖iteratedFDeriv ℝ j (PressureStream.physicalTotal d c M ((0 : S), v) f) z‖ ≤ K * A := by |
| 402 | obtain ⟨KN, hKN, hbN⟩ := normalizeSource_unweighted_fiber (S := S) hc hce hd m |
| 403 | obtain ⟨KP, hKP, hbP⟩ := RadialPullback.radial_comp_finiteJets_uniform |
| 404 | (E := S × PressureStream.Plane) (V := ℝ) rlo rhi (RadialPullback.powerChart_contDiff hc d) m |
| 405 | have hlen : 0 ≤ e ^ d - c ^ d := sub_nonneg.mpr (Real.rpow_le_rpow hc.le hce.le hd.le) |
| 406 | refine ⟨KP * KN * (e ^ d - c ^ d), mul_nonneg (mul_nonneg hKP hKN) hlen, ?_⟩ |
| 407 | intro M v f hf hs A hA s hin z hR hz j hj |
| 408 | have hN := RadialPullback.normalizeSource_contDiff hc hd hf |
| 409 | have hsN := RadialPullback.normalizeSource_supported hc hce hd hs |
| 410 | have hB : 0 ≤ KN * A * (e ^ d - c ^ d) := mul_nonneg (mul_nonneg hKN hA) hlen |
| 411 | have hI (w : PressureStream.Lift S) (hw : w.2.1 = s) (j : ℕ) (hj : j ≤ m) := |
| 412 | transportIntegrals_jet_bound_fiber (M := M) (Real.rpow_le_rpow hc.le hce.le hd.le) |
| 413 | v hN hsN s j (fun R _ Y => hbN f hf hs A hA s hin (R, (s, Y)) rfl j hj) w hw |
| 414 | have hp := hbP (TransportPrimitive.pastIntegral M ((0 : S), v) (RadialPullback.normalizeSource d c f)) |
| 415 | (TransportPrimitive.pastIntegral_contDiff hN hsN) z hR _ hB |
| 416 | (fun j hj => (hI (RadialPullback.liftChart (RadialPullback.powerChart d c) z) hz j hj).1) j hj |
| 417 | have ht := hbP (TransportPrimitive.totalIntegral M ((0 : S), v) (RadialPullback.normalizeSource d c f)) |
| 418 | (TransportPrimitive.totalIntegral_contDiff hN hsN) z hR _ hB |
| 419 | (fun j hj => (hI (RadialPullback.liftChart (RadialPullback.powerChart d c) z) hz j hj).2) j hj |
| 420 | constructor |
| 421 | · convert! hp using 1 |
| 422 | ring |
| 423 | · convert! ht using 1 |
| 424 | ring |
| 425 | |
| 426 | end IntegralJets |
| 427 | |
| 428 | section StateConstructors |
| 429 | |
| 430 | structure GaugeData (S : Type) where |
| 431 | radial : CorrectionState.ReconstructionData |
| 432 | length : ℕ → S → ℝ |
| 433 | |
| 434 | /-- The actual similarity gauge in every normalized chart. -/ |
| 435 | noncomputable def similarityGauge (h d a b M : ℝ) (hab : a < b) (index : ℕ → ℕ) : |
| 436 | GaugeData PressureStream.Plane where |
| 437 | radial := |
| 438 | { exponent := d, inner := a, outer := b, inner_lt_outer := hab, |
| 439 | frequency := fun n => MeanChartCompatibility.radialFrequency h n (index n) d M, |
| 440 | radialDirection := TorusInverse.vector .radial } |
| 441 | length := fun _ => qLength (2 * h) |
| 442 | |
| 443 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 444 | |
| 445 | noncomputable def reconstructState (g : GaugeData S) |
| 446 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 447 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.State (PressureStream.Lift S) := |
| 448 | { u with |
| 449 | pressure := fun n => |
| 450 | meanPressure g.radial.exponent g.radial.inner g.radial.outer (g.radial.frequency n) |
| 451 | g.radial.inner_lt_outer (g.length n) g.radial.radialDirection (u.gr c n) } |
| 452 | |
| 453 | noncomputable def pressureAliasState (g : GaugeData S) |
| 454 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 455 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.Oscillation (PressureStream.Lift S) := |
| 456 | fun n p => ![-compactAlias g.radial.exponent g.radial.inner g.radial.outer |
| 457 | (g.radial.frequency n) (g.length n) g.radial.radialDirection |
| 458 | (pressureSource g.radial.inner g.radial.outer g.radial.inner_lt_outer (g.length n) (u.gr c n)) p.1, 0, 0] |
| 459 | |
| 460 | noncomputable def temporalPotential (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 461 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 462 | (u : CorrectionState.State (PressureStream.Lift S)) (n : ℕ) : PressureStream.Lift S → ℝ := |
| 463 | streamPotential g.radial.exponent g.radial.inner g.radial.outer (g.radial.frequency n) |
| 464 | (g.length n) g.radial.radialDirection (MeanChartCompatibility.temporalAtIndex h n (index n) (u.axialResidual c n)) |
| 465 | |
| 466 | noncomputable def temporalIncrementState (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 467 | (axial : S × PressureStream.Plane) (c : CorrectionState.Context (PressureStream.Lift S)) |
| 468 | (u : CorrectionState.State (PressureStream.Lift S)) : MeanIncrementBounds.Triple (PressureStream.Lift S) where |
| 469 | radial := fun n => PressureStream.streamBeta (c.operators.epsilon n • axial) (temporalPotential g h index c u n) |
| 470 | angular := fun n => MeanChartCompatibility.temporalAtIndex h n (index n) (u.thetaResidual c n) |
| 471 | axial := fun n => PressureStream.streamGamma |
| 472 | (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) ((0 : S), g.radial.radialDirection) |
| 473 | (temporalPotential g h index c u n) |
| 474 | |
| 475 | noncomputable def temporalAxialDifference (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 476 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 477 | (u : CorrectionState.State (PressureStream.Lift S)) (n : ℕ) (z : PressureStream.Lift S) : ℝ := |
| 478 | MeanChartCompatibility.temporalAtIndex h n (index n) (u.axialResidual c n) z - |
| 479 | PressureStream.streamGamma (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) |
| 480 | ((0 : S), g.radial.radialDirection) (temporalPotential g h index c u n) z |
| 481 | |
| 482 | noncomputable def temporalAliasState (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 483 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 484 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.Oscillation (PressureStream.Lift S) := |
| 485 | fun n p => ![0, 0, -c.operators.fastTime (temporalAxialDifference g h index c u) n p.1] |
| 486 | |
| 487 | noncomputable def temporalStageState (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 488 | (axial : S × PressureStream.Plane) (c : CorrectionState.Context (PressureStream.Lift S)) |
| 489 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.State (PressureStream.Lift S) := |
| 490 | reconstructState g c (u.addIncrement (temporalIncrementState g h index axial c u) 0 0 0 |
| 491 | ⟨0, 0, temporalAliasState g h index c u⟩) |
| 492 | |
| 493 | noncomputable def rankPotential (g : GaugeData S) (r : CorrectionState.RankData S) |
| 494 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 495 | (u : CorrectionState.State (PressureStream.Lift S)) (n : ℕ) : PressureStream.Lift S → ℝ := |
| 496 | streamPotential g.radial.exponent g.radial.inner g.radial.outer (g.radial.frequency n) |
| 497 | (g.length n) g.radial.radialDirection (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) |
| 498 | |
| 499 | noncomputable def rankIncrementState (g : GaugeData S) (r : CorrectionState.RankData S) |
| 500 | (axial : S × PressureStream.Plane) (c : CorrectionState.Context (PressureStream.Lift S)) |
| 501 | (u : CorrectionState.State (PressureStream.Lift S)) : MeanIncrementBounds.Triple (PressureStream.Lift S) where |
| 502 | radial := fun n => PressureStream.streamBeta (c.operators.epsilon n • axial) (rankPotential g r c u n) |
| 503 | angular := fun n => MeanRankUpdate.slowLift (CorrectionState.rankAngular r c u n) |
| 504 | axial := fun n => PressureStream.streamGamma |
| 505 | (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) ((0 : S), g.radial.radialDirection) |
| 506 | (rankPotential g r c u n) |
| 507 | |
| 508 | noncomputable def rankStageState (g : GaugeData S) (r : CorrectionState.RankData S) |
| 509 | (axial : S × PressureStream.Plane) (c : CorrectionState.Context (PressureStream.Lift S)) |
| 510 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.State (PressureStream.Lift S) := |
| 511 | reconstructState g c (u.addIncrement (rankIncrementState g r axial c u) 0 0 0 CorrectionState.ExcludedErrors.zero) |
| 512 | |
| 513 | end StateConstructors |
| 514 | |
| 515 | section GaugeNaturality |
| 516 | |
| 517 | open MeanChartCompatibility |
| 518 | |
| 519 | variable {S T : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 520 | [NormedAddCommGroup T] [NormedSpace ℝ T] |
| 521 | |
| 522 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 523 | theorem pressureSource_eq_fixed {a b : ℝ} (hab : a < b) (ell : S → ℝ) |
| 524 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) (hl : 0 < ell z.2.1) : |
| 525 | pressureSource a b hab ell f z = PressureStream.pressureSource (ell z.2.1 * a) (ell z.2.1 * b) |
| 526 | (mul_lt_mul_of_pos_left hab hl) f z := by |
| 527 | unfold pressureSource PressureStream.pressureSource |
| 528 | rw [density_eq_scaled hab ell z hl] |
| 529 | |
| 530 | theorem meanPressure_eq_fixed {a b : ℝ} (hab : a < b) (d M : ℝ) (ell : S → ℝ) |
| 531 | (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) |
| 532 | (hl : 0 < ell z.2.1) : |
| 533 | meanPressure d a b M hab ell v f z = PressureStream.meanPressure d |
| 534 | (ell z.2.1 * a) (ell z.2.1 * b) M (mul_lt_mul_of_pos_left hab hl) v f z := by |
| 535 | unfold meanPressure compactPrimitive PressureStream.meanPressure |
| 536 | exact PhysicalMeanDomain.physicalCompact_fiberLocal d (ell z.2.1 * a) (ell z.2.1 * b) M v |
| 537 | _ _ z.2.1 (fun r Y => pressureSource_eq_fixed hab ell f (r, (z.2.1, Y)) hl) z.1 z.2.2 |
| 538 | |
| 539 | theorem streamPotential_eq_fixed (d a b M : ℝ) (ell : S → ℝ) |
| 540 | (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : |
| 541 | streamPotential d a b M ell v f z = PressureStream.streamPotential d |
| 542 | (ell z.2.1 * a) (ell z.2.1 * b) M ((0 : S), v) f z := by |
| 543 | simp only [streamPotential, PressureStream.streamPotential, PressureStream.divideRadius, compactPrimitive] |
| 544 | |
| 545 | theorem meanPressure_congr_endpoints {a b a' b' : ℝ} {hab : a < b} {hab' : a' < b'} |
| 546 | (ha : a = a') (hb : b = b') (d M : ℝ) (v : PressureStream.Plane) |
| 547 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : |
| 548 | PressureStream.meanPressure d a b M hab v f z = |
| 549 | PressureStream.meanPressure d a' b' M hab' v f z := by |
| 550 | subst a' |
| 551 | subst b' |
| 552 | rfl |
| 553 | |
| 554 | /-- Naturality on a single genuine slow fiber. The source is only required |
| 555 | to be smooth and periodic on its open physical slow domain. -/ |
| 556 | theorem meanPressure_coverPull {l a b d : ℝ} (hl : 0 < l) (ha : 0 < a) |
| 557 | (hab : a < b) (hd : 0 < d) (P : S →L[ℝ] T) (k : ℕ) (M N u : ℝ) |
| 558 | (v w : PressureStream.Plane) (hshift : M • TemporalMeanUpdate.coverMap k v = (N * l ^ d) • w) |
| 559 | (ell : S → ℝ) (ell' : T → ℝ) {U : Set T} (hU : IsOpen U) |
| 560 | {f : PressureStream.Lift T → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 561 | (hp : PhysicalMeanDomain.PeriodicOn U f) (hs : SupportedGauge a b ell' U f) |
| 562 | (z : PressureStream.Lift S) (hz : P z.2.1 ∈ U) (hzl : 0 < ell z.2.1) |
| 563 | (hell : ell' (P z.2.1) = l * ell z.2.1) : |
| 564 | meanPressure d a b M hab ell v (coverPull l P k u f) z = |
| 565 | (u / l) * meanPressure d a b N hab ell' w f |
| 566 | (chartLinear l (P.prodMap (TemporalMeanUpdate.coverMap k)) z) := by |
| 567 | let g := PhysicalMeanDomain.freezeSlow (P z.2.1) f |
| 568 | have hg : ContDiff ℝ ∞ g := freezeSlow_contDiff hU hz hf |
| 569 | have hgp : PressureStream.TorusPeriodicLift g := by |
| 570 | intro r s Y j |
| 571 | exact hp r (P z.2.1) hz Y j |
| 572 | have hgs : RadialAlias.RadiallySupported (l * (ell z.2.1 * a)) (l * (ell z.2.1 * b)) g := by |
| 573 | intro p hne |
| 574 | have h := hs (p.1, (P z.2.1, p.2.2)) hz hne |
| 575 | rw [hell] at h |
| 576 | simp only [mul_assoc] at h |
| 577 | exact h |
| 578 | have he (r : ℝ) (Y : PressureStream.Plane) : g (r, (P z.2.1, Y)) = f (r, (P z.2.1, Y)) := rfl |
| 579 | have hscaleA : l * (ell z.2.1 * a) = ell' (P z.2.1) * a := by rw [hell]; ring |
| 580 | have hscaleB : l * (ell z.2.1 * b) = ell' (P z.2.1) * b := by rw [hell]; ring |
| 581 | have ht := MeanChartCompatibility.meanPressure_coverPull hl (mul_pos hzl ha) |
| 582 | (mul_lt_mul_of_pos_left hab hzl) hd P k M N u v w hshift hg hgp hgs z |
| 583 | have hleft : PressureStream.meanPressure d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 584 | (mul_lt_mul_of_pos_left hab hzl) v (coverPull l P k u g) z = |
| 585 | PressureStream.meanPressure d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 586 | (mul_lt_mul_of_pos_left hab hzl) v (coverPull l P k u f) z := |
| 587 | PhysicalMeanDomain.meanPressure_fiberLocal d _ _ M _ v |
| 588 | (coverPull l P k u g) (coverPull l P k u f) z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 589 | have hzl' : 0 < ell' (P z.2.1) := by rw [hell]; exact mul_pos hl hzl |
| 590 | rw [meanPressure_eq_fixed hab d M ell v _ z hzl, |
| 591 | meanPressure_eq_fixed hab d N ell' w f _ hzl'] |
| 592 | change _ = (u / l) * PressureStream.meanPressure d (l * (ell z.2.1 * a)) |
| 593 | (l * (ell z.2.1 * b)) N _ w g (chartLinear l (P.prodMap (TemporalMeanUpdate.coverMap k)) z) at ht |
| 594 | rw [hleft] at ht |
| 595 | rw [meanPressure_congr_endpoints (hab' := mul_lt_mul_of_pos_left hab hzl') hscaleA hscaleB] at ht |
| 596 | exact ht.trans (congrArg (fun t : ℝ => (u / l) * t) |
| 597 | (PhysicalMeanDomain.meanPressure_fiberLocal d (ell' (P z.2.1) * a) |
| 598 | (ell' (P z.2.1) * b) N (mul_lt_mul_of_pos_left hab hzl') w g f (P z.2.1) he |
| 599 | (l * z.1) (TemporalMeanUpdate.coverMap k z.2.2))) |
| 600 | |
| 601 | theorem streamPotential_coverPull {l a b d : ℝ} (hl : 0 < l) (ha : 0 < a) |
| 602 | (hab : a < b) (hd : 0 < d) (P : S →L[ℝ] T) (k : ℕ) (M N u : ℝ) |
| 603 | (v w : PressureStream.Plane) (hshift : M • TemporalMeanUpdate.coverMap k v = (N * l ^ d) • w) |
| 604 | (ell : S → ℝ) (ell' : T → ℝ) {U : Set T} (hU : IsOpen U) |
| 605 | {f : PressureStream.Lift T → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 606 | (hs : SupportedGauge a b ell' U f) |
| 607 | (z : PressureStream.Lift S) (hz : P z.2.1 ∈ U) (hzl : 0 < ell z.2.1) |
| 608 | (hell : ell' (P z.2.1) = l * ell z.2.1) : |
| 609 | streamPotential d a b M ell v (coverPull l P k u f) z = |
| 610 | (u / l) * streamPotential d a b N ell' w f |
| 611 | (chartLinear l (P.prodMap (TemporalMeanUpdate.coverMap k)) z) := by |
| 612 | let C := P.prodMap (TemporalMeanUpdate.coverMap k) |
| 613 | let g := PhysicalMeanDomain.freezeSlow (P z.2.1) f |
| 614 | have hg : ContDiff ℝ ∞ g := freezeSlow_contDiff hU hz hf |
| 615 | have hgs : RadialAlias.RadiallySupported (l * (ell z.2.1 * a)) (l * (ell z.2.1 * b)) g := by |
| 616 | intro p hne |
| 617 | have h := hs (p.1, (P z.2.1, p.2.2)) hz hne |
| 618 | rw [hell] at h |
| 619 | simp only [mul_assoc] at h |
| 620 | exact h |
| 621 | have he (r : ℝ) (Y : PressureStream.Plane) : g (r, (P z.2.1, Y)) = f (r, (P z.2.1, Y)) := rfl |
| 622 | have hscaleA : l * (ell z.2.1 * a) = ell' (P z.2.1) * a := by rw [hell]; ring |
| 623 | have hscaleB : l * (ell z.2.1 * b) = ell' (P z.2.1) * b := by rw [hell]; ring |
| 624 | have hvector : M • C ((0 : S), v) = (N * l ^ d) • ((0 : T), w) := by |
| 625 | apply Prod.ext |
| 626 | · simp [C] |
| 627 | · exact hshift |
| 628 | have ht := congrFun (MeanChartCompatibility.streamPotential_pull hl (mul_pos hzl ha) |
| 629 | (mul_lt_mul_of_pos_left hab hzl) hd C M N u ((0 : S), v) ((0 : T), w) hvector hg hgs) z |
| 630 | rw [hscaleA, hscaleB] at ht |
| 631 | have hleft : PressureStream.streamPotential d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 632 | ((0 : S), v) (coverPull l P k u g) z = |
| 633 | PressureStream.streamPotential d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 634 | ((0 : S), v) (coverPull l P k u f) z := |
| 635 | PhysicalMeanDomain.streamPotential_fiberLocal d _ _ M v |
| 636 | (coverPull l P k u g) (coverPull l P k u f) z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 637 | rw [streamPotential_eq_fixed, streamPotential_eq_fixed] |
| 638 | change PressureStream.streamPotential d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 639 | ((0 : S), v) (coverPull l P k u g) z = (u / l) * |
| 640 | PressureStream.streamPotential d (ell' (P z.2.1) * a) (ell' (P z.2.1) * b) N |
| 641 | ((0 : T), w) g (chartLinear l C z) at ht |
| 642 | rw [hleft] at ht |
| 643 | exact ht.trans (congrArg (fun t : ℝ => (u / l) * t) |
| 644 | (PhysicalMeanDomain.streamPotential_fiberLocal d (ell' (P z.2.1) * a) |
| 645 | (ell' (P z.2.1) * b) N w g f (P z.2.1) he |
| 646 | (l * z.1) (TemporalMeanUpdate.coverMap k z.2.2))) |
| 647 | |
| 648 | end GaugeNaturality |
| 649 | |
| 650 | section ProductJets |
| 651 | |
| 652 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 653 | |
| 654 | theorem product_jet_bound {U : Set D} (hU : IsOpen U) {f g : D → ℝ} |
| 655 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) {z : D} (hz : z ∈ U) |
| 656 | {m j : ℕ} (hj : j ≤ m) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 657 | (hfa : ∀ i ≤ m, ‖iteratedFDeriv ℝ i f z‖ ≤ A) |
| 658 | (hgb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i g z‖ ≤ B) : |
| 659 | ‖iteratedFDeriv ℝ j (fun x => f x * g x) z‖ ≤ (2 : ℝ) ^ m * A * B := by |
| 660 | calc |
| 661 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * |
| 662 | ‖iteratedFDeriv ℝ i f z‖ * ‖iteratedFDeriv ℝ (j - i) g z‖ := |
| 663 | JetBounds.norm_iteratedFDeriv_mul_le_on hU hf hg hz |
| 664 | (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤)) |
| 665 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * A * B := by |
| 666 | apply Finset.sum_le_sum |
| 667 | intro i hi |
| 668 | exact mul_le_mul |
| 669 | (mul_le_mul_of_nonneg_left (hfa i ((Nat.le_of_lt_succ (Finset.mem_range.mp hi)).trans hj)) |
| 670 | (Nat.cast_nonneg _)) |
| 671 | (hgb (j - i) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 672 | (mul_nonneg (Nat.cast_nonneg _) hA) |
| 673 | _ = (2 : ℝ) ^ j * A * B := by |
| 674 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 675 | congr 2 |
| 676 | exact_mod_cast Nat.sum_range_choose j |
| 677 | _ ≤ (2 : ℝ) ^ m * A * B := |
| 678 | mul_le_mul_of_nonneg_right |
| 679 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hA) hB |
| 680 | |
| 681 | theorem sub_jet_norm_le {U : Set D} (hU : IsOpen U) {f g : D → ℝ} |
| 682 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) {z : D} (hz : z ∈ U) (j : ℕ) : |
| 683 | ‖iteratedFDeriv ℝ j (fun x => f x - g x) z‖ ≤ |
| 684 | ‖iteratedFDeriv ℝ j f z‖ + ‖iteratedFDeriv ℝ j g z‖ := by |
| 685 | have hfj : ContDiffAt ℝ j f z := (hf.contDiffAt (hU.mem_nhds hz)).of_le |
| 686 | (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤)) |
| 687 | have hgj : ContDiffAt ℝ j g z := (hg.contDiffAt (hU.mem_nhds hz)).of_le |
| 688 | (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤)) |
| 689 | have he : (fun x => f x - g x) = f + -g := by funext x; exact sub_eq_add_neg _ _ |
| 690 | rw [he, iteratedFDeriv_add_apply (i := j) (x := z) (f := f) (g := -g) hfj hgj.neg, |
| 691 | iteratedFDeriv_neg_apply] |
| 692 | simpa only [norm_neg] using norm_add_le (iteratedFDeriv ℝ j f z) (-iteratedFDeriv ℝ j g z) |
| 693 | |
| 694 | end ProductJets |
| 695 | |
| 696 | section LocalQuantitative |
| 697 | |
| 698 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 699 | |
| 700 | theorem physicalIntegrals_finiteJets_local {c e d : ℝ} (hc : 0 < c) (hce : c < e) |
| 701 | (hd : 0 < d) (rlo rhi : ℝ) (m : ℕ) : |
| 702 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (U : Set S), IsOpen U → ∀ (M : ℝ) (v : PressureStream.Plane) |
| 703 | (f : PressureStream.Lift S → ℝ), ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U) → |
| 704 | PhysicalMeanDomain.SupportedOn c e U f → ∀ A : ℝ, 0 ≤ A → |
| 705 | ∀ z : PressureStream.Lift S, z.2.1 ∈ U → z.1 ∈ Icc rlo rhi → |
| 706 | (∀ j ≤ m, ∀ R ∈ Ioo c e, ∀ Y : PressureStream.Plane, |
| 707 | ‖iteratedFDeriv ℝ j f (R, (z.2.1, Y))‖ ≤ A) → ∀ j ≤ m, |
| 708 | ‖iteratedFDeriv ℝ j (physicalPast d c M ((0 : S), v) f) z‖ ≤ K * A ∧ |
| 709 | ‖iteratedFDeriv ℝ j (PressureStream.physicalTotal d c M ((0 : S), v) f) z‖ ≤ K * A := by |
| 710 | obtain ⟨K, hK, hb⟩ := physicalIntegrals_finiteJets_fiber (S := S) hc hce hd rlo rhi m |
| 711 | refine ⟨K, hK, ?_⟩ |
| 712 | intro U hU M v f hf hs A hA z hz hR hin j hj |
| 713 | obtain ⟨χ, _, hχs, hχf, he⟩ := PhysicalMeanDomain.exists_fiber_localization hU hz hf |
| 714 | have hχsup := PhysicalMeanDomain.localize_supported hχs hs |
| 715 | have hbound := hb M v (PhysicalMeanDomain.localize χ f) hχf hχsup A hA z.2.1 |
| 716 | (fun k hk R hR Y => by rw [he.jet_eq k R Y]; exact hin k hk R hR Y) z hR rfl j hj |
| 717 | rw [((physicalPast_fiberLocal d c M v).germ he).jet_eq j z.1 z.2.2, |
| 718 | ((physicalTotal_fiberLocal d c M v).germ he).jet_eq j z.1 z.2.2] at hbound |
| 719 | exact hbound |
| 720 | |
| 721 | omit [FiniteDimensional ℝ S] in |
| 722 | theorem compactPrimitive_supportedGauge {a b d M : ℝ} (ha : 0 < a) (hab : a < b) |
| 723 | (hd : 0 < d) (ell : S → ℝ) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) |
| 724 | (hl : ∀ s ∈ U, 0 < ell s) {f : PressureStream.Lift S → ℝ} |
| 725 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) : |
| 726 | SupportedGauge a b ell U (compactPrimitive d a b M ell v f) := by |
| 727 | intro z hz hn |
| 728 | let g := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 729 | have hg : ContDiff ℝ ∞ g := freezeSlow_contDiff hU hz hf |
| 730 | have hgs : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) g := |
| 731 | fun p hp => hs (p.1, (z.2.1, p.2.2)) hz hp |
| 732 | have he := PhysicalMeanDomain.physicalCompact_fiberLocal d (ell z.2.1 * a) (ell z.2.1 * b) |
| 733 | M v g f z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 734 | apply RadialPullback.physicalCompact_supported (mul_pos (hl _ hz) ha) |
| 735 | (mul_lt_mul_of_pos_left hab (hl _ hz)) hd hg hgs M ((0 : S), v) |
| 736 | change RadialPullback.physicalCompact d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 737 | ((0 : S), v) g z ≠ 0 |
| 738 | change RadialPullback.physicalCompact d (ell z.2.1 * a) (ell z.2.1 * b) M |
| 739 | ((0 : S), v) f z ≠ 0 at hn |
| 740 | exact fun hzero => hn (he.symm.trans hzero) |
| 741 | |
| 742 | end LocalQuantitative |
| 743 | |
| 744 | section ActualChart |
| 745 | |
| 746 | open TorusInverse MeanChartCompatibility |
| 747 | |
| 748 | /-- The same physical change, in the rank/domain order `(T,Z)`. -/ |
| 749 | noncomputable def slowToChartTZ (h : ℝ) (n : ℕ) : Plane →L[ℝ] Plane := |
| 750 | (ChartScales.Q n ^ (-1 : ℝ) • ContinuousLinearMap.fst ℝ ℝ ℝ).prod |
| 751 | (ChartScales.Q n ^ (-CoordinateAlgebra.D h) • ContinuousLinearMap.snd ℝ ℝ ℝ) |
| 752 | |
| 753 | noncomputable def physicalToChartTZ (h : ℝ) (n i : ℕ) : |
| 754 | PressureStream.Lift Plane →L[ℝ] PressureStream.Lift Plane := |
| 755 | chartLinear (chartScale n) ((slowToChartTZ h n).prodMap (TemporalMeanUpdate.coverMap i)) |
| 756 | |
| 757 | end ActualChart |
| 758 | |
| 759 | |
| 760 | open WeightedRadialPrimitive RadialPullback |
| 761 | |
| 762 | section MovingSupport |
| 763 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 764 | {V : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 765 | |
| 766 | theorem iteratedFDeriv_supportedGauge_fiber {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 767 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → V} |
| 768 | (hs : ∀ z, z.2.1 ∈ U → f z ≠ 0 → z.1 ∈ Icc (ell z.2.1 * a) (ell z.2.1 * b)) |
| 769 | {s : S} (hsU : s ∈ U) (j : ℕ) : |
| 770 | RadialAlias.RadiallySupported (ell s * a) (ell s * b) |
| 771 | (PhysicalMeanDomain.freezeSlow s (iteratedFDeriv ℝ j f)) := by |
| 772 | intro p hp |
| 773 | by_contra hmem |
| 774 | let z : PressureStream.Lift S := (p.1, (s, p.2.2)) |
| 775 | have he : ContinuousAt (fun x : PressureStream.Lift S => ell x.2.1) z := |
| 776 | (hell.continuousAt (hU.mem_nhds hsU)).comp continuous_snd.fst.continuousAt |
| 777 | have hu : ∀ᶠ x : PressureStream.Lift S in 𝓝 z, x.2.1 ∈ U := |
| 778 | (PhysicalMeanDomain.slowDomain_open hU).mem_nhds hsU |
| 779 | have hz0 : f =ᶠ[𝓝 z] (fun _ : PressureStream.Lift S => (0 : V)) := by |
| 780 | rcases not_and_or.mp hmem with hleft | hright |
| 781 | · have hlt : z.1 < ell z.2.1 * a := lt_of_not_ge hleft |
| 782 | have hv := continuous_fst.continuousAt.eventually_lt (he.mul_const a) hlt |
| 783 | filter_upwards [hu, hv] with x hx hxr |
| 784 | by_contra hn |
| 785 | exact (not_le_of_gt hxr) (hs x hx hn).1 |
| 786 | · have hlt : ell z.2.1 * b < z.1 := lt_of_not_ge hright |
| 787 | have hv := (he.mul_const b).eventually_lt continuous_fst.continuousAt hlt |
| 788 | filter_upwards [hu, hv] with x hx hxr |
| 789 | by_contra hn |
| 790 | exact (not_le_of_gt hxr) (hs x hx hn).2 |
| 791 | have hj0 : iteratedFDeriv ℝ j f z = 0 := by |
| 792 | have hew : f =ᶠ[𝓝[univ] z] (fun _ : PressureStream.Lift S => (0 : V)) := by |
| 793 | simpa only [nhdsWithin_univ] using hz0 |
| 794 | simpa only [iteratedFDerivWithin_univ, iteratedFDeriv_fun_zero, Pi.zero_apply] using |
| 795 | hew.iteratedFDerivWithin_eq (𝕜 := ℝ) hz0.self_of_nhds j |
| 796 | exact hp hj0 |
| 797 | |
| 798 | theorem iteratedFDeriv_zero_outsideGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 799 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → V} |
| 800 | (hf : ContDiff ℝ ∞ f) |
| 801 | (hs : ∀ z, z.2.1 ∈ U → f z ≠ 0 → z.1 ∈ Icc (ell z.2.1 * a) (ell z.2.1 * b)) |
| 802 | {z : PressureStream.Lift S} (hz : z.2.1 ∈ U) |
| 803 | (hR : z.1 ∉ Ioo (ell z.2.1 * a) (ell z.2.1 * b)) (j : ℕ) : |
| 804 | iteratedFDeriv ℝ j f z = 0 := by |
| 805 | exact MeanMomentBounds.supported_zero_outside_open |
| 806 | (PhysicalMeanDomain.freezeSlow_continuous (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous z.2.1) |
| 807 | (iteratedFDeriv_supportedGauge_fiber hU hell hs hz j) hR |
| 808 | |
| 809 | end MovingSupport |
| 810 | |
| 811 | section ScaledIntegrals |
| 812 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 813 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 814 | |
| 815 | theorem integral_scaled {l : ℝ} (hl : l ≠ 0) (f : ℝ → V) (a b : ℝ) : |
| 816 | (∫ x in (l * a)..(l * b), f x) = l • ∫ x in a..b, f (l * x) := by |
| 817 | rw [intervalIntegral.integral_comp_mul_left f hl, smul_smul, mul_inv_cancel₀ hl, one_smul] |
| 818 | |
| 819 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℝ V] in |
| 820 | theorem radialScale_supported {l a b : ℝ} (hl : 0 < l) {f : ℝ × E → V} |
| 821 | (hs : RadialAlias.RadiallySupported (l * a) (l * b) f) : |
| 822 | RadialAlias.RadiallySupported a b (fun z : ℝ × E => f (l * z.1, z.2)) := by |
| 823 | intro z hz |
| 824 | have h := hs hz |
| 825 | exact ⟨(mul_le_mul_iff_right₀ hl).mp h.1, (mul_le_mul_iff_right₀ hl).mp h.2⟩ |
| 826 | |
| 827 | omit [NormedAddCommGroup V] [NormedSpace ℝ V] in |
| 828 | theorem radialSlice_scaled {l : ℝ} (hl : l ≠ 0) (M : ℝ) (v : E) |
| 829 | (f : ℝ × E → V) (z : ℝ × E) (s : ℝ) : |
| 830 | radialSlice (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) (z.1 / l, z.2) s = |
| 831 | radialSlice M v f z (l * s) := by |
| 832 | have hcoeff : (M * l) * (s - z.1 / l) = M * (l * s - z.1) := by |
| 833 | field_simp [hl] |
| 834 | simp only [radialSlice, hcoeff] |
| 835 | |
| 836 | theorem pastIntegral_scaled {l a b : ℝ} (hl : 0 < l) (M : ℝ) (v : E) |
| 837 | {f : ℝ × E → V} (hf : Continuous f) (hs : RadialAlias.RadiallySupported (l * a) (l * b) f) |
| 838 | (z : ℝ × E) : |
| 839 | TransportPrimitive.pastIntegral M v f z = |
| 840 | l • TransportPrimitive.pastIntegral (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) (z.1 / l, z.2) := by |
| 841 | have hc : Continuous (fun q : ℝ × E => f (l * q.1, q.2)) := |
| 842 | hf.comp ((continuous_const.mul continuous_fst).prodMk continuous_snd) |
| 843 | rw [TransportPrimitive.pastIntegral_eq_radialInterval hf hs, |
| 844 | TransportPrimitive.pastIntegral_eq_radialInterval (f := fun q : ℝ × E => f (l * q.1, q.2)) |
| 845 | hc (radialScale_supported hl hs)] |
| 846 | change (∫ s in (l * a)..z.1, radialSlice M v f z s) = |
| 847 | l • ∫ s in a..(z.1 / l), radialSlice (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) (z.1 / l, z.2) s |
| 848 | simp_rw [radialSlice_scaled hl.ne'] |
| 849 | rw [← integral_scaled hl.ne', mul_div_cancel₀ _ hl.ne'] |
| 850 | |
| 851 | theorem futureIntegral_scaled {l a b : ℝ} (hl : 0 < l) (M : ℝ) (v : E) |
| 852 | {f : ℝ × E → V} (hf : Continuous f) (hs : RadialAlias.RadiallySupported (l * a) (l * b) f) |
| 853 | (z : ℝ × E) : |
| 854 | TransportPrimitive.futureIntegral M v f z = |
| 855 | l • TransportPrimitive.futureIntegral (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) (z.1 / l, z.2) := by |
| 856 | have hc : Continuous (fun q : ℝ × E => f (l * q.1, q.2)) := |
| 857 | hf.comp ((continuous_const.mul continuous_fst).prodMk continuous_snd) |
| 858 | rw [TransportPrimitive.futureIntegral_eq_radialInterval hf hs, |
| 859 | TransportPrimitive.futureIntegral_eq_radialInterval (f := fun q : ℝ × E => f (l * q.1, q.2)) |
| 860 | hc (radialScale_supported hl hs)] |
| 861 | change (∫ s in z.1..(l * b), radialSlice M v f z s) = |
| 862 | l • ∫ s in (z.1 / l)..b, radialSlice (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) (z.1 / l, z.2) s |
| 863 | simp_rw [radialSlice_scaled hl.ne'] |
| 864 | rw [← integral_scaled hl.ne', mul_div_cancel₀ _ hl.ne'] |
| 865 | |
| 866 | theorem scaled_transport_past_left_uniform {a b cL cR L : ℝ} |
| 867 | (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (hL : 0 < L) (p : ℕ) : |
| 868 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (l : ℝ), 0 < l → l ≤ L → ∀ (M : ℝ) (v : E) (f : ℝ × E → V), |
| 869 | Continuous f → RadialAlias.RadiallySupported (l * a) (l * b) f → |
| 870 | ∀ A : ℝ, 0 ≤ A → |
| 871 | (∀ R, R / l ∈ Ioo a b → ∀ Y : E, ‖f (R, Y)‖ ≤ A * logWeight cL cR a b p (R / l)) → |
| 872 | ∀ z : ℝ × E, z.1 / l ∈ Ioo a b → logPosition a (z.1 / l) ≤ logLength a b / 2 → |
| 873 | ‖TransportPrimitive.pastIntegral M v f z‖ ≤ K * A * logWeight cL cR a b p (z.1 / l) := by |
| 874 | obtain ⟨K, hK, hb⟩ := transport_past_left_uniform (E := E) (V := V) ha hab hcL hcR p |
| 875 | refine ⟨L * K, mul_nonneg hL.le hK, ?_⟩ |
| 876 | intro l hl hlL M v f hf hs A hA hin z hz hh |
| 877 | have hpull := radialScale_supported hl hs |
| 878 | have hpullc : Continuous (fun q : ℝ × E => f (l * q.1, q.2)) := |
| 879 | hf.comp ((continuous_const.mul continuous_fst).prodMk continuous_snd) |
| 880 | have hsource : ∀ R ∈ Ioo a b, ∀ Y : E, |
| 881 | ‖f (l * R, Y)‖ ≤ A * logWeight cL cR a b p R := by |
| 882 | intro R hR Y |
| 883 | simpa only [mul_div_cancel_left₀ _ hl.ne'] using |
| 884 | hin (l * R) (by simpa only [mul_div_cancel_left₀ _ hl.ne'] using hR) Y |
| 885 | have h := hb (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) hpullc hpull A hA hsource (z.1 / l, z.2) hz hh |
| 886 | rw [pastIntegral_scaled hl M v hf hs, norm_smul, Real.norm_eq_abs, abs_of_pos hl] |
| 887 | calc |
| 888 | _ ≤ l * (K * A * logWeight cL cR a b p (z.1 / l)) := mul_le_mul_of_nonneg_left h hl.le |
| 889 | _ ≤ L * (K * A * logWeight cL cR a b p (z.1 / l)) := |
| 890 | mul_le_mul_of_nonneg_right hlL (mul_nonneg (mul_nonneg hK hA) (weight_pos cL cR p (logPosition_mem ha hz)).le) |
| 891 | _ = _ := by ring |
| 892 | |
| 893 | theorem scaled_transport_future_right_uniform {a b cL cR L : ℝ} |
| 894 | (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (hL : 0 < L) (p : ℕ) : |
| 895 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (l : ℝ), 0 < l → l ≤ L → ∀ (M : ℝ) (v : E) (f : ℝ × E → V), |
| 896 | Continuous f → RadialAlias.RadiallySupported (l * a) (l * b) f → |
| 897 | ∀ A : ℝ, 0 ≤ A → |
| 898 | (∀ R, R / l ∈ Ioo a b → ∀ Y : E, ‖f (R, Y)‖ ≤ A * logWeight cL cR a b p (R / l)) → |
| 899 | ∀ z : ℝ × E, z.1 / l ∈ Ioo a b → logLength a b / 2 ≤ logPosition a (z.1 / l) → |
| 900 | ‖TransportPrimitive.futureIntegral M v f z‖ ≤ K * A * logWeight cL cR a b p (z.1 / l) := by |
| 901 | obtain ⟨K, hK, hb⟩ := transport_future_right_uniform (E := E) (V := V) ha hab hcL hcR p |
| 902 | refine ⟨L * K, mul_nonneg hL.le hK, ?_⟩ |
| 903 | intro l hl hlL M v f hf hs A hA hin z hz hh |
| 904 | have hpull := radialScale_supported hl hs |
| 905 | have hpullc : Continuous (fun q : ℝ × E => f (l * q.1, q.2)) := |
| 906 | hf.comp ((continuous_const.mul continuous_fst).prodMk continuous_snd) |
| 907 | have hsource : ∀ R ∈ Ioo a b, ∀ Y : E, |
| 908 | ‖f (l * R, Y)‖ ≤ A * logWeight cL cR a b p R := by |
| 909 | intro R hR Y |
| 910 | simpa only [mul_div_cancel_left₀ _ hl.ne'] using |
| 911 | hin (l * R) (by simpa only [mul_div_cancel_left₀ _ hl.ne'] using hR) Y |
| 912 | have h := hb (M * l) v (fun q : ℝ × E => f (l * q.1, q.2)) hpullc hpull A hA hsource (z.1 / l, z.2) hz hh |
| 913 | rw [futureIntegral_scaled hl M v hf hs, norm_smul, Real.norm_eq_abs, abs_of_pos hl] |
| 914 | calc |
| 915 | _ ≤ l * (K * A * logWeight cL cR a b p (z.1 / l)) := mul_le_mul_of_nonneg_left h hl.le |
| 916 | _ ≤ L * (K * A * logWeight cL cR a b p (z.1 / l)) := |
| 917 | mul_le_mul_of_nonneg_right hlL (mul_nonneg (mul_nonneg hK hA) (weight_pos cL cR p (logPosition_mem ha hz)).le) |
| 918 | _ = _ := by ring |
| 919 | |
| 920 | end ScaledIntegrals |
| 921 | |
| 922 | section ScaledNormalization |
| 923 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 924 | |
| 925 | /-- The fixed normalization map has uniform weighted jet bounds when the |
| 926 | weight is read on any admissible dilated radial fiber. -/ |
| 927 | theorem normalizeSource_gauge_finiteJets {c e a b d : ℝ} |
| 928 | (hc : 0 < c) (hce : c < e) (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 929 | (cL cR : ℝ) (p m : ℕ) : |
| 930 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (l : ℝ), 0 < l → c ≤ l * a → l * b ≤ e → |
| 931 | ∀ (f : PressureStream.Lift S → ℝ), ContDiff ℝ ∞ f → ∀ A : ℝ, 0 ≤ A → ∀ s : S, |
| 932 | (∀ j ≤ m, ∀ R, R / l ∈ Ioo a b → ∀ Y : PressureStream.Plane, |
| 933 | ‖iteratedFDeriv ℝ j f (R, (s, Y))‖ ≤ A * logWeight cL cR a b p (R / l)) → |
| 934 | ∀ z : PressureStream.Lift S, z.1 / l ^ d ∈ Ioo (a ^ d) (b ^ d) → z.2.1 = s → ∀ j ≤ m, |
| 935 | ‖iteratedFDeriv ℝ j (normalizeSource d c f) z‖ ≤ |
| 936 | K * A * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (z.1 / l ^ d) := by |
| 937 | obtain ⟨KC, hKC, hbC⟩ := radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := ℝ) |
| 938 | (c ^ d) (e ^ d) (inverseChart_contDiff hc d) m |
| 939 | obtain ⟨KM, hKM, hbM⟩ := radial_multiplier_finiteJets_uniform (E := S × PressureStream.Plane) (V := ℝ) |
| 940 | (c ^ d) (e ^ d) (sourceMultiplier_contDiff hc hd) m |
| 941 | let Q := ((min 1 d⁻¹) ^ p)⁻¹ |
| 942 | have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one (inv_pos.mpr hd)) p)).le |
| 943 | refine ⟨KM * KC * Q, mul_nonneg (mul_nonneg hKM hKC) hQ, ?_⟩ |
| 944 | intro l hl hca hbe f hf A hA s hin z hz hzs j hj |
| 945 | subst s |
| 946 | have hlp := Real.rpow_pos_of_pos hl d |
| 947 | have hlaz : (l * a) ^ d < z.1 := by |
| 948 | rw [Real.mul_rpow hl.le ha.le] |
| 949 | nlinarith [(lt_div_iff₀ hlp).mp hz.1] |
| 950 | have hlbz : z.1 < (l * b) ^ d := by |
| 951 | rw [Real.mul_rpow hl.le (ha.trans hab).le] |
| 952 | nlinarith [(div_lt_iff₀ hlp).mp hz.2] |
| 953 | have hzce : z.1 ∈ Ioo (c ^ d) (e ^ d) := |
| 954 | ⟨(Real.rpow_le_rpow hc.le hca hd.le).trans_lt hlaz, |
| 955 | hlbz.trans_le (Real.rpow_le_rpow (mul_pos hl (ha.trans hab)).le hbe hd.le)⟩ |
| 956 | have hrce := inverseChart_mem hc hce hd hzce |
| 957 | have hrp : 0 < inverseChart d c z.1 := hc.trans hrce.1 |
| 958 | have hrpow := inverseChart_rpow hc hd hzce.1.le |
| 959 | have har : l * a < inverseChart d c z.1 := |
| 960 | (Real.rpow_lt_rpow_iff (mul_pos hl ha).le hrp.le hd).mp (by simpa only [hrpow] using hlaz) |
| 961 | have hrb : inverseChart d c z.1 < l * b := |
| 962 | (Real.rpow_lt_rpow_iff hrp.le (mul_pos hl (ha.trans hab)).le hd).mp (by simpa only [hrpow] using hlbz) |
| 963 | have hr : inverseChart d c z.1 / l ∈ Ioo a b := |
| 964 | ⟨(lt_div_iff₀ hl).mpr (by nlinarith), (div_lt_iff₀ hl).mpr (by nlinarith)⟩ |
| 965 | have hratio : (inverseChart d c z.1 / l) ^ d = z.1 / l ^ d := by |
| 966 | rw [Real.div_rpow hrp.le hl.le, hrpow] |
| 967 | have hw : 0 ≤ logWeight cL cR a b p (inverseChart d c z.1 / l) := |
| 968 | (weight_pos cL cR p (logPosition_mem ha hr)).le |
| 969 | have hcomp (i : ℕ) (hi : i ≤ m) : |
| 970 | ‖iteratedFDeriv ℝ i (f ∘ liftChart (inverseChart d c)) z‖ ≤ |
| 971 | KC * (A * logWeight cL cR a b p (inverseChart d c z.1 / l)) := |
| 972 | hbC f hf z ⟨hzce.1.le, hzce.2.le⟩ _ (mul_nonneg hA hw) |
| 973 | (fun k hk => hin k hk _ hr z.2.2) i hi |
| 974 | have hmul := hbM (f ∘ liftChart (inverseChart d c)) |
| 975 | (hf.comp (liftChart_contDiff (inverseChart_contDiff hc d))) z ⟨hzce.1.le, hzce.2.le⟩ |
| 976 | (KC * (A * logWeight cL cR a b p (inverseChart d c z.1 / l))) |
| 977 | (mul_nonneg hKC (mul_nonneg hA hw)) hcomp j hj |
| 978 | change ‖iteratedFDeriv ℝ j (normalizeSource d c f) z‖ ≤ |
| 979 | KM * (KC * (A * logWeight cL cR a b p (inverseChart d c z.1 / l))) at hmul |
| 980 | have hweight := logWeight_power_reverse ha hd hr cL cR p |
| 981 | rw [hratio] at hweight |
| 982 | calc |
| 983 | _ ≤ KM * (KC * (A * logWeight cL cR a b p (inverseChart d c z.1 / l))) := hmul |
| 984 | _ ≤ KM * (KC * (A * (Q * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (z.1 / l ^ d)))) := |
| 985 | mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left |
| 986 | (mul_le_mul_of_nonneg_left hweight hA) hKC) hKM |
| 987 | _ = _ := by ring |
| 988 | |
| 989 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 990 | theorem normalizeSource_supportedGauge {c e a b d : ℝ} (hc : 0 < c) (hce : c < e) |
| 991 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) {ell : S → ℝ} {U : Set S} |
| 992 | (hl : ∀ s ∈ U, 0 < ell s) {f : PressureStream.Lift S → ℝ} |
| 993 | (hs : RadialAlias.RadiallySupported c e f) (hsg : SupportedGauge a b ell U f) : |
| 994 | SupportedGauge (a ^ d) (b ^ d) (fun s => ell s ^ d) U (normalizeSource d c f) := by |
| 995 | intro z hz hn |
| 996 | have hzpos : 0 < z.1 := by |
| 997 | by_contra h |
| 998 | exact hn (TransportPrimitive.radial_zero_of_lt (normalizeSource_supported hc hce hd hs) |
| 999 | ((le_of_not_gt h).trans_lt (Real.rpow_pos_of_pos hc d))) |
| 1000 | have he := normalizeSource_eq_formula hc hce hd hzpos hs z.2 |
| 1001 | have hfn : f (z.1 ^ d⁻¹, z.2) ≠ 0 := by |
| 1002 | intro hzero |
| 1003 | apply hn |
| 1004 | rw [he, hzero, smul_zero] |
| 1005 | have h := hsg (z.1 ^ d⁻¹, z.2) hz hfn |
| 1006 | have hrpos := Real.rpow_pos_of_pos hzpos d⁻¹ |
| 1007 | constructor |
| 1008 | · calc |
| 1009 | ell z.2.1 ^ d * a ^ d = (ell z.2.1 * a) ^ d := (Real.mul_rpow (hl _ hz).le ha.le).symm |
| 1010 | _ ≤ (z.1 ^ d⁻¹) ^ d := Real.rpow_le_rpow (mul_pos (hl _ hz) ha).le h.1 hd.le |
| 1011 | _ = z.1 := Real.rpow_inv_rpow hzpos.le hd.ne' |
| 1012 | · calc |
| 1013 | z.1 = (z.1 ^ d⁻¹) ^ d := (Real.rpow_inv_rpow hzpos.le hd.ne').symm |
| 1014 | _ ≤ (ell z.2.1 * b) ^ d := Real.rpow_le_rpow hrpos.le h.2 hd.le |
| 1015 | _ = ell z.2.1 ^ d * b ^ d := Real.mul_rpow (hl _ hz).le (ha.trans hab).le |
| 1016 | |
| 1017 | end ScaledNormalization |
| 1018 | |
| 1019 | section VariableTransport |
| 1020 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1021 | |
| 1022 | noncomputable def normalizedCutoff (a b : ℝ) (ell : S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 1023 | TransportPrimitive.interiorCutoff a b (radialRatio ell z) |
| 1024 | |
| 1025 | noncomputable def transportGauge (a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 1026 | (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 1027 | TransportPrimitive.pastIntegral M ((0 : S), v) f z - |
| 1028 | normalizedCutoff a b ell z * TransportPrimitive.totalIntegral M ((0 : S), v) f z |
| 1029 | |
| 1030 | theorem normalizedCutoff_contDiffOn (a b : ℝ) {ell : S → ℝ} {U : Set S} |
| 1031 | (hell : ContDiffOn ℝ ∞ ell U) (hl : ∀ s ∈ U, 0 < ell s) : |
| 1032 | ContDiffOn ℝ ∞ (normalizedCutoff a b ell) (PhysicalMeanDomain.slowDomain U) := |
| 1033 | (TransportPrimitive.interiorCutoff_contDiff a b).comp_contDiffOn (radialRatio_contDiffOn hell hl) |
| 1034 | |
| 1035 | theorem transportGauge_contDiffOn {c e a b M : ℝ} {ell : S → ℝ} {U : Set S} |
| 1036 | (hell : ContDiffOn ℝ ∞ ell U) (hl : ∀ s ∈ U, 0 < ell s) (v : PressureStream.Plane) |
| 1037 | {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported c e f) : |
| 1038 | ContDiffOn ℝ ∞ (transportGauge a b M ell v f) (PhysicalMeanDomain.slowDomain U) := |
| 1039 | (TransportPrimitive.pastIntegral_contDiff hf hs).contDiffOn.sub |
| 1040 | ((normalizedCutoff_contDiffOn a b hell hl).mul |
| 1041 | (TransportPrimitive.totalIntegral_contDiff hf hs).contDiffOn) |
| 1042 | |
| 1043 | /-- No derivative is taken after the scalar change of integration variable. |
| 1044 | The estimate uses the original full joint derivatives under the fixed-u integral. -/ |
| 1045 | theorem transportGauge_finiteJets {c e a b cL cR L : ℝ} (hce : c < e) |
| 1046 | (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (hL : 0 < L) |
| 1047 | (p m : ℕ) : |
| 1048 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (U : Set S), IsOpen U → ∀ (ell : S → ℝ), ContDiffOn ℝ ∞ ell U → |
| 1049 | (∀ s ∈ U, 0 < ell s) → (∀ s ∈ U, ell s ≤ L) → |
| 1050 | ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ), ContDiff ℝ ∞ f → |
| 1051 | RadialAlias.RadiallySupported c e f → SupportedGauge a b ell U f → |
| 1052 | ∀ A B : ℝ, 0 ≤ A → 0 ≤ B → ∀ z : PressureStream.Lift S, z.2.1 ∈ U → |
| 1053 | z.1 / ell z.2.1 ∈ Ioo a b → |
| 1054 | (∀ j ≤ m, ∀ R, R / ell z.2.1 ∈ Ioo a b → ∀ Y : PressureStream.Plane, |
| 1055 | ‖iteratedFDeriv ℝ j f (R, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b p (R / ell z.2.1)) → |
| 1056 | (∀ j ≤ m, ‖iteratedFDeriv ℝ j (normalizedCutoff a b ell) z‖ ≤ B) → ∀ j ≤ m, |
| 1057 | ‖iteratedFDeriv ℝ j (transportGauge a b M ell v f) z‖ ≤ |
| 1058 | K * (1 + B) * A * logWeight cL cR a b p (z.1 / ell z.2.1) := by |
| 1059 | classical |
| 1060 | obtain ⟨ρ, hρ, hρL, hleft, hright⟩ := exists_log_plateau_width (b := b) ha |
| 1061 | (c := (2 * a + b) / 3) (d := (a + 2 * b) / 3) |
| 1062 | (by linarith) (by linarith) (by linarith) |
| 1063 | (TransportPrimitive.interiorCutoff a b) |
| 1064 | (fun X hX => TransportPrimitive.interiorCutoff_zero hab hX) |
| 1065 | (fun X hX => TransportPrimitive.interiorCutoff_one hab hX) |
| 1066 | obtain ⟨δ, hδ, hmiddle⟩ := middle_weight_lower_bound |
| 1067 | (L := logLength a b) hcL hcR (half_pos hρ) |
| 1068 | obtain ⟨W, hW, hweight⟩ := weight_uniform_bound hcL hcR (logLength a b) p |
| 1069 | choose KL hKL hbL using fun j : Fin (m + 1) => |
| 1070 | scaled_transport_past_left_uniform (E := S × PressureStream.Plane) |
| 1071 | (V := ContinuousMultilinearMap ℝ (fun _ : Fin (j : ℕ) => PressureStream.Lift S) ℝ) |
| 1072 | ha hab hcL hcR hL p |
| 1073 | choose KR hKR hbR using fun j : Fin (m + 1) => |
| 1074 | scaled_transport_future_right_uniform (E := S × PressureStream.Plane) |
| 1075 | (V := ContinuousMultilinearMap ℝ (fun _ : Fin (j : ℕ) => PressureStream.Lift S) ℝ) |
| 1076 | ha hab hcL hcR hL p |
| 1077 | let leftK := ∑ j, KL j |
| 1078 | let rightK := ∑ j, KR j |
| 1079 | let massK := W * (e - c) |
| 1080 | let midK := massK * (1 + (2 : ℝ) ^ m) / δ |
| 1081 | let K := leftK + rightK + midK |
| 1082 | have hLK : 0 ≤ leftK := Finset.sum_nonneg (fun j _ => hKL j) |
| 1083 | have hRK : 0 ≤ rightK := Finset.sum_nonneg (fun j _ => hKR j) |
| 1084 | have hmassK : 0 ≤ massK := mul_nonneg hW (sub_pos.mpr hce).le |
| 1085 | have hmidK : 0 ≤ midK := div_nonneg (mul_nonneg hmassK (by positivity)) hδ.le |
| 1086 | have hleftK : leftK ≤ K := by dsimp [K]; linarith |
| 1087 | have hrightK : rightK ≤ K := by dsimp [K]; linarith |
| 1088 | have hmiddleK : midK ≤ K := by dsimp [K]; linarith |
| 1089 | have hKK : 0 ≤ K := hLK.trans hleftK |
| 1090 | refine ⟨K, hKK, ?_⟩ |
| 1091 | intro U hU ell hell hl hu M v f hf hs hsg A B hA hB z hz hR hin hcut j hj |
| 1092 | let j' : Fin (m + 1) := ⟨j, Nat.lt_succ_of_le hj⟩ |
| 1093 | have hratio : ContinuousAt (radialRatio ell) z := |
| 1094 | (radialRatio_contDiffOn hell hl).continuousOn.continuousAt |
| 1095 | ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hz) |
| 1096 | have hratioPos : 0 < radialRatio ell z := ha.trans hR.1 |
| 1097 | have hlog : ContinuousAt (fun x : PressureStream.Lift S => logPosition a (radialRatio ell x)) z := |
| 1098 | (hratio.div_const a).log (div_ne_zero hratioPos.ne' ha.ne') |
| 1099 | have hpos : ∀ᶠ x in 𝓝 z, 0 < radialRatio ell x := hratio.eventually (lt_mem_nhds hratioPos) |
| 1100 | have hnorm : 0 ≤ logWeight cL cR a b p (z.1 / ell z.2.1) := |
| 1101 | (weight_pos cL cR p (logPosition_mem ha hR)).le |
| 1102 | have hKone : K ≤ K * (1 + B) := by nlinarith |
| 1103 | have hmass (i : ℕ) (hi : i ≤ m) : |
| 1104 | ‖iteratedFDeriv ℝ i (TransportPrimitive.pastIntegral M ((0 : S), v) f) z‖ ≤ massK * A ∧ |
| 1105 | ‖iteratedFDeriv ℝ i (TransportPrimitive.totalIntegral M ((0 : S), v) f) z‖ ≤ massK * A := by |
| 1106 | have hbound (R : ℝ) (_hR : R ∈ Icc c e) (Y : PressureStream.Plane) : |
| 1107 | ‖iteratedFDeriv ℝ i f (R, (z.2.1, Y))‖ ≤ A * W := by |
| 1108 | by_cases hp : R / ell z.2.1 ∈ Ioo a b |
| 1109 | · exact (hin i hi R hp Y).trans |
| 1110 | (mul_le_mul_of_nonneg_left (hweight _ (logPosition_mem ha hp)) hA) |
| 1111 | · have hp' : R ∉ Ioo (ell z.2.1 * a) (ell z.2.1 * b) := by |
| 1112 | intro h |
| 1113 | exact hp ⟨(lt_div_iff₀ (hl _ hz)).mpr (by nlinarith [h.1]), |
| 1114 | (div_lt_iff₀ (hl _ hz)).mpr (by nlinarith [h.2])⟩ |
| 1115 | rw [iteratedFDeriv_zero_outsideGauge (z := (R, (z.2.1, Y))) |
| 1116 | hU hell.continuousOn hf hsg hz hp' i, norm_zero] |
| 1117 | exact mul_nonneg hA hW |
| 1118 | have h := transportIntegrals_jet_bound_fiber (M := M) hce.le v hf hs z.2.1 i hbound z rfl |
| 1119 | exact ⟨h.1.trans_eq (by dsimp [massK]; ring), h.2.trans_eq (by dsimp [massK]; ring)⟩ |
| 1120 | by_cases hzleft : logPosition a (z.1 / ell z.2.1) ≤ ρ / 2 |
| 1121 | · have heq : transportGauge a b M ell v f =ᶠ[𝓝 z] |
| 1122 | TransportPrimitive.pastIntegral M ((0 : S), v) f := by |
| 1123 | have hlogleft : ∀ᶠ x in 𝓝 z, logPosition a (radialRatio ell x) < ρ := |
| 1124 | hlog.eventually (gt_mem_nhds (by change logPosition a (z.1 / ell z.2.1) < ρ; linarith)) |
| 1125 | filter_upwards [hpos, hlogleft] with x hxp hxl |
| 1126 | have hzero : normalizedCutoff a b ell x = 0 := by |
| 1127 | have he := hleft (logPosition a (radialRatio ell x)) hxl.le |
| 1128 | simp only [expCoordinate_logPosition ha hxp] at he |
| 1129 | exact he |
| 1130 | simp only [transportGauge, hzero, zero_mul, sub_zero] |
| 1131 | rw [MeanRankUpdate.iteratedFDeriv_congr_germ heq j, |
| 1132 | TransportPrimitive.iteratedFDeriv_pastIntegral hf hs, |
| 1133 | ← PhysicalMeanDomain.pastIntegral_freeze] |
| 1134 | have h := hbL j' (ell z.2.1) (hl _ hz) (hu _ hz) M ((0 : S), v) |
| 1135 | (PhysicalMeanDomain.freezeSlow z.2.1 (iteratedFDeriv ℝ j f)) |
| 1136 | (PhysicalMeanDomain.freezeSlow_continuous (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous _) |
| 1137 | (iteratedFDeriv_supportedGauge_fiber hU hell.continuousOn hsg hz j) A hA |
| 1138 | (fun R hR Y => hin j hj R hR Y.2) z hR (by linarith) |
| 1139 | have hsingle : KL j' ≤ leftK := Finset.single_le_sum (fun i _ => hKL i) (Finset.mem_univ j') |
| 1140 | exact h.trans (mul_le_mul_of_nonneg_right |
| 1141 | (mul_le_mul_of_nonneg_right ((hsingle.trans hleftK).trans hKone) hA) hnorm) |
| 1142 | · by_cases hzright : logLength a b - ρ / 2 ≤ logPosition a (z.1 / ell z.2.1) |
| 1143 | · have heq : transportGauge a b M ell v f =ᶠ[𝓝 z] |
| 1144 | -TransportPrimitive.futureIntegral M ((0 : S), v) f := by |
| 1145 | have hlogright : ∀ᶠ x in 𝓝 z, logLength a b - ρ < logPosition a (radialRatio ell x) := |
| 1146 | hlog.eventually (lt_mem_nhds (by change logLength a b - ρ < logPosition a (z.1 / ell z.2.1); linarith)) |
| 1147 | filter_upwards [hpos, hlogright] with x hxp hxr |
| 1148 | have hone : normalizedCutoff a b ell x = 1 := by |
| 1149 | have he := hright (logPosition a (radialRatio ell x)) hxr.le |
| 1150 | simp only [expCoordinate_logPosition ha hxp] at he |
| 1151 | exact he |
| 1152 | simp only [transportGauge, hone, one_mul, Pi.neg_apply] |
| 1153 | rw [TransportPrimitive.futureIntegral_eq_total_sub_past hf.continuous hs] |
| 1154 | ring |
| 1155 | rw [MeanRankUpdate.iteratedFDeriv_congr_germ heq j, iteratedFDeriv_neg_apply, norm_neg, |
| 1156 | TransportPrimitive.iteratedFDeriv_futureIntegral hf hs, |
| 1157 | ← PhysicalMeanDomain.futureIntegral_freeze] |
| 1158 | have h := hbR j' (ell z.2.1) (hl _ hz) (hu _ hz) M ((0 : S), v) |
| 1159 | (PhysicalMeanDomain.freezeSlow z.2.1 (iteratedFDeriv ℝ j f)) |
| 1160 | (PhysicalMeanDomain.freezeSlow_continuous (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous _) |
| 1161 | (iteratedFDeriv_supportedGauge_fiber hU hell.continuousOn hsg hz j) A hA |
| 1162 | (fun R hR Y => hin j hj R hR Y.2) z hR (by linarith) |
| 1163 | have hsingle : KR j' ≤ rightK := Finset.single_le_sum (fun i _ => hKR i) (Finset.mem_univ j') |
| 1164 | exact h.trans (mul_le_mul_of_nonneg_right |
| 1165 | (mul_le_mul_of_nonneg_right ((hsingle.trans hrightK).trans hKone) hA) hnorm) |
| 1166 | · have hw : δ ≤ logWeight cL cR a b p (z.1 / ell z.2.1) := |
| 1167 | hmiddle p (logPosition a (z.1 / ell z.2.1)) ⟨le_of_not_ge hzleft, le_of_not_ge hzright⟩ |
| 1168 | have hC := normalizedCutoff_contDiffOn a b hell hl |
| 1169 | have hJ := (TransportPrimitive.totalIntegral_contDiff hf hs (M := M) (v := ((0 : S), v))).contDiffOn (s := PhysicalMeanDomain.slowDomain U) |
| 1170 | have hI := (TransportPrimitive.pastIntegral_contDiff hf hs (M := M) (v := ((0 : S), v))).contDiffOn (s := PhysicalMeanDomain.slowDomain U) |
| 1171 | have hprod := product_jet_bound (PhysicalMeanDomain.slowDomain_open hU) hC hJ hz hj hB |
| 1172 | (mul_nonneg hmassK hA) hcut (fun i hi => (hmass i hi).2) |
| 1173 | have hb : ‖iteratedFDeriv ℝ j (transportGauge a b M ell v f) z‖ ≤ |
| 1174 | massK * A + (2 : ℝ) ^ m * B * (massK * A) := |
| 1175 | (sub_jet_norm_le (PhysicalMeanDomain.slowDomain_open hU) hI (hC.mul hJ) hz j).trans |
| 1176 | (add_le_add (hmass j hj).1 hprod) |
| 1177 | have hmid : massK * A + (2 : ℝ) ^ m * B * (massK * A) ≤ midK * (1 + B) * A * δ := by |
| 1178 | dsimp [midK] |
| 1179 | have hpow : 0 ≤ (2 : ℝ) ^ m := by positivity |
| 1180 | have : 1 + (2 : ℝ) ^ m * B ≤ (1 + (2 : ℝ) ^ m) * (1 + B) := by nlinarith |
| 1181 | field_simp [hδ.ne'] |
| 1182 | nlinarith [mul_nonneg (mul_nonneg hmassK hA) (sub_nonneg.mpr this)] |
| 1183 | exact (hb.trans hmid).trans ((mul_le_mul_of_nonneg_left hw |
| 1184 | (mul_nonneg (mul_nonneg hmidK (by positivity)) hA)).trans |
| 1185 | (mul_le_mul_of_nonneg_right |
| 1186 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hmiddleK (by positivity)) hA) hnorm)) |
| 1187 | |
| 1188 | end VariableTransport |
| 1189 | |
| 1190 | section LocalComposition |
| 1191 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1192 | |
| 1193 | theorem radial_comp_finiteJets_local (a b : ℝ) {φ : ℝ → ℝ} |
| 1194 | (hφ : ContDiff ℝ ∞ φ) (m : ℕ) : |
| 1195 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (U : Set S), IsOpen U → ∀ (F : PressureStream.Lift S → ℝ), |
| 1196 | ContDiffOn ℝ ∞ F (PhysicalMeanDomain.slowDomain U) → ∀ z : PressureStream.Lift S, |
| 1197 | z.2.1 ∈ U → z.1 ∈ Icc a b → ∀ C : ℝ, 0 ≤ C → |
| 1198 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i F (liftChart φ z)‖ ≤ C) → ∀ j ≤ m, |
| 1199 | ‖iteratedFDeriv ℝ j (F ∘ liftChart φ) z‖ ≤ K * C := by |
| 1200 | obtain ⟨K, hK, hb⟩ := radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := ℝ) a b hφ m |
| 1201 | refine ⟨K, hK, ?_⟩ |
| 1202 | intro U hU F hF z hz hR C hC hin j hj |
| 1203 | obtain ⟨χ, _, _, hχF, he⟩ := PhysicalMeanDomain.exists_fiber_localization hU hz hF |
| 1204 | have h := hb (PhysicalMeanDomain.localize χ F) hχF z hR C hC (fun i hi => by |
| 1205 | change ‖iteratedFDeriv ℝ i (PhysicalMeanDomain.localize χ F) (φ z.1, (z.2.1, z.2.2))‖ ≤ C |
| 1206 | rw [he.jet_eq i (φ z.1) z.2.2] |
| 1207 | exact hin i hi) j hj |
| 1208 | have hgerm : (PhysicalMeanDomain.localize χ F ∘ liftChart φ) =ᶠ[𝓝 z] (F ∘ liftChart φ) := |
| 1209 | (he.eventuallyEq (φ z.1) z.2.2).comp_tendsto (liftChart_contDiff hφ).continuous.continuousAt |
| 1210 | rwa [MeanRankUpdate.iteratedFDeriv_congr_germ hgerm j] at h |
| 1211 | |
| 1212 | end LocalComposition |
| 1213 | |
| 1214 | section PhysicalTransportIdentity |
| 1215 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1216 | |
| 1217 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1218 | theorem cutoff_eq_normalizedCutoff {c a b d : ℝ} (hc : 0 < c) (ha : 0 < a) |
| 1219 | (ell : S → ℝ) (z : PressureStream.Lift S) (hl : 0 < ell z.2.1) |
| 1220 | (hleft : c ≤ ell z.2.1 * a) (hR : z.1 / ell z.2.1 ∈ Ioo a b) : |
| 1221 | cutoff d a b ell z = normalizedCutoff (a ^ d) (b ^ d) (fun s => ell s ^ d) |
| 1222 | (liftChart (powerChart d c) z) := by |
| 1223 | have hr : c < z.1 := hleft.trans_lt (by nlinarith [(lt_div_iff₀ hl).mp hR.1]) |
| 1224 | have hratio : 0 < z.1 / ell z.2.1 := ha.trans hR.1 |
| 1225 | simp only [cutoff, radialRatio, physicalCutoff, normalizedCutoff, liftChart] |
| 1226 | rw [powerChart_eq ha (by linarith [hR.1]) d, powerChart_eq hc (by linarith) d, |
| 1227 | Real.div_rpow (hc.trans hr).le hl.le] |
| 1228 | |
| 1229 | theorem compactPrimitive_eq_transportGauge {c a b d M : ℝ} |
| 1230 | (hc : 0 < c) (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1231 | (ell : S → ℝ) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) |
| 1232 | (hl : ∀ s ∈ U, 0 < ell s) (hleft : ∀ s ∈ U, c ≤ ell s * a) |
| 1233 | {f : PressureStream.Lift S → ℝ} |
| 1234 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) |
| 1235 | (z : PressureStream.Lift S) (hz : z.2.1 ∈ U) (hR : z.1 / ell z.2.1 ∈ Ioo a b) : |
| 1236 | compactPrimitive d a b M ell v f z = |
| 1237 | transportGauge (a ^ d) (b ^ d) M (fun s => ell s ^ d) v (normalizeSource d c f) |
| 1238 | (liftChart (powerChart d c) z) := by |
| 1239 | rw [compactPrimitive_reference hc ha hab hd ell v hU hl hleft hf hs z hz, |
| 1240 | cutoff_eq_normalizedCutoff hc ha ell z (hl _ hz) (hleft _ hz) hR] |
| 1241 | rfl |
| 1242 | |
| 1243 | theorem compactPrimitive_transportGauge_germ {c a b d M : ℝ} |
| 1244 | (hc : 0 < c) (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1245 | (ell : S → ℝ) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) |
| 1246 | (hell : ContDiffOn ℝ ∞ ell U) (hl : ∀ s ∈ U, 0 < ell s) |
| 1247 | (hleft : ∀ s ∈ U, c ≤ ell s * a) {f : PressureStream.Lift S → ℝ} |
| 1248 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) |
| 1249 | (z : PressureStream.Lift S) (hz : z.2.1 ∈ U) (hR : z.1 / ell z.2.1 ∈ Ioo a b) : |
| 1250 | compactPrimitive d a b M ell v f =ᶠ[𝓝 z] |
| 1251 | (transportGauge (a ^ d) (b ^ d) M (fun s => ell s ^ d) v (normalizeSource d c f) ∘ |
| 1252 | liftChart (powerChart d c)) := by |
| 1253 | have hV : IsOpen (PhysicalMeanDomain.slowDomain U ∩ radialRatio ell ⁻¹' Ioo a b) := |
| 1254 | (radialRatio_contDiffOn hell hl).continuousOn.isOpen_inter_preimage |
| 1255 | (PhysicalMeanDomain.slowDomain_open hU) isOpen_Ioo |
| 1256 | filter_upwards [hV.mem_nhds ⟨hz, hR⟩] with p hp |
| 1257 | exact compactPrimitive_eq_transportGauge hc ha hab hd ell v hU hl hleft hf hs p hp.1 hp.2 |
| 1258 | |
| 1259 | end PhysicalTransportIdentity |
| 1260 | |
| 1261 | section QWeighted |
| 1262 | open LocalSignedRequest |
| 1263 | |
| 1264 | /-- A fixed containing shell is used only to normalize the integral. The |
| 1265 | weight and the actual cutoff continue to use the moving profile endpoints. -/ |
| 1266 | theorem qLength_reference_bounds {coord a b : ℝ} (U : SlowRegion coord) |
| 1267 | (ha : 0 < a) (hab : a < b) : |
| 1268 | ∃ c e L : ℝ, 0 < c ∧ c < e ∧ 0 < L ∧ |
| 1269 | (∀ s ∈ U.carrier, 0 < qLength coord s) ∧ |
| 1270 | (∀ s ∈ U.carrier, c ≤ qLength coord s * a) ∧ |
| 1271 | (∀ s ∈ U.carrier, qLength coord s * b ≤ e) ∧ |
| 1272 | (∀ s ∈ U.carrier, qLength coord s ≤ L) := by |
| 1273 | let l := Real.sqrt U.qlo |
| 1274 | let L := Real.sqrt (|U.qhi| + U.qlo + 1) |
| 1275 | have hl : 0 < l := Real.sqrt_pos.mpr U.qlo_pos |
| 1276 | have hL : 0 < L := Real.sqrt_pos.mpr (by have := abs_nonneg U.qhi; linarith [U.qlo_pos]) |
| 1277 | have hlL : l ≤ L := Real.sqrt_le_sqrt (by have := abs_nonneg U.qhi; linarith) |
| 1278 | have hlow : ∀ s ∈ U.carrier, l ≤ qLength coord s := |
| 1279 | fun s hs => Real.sqrt_le_sqrt (U.q_mem s hs).1 |
| 1280 | have hupp : ∀ s ∈ U.carrier, qLength coord s ≤ L := by |
| 1281 | intro s hs |
| 1282 | apply Real.sqrt_le_sqrt |
| 1283 | exact (U.q_mem s hs).2.trans (by have := le_abs_self U.qhi; linarith [U.qlo_pos]) |
| 1284 | refine ⟨l * a / 2, L * b + 1, L, by positivity, ?_, hL, |
| 1285 | fun s hs => hl.trans_le (hlow s hs), ?_, ?_, hupp⟩ |
| 1286 | · have h1 : l * a ≤ L * a := mul_le_mul_of_nonneg_right hlL ha.le |
| 1287 | have h2 : L * a < L * b := mul_lt_mul_of_pos_left hab hL |
| 1288 | have hp : 0 < l * a := mul_pos hl ha |
| 1289 | linarith |
| 1290 | · intro s hs |
| 1291 | have hh := mul_le_mul_of_nonneg_right (hlow s hs) ha.le |
| 1292 | have hp : 0 < l * a := mul_pos hl ha |
| 1293 | linarith |
| 1294 | · intro s hs |
| 1295 | have hh := mul_le_mul_of_nonneg_right (hupp s hs) (ha.trans hab).le |
| 1296 | linarith |
| 1297 | |
| 1298 | noncomputable def normalizedCutoffModel (d a b : ℝ) (y : MeanRankUpdate.ModelPoint) : ℝ := |
| 1299 | TransportPrimitive.interiorCutoff (a ^ d) (b ^ d) (y.2.1 / (Real.sqrt y.1) ^ d) |
| 1300 | |
| 1301 | theorem normalizedCutoffModel_contDiffOn (d a b : ℝ) : |
| 1302 | ContDiffOn ℝ ∞ (normalizedCutoffModel d a b) PhysicalCoordinateBounds.positiveTime := by |
| 1303 | intro y hy |
| 1304 | have hp : 0 < Real.sqrt y.1 := Real.sqrt_pos.mpr hy |
| 1305 | exact ((TransportPrimitive.interiorCutoff_contDiff (a ^ d) (b ^ d)).contDiffAt.comp y |
| 1306 | (contDiffAt_snd.fst.div |
| 1307 | ((contDiffAt_fst.sqrt (ne_of_gt hy)).rpow_const_of_ne hp.ne') |
| 1308 | (Real.rpow_pos_of_pos hp d).ne')).contDiffWithinAt |
| 1309 | |
| 1310 | theorem normalizedCutoff_q_eq_kernel (coord d a b : ℝ) : |
| 1311 | normalizedCutoff (a ^ d) (b ^ d) (fun s => qLength coord s ^ d) = |
| 1312 | MeanRankUpdate.chartKernel coord (normalizedCutoffModel d a b) := rfl |
| 1313 | |
| 1314 | theorem normalizedCutoff_q_finiteJets {coord qlo qhi rlo rhi : ℝ} |
| 1315 | (hc : 0 < coord) (hc1 : coord < 1) (hqlo : 0 < qlo) (d a b : ℝ) |
| 1316 | {V : Set MeanRankUpdate.ChartPoint} |
| 1317 | (hT : ∀ z ∈ V, MeanRankUpdate.chartInput z ∈ PhysicalCoordinateBounds.positiveTime) |
| 1318 | (hq : ∀ z ∈ V, MeanRankUpdate.chartQ coord z ∈ Icc qlo qhi) |
| 1319 | (hR : ∀ z ∈ V, z.1 ∈ Icc rlo rhi) (m : ℕ) : |
| 1320 | ∃ B : ℝ, 0 ≤ B ∧ JetBounds.FiniteJetBound m |
| 1321 | (normalizedCutoff (a ^ d) (b ^ d) (fun s => qLength coord s ^ d)) V B := by |
| 1322 | rw [normalizedCutoff_q_eq_kernel] |
| 1323 | exact MeanRankUpdate.chartKernel_finiteJetBounds hc hc1 hqlo hT hq hR |
| 1324 | (normalizedCutoffModel_contDiffOn d a b) m |
| 1325 | |
| 1326 | /-- Uniform finite seminorm inequality for the actual q-gauge primitive. |
| 1327 | The constant precedes all frequencies, sources, amplitudes and evaluation points. -/ |
| 1328 | theorem compactPrimitive_q_finiteJets_global {coord a b c e d cL cR L : ℝ} |
| 1329 | (U : SlowRegion coord) (hc : 0 < c) (hce : c < e) (ha : 0 < a) (hab : a < b) |
| 1330 | (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hL : 0 < L) |
| 1331 | (hl : ∀ s ∈ U.carrier, 0 < qLength coord s) |
| 1332 | (hleft : ∀ s ∈ U.carrier, c ≤ qLength coord s * a) |
| 1333 | (hright : ∀ s ∈ U.carrier, qLength coord s * b ≤ e) |
| 1334 | (hupp : ∀ s ∈ U.carrier, qLength coord s ≤ L) (p m : ℕ) : |
| 1335 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift PressureStream.Plane → ℝ), |
| 1336 | ContDiff ℝ ∞ f → RadialAlias.RadiallySupported c e f → SupportedGauge a b (qLength coord) U.carrier f → |
| 1337 | ∀ A : ℝ, 0 ≤ A → ∀ z : PressureStream.Lift PressureStream.Plane, |
| 1338 | z.2.1 ∈ U.carrier → z.1 / qLength coord z.2.1 ∈ Ioo a b → |
| 1339 | (∀ j ≤ m, ∀ R, R / qLength coord z.2.1 ∈ Ioo a b → ∀ Y : PressureStream.Plane, |
| 1340 | ‖iteratedFDeriv ℝ j f (R, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b p (R / qLength coord z.2.1)) → |
| 1341 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j (compactPrimitive d a b M (qLength coord) v f) z‖ ≤ |
| 1342 | K * A * logWeight cL cR a b p (z.1 / qLength coord z.2.1) := by |
| 1343 | have hcU : 0 < c ^ d := Real.rpow_pos_of_pos hc d |
| 1344 | have hceU : c ^ d < e ^ d := Real.rpow_lt_rpow hc.le hce hd |
| 1345 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1346 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1347 | have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL |
| 1348 | have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR |
| 1349 | have hLU : 0 < L ^ d := Real.rpow_pos_of_pos hL d |
| 1350 | have hell : ContDiffOn ℝ ∞ (qLength coord) U.carrier := |
| 1351 | (qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs) |
| 1352 | have hellpow : ContDiffOn ℝ ∞ (fun s => qLength coord s ^ d) U.carrier := |
| 1353 | hell.rpow_const_of_ne (fun s hs => (hl s hs).ne') |
| 1354 | let V : Set MeanRankUpdate.ChartPoint := {z | z.2.1 ∈ U.carrier ∧ z.1 ∈ Icc (c ^ d) (e ^ d)} |
| 1355 | obtain ⟨B, hB, hbB⟩ := normalizedCutoff_q_finiteJets U.coord_pos U.coord_lt_one U.qlo_pos d a b |
| 1356 | (V := V) (fun z hz => U.time_pos z.2.1 hz.1) (fun z hz => U.q_mem z.2.1 hz.1) (fun _ hz => hz.2) m |
| 1357 | obtain ⟨KN, hKN, hbN⟩ := normalizeSource_gauge_finiteJets (S := PressureStream.Plane) hc hce ha hab hd cL cR p m |
| 1358 | obtain ⟨KT, hKT, hbT⟩ := transportGauge_finiteJets (S := PressureStream.Plane) hceU haU habU hcLU hcRU hLU p m |
| 1359 | obtain ⟨KP, hKP, hbP⟩ := radial_comp_finiteJets_local (S := PressureStream.Plane) c e (powerChart_contDiff hc d) m |
| 1360 | let Q := ((min 1 d) ^ p)⁻¹ |
| 1361 | have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one hd) p)).le |
| 1362 | refine ⟨KP * KT * (1 + B) * KN * Q, by positivity, ?_⟩ |
| 1363 | intro M v f hf hs hsg A hA z hz hR hin j hj |
| 1364 | have hrleft : c < z.1 := (hleft _ hz).trans_lt (by nlinarith [(lt_div_iff₀ (hl _ hz)).mp hR.1]) |
| 1365 | have hrright : z.1 < e := (show z.1 < qLength coord z.2.1 * b by |
| 1366 | nlinarith [(div_lt_iff₀ (hl _ hz)).mp hR.2]).trans_le (hright _ hz) |
| 1367 | have hrpow : powerChart d c z.1 = z.1 ^ d := powerChart_eq hc (by linarith) d |
| 1368 | let zU := liftChart (powerChart d c) z |
| 1369 | have hzU : zU.1 ∈ Icc (c ^ d) (e ^ d) := by |
| 1370 | change powerChart d c z.1 ∈ Icc (c ^ d) (e ^ d) |
| 1371 | rw [hrpow] |
| 1372 | exact ⟨Real.rpow_le_rpow hc.le hrleft.le hd.le, |
| 1373 | Real.rpow_le_rpow (hc.trans hrleft).le hrright.le hd.le⟩ |
| 1374 | have hratio : zU.1 / qLength coord z.2.1 ^ d = (z.1 / qLength coord z.2.1) ^ d := by |
| 1375 | change powerChart d c z.1 / qLength coord z.2.1 ^ d = _ |
| 1376 | rw [hrpow, Real.div_rpow (hc.trans hrleft).le (hl _ hz).le] |
| 1377 | have hR_U : zU.1 / qLength coord z.2.1 ^ d ∈ Ioo (a ^ d) (b ^ d) := by |
| 1378 | rw [hratio] |
| 1379 | exact ⟨Real.rpow_lt_rpow ha.le hR.1 hd, |
| 1380 | Real.rpow_lt_rpow (ha.trans hR.1).le hR.2 hd⟩ |
| 1381 | let g := normalizeSource d c f |
| 1382 | have hg : ContDiff ℝ ∞ g := normalizeSource_contDiff hc hd hf |
| 1383 | have hgs : RadialAlias.RadiallySupported (c ^ d) (e ^ d) g := normalizeSource_supported hc hce hd hs |
| 1384 | have hgg := normalizeSource_supportedGauge hc hce ha hab hd hl hs hsg |
| 1385 | have hgp := transportGauge_contDiffOn (a := a ^ d) (b := b ^ d) (M := M) hellpow (fun s hs => Real.rpow_pos_of_pos (hl s hs) d) v hg hgs |
| 1386 | have hbound (i : ℕ) (hi : i ≤ m) : |
| 1387 | ‖iteratedFDeriv ℝ i (transportGauge (a ^ d) (b ^ d) M (fun s => qLength coord s ^ d) v g) zU‖ ≤ |
| 1388 | KT * (1 + B) * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p |
| 1389 | (zU.1 / qLength coord z.2.1 ^ d) := by |
| 1390 | exact hbT U.carrier U.isOpen _ hellpow (fun s hs => Real.rpow_pos_of_pos (hl s hs) d) |
| 1391 | (fun s hs => Real.rpow_le_rpow (hl s hs).le (hupp s hs) hd.le) |
| 1392 | M v g hg hgs hgg (KN * A) B (mul_nonneg hKN hA) hB zU hz hR_U |
| 1393 | (fun k hk R hR Y => hbN (qLength coord z.2.1) (hl _ hz) (hleft _ hz) (hright _ hz) |
| 1394 | f hf A hA z.2.1 hin (R, (z.2.1, Y)) hR rfl k hk) |
| 1395 | (fun k hk => hbB k hk zU ⟨hz, hzU⟩) i hi |
| 1396 | have hn : 0 ≤ KT * (1 + B) * (KN * A) * |
| 1397 | logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (zU.1 / qLength coord z.2.1 ^ d) := |
| 1398 | mul_nonneg (by positivity) (weight_pos _ _ p (logPosition_mem haU hR_U)).le |
| 1399 | have hp := hbP U.carrier U.isOpen _ hgp z hz ⟨hrleft.le, hrright.le⟩ _ hn hbound j hj |
| 1400 | have he := compactPrimitive_transportGauge_germ (M := M) hc ha hab hd (qLength coord) v U.isOpen |
| 1401 | hell hl hleft hf.contDiffOn hsg z hz hR |
| 1402 | rw [MeanRankUpdate.iteratedFDeriv_congr_germ he j] |
| 1403 | have hw := logWeight_power_forward ha hd hR cL cR p |
| 1404 | rw [← hratio] at hw |
| 1405 | calc |
| 1406 | _ ≤ KP * (KT * (1 + B) * (KN * A) * |
| 1407 | logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (zU.1 / qLength coord z.2.1 ^ d)) := hp |
| 1408 | _ = (KP * (KT * (1 + B) * (KN * A))) * |
| 1409 | logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (zU.1 / qLength coord z.2.1 ^ d) := by ring |
| 1410 | _ ≤ (KP * (KT * (1 + B) * (KN * A))) * |
| 1411 | (Q * logWeight cL cR a b p (z.1 / qLength coord z.2.1)) := |
| 1412 | mul_le_mul_of_nonneg_left hw (by positivity) |
| 1413 | _ = _ := by ring |
| 1414 | |
| 1415 | end QWeighted |
| 1416 | |
| 1417 | section LocalWeighted |
| 1418 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1419 | |
| 1420 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1421 | theorem localize_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 1422 | {f : PressureStream.Lift S → ℝ} (hs : SupportedGauge a b ell U f) (χ : S → ℝ) : |
| 1423 | SupportedGauge a b ell U (PhysicalMeanDomain.localize χ f) := by |
| 1424 | intro z hz hn |
| 1425 | apply hs z hz |
| 1426 | intro hzero |
| 1427 | exact hn (by simp only [PhysicalMeanDomain.localize, hzero, smul_zero]) |
| 1428 | |
| 1429 | variable [FiniteDimensional ℝ S] |
| 1430 | |
| 1431 | theorem iteratedFDeriv_zero_outsideGauge_on {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 1432 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → ℝ} |
| 1433 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) |
| 1434 | {z : PressureStream.Lift S} (hz : z.2.1 ∈ U) |
| 1435 | (hR : z.1 ∉ Ioo (ell z.2.1 * a) (ell z.2.1 * b)) (j : ℕ) : |
| 1436 | iteratedFDeriv ℝ j f z = 0 := by |
| 1437 | obtain ⟨χ, _, _, hχf, he⟩ := PhysicalMeanDomain.exists_fiber_localization hU hz hf |
| 1438 | rw [← he.jet_eq j z.1 z.2.2] |
| 1439 | exact iteratedFDeriv_zero_outsideGauge hU hell hχf (localize_supportedGauge hs χ) hz hR j |
| 1440 | |
| 1441 | end LocalWeighted |
| 1442 | |
| 1443 | section MovingClasses |
| 1444 | open LocalSignedRequest WeightedClasses |
| 1445 | |
| 1446 | variable {coord a b d cL cR : ℝ} (U : SlowRegion coord) |
| 1447 | |
| 1448 | theorem compactPrimitive_q_contDiffOn (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1449 | (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 1450 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1451 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 1452 | ContDiffOn ℝ ∞ (compactPrimitive d a b M (qLength coord) v f) |
| 1453 | (PhysicalMeanDomain.slowDomain U.carrier) := by |
| 1454 | obtain ⟨c, e, L, hc, hce, _, hl, hleft, hright, _⟩ := qLength_reference_bounds U ha hab |
| 1455 | exact compactPrimitive_contDiffOn hc hce ha hab hd v U.isOpen |
| 1456 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)) |
| 1457 | hl hleft hright hf hs |
| 1458 | |
| 1459 | theorem compactPrimitive_q_finiteJets (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1460 | (hcL : 0 < cL) (hcR : 0 < cR) (p m : ℕ) : |
| 1461 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : Point → ℝ), |
| 1462 | ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier) → |
| 1463 | SupportedGauge a b (qLength coord) U.carrier f → ∀ A : ℝ, 0 ≤ A → |
| 1464 | ∀ z : Point, z.2.1 ∈ U.carrier → z.1 / qLength coord z.2.1 ∈ Ioo a b → |
| 1465 | (∀ j ≤ m, ∀ R, R / qLength coord z.2.1 ∈ Ioo a b → ∀ Y : PressureStream.Plane, |
| 1466 | ‖iteratedFDeriv ℝ j f (R, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b p (R / qLength coord z.2.1)) → |
| 1467 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j (compactPrimitive d a b M (qLength coord) v f) z‖ ≤ |
| 1468 | K * A * logWeight cL cR a b p (z.1 / qLength coord z.2.1) := by |
| 1469 | obtain ⟨c, e, L, hc, hce, hL, hl, hleft, hright, hupp⟩ := qLength_reference_bounds U ha hab |
| 1470 | obtain ⟨K, hK, hb⟩ := compactPrimitive_q_finiteJets_global U hc hce ha hab hd hcL hcR hL |
| 1471 | hl hleft hright hupp p m |
| 1472 | refine ⟨K, hK, ?_⟩ |
| 1473 | intro M v f hf hs A hA z hz hR hin j hj |
| 1474 | have hfixed : PhysicalMeanDomain.SupportedOn c e U.carrier f := fun x hx hn => |
| 1475 | ⟨(hleft _ hx).trans (hs x hx hn).1, (hs x hx hn).2.trans (hright _ hx)⟩ |
| 1476 | obtain ⟨χ, _, hχs, hχf, he⟩ := PhysicalMeanDomain.exists_fiber_localization U.isOpen hz hf |
| 1477 | have h := hb M v (PhysicalMeanDomain.localize χ f) hχf |
| 1478 | (PhysicalMeanDomain.localize_supported hχs hfixed) (localize_supportedGauge hs χ) |
| 1479 | A hA z hz hR (fun i hi R hR Y => by rw [he.jet_eq i R Y]; exact hin i hi R hR Y) j hj |
| 1480 | rwa [((compactPrimitive_fiberLocal d a b M (qLength coord) v).germ he).jet_eq j z.1 z.2.2] at h |
| 1481 | |
| 1482 | variable (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1483 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 1484 | |
| 1485 | theorem meanClass_compactPrimitive (hab : a < b) (hd : 0 < d) |
| 1486 | {α : ℝ} {f : ℕ → Point → ℝ} |
| 1487 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1488 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1489 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 1490 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 1491 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1492 | (fun n => compactPrimitive d a b (M n) (qLength coord) (v n) (f n)) := by |
| 1493 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1494 | have hdom : st.domain ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun x hx => |
| 1495 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL x).mp hx).1 |
| 1496 | refine ⟨fun _ z hz => st.zeta_nonneg z hz, |
| 1497 | fun n => (compactPrimitive_q_contDiffOn U ha hab hd (M n) (v n) (hf n) (hs n)).mono hdom, ?_⟩ |
| 1498 | intro m |
| 1499 | obtain ⟨C, hC, p, hb⟩ := hclass.bounds m |
| 1500 | obtain ⟨K, hK, hKbound⟩ := compactPrimitive_q_finiteJets U ha hab hd hcL hcR p m |
| 1501 | refine ⟨K * C, mul_nonneg hK hC, p, ?_⟩ |
| 1502 | intro n z hz j hj |
| 1503 | have hzm := (movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz |
| 1504 | have hA : 0 ≤ C * ε n ^ α * L n ^ p := |
| 1505 | mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1506 | (pow_nonneg (zero_le_one.trans (hL n)) p) |
| 1507 | have hsource (i : ℕ) (hi : i ≤ m) (R : ℝ) (hR : R / qLength coord z.2.1 ∈ Ioo a b) |
| 1508 | (Y : PressureStream.Plane) : |
| 1509 | ‖iteratedFDeriv ℝ i (f n) (R, (z.2.1, Y))‖ ≤ |
| 1510 | (C * ε n ^ α * L n ^ p) * logWeight cL cR a b p (R / qLength coord z.2.1) := by |
| 1511 | have hpoint : (R, (z.2.1, Y)) ∈ st.domain := |
| 1512 | (movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL _).mpr ⟨hzm.1, hR⟩ |
| 1513 | have h := hb n (R, (z.2.1, Y)) hpoint i hi |
| 1514 | rw [movingStrip_majorant_eq U a b cL cR ha hcL hcR ε L hε hεone hL α C p n (R, (z.2.1, Y)) hR] at h |
| 1515 | exact h |
| 1516 | have h := hKbound (M n) (v n) (f n) (hf n) (hs n) _ hA z hzm.1 hzm.2 hsource j hj |
| 1517 | rw [movingStrip_majorant_eq U a b cL cR ha hcL hcR ε L hε hεone hL α (K * C) p n z hzm.2] |
| 1518 | exact h.trans_eq (by |
| 1519 | change K * (C * ε n ^ α * L n ^ p) * logWeight cL cR a b p (z.1 / qLength coord z.2.1) = |
| 1520 | (K * C * ε n ^ α * L n ^ p) * logWeight cL cR a b p (z.1 / qLength coord z.2.1) |
| 1521 | ring) |
| 1522 | |
| 1523 | theorem meanClass_moving_localBandJets {α : ℝ} {f : ℕ → Point → ℝ} |
| 1524 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1525 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1526 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 1527 | PhysicalMeanDomain.LocalBandJets U.carrier ε L α f := by |
| 1528 | intro m |
| 1529 | obtain ⟨C, hC, p, hb⟩ := hclass.bounds m |
| 1530 | obtain ⟨W, hW, hweight⟩ := weight_uniform_bound hcL hcR (logLength a b) p |
| 1531 | refine ⟨C * W, mul_nonneg hC hW, p, ?_⟩ |
| 1532 | intro n z hz j hj |
| 1533 | have hp : 0 < qLength coord z.2.1 := qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hz) |
| 1534 | have hA : 0 ≤ C * ε n ^ α * L n ^ p := |
| 1535 | mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1536 | (pow_nonneg (zero_le_one.trans (hL n)) p) |
| 1537 | by_cases hR : z.1 / qLength coord z.2.1 ∈ Ioo a b |
| 1538 | · have hpoint := (movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mpr ⟨hz, hR⟩ |
| 1539 | have h := hb n z hpoint j hj |
| 1540 | rw [movingStrip_majorant_eq U a b cL cR ha hcL hcR ε L hε hεone hL α C p n z hR] at h |
| 1541 | exact (h.trans (mul_le_mul_of_nonneg_left (hweight _ (logPosition_mem ha hR)) hA)).trans_eq (by ring) |
| 1542 | · have hR' : z.1 ∉ Ioo (qLength coord z.2.1 * a) (qLength coord z.2.1 * b) := by |
| 1543 | intro h |
| 1544 | exact hR ⟨(lt_div_iff₀ hp).mpr (by nlinarith [h.1]), (div_lt_iff₀ hp).mpr (by nlinarith [h.2])⟩ |
| 1545 | have hell : ContinuousOn (qLength coord) U.carrier := |
| 1546 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)).continuousOn |
| 1547 | rw [iteratedFDeriv_zero_outsideGauge_on U.isOpen hell (hf n) (hs n) hz hR' j, norm_zero] |
| 1548 | exact mul_nonneg (mul_nonneg (mul_nonneg hC hW) (Real.rpow_pos_of_pos (hε n) α).le) |
| 1549 | (pow_nonneg (zero_le_one.trans (hL n)) p) |
| 1550 | |
| 1551 | theorem localBandJets_unweighted_moving {α : ℝ} {f : ℕ → Point → ℝ} |
| 1552 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1553 | (hb : PhysicalMeanDomain.LocalBandJets U.carrier ε L α f) : |
| 1554 | UnweightedClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f := by |
| 1555 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1556 | have hdom : st.domain ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun x hx => |
| 1557 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL x).mp hx).1 |
| 1558 | refine ⟨fun _ _ _ => zero_le_one, fun n => (hf n).mono hdom, ?_⟩ |
| 1559 | intro m |
| 1560 | obtain ⟨C, hC, k, hbound⟩ := hb m |
| 1561 | refine ⟨C, hC, k, ?_⟩ |
| 1562 | intro n z hz j hj |
| 1563 | apply (hbound n z (hdom hz) j hj).trans |
| 1564 | change C * ε n ^ α * L n ^ k ≤ C * ε n ^ α * st.growth n z ^ k * 1 |
| 1565 | rw [mul_one] |
| 1566 | exact mul_le_mul_of_nonneg_left |
| 1567 | (pow_le_pow_left₀ (zero_le_one.trans (hL n)) (st.slow_le_growth n z) k) |
| 1568 | (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1569 | |
| 1570 | theorem meanClass_pressureMass_moving (hab : a < b) {α : ℝ} {f : ℕ → Point → ℝ} |
| 1571 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1572 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1573 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 1574 | UnweightedClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1575 | (fun n => MeanMomentBounds.liftedPressureMass (f n)) := by |
| 1576 | obtain ⟨c, e, R, hc, hce, hR, hl, hleft, hright, hupp⟩ := qLength_reference_bounds U ha hab |
| 1577 | have hfixed (n : ℕ) : PhysicalMeanDomain.SupportedOn c e U.carrier (f n) := fun x hx hn => |
| 1578 | ⟨(hleft _ hx).trans (hs n x hx hn).1, (hs n x hx hn).2.trans (hright _ hx)⟩ |
| 1579 | exact localBandJets_unweighted_moving U ha hcL hcR ε L hε hεone hL |
| 1580 | (fun n => PhysicalMeanDomain.liftedPressureMass_contDiffOn U.isOpen (hf n) (hfixed n)) |
| 1581 | (PhysicalMeanDomain.LocalBandJets.liftedPressureMass hce.le U.isOpen |
| 1582 | (meanClass_moving_localBandJets U ha hcL hcR ε L hε hεone hL hf hs hclass) hf hfixed) |
| 1583 | |
| 1584 | theorem chartKernel_unweighted_moving (g : MeanRankUpdate.ModelPoint → ℝ) |
| 1585 | (hg : ContDiffOn ℝ ∞ g PhysicalCoordinateBounds.positiveTime) : |
| 1586 | UnweightedClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) 0 |
| 1587 | (fun _ => MeanRankUpdate.chartKernel coord g) := by |
| 1588 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1589 | have hdom : st.domain ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun x hx => |
| 1590 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL x).mp hx).1 |
| 1591 | have ht : ∀ z ∈ st.domain, MeanRankUpdate.chartInput z ∈ PhysicalCoordinateBounds.positiveTime := |
| 1592 | fun z hz => U.time_pos z.2.1 (hdom hz) |
| 1593 | apply unweighted_of_finiteJetBounds st _ (MeanRankUpdate.chartKernel_contDiffOn U.coord_pos U.coord_lt_one ht hg) |
| 1594 | intro m |
| 1595 | obtain ⟨C, _, hb⟩ := MeanRankUpdate.chartKernel_finiteJetBounds U.coord_pos U.coord_lt_one U.qlo_pos |
| 1596 | ht (fun z hz => U.q_mem z.2.1 (hdom hz)) |
| 1597 | (fun z hz => moving_radial_bounds U ha (hdom hz) |
| 1598 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).2) hg m |
| 1599 | exact ⟨C, hb⟩ |
| 1600 | |
| 1601 | theorem inverseLength_unweighted_moving : |
| 1602 | UnweightedClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) 0 |
| 1603 | (fun _ z => (qLength coord z.2.1)⁻¹) := by |
| 1604 | apply chartKernel_unweighted_moving U ha hcL hcR ε L hε hεone hL (fun y => (Real.sqrt y.1)⁻¹) |
| 1605 | intro y hy |
| 1606 | exact ((contDiffAt_fst.sqrt (ne_of_gt hy)).inv (Real.sqrt_pos.mpr hy).ne').contDiffWithinAt |
| 1607 | |
| 1608 | theorem density_meanClass_moving (hab : a < b) : |
| 1609 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) 0 |
| 1610 | (fun _ => density a b hab (qLength coord)) := by |
| 1611 | have hρ := meanClass_profileMap U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1612 | (PhysicalMeanDomain.memClass_restrict ha hcL hcR ε L hε hεone hL U.carrier U.isOpen |
| 1613 | (MeanIncrementBounds.rho_meanClass (P := PressureStream.Plane × PressureStream.Plane) |
| 1614 | ha hab hcL hcR ε L hε hεone hL)) |
| 1615 | have hi := inverseLength_unweighted_moving (b := b) U ha hcL hcR ε L hε hεone hL |
| 1616 | have he := MeanIncrementBounds.Class.coefficient_mul hi hρ |
| 1617 | simp only [zero_add] at he |
| 1618 | exact he |
| 1619 | |
| 1620 | include ha in |
| 1621 | theorem pressureSource_q_contDiffOn (hab : a < b) {f : Point → ℝ} |
| 1622 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1623 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 1624 | ContDiffOn ℝ ∞ (pressureSource a b hab (qLength coord) f) |
| 1625 | (PhysicalMeanDomain.slowDomain U.carrier) := by |
| 1626 | obtain ⟨c, e, R, hc, hce, hR, hl, hleft, hright, hupp⟩ := qLength_reference_bounds U ha hab |
| 1627 | have hfixed : PhysicalMeanDomain.SupportedOn c e U.carrier f := fun x hx hn => |
| 1628 | ⟨(hleft _ hx).trans (hs x hx hn).1, (hs x hx hn).2.trans (hright _ hx)⟩ |
| 1629 | exact hf.sub ((density_contDiffOn hab |
| 1630 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)) hl).mul |
| 1631 | (PhysicalMeanDomain.liftedPressureMass_contDiffOn U.isOpen hf hfixed)) |
| 1632 | |
| 1633 | include ha in |
| 1634 | theorem meanPressure_q_contDiffOn (hab : a < b) (hd : 0 < d) (M : ℝ) (v : PressureStream.Plane) |
| 1635 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1636 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 1637 | ContDiffOn ℝ ∞ (meanPressure d a b M hab (qLength coord) v f) |
| 1638 | (PhysicalMeanDomain.slowDomain U.carrier) := |
| 1639 | compactPrimitive_q_contDiffOn U ha hab hd M v (pressureSource_q_contDiffOn U ha hab hf hs) |
| 1640 | (pressureSource_supported hab (ell := qLength coord) (U := U.carrier) |
| 1641 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) hs) |
| 1642 | |
| 1643 | include ha in |
| 1644 | theorem meanPressure_q_supportedGauge (hab : a < b) (hd : 0 < d) (M : ℝ) (v : PressureStream.Plane) |
| 1645 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1646 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 1647 | SupportedGauge a b (qLength coord) U.carrier (meanPressure d a b M hab (qLength coord) v f) := |
| 1648 | compactPrimitive_supportedGauge ha hab hd (qLength coord) v U.isOpen |
| 1649 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) |
| 1650 | (pressureSource_q_contDiffOn U ha hab hf hs) |
| 1651 | (pressureSource_supported hab (ell := qLength coord) (U := U.carrier) |
| 1652 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) hs) |
| 1653 | |
| 1654 | theorem meanClass_pressureSource (hab : a < b) {α : ℝ} {f : ℕ → Point → ℝ} |
| 1655 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1656 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1657 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 1658 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1659 | (fun n => pressureSource a b hab (qLength coord) (f n)) := by |
| 1660 | have hmass := meanClass_pressureMass_moving U ha hcL hcR ε L hε hεone hL hab hf hs hclass |
| 1661 | have hρ := density_meanClass_moving U ha hcL hcR ε L hε hεone hL hab |
| 1662 | have hprod := MeanIncrementBounds.Class.mul_coefficient hρ hmass |
| 1663 | simp only [zero_add] at hprod |
| 1664 | exact MeanIncrementBounds.Class.sub hclass hprod |
| 1665 | |
| 1666 | theorem meanClass_meanPressure (hab : a < b) (hd : 0 < d) {α : ℝ} {f : ℕ → Point → ℝ} |
| 1667 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1668 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1669 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 1670 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 1671 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1672 | (fun n => meanPressure d a b (M n) hab (qLength coord) (v n) (f n)) := by |
| 1673 | exact meanClass_compactPrimitive U ha hcL hcR ε L hε hεone hL hab hd |
| 1674 | (fun n => pressureSource_q_contDiffOn U ha hab (hf n) (hs n)) |
| 1675 | (fun n => pressureSource_supported hab (ell := qLength coord) (U := U.carrier) |
| 1676 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) (hs n)) |
| 1677 | (meanClass_pressureSource U ha hcL hcR ε L hε hεone hL hab hf hs hclass) M v |
| 1678 | |
| 1679 | end MovingClasses |
| 1680 | |
| 1681 | section Periodicity |
| 1682 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1683 | |
| 1684 | theorem compactPrimitive_periodicOn (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 1685 | {U : Set S} {f : PressureStream.Lift S → ℝ} (hp : PhysicalMeanDomain.PeriodicOn U f) : |
| 1686 | PhysicalMeanDomain.PeriodicOn U (compactPrimitive d a b M ell v f) := by |
| 1687 | intro R s hs Y k |
| 1688 | have he : (fun q : ℝ => normalizeSource d (ell s * a) f |
| 1689 | (TransportPrimitive.shift M ((0 : S), v) |
| 1690 | (powerChart d (ell s * a) R, (s, Y + ((k.1 : ℝ), (k.2 : ℝ)))) q)) = |
| 1691 | fun q : ℝ => normalizeSource d (ell s * a) f |
| 1692 | (TransportPrimitive.shift M ((0 : S), v) |
| 1693 | (powerChart d (ell s * a) R, (s, Y)) q) := by |
| 1694 | funext q |
| 1695 | simp only [normalizeSource, liftChart, TransportPrimitive.shift, |
| 1696 | Prod.add_def, Prod.smul_def, smul_zero, add_zero] |
| 1697 | simpa only [Prod.add_def, Prod.smul_def, add_right_comm] using |
| 1698 | congrArg (fun u : ℝ => sourceMultiplier d (ell s * a) |
| 1699 | (powerChart d (ell s * a) R + q) • u) |
| 1700 | (hp (inverseChart d (ell s * a) (powerChart d (ell s * a) R + q)) s hs |
| 1701 | (Y + (M * q) • v) k) |
| 1702 | simp only [compactPrimitive, physicalCompact, pullback, liftChart, Function.comp_def, |
| 1703 | TransportPrimitive.compactIntegral, TransportPrimitive.pastIntegral, TransportPrimitive.totalIntegral, he] |
| 1704 | |
| 1705 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1706 | theorem pressureSource_periodicOn {a b : ℝ} (hab : a < b) (ell : S → ℝ) |
| 1707 | {U : Set S} {f : PressureStream.Lift S → ℝ} (hp : PhysicalMeanDomain.PeriodicOn U f) : |
| 1708 | PhysicalMeanDomain.PeriodicOn U (pressureSource a b hab ell f) := by |
| 1709 | intro r s hs Y k |
| 1710 | dsimp only [pressureSource, density, radialRatio] |
| 1711 | exact congrArg (fun x : ℝ => x - (ell s)⁻¹ * PressureStream.rho a b hab (r / ell s) * |
| 1712 | PressureStream.pressureMass f s) (hp r s hs Y k) |
| 1713 | |
| 1714 | theorem meanPressure_periodicOn {a b : ℝ} (hab : a < b) (d M : ℝ) (ell : S → ℝ) |
| 1715 | (v : PressureStream.Plane) {U : Set S} {f : PressureStream.Lift S → ℝ} |
| 1716 | (hp : PhysicalMeanDomain.PeriodicOn U f) : |
| 1717 | PhysicalMeanDomain.PeriodicOn U (meanPressure d a b M hab ell v f) := |
| 1718 | compactPrimitive_periodicOn d a b M ell v (pressureSource_periodicOn hab ell hp) |
| 1719 | |
| 1720 | theorem streamPotential_periodicOn (d a b M : ℝ) (ell : S → ℝ) (v : PressureStream.Plane) |
| 1721 | {U : Set S} {f : PressureStream.Lift S → ℝ} (hp : PhysicalMeanDomain.PeriodicOn U f) : |
| 1722 | PhysicalMeanDomain.PeriodicOn U (streamPotential d a b M ell v f) := by |
| 1723 | have hw : PhysicalMeanDomain.PeriodicOn U (PressureStream.weightedSource f) := by |
| 1724 | intro r s hs Y k |
| 1725 | dsimp only [PressureStream.weightedSource] |
| 1726 | exact congrArg (fun x : ℝ => r * x) (hp r s hs Y k) |
| 1727 | intro r s hs Y k |
| 1728 | exact congrArg (fun x : ℝ => x / r) (compactPrimitive_periodicOn d a b M ell v hw r s hs Y k) |
| 1729 | |
| 1730 | end Periodicity |
| 1731 | |
| 1732 | section MovingSupportClass |
| 1733 | open LocalSignedRequest WeightedClasses |
| 1734 | variable {coord a b cL cR : ℝ} (U : SlowRegion coord) |
| 1735 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1736 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 1737 | |
| 1738 | theorem localBandJets_meanClass_of_gaugeInteriorSupport {c e α : ℝ} |
| 1739 | (hac : a < c) (heb : e < b) {f : ℕ → Point → ℝ} |
| 1740 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1741 | (hs : ∀ n, SupportedGauge c e (qLength coord) U.carrier (f n)) |
| 1742 | (hb : PhysicalMeanDomain.LocalBandJets U.carrier ε L α f) : |
| 1743 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f := by |
| 1744 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1745 | let sb := logStripData (E := PressureStream.Plane × PressureStream.Plane) |
| 1746 | a b cL cR ha hcL hcR ε L hε hεone hL |
| 1747 | have hmem (r : ℝ) (hr : r ∈ Icc c e) : (r, (0 : PressureStream.Plane × PressureStream.Plane)) ∈ sb.domain := |
| 1748 | ⟨hac.trans_le hr.1, hr.2.trans_lt heb⟩ |
| 1749 | have hcont : ContinuousOn (fun r : ℝ => sb.zeta (r, 0)) (Icc c e) := |
| 1750 | sb.zeta_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hmem |
| 1751 | have hpos (r : ℝ) (hr : r ∈ Icc c e) : 0 < sb.zeta (r, 0) := |
| 1752 | zeta_pos cL cR (logPosition_mem ha (hmem r hr)) |
| 1753 | obtain ⟨δ, hδ, hmargin⟩ := UniformCone.positive_uniform_margin isCompact_Icc hcont hpos |
| 1754 | have hdom : st.domain ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun x hx => |
| 1755 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL x).mp hx).1 |
| 1756 | refine ⟨fun _ z hz => st.zeta_nonneg z hz, fun n => (hf n).mono hdom, ?_⟩ |
| 1757 | intro m |
| 1758 | obtain ⟨C, hC, k, hbound⟩ := hb m |
| 1759 | refine ⟨C / δ, div_nonneg hC hδ.le, k, ?_⟩ |
| 1760 | intro n z hz j hj |
| 1761 | have hzs := hdom hz |
| 1762 | have hEll : 0 < qLength coord z.2.1 := qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hzs) |
| 1763 | by_cases hpi : z.1 / qLength coord z.2.1 ∈ Icc c e |
| 1764 | · have hζ : δ ≤ st.zeta z := hmargin (z.1 / qLength coord z.2.1) hpi |
| 1765 | have hgr : L n ^ k ≤ st.growth n z ^ k := |
| 1766 | pow_le_pow_left₀ (zero_le_one.trans (hL n)) (st.slow_le_growth n z) k |
| 1767 | have hA : 0 ≤ C / δ * ε n ^ α * st.growth n z ^ k := |
| 1768 | mul_nonneg (mul_nonneg (div_nonneg hC hδ.le) (Real.rpow_pos_of_pos (hε n) α).le) |
| 1769 | (pow_nonneg (st.growth_nonneg n z) _) |
| 1770 | calc |
| 1771 | _ ≤ C * ε n ^ α * L n ^ k := hbound n z hzs j hj |
| 1772 | _ ≤ C * ε n ^ α * st.growth n z ^ k := |
| 1773 | mul_le_mul_of_nonneg_left hgr (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1774 | _ = (C / δ * ε n ^ α * st.growth n z ^ k) * δ := by field_simp |
| 1775 | _ ≤ (C / δ * ε n ^ α * st.growth n z ^ k) * st.zeta z := mul_le_mul_of_nonneg_left hζ hA |
| 1776 | _ = _ := rfl |
| 1777 | · have hr : z.1 ∉ Ioo (qLength coord z.2.1 * c) (qLength coord z.2.1 * e) := by |
| 1778 | intro h |
| 1779 | exact hpi ⟨((lt_div_iff₀ hEll).mpr (by nlinarith [h.1])).le, |
| 1780 | ((div_lt_iff₀ hEll).mpr (by nlinarith [h.2])).le⟩ |
| 1781 | rw [iteratedFDeriv_zero_outsideGauge_on U.isOpen |
| 1782 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)).continuousOn |
| 1783 | (hf n) (hs n) hzs hr j, norm_zero] |
| 1784 | exact majorant_nonneg st _ α (div_nonneg hC hδ.le) k n z (st.zeta_nonneg z hz) |
| 1785 | |
| 1786 | theorem meanClass_radialMultiply_moving {φ : ℝ → ℝ} (hφ : ContDiff ℝ ∞ φ) |
| 1787 | {α : ℝ} {f : ℕ → Point → ℝ} |
| 1788 | (hf : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 1789 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1790 | (fun n z => φ z.1 * f n z) := by |
| 1791 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 1792 | have hrad (z : Point) (hz : z ∈ st.domain) : z.1 ∈ Icc (Real.sqrt U.qlo * a) (Real.sqrt U.qhi * b) := |
| 1793 | moving_radial_bounds U ha |
| 1794 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).1 |
| 1795 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).2 |
| 1796 | have hc : UnweightedClass st 0 (fun _ z => φ z.1) := by |
| 1797 | apply unweighted_of_finiteJetBounds st _ (hφ.comp contDiff_fst).contDiffOn |
| 1798 | intro m |
| 1799 | obtain ⟨C, _, hbound⟩ := cutoff_finiteJet_bound (E := PressureStream.Plane × PressureStream.Plane) |
| 1800 | (Real.sqrt U.qlo * a) (Real.sqrt U.qhi * b) φ hφ m |
| 1801 | exact ⟨C, fun j hj z hz => hbound j hj z (hrad z hz)⟩ |
| 1802 | have he := MeanIncrementBounds.Class.coefficient_mul hc hf |
| 1803 | simp only [zero_add] at he |
| 1804 | exact he |
| 1805 | |
| 1806 | theorem meanClass_divideRadius_moving {α : ℝ} {f : ℕ → Point → ℝ} |
| 1807 | (hf : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 1808 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1809 | (fun n => PressureStream.divideRadius (f n)) := by |
| 1810 | let c := Real.sqrt U.qlo * a / 4 |
| 1811 | have hc : 0 < c := by dsimp [c]; exact div_pos (mul_pos (Real.sqrt_pos.mpr U.qlo_pos) ha) (by norm_num) |
| 1812 | let φ := fun r => (positiveRadius c r)⁻¹ |
| 1813 | have hφ : ContDiff ℝ ∞ φ := (positiveRadius_contDiff c).inv (fun r => (positiveRadius_pos hc r).ne') |
| 1814 | have hm := meanClass_radialMultiply_moving U ha hcL hcR ε L hε hεone hL hφ hf |
| 1815 | apply MeanRankUpdate.meanClass_congr_on hm |
| 1816 | intro n z hz |
| 1817 | have hrad := moving_radial_bounds U ha |
| 1818 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).1 |
| 1819 | ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).2 |
| 1820 | have hcz : 2 * c ≤ z.1 := by dsimp [c]; have := mul_pos (Real.sqrt_pos.mpr U.qlo_pos) ha; linarith [hrad.1] |
| 1821 | change f n z / z.1 = (positiveRadius c z.1)⁻¹ * f n z |
| 1822 | rw [positiveRadius_eq_self hc hcz] |
| 1823 | ring |
| 1824 | |
| 1825 | theorem meanClass_streamPotential {d : ℝ} (hab : a < b) (hd : 0 < d) |
| 1826 | {α : ℝ} {f : ℕ → Point → ℝ} |
| 1827 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1828 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1829 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 1830 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 1831 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1832 | (fun n => streamPotential d a b (M n) (qLength coord) (v n) (f n)) := by |
| 1833 | have hw := meanClass_radialMultiply_moving U ha hcL hcR ε L hε hεone hL contDiff_id hclass |
| 1834 | have hc := meanClass_compactPrimitive U ha hcL hcR ε L hε hεone hL hab hd |
| 1835 | (fun n => contDiffOn_fst.mul (hf n)) |
| 1836 | (fun n z hz hn => hs n z hz (right_ne_zero_of_mul hn)) hw M v |
| 1837 | exact meanClass_divideRadius_moving U ha hcL hcR ε L hε hεone hL hc |
| 1838 | |
| 1839 | theorem meanClass_streamBeta {d : ℝ} (hab : a < b) (hd : 0 < d) |
| 1840 | {α : ℝ} {f : ℕ → Point → ℝ} |
| 1841 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1842 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 1843 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 1844 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) : |
| 1845 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 1846 | (fun n => PressureStream.streamBeta w (streamPotential d a b (M n) (qLength coord) (v n) (f n))) := by |
| 1847 | have hp := meanClass_streamPotential U ha hcL hcR ε L hε hεone hL hab hd hf hs hclass M v |
| 1848 | have hD := (hp.directional (0, w)).map (-ContinuousLinearMap.id ℝ ℝ) |
| 1849 | simp only [ |
| 1850 | _root_.neg_apply, ContinuousLinearMap.id_apply] at hD ⊢ |
| 1851 | exact hD |
| 1852 | |
| 1853 | end MovingSupportClass |
| 1854 | |
| 1855 | section FiberDerivatives |
| 1856 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1857 | |
| 1858 | theorem fderiv_eq_on_radialFiber {f g : PressureStream.Lift S → ℝ} {z : PressureStream.Lift S} |
| 1859 | (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) |
| 1860 | (he : ∀ r Y, f (r, (z.2.1, Y)) = g (r, (z.2.1, Y))) (r : ℝ) (Y : PressureStream.Plane) : |
| 1861 | fderiv ℝ f z (r, ((0 : S), Y)) = fderiv ℝ g z (r, ((0 : S), Y)) := by |
| 1862 | let L : (ℝ × PressureStream.Plane) →L[ℝ] PressureStream.Lift S := |
| 1863 | (ContinuousLinearMap.fst ℝ ℝ PressureStream.Plane).prod |
| 1864 | ((0 : (ℝ × PressureStream.Plane) →L[ℝ] S).prod (ContinuousLinearMap.snd ℝ ℝ PressureStream.Plane)) |
| 1865 | have hi : HasFDerivAt (fun q : ℝ × PressureStream.Plane => (q.1, (z.2.1, q.2))) L (z.1, z.2.2) := |
| 1866 | hasFDerivAt_fst.prodMk ((hasFDerivAt_const z.2.1 _).prodMk hasFDerivAt_snd) |
| 1867 | have hff := hf.hasFDerivAt.comp (z.1, z.2.2) hi |
| 1868 | have hgg := hg.hasFDerivAt.comp (z.1, z.2.2) hi |
| 1869 | have heq : (f ∘ fun q : ℝ × PressureStream.Plane => (q.1, (z.2.1, q.2))) = |
| 1870 | (g ∘ fun q : ℝ × PressureStream.Plane => (q.1, (z.2.1, q.2))) := by |
| 1871 | funext q |
| 1872 | exact he q.1 q.2 |
| 1873 | rw [heq] at hff |
| 1874 | have h := congrArg (fun A : (ℝ × PressureStream.Plane) →L[ℝ] ℝ => A (r, Y)) (hff.unique hgg) |
| 1875 | simpa [L] using h |
| 1876 | |
| 1877 | theorem graphDr_eq_on_radialFiber {f g : PressureStream.Lift S → ℝ} {z : PressureStream.Lift S} |
| 1878 | (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) |
| 1879 | (he : ∀ r Y, f (r, (z.2.1, Y)) = g (r, (z.2.1, Y))) |
| 1880 | (k : ℝ → ℝ) (v : PressureStream.Plane) : |
| 1881 | PressureStream.graphDr k ((0 : S), v) f z = PressureStream.graphDr k ((0 : S), v) g z := by |
| 1882 | simpa only [PressureStream.graphDr, PressureStream.radialVector, Prod.smul_mk, smul_zero] using |
| 1883 | fderiv_eq_on_radialFiber hf hg he 1 (k z.1 • v) |
| 1884 | |
| 1885 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1886 | theorem divideRadius_fiberLocal : PhysicalMeanDomain.FiberLocal (S := S) PressureStream.divideRadius := by |
| 1887 | intro f g s he r Y |
| 1888 | exact congrArg (fun x : ℝ => x / r) (he r Y) |
| 1889 | |
| 1890 | variable [FiniteDimensional ℝ S] |
| 1891 | |
| 1892 | theorem divideRadius_contDiffOn {a b : ℝ} (ha : 0 < a) {U : Set S} (hU : IsOpen U) |
| 1893 | {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 1894 | (hs : PhysicalMeanDomain.SupportedOn a b U f) : |
| 1895 | ContDiffOn ℝ ∞ (PressureStream.divideRadius f) (PhysicalMeanDomain.slowDomain U) := |
| 1896 | divideRadius_fiberLocal.contDiffOn_of_supported |
| 1897 | (fun _ hf hs => PressureStream.divideRadius_contDiff ha hf hs) hU hf hs |
| 1898 | |
| 1899 | end FiberDerivatives |
| 1900 | |
| 1901 | section ActualIdentities |
| 1902 | open LocalSignedRequest |
| 1903 | variable {coord a b d : ℝ} (U : SlowRegion coord) |
| 1904 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1905 | |
| 1906 | include ha hab hd |
| 1907 | |
| 1908 | theorem compactPrimitive_radial_identity (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 1909 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1910 | (hs : SupportedGauge a b (qLength coord) U.carrier f) {z : Point} (hz : z.2.1 ∈ U.carrier) : |
| 1911 | PressureStream.graphDr (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) |
| 1912 | (compactPrimitive d a b M (qLength coord) v f) z = |
| 1913 | f z - compactAlias d a b M (qLength coord) v f z := by |
| 1914 | let ell := qLength coord z.2.1 |
| 1915 | have hell : 0 < ell := qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hz) |
| 1916 | let g := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 1917 | have hg : ContDiff ℝ ∞ g := freezeSlow_contDiff U.isOpen hz hf |
| 1918 | have hgs : RadialAlias.RadiallySupported (ell * a) (ell * b) g := |
| 1919 | fun p hp => hs (p.1, (z.2.1, p.2.2)) hz hp |
| 1920 | have hleft : DifferentiableAt ℝ (compactPrimitive d a b M (qLength coord) v f) z := |
| 1921 | ((compactPrimitive_q_contDiffOn U ha hab hd M v hf hs).contDiffAt |
| 1922 | ((PhysicalMeanDomain.slowDomain_open U.isOpen).mem_nhds hz)).differentiableAt (by simp) |
| 1923 | have hright : DifferentiableAt ℝ (physicalCompact d (ell * a) (ell * b) M ((0 : PressureStream.Plane), v) g) z := |
| 1924 | (physicalCompact_contDiff (mul_pos hell ha) (mul_lt_mul_of_pos_left hab hell) hd hg hgs M |
| 1925 | ((0 : PressureStream.Plane), v)).differentiable (by simp) z |
| 1926 | have he : ∀ r Y, compactPrimitive d a b M (qLength coord) v f (r, (z.2.1, Y)) = |
| 1927 | physicalCompact d (ell * a) (ell * b) M ((0 : PressureStream.Plane), v) g (r, (z.2.1, Y)) := by |
| 1928 | intro r Y |
| 1929 | exact PhysicalMeanDomain.physicalCompact_fiberLocal d (ell * a) (ell * b) M v f g z.2.1 (fun _ _ => rfl) r Y |
| 1930 | rw [graphDr_eq_on_radialFiber hleft hright he] |
| 1931 | rw [PressureStream.graphDr_eq_physical, |
| 1932 | physicalGraphDeriv_physicalCompact_global (mul_pos hell ha) (mul_lt_mul_of_pos_left hab hell) hd hg hgs] |
| 1933 | have halias := PhysicalMeanDomain.physicalAlias_fiberLocal d (ell * a) (ell * b) M v g f z.2.1 |
| 1934 | (fun _ _ => rfl) z.1 z.2.2 |
| 1935 | exact congrArg (fun x : ℝ => f z - x) halias |
| 1936 | |
| 1937 | theorem meanPressure_radial_identity (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 1938 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1939 | (hs : SupportedGauge a b (qLength coord) U.carrier f) {z : Point} (hz : z.2.1 ∈ U.carrier) : |
| 1940 | PressureStream.graphDr (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) |
| 1941 | (meanPressure d a b M hab (qLength coord) v f) z = |
| 1942 | f z - density a b hab (qLength coord) z * PressureStream.pressureMass f z.2.1 - |
| 1943 | compactAlias d a b M (qLength coord) v (pressureSource a b hab (qLength coord) f) z := |
| 1944 | compactPrimitive_radial_identity U ha hab hd M v (pressureSource_q_contDiffOn U ha hab hf hs) |
| 1945 | (pressureSource_supported hab (ell := qLength coord) (U := U.carrier) |
| 1946 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) hs) hz |
| 1947 | |
| 1948 | theorem streamPotential_q_contDiffOn (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 1949 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1950 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 1951 | ContDiffOn ℝ ∞ (streamPotential d a b M (qLength coord) v f) |
| 1952 | (PhysicalMeanDomain.slowDomain U.carrier) := by |
| 1953 | have hw : SupportedGauge a b (qLength coord) U.carrier (PressureStream.weightedSource f) := |
| 1954 | fun z hz hn => hs z hz (right_ne_zero_of_mul hn) |
| 1955 | have hIc := compactPrimitive_q_contDiffOn U ha hab hd M v (contDiffOn_fst.mul hf) hw |
| 1956 | have hIcs := compactPrimitive_supportedGauge (M := M) ha hab hd (qLength coord) v U.isOpen |
| 1957 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) (contDiffOn_fst.mul hf) hw |
| 1958 | obtain ⟨c, e, L, hc, hce, _, hl, hleft, hright, _⟩ := qLength_reference_bounds U ha hab |
| 1959 | exact divideRadius_contDiffOn hc U.isOpen hIc (fun z hz hn => |
| 1960 | ⟨(hleft _ hz).trans (hIcs z hz hn).1, (hIcs z hz hn).2.trans (hright _ hz)⟩) |
| 1961 | |
| 1962 | theorem streamGamma_eq_desired_sub_alias (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 1963 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1964 | (hs : SupportedGauge a b (qLength coord) U.carrier f) {z : Point} (hz : z.2.1 ∈ U.carrier) |
| 1965 | (hr : z.1 ≠ 0) : |
| 1966 | PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) |
| 1967 | (streamPotential d a b M (qLength coord) v f) z = |
| 1968 | f z - compactAlias d a b M (qLength coord) v (PressureStream.weightedSource f) z / z.1 := by |
| 1969 | have hw : SupportedGauge a b (qLength coord) U.carrier (PressureStream.weightedSource f) := |
| 1970 | fun z hz hn => hs z hz (right_ne_zero_of_mul hn) |
| 1971 | have hIc := compactPrimitive_q_contDiffOn U ha hab hd M v (contDiffOn_fst.mul hf) hw |
| 1972 | have hId : DifferentiableAt ℝ |
| 1973 | (compactPrimitive d a b M (qLength coord) v (PressureStream.weightedSource f)) z := |
| 1974 | (hIc.contDiffAt ((PhysicalMeanDomain.slowDomain_open U.isOpen).mem_nhds hz)).differentiableAt (by simp) |
| 1975 | change PressureStream.graphDr _ _ (PressureStream.divideRadius _) z + |
| 1976 | PressureStream.divideRadius (PressureStream.divideRadius _) z = _ |
| 1977 | change PressureStream.graphDr _ _ (PressureStream.divideRadius _) z + |
| 1978 | PressureStream.divideRadius _ z / z.1 = _ |
| 1979 | rw [PressureStream.graphDr_divideRadius (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) hId hr, |
| 1980 | compactPrimitive_radial_identity U ha hab hd M v (f := PressureStream.weightedSource f) (contDiffOn_fst.mul hf) hw hz] |
| 1981 | dsimp only [PressureStream.weightedSource] |
| 1982 | field_simp |
| 1983 | |
| 1984 | theorem stream_divergence_zero (M : ℝ) (v : PressureStream.Plane) |
| 1985 | (w : PressureStream.Plane × PressureStream.Plane) {f : Point → ℝ} |
| 1986 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 1987 | (hs : SupportedGauge a b (qLength coord) U.carrier f) {z : Point} (hz : z.2.1 ∈ U.carrier) |
| 1988 | (hr : z.1 ≠ 0) : |
| 1989 | PressureStream.graphDivergence (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) w |
| 1990 | (PressureStream.streamBeta w (streamPotential d a b M (qLength coord) v f)) |
| 1991 | (PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : PressureStream.Plane), v) |
| 1992 | (streamPotential d a b M (qLength coord) v f)) z = 0 := by |
| 1993 | have hpot := (streamPotential_q_contDiffOn U ha hab hd M v hf hs).contDiffAt |
| 1994 | ((PhysicalMeanDomain.slowDomain_open U.isOpen).mem_nhds hz) |
| 1995 | exact PressureStream.stream_divergence_zero ((0 : PressureStream.Plane), v) w |
| 1996 | (hpot.of_le (ENat.natCast_lt_of_coe_top_le_withTop le_rfl 2).le) |
| 1997 | ((PressureStream.physicalSpeed_smooth d M hr).differentiableAt (by simp)) hr |
| 1998 | |
| 1999 | end ActualIdentities |
| 2000 | |
| 2001 | section AliasRepresentation |
| 2002 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 2003 | |
| 2004 | noncomputable def cutoffRadialDerivative (d a b : ℝ) (ell : S → ℝ) |
| 2005 | (z : PressureStream.Lift S) : ℝ := |
| 2006 | (ell z.2.1)⁻¹ * deriv (physicalCutoff d a b) (radialRatio ell z) |
| 2007 | |
| 2008 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 2009 | theorem deriv_physicalCutoff_scale {l a b : ℝ} (hl : 0 < l) (ha : 0 < a) |
| 2010 | (hab : a < b) (d R : ℝ) : |
| 2011 | deriv (physicalCutoff d (l * a) (l * b)) R = |
| 2012 | l⁻¹ * deriv (physicalCutoff d a b) (R / l) := by |
| 2013 | have he : physicalCutoff d (l * a) (l * b) = fun x => physicalCutoff d a b (x / l) := by |
| 2014 | funext x |
| 2015 | have h := physicalCutoff_scale hl ha hab d (x / l) |
| 2016 | rwa [mul_div_cancel₀ _ hl.ne'] at h |
| 2017 | have hdif := ((physicalCutoff_contDiff ha d b).differentiable (by simp) (R / l)).hasDerivAt.comp R |
| 2018 | ((hasDerivAt_id R).div_const l) |
| 2019 | rw [he] |
| 2020 | calc |
| 2021 | _ = deriv (physicalCutoff d a b) (R / l) * (1 / l) := hdif.deriv |
| 2022 | _ = _ := by ring |
| 2023 | |
| 2024 | theorem compactAlias_eq_movingTotal {a b d M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 2025 | (ell : S → ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ) |
| 2026 | (z : PressureStream.Lift S) (hl : 0 < ell z.2.1) : |
| 2027 | compactAlias d a b M ell v f z = cutoffRadialDerivative d a b ell z * |
| 2028 | PressureStream.physicalTotal d (ell z.2.1 * a) M ((0 : S), v) f z := by |
| 2029 | rw [compactAlias, physicalAlias_eq_cutoff_derivative_global (mul_pos hl ha) |
| 2030 | (mul_lt_mul_of_pos_left hab hl) hd] |
| 2031 | rw [deriv_physicalCutoff_scale hl ha hab] |
| 2032 | rfl |
| 2033 | |
| 2034 | theorem physicalTotal_anchor_eq {c a b d M : ℝ} (hc : 0 < c) (hca : c ≤ a) |
| 2035 | (hab : a < b) (hd : 0 < d) (v : S × PressureStream.Plane) |
| 2036 | {f : PressureStream.Lift S → ℝ} (hs : RadialAlias.RadiallySupported a b f) |
| 2037 | (z : PressureStream.Lift S) (hz : a ≤ z.1) : |
| 2038 | PressureStream.physicalTotal d c M v f z = PressureStream.physicalTotal d a M v f z := by |
| 2039 | have ha := hc.trans_le hca |
| 2040 | simp only [PressureStream.physicalTotal, liftChart] |
| 2041 | rw [normalizeSource_anchor_eq hc hca hab hd hs, |
| 2042 | powerChart_eq hc (by linarith) d, powerChart_eq ha (by linarith) d] |
| 2043 | |
| 2044 | theorem compactAlias_reference {c a b d M : ℝ} (hc : 0 < c) (ha : 0 < a) |
| 2045 | (hab : a < b) (hd : 0 < d) (ell : S → ℝ) (v : PressureStream.Plane) |
| 2046 | {U : Set S} (hl : ∀ s ∈ U, 0 < ell s) (hleft : ∀ s ∈ U, c ≤ ell s * a) |
| 2047 | {f : PressureStream.Lift S → ℝ} (hs : SupportedGauge a b ell U f) |
| 2048 | (z : PressureStream.Lift S) (hz : z.2.1 ∈ U) : |
| 2049 | compactAlias d a b M ell v f z = cutoffRadialDerivative d a b ell z * |
| 2050 | PressureStream.physicalTotal d c M ((0 : S), v) f z := by |
| 2051 | rw [compactAlias_eq_movingTotal ha hab hd ell v f z (hl _ hz)] |
| 2052 | by_cases hR : ell z.2.1 * a ≤ z.1 |
| 2053 | · let g := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 2054 | have hgs : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) g := |
| 2055 | fun p hp => hs (p.1, (z.2.1, p.2.2)) hz hp |
| 2056 | have h := physicalTotal_anchor_eq (M := M) hc (hleft _ hz) |
| 2057 | (mul_lt_mul_of_pos_left hab (hl _ hz)) hd ((0 : S), v) hgs z hR |
| 2058 | rw [physicalTotal_fiberLocal d c M v g f z.2.1 (fun _ _ => rfl) z.1 z.2.2, |
| 2059 | physicalTotal_fiberLocal d (ell z.2.1 * a) M v g f z.2.1 (fun _ _ => rfl) z.1 z.2.2] at h |
| 2060 | exact congrArg (fun t : ℝ => cutoffRadialDerivative d a b ell z * t) h.symm |
| 2061 | · have hsmall : z.1 / ell z.2.1 < a := |
| 2062 | (div_lt_iff₀ (hl _ hz)).mpr (by nlinarith [lt_of_not_ge hR]) |
| 2063 | have he : cutoffRadialDerivative d a b ell z = 0 := by |
| 2064 | simp only [cutoffRadialDerivative, radialRatio, deriv_physicalCutoff_zero_left ha hab hd hsmall, mul_zero] |
| 2065 | simp only [he, zero_mul] |
| 2066 | |
| 2067 | theorem cutoffRadialDerivative_contDiffOn {a : ℝ} (ha : 0 < a) (d b : ℝ) |
| 2068 | {ell : S → ℝ} {U : Set S} (hell : ContDiffOn ℝ ∞ ell U) (hl : ∀ s ∈ U, 0 < ell s) : |
| 2069 | ContDiffOn ℝ ∞ (cutoffRadialDerivative d a b ell) (PhysicalMeanDomain.slowDomain U) := |
| 2070 | ((hell.comp contDiffOn_snd.fst (fun _ hz => hz)).inv (fun _ hz => (hl _ hz).ne')).mul |
| 2071 | (((contDiff_infty_iff_deriv.mp (physicalCutoff_contDiff ha d b)).2).comp_contDiffOn |
| 2072 | (radialRatio_contDiffOn hell hl)) |
| 2073 | |
| 2074 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 2075 | /-- The derivative of the actual cutoff is supported in one reserved |
| 2076 | profile interval, independently of the source and transport frequency. -/ |
| 2077 | theorem cutoffRadialDerivative_interior_support {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) : |
| 2078 | ∃ c e : ℝ, a < c ∧ c < e ∧ e < b ∧ ∀ (ell : S → ℝ) (U : Set S), |
| 2079 | (∀ s ∈ U, 0 < ell s) → SupportedGauge c e ell U (cutoffRadialDerivative d a b ell) := by |
| 2080 | have hb : 0 < b := ha.trans hab |
| 2081 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 2082 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 2083 | let cU := (2 * a ^ d + b ^ d) / 3 |
| 2084 | let eU := (a ^ d + 2 * b ^ d) / 3 |
| 2085 | have hacU : a ^ d < cU := by dsimp [cU]; linarith |
| 2086 | have hceU : cU < eU := by dsimp [cU, eU]; linarith |
| 2087 | have hebU : eU < b ^ d := by dsimp [eU]; linarith |
| 2088 | have hcU : 0 < cU := haU.trans hacU |
| 2089 | have heU : 0 < eU := hcU.trans hceU |
| 2090 | let c := cU ^ d⁻¹ |
| 2091 | let e := eU ^ d⁻¹ |
| 2092 | have hac : a < c := by |
| 2093 | simpa only [Real.rpow_rpow_inv ha.le hd.ne'] using Real.rpow_lt_rpow haU.le hacU (inv_pos.mpr hd) |
| 2094 | have hce : c < e := Real.rpow_lt_rpow hcU.le hceU (inv_pos.mpr hd) |
| 2095 | have heb : e < b := by |
| 2096 | simpa only [Real.rpow_rpow_inv hb.le hd.ne'] using Real.rpow_lt_rpow heU.le hebU (inv_pos.mpr hd) |
| 2097 | have hcPow : c ^ d = cU := Real.rpow_inv_rpow hcU.le hd.ne' |
| 2098 | have hePow : e ^ d = eU := Real.rpow_inv_rpow heU.le hd.ne' |
| 2099 | have hzeroLeft (r : ℝ) (hr : r < c) : deriv (physicalCutoff d a b) r = 0 := by |
| 2100 | by_cases hra : a ≤ r |
| 2101 | · rw [deriv_physicalCutoff ha (by linarith) d b] |
| 2102 | have hχ : deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (powerChart d a r) = 0 := by |
| 2103 | apply TemporalMeanUpdate.interiorCutoff_deriv_zero_left habU |
| 2104 | rw [powerChart_eq ha (by linarith) d] |
| 2105 | exact (Real.rpow_lt_rpow (ha.trans_le hra).le hr hd).trans_eq hcPow |
| 2106 | rw [hχ, mul_zero] |
| 2107 | · exact deriv_physicalCutoff_zero_left ha hab hd (lt_of_not_ge hra) |
| 2108 | have hzeroRight (r : ℝ) (hr : e < r) : deriv (physicalCutoff d a b) r = 0 := by |
| 2109 | rw [deriv_physicalCutoff ha (by linarith) d b] |
| 2110 | have hχ : deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (powerChart d a r) = 0 := by |
| 2111 | apply TemporalMeanUpdate.interiorCutoff_deriv_zero_right habU |
| 2112 | change eU < powerChart d a r |
| 2113 | rw [powerChart_eq ha (by linarith) d, ← hePow] |
| 2114 | exact Real.rpow_lt_rpow (ha.trans (hac.trans hce)).le hr hd |
| 2115 | rw [hχ, mul_zero] |
| 2116 | refine ⟨c, e, hac, hce, heb, ?_⟩ |
| 2117 | intro ell U hl z hz hn |
| 2118 | have hprofile : z.1 / ell z.2.1 ∈ Icc c e := by |
| 2119 | constructor |
| 2120 | · apply le_of_not_gt |
| 2121 | intro hlt |
| 2122 | apply hn |
| 2123 | dsimp only [cutoffRadialDerivative, radialRatio] |
| 2124 | rw [hzeroLeft _ hlt, mul_zero] |
| 2125 | · apply le_of_not_gt |
| 2126 | intro hlt |
| 2127 | apply hn |
| 2128 | dsimp only [cutoffRadialDerivative, radialRatio] |
| 2129 | rw [hzeroRight _ hlt, mul_zero] |
| 2130 | exact ⟨by nlinarith [(le_div_iff₀ (hl _ hz)).mp hprofile.1], |
| 2131 | by nlinarith [(div_le_iff₀ (hl _ hz)).mp hprofile.2]⟩ |
| 2132 | |
| 2133 | theorem compactAlias_interior_support {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) : |
| 2134 | ∃ c e : ℝ, a < c ∧ c < e ∧ e < b ∧ ∀ (ell : S → ℝ) (U : Set S), |
| 2135 | (∀ s ∈ U, 0 < ell s) → ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → ℝ), |
| 2136 | SupportedGauge c e ell U (compactAlias d a b M ell v f) := by |
| 2137 | obtain ⟨c, e, hac, hce, heb, hs⟩ := cutoffRadialDerivative_interior_support (S := S) ha hab hd |
| 2138 | refine ⟨c, e, hac, hce, heb, ?_⟩ |
| 2139 | intro ell U hl M v f z hz hn |
| 2140 | apply hs ell U hl z hz |
| 2141 | intro hzero |
| 2142 | exact hn (by rw [compactAlias_eq_movingTotal ha hab hd ell v f z (hl _ hz), hzero, zero_mul]) |
| 2143 | |
| 2144 | end AliasRepresentation |
| 2145 | |
| 2146 | section PressureChanges |
| 2147 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 2148 | |
| 2149 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 2150 | theorem SupportedGauge.sub {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 2151 | {f g : PressureStream.Lift S → ℝ} (hf : SupportedGauge a b ell U f) |
| 2152 | (hg : SupportedGauge a b ell U g) : SupportedGauge a b ell U (fun z => f z - g z) := by |
| 2153 | intro z hz hn |
| 2154 | by_cases hzero : f z = 0 |
| 2155 | · exact hg z hz (fun hzero' => hn (by simp only [hzero, hzero', sub_self])) |
| 2156 | · exact hf z hz hzero |
| 2157 | |
| 2158 | theorem meanPressure_sub_on {a b d M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 2159 | (ell : S → ℝ) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) |
| 2160 | {f g : PressureStream.Lift S → ℝ} |
| 2161 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 2162 | (hg : ContDiffOn ℝ ∞ g (PhysicalMeanDomain.slowDomain U)) |
| 2163 | (hsf : SupportedGauge a b ell U f) (hsg : SupportedGauge a b ell U g) |
| 2164 | {z : PressureStream.Lift S} (hz : z.2.1 ∈ U) (hl : 0 < ell z.2.1) : |
| 2165 | meanPressure d a b M hab ell v (fun p => f p - g p) z = |
| 2166 | meanPressure d a b M hab ell v f z - meanPressure d a b M hab ell v g z := by |
| 2167 | let F := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 2168 | let G := PhysicalMeanDomain.freezeSlow z.2.1 g |
| 2169 | have hF : ContDiff ℝ ∞ F := freezeSlow_contDiff hU hz hf |
| 2170 | have hG : ContDiff ℝ ∞ G := freezeSlow_contDiff hU hz hg |
| 2171 | have hsF : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) F := |
| 2172 | fun p hp => hsf (p.1, (z.2.1, p.2.2)) hz hp |
| 2173 | have hsG : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) G := |
| 2174 | fun p hp => hsg (p.1, (z.2.1, p.2.2)) hz hp |
| 2175 | rw [meanPressure_eq_fixed hab d M ell v _ z hl, |
| 2176 | meanPressure_eq_fixed hab d M ell v f z hl, |
| 2177 | meanPressure_eq_fixed hab d M ell v g z hl] |
| 2178 | have hFval := PhysicalMeanDomain.meanPressure_fiberLocal d (ell z.2.1 * a) (ell z.2.1 * b) |
| 2179 | M (mul_lt_mul_of_pos_left hab hl) v F f z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 2180 | have hGval := PhysicalMeanDomain.meanPressure_fiberLocal d (ell z.2.1 * a) (ell z.2.1 * b) |
| 2181 | M (mul_lt_mul_of_pos_left hab hl) v G g z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 2182 | rw [← PhysicalMeanDomain.meanPressure_fiberLocal d (ell z.2.1 * a) (ell z.2.1 * b) |
| 2183 | M (mul_lt_mul_of_pos_left hab hl) v (fun p => F p - G p) (fun p => f p - g p) |
| 2184 | z.2.1 (fun _ _ => rfl) z.1 z.2.2, |
| 2185 | congrFun (MeanIncrementBounds.meanPressure_sub (mul_pos hl ha) (mul_lt_mul_of_pos_left hab hl) |
| 2186 | hd hF hG hsF hsG M v) z, hFval, hGval] |
| 2187 | |
| 2188 | end PressureChanges |
| 2189 | |
| 2190 | section MovingPressureChanges |
| 2191 | open LocalSignedRequest WeightedClasses |
| 2192 | variable {coord a b cL cR d : ℝ} (U : SlowRegion coord) |
| 2193 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 2194 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 2195 | |
| 2196 | include hd in |
| 2197 | theorem meanClass_meanPressure_change {α : ℝ} {f g : ℕ → Point → ℝ} |
| 2198 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2199 | (hg : ∀ n, ContDiffOn ℝ ∞ (g n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2200 | (hsf : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2201 | (hsg : ∀ n, SupportedGauge a b (qLength coord) U.carrier (g n)) |
| 2202 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α (f - g)) |
| 2203 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2204 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2205 | (fun n z => meanPressure d a b (M n) hab (qLength coord) (v n) (f n) z - |
| 2206 | meanPressure d a b (M n) hab (qLength coord) (v n) (g n) z) := by |
| 2207 | apply MeanRankUpdate.meanClass_congr_on |
| 2208 | (meanClass_meanPressure U ha hcL hcR ε L hε hεone hL hab hd |
| 2209 | (fun n => (hf n).sub (hg n)) (fun n => (hsf n).sub (hsg n)) hclass M v) |
| 2210 | intro n z hz |
| 2211 | have hzu := ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz).1 |
| 2212 | exact (meanPressure_sub_on ha hab hd (qLength coord) (v n) U.isOpen (hf n) (hg n) |
| 2213 | (hsf n) (hsg n) hzu (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hzu))).symm |
| 2214 | |
| 2215 | end MovingPressureChanges |
| 2216 | |
| 2217 | section MovingTemporal |
| 2218 | open LocalSignedRequest WeightedClasses |
| 2219 | variable {coord a b cL cR : ℝ} (U : SlowRegion coord) |
| 2220 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 2221 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 2222 | |
| 2223 | theorem meanClass_liftedTorusAverage_moving {α : ℝ} {f : ℕ → Point → ℝ} |
| 2224 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2225 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 2226 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2227 | (fun n => MeanMomentBounds.liftedTorusAverage (f n)) := by |
| 2228 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 2229 | refine ⟨hclass.weight_nonneg, fun n => (PhysicalMeanDomain.liftedTorusAverage_contDiffOn |
| 2230 | U.isOpen (hf n)).mono (fun p hp => ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL p).mp hp).1), ?_⟩ |
| 2231 | intro m |
| 2232 | obtain ⟨C, hC, k, hb⟩ := hclass.bounds m |
| 2233 | refine ⟨C, hC, k, ?_⟩ |
| 2234 | intro n p hp j hj |
| 2235 | have hpu := ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL p).mp hp).1 |
| 2236 | obtain ⟨c, _, _, hcf, he⟩ := PhysicalMeanDomain.exists_fiber_localization U.isOpen hpu (hf n) |
| 2237 | have hout := PhysicalMeanDomain.liftedTorusAverage_jet_bound hcf j p |
| 2238 | (majorant st (fun _ x => st.zeta x) α C k n p) (fun Y => by |
| 2239 | rw [he.jet_eq j p.1 Y] |
| 2240 | exact hb n (p.1, (p.2.1, Y)) hp j hj) |
| 2241 | rwa [(PhysicalMeanDomain.liftedTorusAverage_fiberLocal.germ he).jet_eq j p.1 p.2.2] at hout |
| 2242 | |
| 2243 | theorem meanClass_centered_moving {α : ℝ} {f : ℕ → Point → ℝ} |
| 2244 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2245 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 2246 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2247 | (fun n => TemporalMeanUpdate.centered (f n)) := |
| 2248 | MeanIncrementBounds.Class.sub hclass |
| 2249 | (meanClass_liftedTorusAverage_moving U ha hcL hcR ε L hε hεone hL hf hclass) |
| 2250 | |
| 2251 | theorem meanClass_temporalInverse_moving {α : ℝ} {f : ℕ → Point → ℝ} |
| 2252 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2253 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2254 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 2255 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2256 | (fun n => TemporalMeanUpdate.temporalInverse (f n)) := by |
| 2257 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 2258 | refine ⟨hclass.weight_nonneg, fun n => (PhysicalMeanDomain.temporalInverse_contDiffOn |
| 2259 | U.isOpen (hf n) (hp n)).mono |
| 2260 | (fun p hp => ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL p).mp hp).1), ?_⟩ |
| 2261 | intro m |
| 2262 | obtain ⟨K, hK, hbound⟩ := UniformFourierAlias.realInverse_finiteJets |
| 2263 | (P := ℝ × PressureStream.Plane) .temporal m |
| 2264 | obtain ⟨C, hC, k, hb⟩ := hclass.bounds (m + 5) |
| 2265 | refine ⟨K * C, mul_nonneg hK hC, k, ?_⟩ |
| 2266 | intro n p hpu j hj |
| 2267 | have hps := ((movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL p).mp hpu).1 |
| 2268 | obtain ⟨c, _, hcs, hcf, he⟩ := PhysicalMeanDomain.exists_fiber_localization U.isOpen hps (hf n) |
| 2269 | let B := majorant st (fun _ x => st.zeta x) α C k n p |
| 2270 | have hB : 0 ≤ B := majorant_nonneg st _ α hC k n p (st.zeta_nonneg p hpu) |
| 2271 | have hin : ∀ i ≤ m + 5, ∀ q ∈ ({(p.1, p.2.1)} : Set (ℝ × PressureStream.Plane)), ∀ Y, |
| 2272 | ‖iteratedFDeriv ℝ i (UniformFourierAlias.toProduct (PhysicalMeanDomain.localize c (f n))) (q, Y)‖ ≤ B := by |
| 2273 | intro i hi q hq Y |
| 2274 | rcases mem_singleton_iff.mp hq with rfl |
| 2275 | rw [UniformFourierAlias.norm_iteratedFDeriv_toProduct, he.jet_eq i p.1 Y] |
| 2276 | exact hb n (p.1, (p.2.1, Y)) hpu i hi |
| 2277 | have hper : UniformFourierAlias.ParameterPeriodic |
| 2278 | (UniformFourierAlias.toProduct (PhysicalMeanDomain.localize c (f n))) := |
| 2279 | fun q => PhysicalMeanDomain.localize_periodic hcs (hp n) q.1 q.2 |
| 2280 | have ho := hbound _ {(p.1, p.2.1)} B (UniformFourierAlias.toProduct_smooth hcf) |
| 2281 | hper hB hin j hj (p.1, p.2.1) (mem_singleton _) p.2.2 |
| 2282 | rw [← UniformFourierAlias.norm_iteratedFDeriv_fromProduct] at ho |
| 2283 | change ‖iteratedFDeriv ℝ j (TemporalMeanUpdate.temporalInverse (PhysicalMeanDomain.localize c (f n))) p‖ ≤ K * B at ho |
| 2284 | rw [(PhysicalMeanDomain.temporalInverse_fiberLocal.germ he).jet_eq j p.1 p.2.2] at ho |
| 2285 | exact ho.trans_eq (by dsimp [B, majorant]; ring) |
| 2286 | |
| 2287 | theorem meanClass_desiredIncrement_moving {h α : ℝ} (hh : 0 ≤ h) |
| 2288 | (hscale : ∀ n, ChartScales.S n ≤ L n) {f : ℕ → Point → ℝ} |
| 2289 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2290 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2291 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 2292 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2293 | (fun n => TemporalMeanUpdate.desiredIncrement h n (f n)) := by |
| 2294 | have hc := meanClass_centered_moving U ha hcL hcR ε L hε hεone hL hf hclass |
| 2295 | have hi := meanClass_temporalInverse_moving U ha hcL hcR ε L hε hεone hL |
| 2296 | (fun n => PhysicalMeanDomain.centered_contDiffOn U.isOpen (hf n)) |
| 2297 | (fun n => PhysicalMeanDomain.centered_periodicOn (hp n)) hc |
| 2298 | have hm := (TemporalMeanUpdate.meanClass_chartPrefactor_all hh hscale hi).map |
| 2299 | (-ContinuousLinearMap.id ℝ ℝ) |
| 2300 | change MeanClass _ α (fun n z => -TemporalMeanUpdate.chartPrefactor h n * |
| 2301 | TemporalMeanUpdate.temporalInverse (TemporalMeanUpdate.centered (f n)) z) |
| 2302 | simpa only [TemporalMeanUpdate.desiredIncrement, _root_.neg_apply, |
| 2303 | ContinuousLinearMap.id_apply, smul_eq_mul, neg_mul] using hm |
| 2304 | |
| 2305 | theorem meanClass_temporalAtIndex_moving {h α : ℝ} (hh : 0 ≤ h) |
| 2306 | (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (D : ℕ) |
| 2307 | (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + D) {f : ℕ → Point → ℝ} |
| 2308 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2309 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2310 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) : |
| 2311 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2312 | (fun n => MeanChartCompatibility.temporalAtIndex h n (index n) (f n)) := |
| 2313 | MeanChartCompatibility.meanClass_temporalAtIndex_of_native _ index D hgap |
| 2314 | (meanClass_desiredIncrement_moving U ha hcL hcR ε L hε hεone hL hh hscale hf hp hclass) |
| 2315 | |
| 2316 | end MovingTemporal |
| 2317 | |
| 2318 | section TemporalLocal |
| 2319 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 2320 | |
| 2321 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] in |
| 2322 | theorem temporalAtIndex_fiberLocal (h : ℝ) (n i : ℕ) : |
| 2323 | PhysicalMeanDomain.FiberLocal (S := S) (MeanChartCompatibility.temporalAtIndex h n i) := by |
| 2324 | intro f g s he r Y |
| 2325 | rw [MeanChartCompatibility.temporalAtIndex_eq_native, MeanChartCompatibility.temporalAtIndex_eq_native] |
| 2326 | exact congrArg (fun z : ℝ => MeanChartCompatibility.commonRatio h n i * z) |
| 2327 | (PhysicalMeanDomain.desiredIncrement_fiberLocal h n f g s he r Y) |
| 2328 | |
| 2329 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] in |
| 2330 | theorem temporalAtIndex_supportedGauge (h : ℝ) (n i : ℕ) {a b : ℝ} |
| 2331 | {ell : S → ℝ} {U : Set S} {f : PressureStream.Lift S → ℝ} |
| 2332 | (hs : SupportedGauge a b ell U f) : |
| 2333 | SupportedGauge a b ell U (MeanChartCompatibility.temporalAtIndex h n i f) := by |
| 2334 | intro z hz hn |
| 2335 | let g := PhysicalMeanDomain.freezeSlow z.2.1 f |
| 2336 | have hgs : RadialAlias.RadiallySupported (ell z.2.1 * a) (ell z.2.1 * b) g := |
| 2337 | fun p hp => hs (p.1, (z.2.1, p.2.2)) hz hp |
| 2338 | have he := temporalAtIndex_fiberLocal h n i g f z.2.1 (fun _ _ => rfl) z.1 z.2.2 |
| 2339 | exact MeanChartCompatibility.temporalAtIndex_supported h n i hgs (fun hzero => hn (he.symm.trans hzero)) |
| 2340 | |
| 2341 | |
| 2342 | theorem temporalAtIndex_contDiffOn (h : ℝ) (n i : ℕ) {U : Set S} (hU : IsOpen U) |
| 2343 | {f : PressureStream.Lift S → ℝ} |
| 2344 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 2345 | (hp : PhysicalMeanDomain.PeriodicOn U f) : |
| 2346 | ContDiffOn ℝ ∞ (MeanChartCompatibility.temporalAtIndex h n i f) (PhysicalMeanDomain.slowDomain U) := |
| 2347 | (temporalAtIndex_fiberLocal h n i).contDiffOn_of_periodic |
| 2348 | (fun _ hf hp => MeanChartCompatibility.temporalAtIndex_smooth h n i hf hp) hU hf hp |
| 2349 | |
| 2350 | end TemporalLocal |
| 2351 | |
| 2352 | section AliasClass |
| 2353 | open LocalSignedRequest WeightedClasses |
| 2354 | |
| 2355 | noncomputable def cutoffRadialDerivativeModel (d a b : ℝ) (y : MeanRankUpdate.ModelPoint) : ℝ := |
| 2356 | (Real.sqrt y.1)⁻¹ * deriv (physicalCutoff d a b) (y.2.1 / Real.sqrt y.1) |
| 2357 | |
| 2358 | theorem cutoffRadialDerivativeModel_contDiffOn {a : ℝ} (ha : 0 < a) (d b : ℝ) : |
| 2359 | ContDiffOn ℝ ∞ (cutoffRadialDerivativeModel d a b) PhysicalCoordinateBounds.positiveTime := by |
| 2360 | intro y hy |
| 2361 | have hp : 0 < Real.sqrt y.1 := Real.sqrt_pos.mpr hy |
| 2362 | have hr : ContDiffAt ℝ ∞ (fun x : MeanRankUpdate.ModelPoint => Real.sqrt x.1) y := |
| 2363 | contDiffAt_fst.sqrt (ne_of_gt hy) |
| 2364 | have hder := (contDiff_infty_iff_deriv.mp (physicalCutoff_contDiff ha d b)).2 |
| 2365 | exact ((hr.inv hp.ne').mul (hder.contDiffAt.comp y |
| 2366 | (contDiffAt_snd.fst.div hr hp.ne'))).contDiffWithinAt |
| 2367 | |
| 2368 | theorem cutoffRadialDerivative_q_eq_kernel (coord d a b : ℝ) : |
| 2369 | cutoffRadialDerivative d a b (qLength coord) = |
| 2370 | MeanRankUpdate.chartKernel coord (cutoffRadialDerivativeModel d a b) := rfl |
| 2371 | |
| 2372 | theorem cutoffRadialDerivative_q_finiteJets {coord qlo qhi rlo rhi a : ℝ} |
| 2373 | (hc : 0 < coord) (hc1 : coord < 1) (hqlo : 0 < qlo) (ha : 0 < a) (d b : ℝ) |
| 2374 | {V : Set MeanRankUpdate.ChartPoint} |
| 2375 | (hT : ∀ z ∈ V, MeanRankUpdate.chartInput z ∈ PhysicalCoordinateBounds.positiveTime) |
| 2376 | (hq : ∀ z ∈ V, MeanRankUpdate.chartQ coord z ∈ Icc qlo qhi) |
| 2377 | (hR : ∀ z ∈ V, z.1 ∈ Icc rlo rhi) (m : ℕ) : |
| 2378 | ∃ B : ℝ, 0 ≤ B ∧ JetBounds.FiniteJetBound m (cutoffRadialDerivative d a b (qLength coord)) V B := by |
| 2379 | rw [cutoffRadialDerivative_q_eq_kernel] |
| 2380 | exact MeanRankUpdate.chartKernel_finiteJetBounds hc hc1 hqlo hT hq hR |
| 2381 | (cutoffRadialDerivativeModel_contDiffOn ha d b) m |
| 2382 | |
| 2383 | variable {coord a b d : ℝ} (U : SlowRegion coord) (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 2384 | include ha hab hd |
| 2385 | |
| 2386 | theorem compactAlias_q_contDiffOn (M : ℝ) (v : PressureStream.Plane) {f : Point → ℝ} |
| 2387 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2388 | (hs : SupportedGauge a b (qLength coord) U.carrier f) : |
| 2389 | ContDiffOn ℝ ∞ (compactAlias d a b M (qLength coord) v f) |
| 2390 | (PhysicalMeanDomain.slowDomain U.carrier) := by |
| 2391 | obtain ⟨c, e, L, hc, hce, _, hl, hleft, hright, _⟩ := qLength_reference_bounds U ha hab |
| 2392 | have hfixed : PhysicalMeanDomain.SupportedOn c e U.carrier f := fun z hz hn => |
| 2393 | ⟨(hleft _ hz).trans (hs z hz hn).1, (hs z hz hn).2.trans (hright _ hz)⟩ |
| 2394 | have hC := cutoffRadialDerivative_contDiffOn ha d b |
| 2395 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)) hl |
| 2396 | have hJ := physicalTotal_contDiffOn (M := M) hc hce hd v U.isOpen hf hfixed |
| 2397 | apply (hC.mul hJ).congr |
| 2398 | intro z hz |
| 2399 | exact compactAlias_reference hc ha hab hd (qLength coord) v hl hleft hs z hz |
| 2400 | |
| 2401 | theorem compactAlias_q_supportedGauge (M : ℝ) (v : PressureStream.Plane) (f : Point → ℝ) : |
| 2402 | SupportedGauge a b (qLength coord) U.carrier (compactAlias d a b M (qLength coord) v f) := by |
| 2403 | intro z hz hn |
| 2404 | have hpos := qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hz) |
| 2405 | exact physicalAlias_supported (mul_pos hpos ha) (mul_lt_mul_of_pos_left hab hpos) hd M ((0 : PressureStream.Plane), v) f hn |
| 2406 | |
| 2407 | theorem localBandJets_compactAlias {ε L : ℕ → ℝ} {α : ℝ} {f : ℕ → Point → ℝ} |
| 2408 | (hε : ∀ n, 0 < ε n) (hL : ∀ n, 1 ≤ L n) |
| 2409 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2410 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2411 | (hb : PhysicalMeanDomain.LocalBandJets U.carrier ε L α f) |
| 2412 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2413 | PhysicalMeanDomain.LocalBandJets U.carrier ε L α |
| 2414 | (fun n => compactAlias d a b (M n) (qLength coord) (v n) (f n)) := by |
| 2415 | obtain ⟨c, e, R, hc, hce, _, hl, hleft, hright, _⟩ := qLength_reference_bounds U ha hab |
| 2416 | have hfixed (n : ℕ) : PhysicalMeanDomain.SupportedOn c e U.carrier (f n) := fun z hz hn => |
| 2417 | ⟨(hleft _ hz).trans (hs n z hz hn).1, (hs n z hz hn).2.trans (hright _ hz)⟩ |
| 2418 | have hAfixed (n : ℕ) : PhysicalMeanDomain.SupportedOn c e U.carrier |
| 2419 | (compactAlias d a b (M n) (qLength coord) (v n) (f n)) := fun z hz hn => |
| 2420 | ⟨(hleft _ hz).trans (compactAlias_q_supportedGauge U ha hab hd (M n) (v n) (f n) z hz hn).1, |
| 2421 | (compactAlias_q_supportedGauge U ha hab hd (M n) (v n) (f n) z hz hn).2.trans (hright _ hz)⟩ |
| 2422 | have hC := cutoffRadialDerivative_contDiffOn ha d b |
| 2423 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)) hl |
| 2424 | intro m |
| 2425 | obtain ⟨C, hC0, k, hbound⟩ := hb m |
| 2426 | obtain ⟨K, hK, hJbound⟩ := physicalIntegrals_finiteJets_local (S := PressureStream.Plane) hc hce hd c e m |
| 2427 | let V : Set Point := {z | z.2.1 ∈ U.carrier ∧ z.1 ∈ Icc c e} |
| 2428 | obtain ⟨B, hB, hBbound⟩ := cutoffRadialDerivative_q_finiteJets U.coord_pos U.coord_lt_one U.qlo_pos ha d b |
| 2429 | (V := V) (fun z hz => U.time_pos z.2.1 hz.1) (fun z hz => U.q_mem z.2.1 hz.1) (fun _ hz => hz.2) m |
| 2430 | refine ⟨(2 : ℝ) ^ m * B * K * C, by positivity, k, ?_⟩ |
| 2431 | intro n z hz j hj |
| 2432 | have hA : 0 ≤ C * ε n ^ α * L n ^ k := |
| 2433 | mul_nonneg (mul_nonneg hC0 (Real.rpow_pos_of_pos (hε n) α).le) |
| 2434 | (pow_nonneg (zero_le_one.trans (hL n)) k) |
| 2435 | by_cases hr : z.1 ∈ Ioo c e |
| 2436 | · have hJ := physicalTotal_contDiffOn (M := M n) hc hce hd (v n) U.isOpen (hf n) (hfixed n) |
| 2437 | have hlocal : compactAlias d a b (M n) (qLength coord) (v n) (f n) =ᶠ[𝓝 z] |
| 2438 | (fun x => cutoffRadialDerivative d a b (qLength coord) x * |
| 2439 | PressureStream.physicalTotal d c (M n) ((0 : PressureStream.Plane), v n) (f n) x) := by |
| 2440 | filter_upwards [(PhysicalMeanDomain.slowDomain_open U.isOpen).mem_nhds hz] with x hx |
| 2441 | exact compactAlias_reference hc ha hab hd (qLength coord) (v n) hl hleft (hs n) x hx |
| 2442 | rw [MeanRankUpdate.iteratedFDeriv_congr_germ hlocal j] |
| 2443 | have hp := product_jet_bound (PhysicalMeanDomain.slowDomain_open U.isOpen) hC hJ hz hj hB |
| 2444 | (mul_nonneg hK hA) (fun i hi => hBbound i hi z ⟨hz, hr.1.le, hr.2.le⟩) |
| 2445 | (fun i hi => (hJbound U.carrier U.isOpen (M n) (v n) (f n) (hf n) (hfixed n) _ hA z hz |
| 2446 | ⟨hr.1.le, hr.2.le⟩ (fun q hq R hR Y => hbound n (R, (z.2.1, Y)) hz q hq) i hi).2) |
| 2447 | exact hp.trans_eq (by ring) |
| 2448 | · rw [PhysicalMeanDomain.jet_zero_outside U.isOpen (compactAlias_q_contDiffOn U ha hab hd (M n) (v n) (hf n) (hs n)) |
| 2449 | (hAfixed n) hz hr j, norm_zero] |
| 2450 | exact mul_nonneg (mul_nonneg (by positivity) (Real.rpow_pos_of_pos (hε n) α).le) |
| 2451 | (pow_nonneg (zero_le_one.trans (hL n)) k) |
| 2452 | |
| 2453 | variable {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 2454 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 2455 | |
| 2456 | theorem meanClass_compactAlias {α : ℝ} {f : ℕ → Point → ℝ} |
| 2457 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2458 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2459 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2460 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2461 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2462 | (fun n => compactAlias d a b (M n) (qLength coord) (v n) (f n)) := by |
| 2463 | obtain ⟨c, e, hac, _, heb, hsup⟩ := compactAlias_interior_support (S := PressureStream.Plane) ha hab hd |
| 2464 | exact localBandJets_meanClass_of_gaugeInteriorSupport U ha hcL hcR ε L hε hεone hL hac heb |
| 2465 | (fun n => compactAlias_q_contDiffOn U ha hab hd (M n) (v n) (hf n) (hs n)) |
| 2466 | (fun n => hsup (qLength coord) U.carrier |
| 2467 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) (M n) (v n) (f n)) |
| 2468 | (localBandJets_compactAlias U ha hab hd hε hL hf hs |
| 2469 | (meanClass_moving_localBandJets U ha hcL hcR ε L hε hεone hL hf hs hclass) M v) |
| 2470 | |
| 2471 | theorem meanClass_dividedCompactAlias {α : ℝ} {f : ℕ → Point → ℝ} |
| 2472 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2473 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2474 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2475 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2476 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2477 | (fun n => PressureStream.divideRadius (compactAlias d a b (M n) (qLength coord) (v n) (f n))) := |
| 2478 | meanClass_divideRadius_moving U ha hcL hcR ε L hε hεone hL |
| 2479 | (meanClass_compactAlias U ha hab hd hcL hcR ε L hε hεone hL hf hs hclass M v) |
| 2480 | |
| 2481 | theorem meanClass_streamGamma {α : ℝ} {f : ℕ → Point → ℝ} |
| 2482 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2483 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2484 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2485 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2486 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2487 | (fun n => PressureStream.streamGamma (PressureStream.physicalSpeed d (M n)) ((0 : PressureStream.Plane), v n) |
| 2488 | (streamPotential d a b (M n) (qLength coord) (v n) (f n))) := by |
| 2489 | have hw := meanClass_radialMultiply_moving U ha hcL hcR ε L hε hεone hL contDiff_id hclass |
| 2490 | have hA := meanClass_dividedCompactAlias U ha hab hd hcL hcR ε L hε hεone hL |
| 2491 | (f := fun n => PressureStream.weightedSource (f n)) |
| 2492 | (fun n => contDiffOn_fst.mul (hf n)) (fun n z hz hn => hs n z hz (right_ne_zero_of_mul hn)) hw M v |
| 2493 | apply MeanRankUpdate.meanClass_congr_on (MeanIncrementBounds.Class.sub hclass hA) |
| 2494 | intro n z hz |
| 2495 | have hzm := (movingStrip_domain U a b cL cR ha hcL hcR ε L hε hεone hL z).mp hz |
| 2496 | have hpos := qLength_pos U.coord_pos U.coord_lt_one (U.time_pos _ hzm.1) |
| 2497 | have hr : z.1 ≠ 0 := ne_of_gt (by |
| 2498 | have hp : 0 < z.1 / qLength coord z.2.1 := ha.trans hzm.2.1 |
| 2499 | simpa only [zero_mul] using (lt_div_iff₀ hpos).mp hp) |
| 2500 | exact streamGamma_eq_desired_sub_alias U ha hab hd (M n) (v n) (hf n) (hs n) hzm.1 hr |
| 2501 | |
| 2502 | end AliasClass |
| 2503 | |
| 2504 | section MovingStageClasses |
| 2505 | open LocalSignedRequest WeightedClasses |
| 2506 | variable {coord a b cL cR d : ℝ} (U : SlowRegion coord) |
| 2507 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 2508 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 2509 | |
| 2510 | include hab hd |
| 2511 | |
| 2512 | theorem meanClass_temporalStreamPotential {h α : ℝ} (hh : 0 ≤ h) |
| 2513 | (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (D : ℕ) |
| 2514 | (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + D) {f : ℕ → Point → ℝ} |
| 2515 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2516 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2517 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2518 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2519 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2520 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2521 | (fun n => streamPotential d a b (M n) (qLength coord) (v n) |
| 2522 | (MeanChartCompatibility.temporalAtIndex h n (index n) (f n))) := |
| 2523 | meanClass_streamPotential U ha hcL hcR ε L hε hεone hL hab hd |
| 2524 | (fun n => temporalAtIndex_contDiffOn h n (index n) U.isOpen (hf n) (hp n)) |
| 2525 | (fun n => temporalAtIndex_supportedGauge h n (index n) (hs n)) |
| 2526 | (meanClass_temporalAtIndex_moving U ha hcL hcR ε L hε hεone hL hh hscale index D hgap hf hp hclass) M v |
| 2527 | |
| 2528 | theorem meanClass_temporalStreamGamma {h α : ℝ} (hh : 0 ≤ h) |
| 2529 | (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (D : ℕ) |
| 2530 | (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + D) {f : ℕ → Point → ℝ} |
| 2531 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2532 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2533 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2534 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2535 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2536 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α |
| 2537 | (fun n => PressureStream.streamGamma (PressureStream.physicalSpeed d (M n)) ((0 : PressureStream.Plane), v n) |
| 2538 | (streamPotential d a b (M n) (qLength coord) (v n) |
| 2539 | (MeanChartCompatibility.temporalAtIndex h n (index n) (f n)))) := |
| 2540 | meanClass_streamGamma U ha hab hd hcL hcR ε L hε hεone hL |
| 2541 | (fun n => temporalAtIndex_contDiffOn h n (index n) U.isOpen (hf n) (hp n)) |
| 2542 | (fun n => temporalAtIndex_supportedGauge h n (index n) (hs n)) |
| 2543 | (meanClass_temporalAtIndex_moving U ha hcL hcR ε L hε hεone hL hh hscale index D hgap hf hp hclass) M v |
| 2544 | |
| 2545 | omit hab hd in |
| 2546 | theorem streamBeta_smul_direction {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 2547 | (r : ℝ) (w : E) (f : ℝ × E → ℝ) : |
| 2548 | PressureStream.streamBeta (r • w) f = fun z => r • PressureStream.streamBeta w f z := by |
| 2549 | funext z |
| 2550 | change -fderiv ℝ f z ((0 : ℝ), r • w) = r • -fderiv ℝ f z ((0 : ℝ), w) |
| 2551 | rw [show ((0 : ℝ), r • w) = r • ((0 : ℝ), w) by simp] |
| 2552 | simp only [map_smul, smul_neg] |
| 2553 | |
| 2554 | theorem meanClass_scaledTemporalStreamBeta {h α : ℝ} (hh : 0 ≤ h) |
| 2555 | (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (D : ℕ) |
| 2556 | (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + D) {f : ℕ → Point → ℝ} |
| 2557 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2558 | (hp : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n)) |
| 2559 | (hs : ∀ n, SupportedGauge a b (qLength coord) U.carrier (f n)) |
| 2560 | (hclass : MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) α f) |
| 2561 | (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) : |
| 2562 | MeanClass (movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL) (α + 1) |
| 2563 | (fun n => PressureStream.streamBeta (ε n • w) |
| 2564 | (streamPotential d a b (M n) (qLength coord) (v n) |
| 2565 | (MeanChartCompatibility.temporalAtIndex h n (index n) (f n)))) := by |
| 2566 | let st := movingStripData U a b cL cR ha hcL hcR ε L hε hεone hL |
| 2567 | have hc := meanClass_temporalAtIndex_moving U ha hcL hcR ε L hε hεone hL hh hscale index D hgap hf hp hclass |
| 2568 | have hi := meanClass_streamBeta U ha hcL hcR ε L hε hεone hL hab hd |
| 2569 | (fun n => temporalAtIndex_contDiffOn h n (index n) U.isOpen (hf n) (hp n)) |
| 2570 | (fun n => temporalAtIndex_supportedGauge h n (index n) (hs n)) hc M v w |
| 2571 | have hb : BandBound st 1 ε := by |
| 2572 | have he := bandBound_rpow st 1 |
| 2573 | simp only [Real.rpow_one] at he |
| 2574 | exact he |
| 2575 | simpa only [streamBeta_smul_direction] using hi.band_smul hb |
| 2576 | |
| 2577 | end MovingStageClasses |
| 2578 | |
| 2579 | section ActualStateClasses |
| 2580 | open LocalSignedRequest WeightedClasses |
| 2581 | variable {coord cL cR : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) |
| 2582 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) |
| 2583 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 2584 | (hell : ∀ n, g.length n = qLength coord) |
| 2585 | |
| 2586 | include hd hell |
| 2587 | |
| 2588 | theorem reconstructState_pressure_change_class |
| 2589 | (c : CorrectionState.Context Point) (u v : CorrectionState.State Point) {α : ℝ} |
| 2590 | (hf : ∀ n, ContDiffOn ℝ ∞ (u.gr c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2591 | (hg : ∀ n, ContDiffOn ℝ ∞ (v.gr c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2592 | (hsf : ∀ n, SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.gr c n)) |
| 2593 | (hsg : ∀ n, SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (v.gr c n)) |
| 2594 | (hclass : MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2595 | α (u.gr c - v.gr c)) : |
| 2596 | MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2597 | α ((reconstructState g c u).pressure - (reconstructState g c v).pressure) := by |
| 2598 | have he := meanClass_meanPressure_change U ha g.radial.inner_lt_outer hd hcL hcR ε L hε hεone hL hf hg hsf hsg hclass |
| 2599 | g.radial.frequency (fun _ => g.radial.radialDirection) |
| 2600 | simp only [reconstructState, hell] at he ⊢ |
| 2601 | exact he |
| 2602 | |
| 2603 | theorem temporalIncrementState_classes |
| 2604 | {h α : ℝ} (hh : 0 ≤ h) (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (D : ℕ) |
| 2605 | (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + D) |
| 2606 | (axial : PressureStream.Plane × PressureStream.Plane) |
| 2607 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 2608 | (heps : c.operators.epsilon = ε) |
| 2609 | (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2610 | (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2611 | (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.thetaResidual c n)) |
| 2612 | (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) |
| 2613 | (hsz : ∀ n, SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c n)) |
| 2614 | (hcθ : MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2615 | α (u.thetaResidual c)) |
| 2616 | (hcz : MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2617 | α (u.axialResidual c)) : |
| 2618 | MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2619 | (α + 1) (temporalIncrementState g h index axial c u).radial ∧ |
| 2620 | MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2621 | α (temporalIncrementState g h index axial c u).angular ∧ |
| 2622 | MeanClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 2623 | α (temporalIncrementState g h index axial c u).axial := by |
| 2624 | have hB := meanClass_scaledTemporalStreamBeta U ha g.radial.inner_lt_outer hd hcL hcR ε L hε hεone hL |
| 2625 | hh hscale index D hgap hz hpz hsz hcz g.radial.frequency (fun _ => g.radial.radialDirection) axial |
| 2626 | have hT := meanClass_temporalAtIndex_moving U ha hcL hcR ε L hε hεone hL hh hscale index D hgap hθ hpθ hcθ |
| 2627 | have hG := meanClass_temporalStreamGamma U ha g.radial.inner_lt_outer hd hcL hcR ε L hε hεone hL |
| 2628 | hh hscale index D hgap hz hpz hsz hcz g.radial.frequency (fun _ => g.radial.radialDirection) |
| 2629 | simpa only [temporalIncrementState, temporalPotential, hell, heps] using And.intro hB (And.intro hT hG) |
| 2630 | |
| 2631 | end ActualStateClasses |
| 2632 | |
| 2633 | section DifferentialSupport |
| 2634 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 2635 | |
| 2636 | theorem fderiv_apply_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 2637 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → ℝ} |
| 2638 | (hs : SupportedGauge a b ell U f) (w : PressureStream.Lift S → PressureStream.Lift S) : |
| 2639 | SupportedGauge a b ell U (fun z => fderiv ℝ f z (w z)) := by |
| 2640 | intro z hz hn |
| 2641 | have hsupport := iteratedFDeriv_supportedGauge_fiber hU hell hs hz 1 |
| 2642 | apply @hsupport z |
| 2643 | intro hzero |
| 2644 | change iteratedFDeriv ℝ 1 f z = 0 at hzero |
| 2645 | have he := congrArg (fun T : (PressureStream.Lift S) [×1]→L[ℝ] ℝ => T (fun _ => w z)) hzero |
| 2646 | exact hn (by simpa only [iteratedFDeriv_one_apply, _root_.zero_apply] using he) |
| 2647 | |
| 2648 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 2649 | theorem divideRadius_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 2650 | {f : PressureStream.Lift S → ℝ} (hs : SupportedGauge a b ell U f) : |
| 2651 | SupportedGauge a b ell U (PressureStream.divideRadius f) := by |
| 2652 | intro z hz hn |
| 2653 | exact hs z hz (fun hzero => hn (by simp only [PressureStream.divideRadius, hzero, zero_div])) |
| 2654 | |
| 2655 | theorem streamBeta_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 2656 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → ℝ} |
| 2657 | (hs : SupportedGauge a b ell U f) (w : S × PressureStream.Plane) : |
| 2658 | SupportedGauge a b ell U (PressureStream.streamBeta w f) := by |
| 2659 | intro z hz hn |
| 2660 | apply fderiv_apply_supportedGauge hU hell hs (fun _ => (0, w)) z hz |
| 2661 | exact fun hzero => hn (by simp only [PressureStream.streamBeta, PressureStream.graphDz, hzero, neg_zero]) |
| 2662 | |
| 2663 | theorem streamGamma_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} |
| 2664 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : PressureStream.Lift S → ℝ} |
| 2665 | (hs : SupportedGauge a b ell U f) (k : ℝ → ℝ) (v : S × PressureStream.Plane) : |
| 2666 | SupportedGauge a b ell U (PressureStream.streamGamma k v f) := by |
| 2667 | intro z hz hn |
| 2668 | by_contra hnot |
| 2669 | have hD : PressureStream.graphDr k v f z = 0 := by |
| 2670 | by_contra hd |
| 2671 | exact hnot (fderiv_apply_supportedGauge hU hell hs (PressureStream.radialVector k v) z hz hd) |
| 2672 | have hF : f z = 0 := by |
| 2673 | by_contra hf |
| 2674 | exact hnot (hs z hz hf) |
| 2675 | exact hn (by simp only [PressureStream.streamGamma, PressureStream.divideRadius, hD, hF, zero_div, add_zero]) |
| 2676 | |
| 2677 | theorem streamPotential_supportedGauge {a b d M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 2678 | (ell : S → ℝ) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) |
| 2679 | (hl : ∀ s ∈ U, 0 < ell s) {f : PressureStream.Lift S → ℝ} |
| 2680 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) (hs : SupportedGauge a b ell U f) : |
| 2681 | SupportedGauge a b ell U (streamPotential d a b M ell v f) := |
| 2682 | divideRadius_supportedGauge (compactPrimitive_supportedGauge (M := M) ha hab hd ell v hU hl |
| 2683 | (contDiffOn_fst.mul hf) (fun z hz hn => hs z hz (right_ne_zero_of_mul hn))) |
| 2684 | |
| 2685 | end DifferentialSupport |
| 2686 | |
| 2687 | section ActualStateIdentities |
| 2688 | open LocalSignedRequest |
| 2689 | variable {coord : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) |
| 2690 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hell : ∀ n, g.length n = qLength coord) |
| 2691 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 2692 | |
| 2693 | include ha hd hell |
| 2694 | |
| 2695 | theorem reconstructState_radial_identity (n : ℕ) |
| 2696 | (hf : ContDiffOn ℝ ∞ (u.gr c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2697 | (hs : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.gr c n)) |
| 2698 | {z : Point} (hz : z.2.1 ∈ U.carrier) : |
| 2699 | PressureStream.graphDr (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) |
| 2700 | ((0 : PressureStream.Plane), g.radial.radialDirection) ((reconstructState g c u).pressure n) z = |
| 2701 | u.gr c n z - density g.radial.inner g.radial.outer g.radial.inner_lt_outer (g.length n) z * |
| 2702 | PressureStream.pressureMass (u.gr c n) z.2.1 - |
| 2703 | compactAlias g.radial.exponent g.radial.inner g.radial.outer (g.radial.frequency n) |
| 2704 | (g.length n) g.radial.radialDirection |
| 2705 | (pressureSource g.radial.inner g.radial.outer g.radial.inner_lt_outer (g.length n) (u.gr c n)) z := by |
| 2706 | simpa only [reconstructState, hell] using |
| 2707 | meanPressure_radial_identity U ha g.radial.inner_lt_outer hd (g.radial.frequency n) |
| 2708 | g.radial.radialDirection hf hs hz |
| 2709 | |
| 2710 | theorem temporalAxialDifference_eq_dividedAlias (h : ℝ) (index : ℕ → ℕ) (n : ℕ) |
| 2711 | (hf : ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2712 | (hp : PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) |
| 2713 | (hs : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c n)) |
| 2714 | {z : Point} (hz : z.2.1 ∈ U.carrier) (hr : z.1 ≠ 0) : |
| 2715 | temporalAxialDifference g h index c u n z = |
| 2716 | compactAlias g.radial.exponent g.radial.inner g.radial.outer (g.radial.frequency n) |
| 2717 | (g.length n) g.radial.radialDirection |
| 2718 | (PressureStream.weightedSource (MeanChartCompatibility.temporalAtIndex h n (index n) (u.axialResidual c n))) z / z.1 := by |
| 2719 | simp only [temporalAxialDifference, temporalPotential, hell] |
| 2720 | rw [streamGamma_eq_desired_sub_alias U ha g.radial.inner_lt_outer hd (g.radial.frequency n) |
| 2721 | g.radial.radialDirection (temporalAtIndex_contDiffOn h n (index n) U.isOpen hf hp) |
| 2722 | (temporalAtIndex_supportedGauge h n (index n) hs) hz hr] |
| 2723 | ring |
| 2724 | |
| 2725 | theorem temporalIncrementState_divergence_zero (h : ℝ) (index : ℕ → ℕ) |
| 2726 | (axial : PressureStream.Plane × PressureStream.Plane) (n : ℕ) |
| 2727 | (hf : ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2728 | (hp : PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) |
| 2729 | (hs : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c n)) |
| 2730 | {z : Point} (hz : z.2.1 ∈ U.carrier) (hr : z.1 ≠ 0) : |
| 2731 | PressureStream.graphDivergence (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) |
| 2732 | ((0 : PressureStream.Plane), g.radial.radialDirection) (c.operators.epsilon n • axial) |
| 2733 | ((temporalIncrementState g h index axial c u).radial n) |
| 2734 | ((temporalIncrementState g h index axial c u).axial n) z = 0 := by |
| 2735 | simpa only [temporalIncrementState, temporalPotential, hell] using |
| 2736 | stream_divergence_zero U ha g.radial.inner_lt_outer hd (g.radial.frequency n) |
| 2737 | g.radial.radialDirection (c.operators.epsilon n • axial) |
| 2738 | (temporalAtIndex_contDiffOn h n (index n) U.isOpen hf hp) |
| 2739 | (temporalAtIndex_supportedGauge h n (index n) hs) hz hr |
| 2740 | |
| 2741 | theorem temporalIncrementState_supportedGauge (h : ℝ) (index : ℕ → ℕ) |
| 2742 | (axial : PressureStream.Plane × PressureStream.Plane) (n : ℕ) |
| 2743 | (hf : ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 2744 | (hp : PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) |
| 2745 | (hsz : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c n)) |
| 2746 | (hsθ : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier (u.thetaResidual c n)) : |
| 2747 | SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier |
| 2748 | ((temporalIncrementState g h index axial c u).radial n) ∧ |
| 2749 | SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier |
| 2750 | ((temporalIncrementState g h index axial c u).angular n) ∧ |
| 2751 | SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier |
| 2752 | ((temporalIncrementState g h index axial c u).axial n) := by |
| 2753 | have hL : ContinuousOn (qLength coord) U.carrier := |
| 2754 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)).continuousOn |
| 2755 | have hpot := streamPotential_supportedGauge (M := g.radial.frequency n) ha g.radial.inner_lt_outer hd |
| 2756 | (qLength coord) g.radial.radialDirection U.isOpen |
| 2757 | (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) |
| 2758 | (temporalAtIndex_contDiffOn h n (index n) U.isOpen hf hp) |
| 2759 | (temporalAtIndex_supportedGauge h n (index n) hsz) |
| 2760 | have hB := streamBeta_supportedGauge U.isOpen hL hpot (c.operators.epsilon n • axial) |
| 2761 | have hG := streamGamma_supportedGauge U.isOpen hL hpot |
| 2762 | (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) ((0 : PressureStream.Plane), g.radial.radialDirection) |
| 2763 | simpa only [temporalIncrementState, temporalPotential, hell] using |
| 2764 | And.intro hB (And.intro (temporalAtIndex_supportedGauge h n (index n) hsθ) hG) |
| 2765 | |
| 2766 | end ActualStateIdentities |
| 2767 | |
| 2768 | end |
| 2769 | |
| 2770 | end NavierStokes.VariableGaugeMean |