| @@ -20,7 +20,6 @@ open scoped Topology ContDiff BigOperators |
| 20 | 20 | |
| 21 | 21 | abbrev Slow := PressureStream.Plane |
| 22 | 22 | abbrev Lift := PressureStream.Lift Slow |
| 23 | | -abbrev Model := MeanRankUpdate.ModelPoint × PressureStream.Plane |
| 24 | 23 | |
| 25 | 24 | noncomputable def stableQ (coord : ℝ) (s : Slow) : ℝ := |
| 26 | 25 | (PositiveRepresentatives.stableInverse coord s).1 |
| @@ -70,36 +69,6 @@ structure Window (coord a b : ℝ) where |
| 70 | 69 | left : ∀ s ∈ carrier, lower ≤ stableLength coord s * a |
| 71 | 70 | right : ∀ s ∈ carrier, stableLength coord s * b ≤ upper |
| 72 | 71 | |
| 73 | | -theorem exists_window_at {coord a b : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 74 | | - (ha : 0 < a) (hab : a < b) {s₀ : Slow} |
| 75 | | - (hs : s₀ ∈ PositiveRepresentatives.stableTarget coord) : |
| 76 | | - ∃ W : Window coord a b, s₀ ∈ W.carrier := by |
| 77 | | - let L := stableLength coord s₀ |
| 78 | | - have hL : 0 < L := stableLength_pos hs |
| 79 | | - have hl := (stableLength_contDiffAt hc hc1 hs).continuousAt |
| 80 | | - have hnear : ∀ᶠ s in 𝓝 s₀, |
| 81 | | - s ∈ PositiveRepresentatives.stableTarget coord ∧ |
| 82 | | - L / 2 < stableLength coord s ∧ stableLength coord s < 2 * L := by |
| 83 | | - filter_upwards [(PositiveRepresentatives.stableTarget_open coord).mem_nhds hs, |
| 84 | | - hl (lt_mem_nhds (half_lt_self hL)), hl (gt_mem_nhds (show L < 2 * L by linarith))] |
| 85 | | - with s hst hlo hhi |
| 86 | | - exact ⟨hst, hlo, hhi⟩ |
| 87 | | - obtain ⟨U, hUsub, hU, hzU⟩ := mem_nhds_iff.mp hnear |
| 88 | | - refine ⟨⟨U, hU, fun s hs => (hUsub hs).1, L / 2 * a, 2 * L * b, |
| 89 | | - mul_pos (half_pos hL) ha, ?_, ?_, ?_⟩, hzU⟩ |
| 90 | | - · have hprod := mul_lt_mul_of_pos_left hab hL |
| 91 | | - have hprodpos := mul_pos hL ha |
| 92 | | - nlinarith |
| 93 | | - · intro s hsU |
| 94 | | - exact mul_le_mul_of_nonneg_right (hUsub hsU).2.1.le ha.le |
| 95 | | - · intro s hsU |
| 96 | | - exact mul_le_mul_of_nonneg_right (hUsub hsU).2.2.le (ha.trans hab).le |
| 97 | | - |
| 98 | | -theorem exists_endpoint_window {coord a b Z : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 99 | | - (ha : 0 < a) (hab : a < b) (hZ : Z ≠ 0) : |
| 100 | | - ∃ W : Window coord a b, (0, Z) ∈ W.carrier := |
| 101 | | - exists_window_at hc hc1 ha hab (EndpointCoordinates.zeroTime_mem_stableTarget hc hc1 hZ) |
| 102 | | - |
| 103 | 72 | namespace Window |
| 104 | 73 | |
| 105 | 74 | variable {coord a b : ℝ} (W : Window coord a b) |
| @@ -123,8 +92,6 @@ end Window |
| 123 | 92 | continued formulas themselves are defined on the full stable neighborhood. -/ |
| 124 | 93 | noncomputable def positiveSlow : Set Slow := {s | 0 < s.1} |
| 125 | 94 | |
| 126 | | -theorem positiveSlow_open : IsOpen positiveSlow := isOpen_lt continuous_const continuous_fst |
| 127 | | - |
| 128 | 95 | def FiberAgreement {V : Type*} (U : Set Slow) (F f : Lift → V) : Prop := |
| 129 | 96 | EqOn F f (PhysicalMeanDomain.slowDomain (U ∩ positiveSlow)) |
| 130 | 97 | |
| @@ -133,80 +100,6 @@ theorem FiberAgreement.fiber {V : Type*} {U : Set Slow} {F f : Lift → V} |
| 133 | 100 | ∀ r Y, F (r, (s, Y)) = f (r, (s, Y)) := |
| 134 | 101 | fun _ _ => h ⟨hs, ht⟩ |
| 135 | 102 | |
| 136 | | -theorem FiberAgreement.eventuallyEq {V : Type*} {U : Set Slow} (hU : IsOpen U) {F f : Lift → V} |
| 137 | | - (h : FiberAgreement U F f) {p : Lift} (hp : p.2.1 ∈ U) (ht : 0 < p.2.1.1) : |
| 138 | | - F =ᶠ[𝓝 p] f := by |
| 139 | | - filter_upwards [(PhysicalMeanDomain.slowDomain_open (hU.inter positiveSlow_open)).mem_nhds |
| 140 | | - (show p ∈ PhysicalMeanDomain.slowDomain (U ∩ positiveSlow) from ⟨hp, ht⟩)] with z hz |
| 141 | | - exact h hz |
| 142 | | - |
| 143 | | -/-- A primitive model retains the fast torus coordinate and the physical |
| 144 | | -radial variable; only the time coordinate is replaced by `q`. -/ |
| 145 | | -noncomputable def stableModel (coord : ℝ) (p : Lift) : Model := |
| 146 | | - ((stableQ coord p.2.1, (p.1, p.2.1.2)), p.2.2) |
| 147 | | - |
| 148 | | -noncomputable def physicalModel (coord : ℝ) (p : Lift) : Model := |
| 149 | | - ((SimilarityCoordinates.coordinateQ coord p.2.1, (p.1, p.2.1.2)), p.2.2) |
| 150 | | - |
| 151 | | -noncomputable def modelDomain : Set Model := {y | 0 < y.1.1} |
| 152 | | - |
| 153 | | -theorem modelDomain_open : IsOpen modelDomain := |
| 154 | | - isOpen_lt continuous_const (continuous_fst.comp continuous_fst) |
| 155 | | - |
| 156 | | -theorem stableModel_contDiffOn {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) : |
| 157 | | - ContDiffOn ℝ ∞ (stableModel coord) |
| 158 | | - (PhysicalMeanDomain.slowDomain (PositiveRepresentatives.stableTarget coord)) := by |
| 159 | | - intro p hp |
| 160 | | - have hq := (stableQ_contDiffAt hc hc1 hp).comp p contDiffAt_snd.fst |
| 161 | | - exact ((hq.prodMk (contDiffAt_fst.prodMk contDiffAt_snd.fst.snd)).prodMk |
| 162 | | - contDiffAt_snd.snd).contDiffWithinAt |
| 163 | | - |
| 164 | | -theorem stableModel_mem {coord : ℝ} {p : Lift} |
| 165 | | - (hp : p.2.1 ∈ PositiveRepresentatives.stableTarget coord) : |
| 166 | | - stableModel coord p ∈ modelDomain := stableQ_pos hp |
| 167 | | - |
| 168 | | -noncomputable def continuedSource (coord : ℝ) (F : Model → ℝ) : Lift → ℝ := |
| 169 | | - F ∘ stableModel coord |
| 170 | | - |
| 171 | | -noncomputable def physicalSource (coord : ℝ) (F : Model → ℝ) : Lift → ℝ := |
| 172 | | - F ∘ physicalModel coord |
| 173 | | - |
| 174 | | -theorem continuedSource_smooth {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 175 | | - {F : Model → ℝ} (hF : ContDiffOn ℝ ∞ F modelDomain) : |
| 176 | | - ContDiffOn ℝ ∞ (continuedSource coord F) |
| 177 | | - (PhysicalMeanDomain.slowDomain (PositiveRepresentatives.stableTarget coord)) := |
| 178 | | - hF.comp (stableModel_contDiffOn hc hc1) (fun _ hp => stableModel_mem hp) |
| 179 | | - |
| 180 | | -theorem continuedSource_agreement {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 181 | | - (F : Model → ℝ) (U : Set Slow) : |
| 182 | | - FiberAgreement U (continuedSource coord F) (physicalSource coord F) := by |
| 183 | | - intro p hp |
| 184 | | - simp only [continuedSource, physicalSource, comp_apply, stableModel, physicalModel, |
| 185 | | - stableQ_eq_coordinateQ hc hc1 hp.2] |
| 186 | | - |
| 187 | | -/-- A support condition on the explicit primitive model, before any mean |
| 188 | | -operation is performed. -/ |
| 189 | | -def ModelSupported {V : Type*} [Zero V] (a b : ℝ) (F : Model → V) : Prop := |
| 190 | | - ∀ y ∈ modelDomain, F y ≠ 0 → |
| 191 | | - y.1.2.1 ∈ Icc (Real.sqrt y.1.1 * a) (Real.sqrt y.1.1 * b) |
| 192 | | - |
| 193 | | -def ModelPeriodic (F : Model → ℝ) : Prop := |
| 194 | | - ∀ y : MeanRankUpdate.ModelPoint, 0 < y.1 → |
| 195 | | - FourierAlias.TorusPeriodic (fun Y => F (y, Y)) |
| 196 | | - |
| 197 | | -theorem continuedSource_periodic {coord : ℝ} {F : Model → ℝ} (hF : ModelPeriodic F) |
| 198 | | - {U : Set Slow} (hU : U ⊆ PositiveRepresentatives.stableTarget coord) : |
| 199 | | - PhysicalMeanDomain.PeriodicOn U (continuedSource coord F) := by |
| 200 | | - intro r s hs |
| 201 | | - exact hF (stableQ coord s, (r, s.2)) (stableQ_pos (hU hs)) |
| 202 | | - |
| 203 | | -theorem continuedSource_supported {coord a b : ℝ} {F : Model → ℝ} |
| 204 | | - (hF : ModelSupported a b F) {U : Set Slow} |
| 205 | | - (hU : U ⊆ PositiveRepresentatives.stableTarget coord) : |
| 206 | | - VariableGaugeMean.SupportedGauge a b (stableLength coord) U (continuedSource coord F) := by |
| 207 | | - intro p hp hn |
| 208 | | - exact hF (stableModel coord p) (stableModel_mem (hU hp)) hn |
| 209 | | - |
| 210 | 103 | namespace Window |
| 211 | 104 | |
| 212 | 105 | variable {coord a b : ℝ} (W : Window coord a b) |
| @@ -257,21 +150,6 @@ theorem streamPotential_smooth (ha : 0 < a) (hab : a < b) {d : ℝ} (hd : 0 < d) |
| 257 | 150 | (stableLength coord) v W.isOpen (fun _ hs => W.length_pos hs) hwf hws |
| 258 | 151 | exact VariableGaugeMean.divideRadius_contDiffOn W.lower_pos W.isOpen hI (W.fixed_support hIs) |
| 259 | 152 | |
| 260 | | -theorem compactAlias_smooth (ha : 0 < a) (hab : a < b) {d : ℝ} (hd : 0 < d) |
| 261 | | - (M : ℝ) (v : Slow) {f : Lift → ℝ} |
| 262 | | - (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain W.carrier)) |
| 263 | | - (hs : VariableGaugeMean.SupportedGauge a b (stableLength coord) W.carrier f) : |
| 264 | | - ContDiffOn ℝ ∞ (VariableGaugeMean.compactAlias d a b M (stableLength coord) v f) |
| 265 | | - (PhysicalMeanDomain.slowDomain W.carrier) := by |
| 266 | | - have hC := VariableGaugeMean.cutoffRadialDerivative_contDiffOn ha d b |
| 267 | | - (W.length_smooth hc hc1) (fun _ hs => W.length_pos hs) |
| 268 | | - have hJ := VariableGaugeMean.physicalTotal_contDiffOn (M := M) |
| 269 | | - W.lower_pos W.lower_lt_upper hd v W.isOpen hf (W.fixed_support hs) |
| 270 | | - apply (hC.mul hJ).congr |
| 271 | | - intro p hp |
| 272 | | - exact VariableGaugeMean.compactAlias_reference W.lower_pos ha hab hd (stableLength coord) v |
| 273 | | - (fun _ hs => W.length_pos hs) W.left hs p hp |
| 274 | | - |
| 275 | 153 | end Window |
| 276 | 154 | |
| 277 | 155 | section ExactAgreement |
| @@ -314,15 +192,6 @@ theorem streamPotential_agreement (d a b M : ℝ) (v : Slow) : |
| 314 | 192 | intro p hp |
| 315 | 193 | exact congrArg (fun t => t / p.1) (compactPrimitive_agreement hc hc1 hw d a b M v hp) |
| 316 | 194 | |
| 317 | | -theorem compactAlias_agreement (d a b M : ℝ) (v : Slow) : |
| 318 | | - FiberAgreement U (VariableGaugeMean.compactAlias d a b M (stableLength coord) v F) |
| 319 | | - (VariableGaugeMean.compactAlias d a b M (VariableGaugeMean.qLength coord) v f) := by |
| 320 | | - intro p hp |
| 321 | | - dsimp only [VariableGaugeMean.compactAlias] |
| 322 | | - rw [stableLength_eq_qLength hc hc1 hp.2] |
| 323 | | - exact PhysicalMeanDomain.physicalAlias_fiberLocal d _ _ M v F f p.2.1 |
| 324 | | - (he.fiber hp.1 hp.2) p.1 p.2.2 |
| 325 | | - |
| 326 | 195 | omit hc hc1 in |
| 327 | 196 | theorem temporalAtIndex_agreement (h : ℝ) (n i : ℕ) : |
| 328 | 197 | FiberAgreement U (MeanChartCompatibility.temporalAtIndex h n i F) |
| @@ -346,13 +215,6 @@ namespace SupportedContinuation |
| 346 | 215 | |
| 347 | 216 | variable {coord a b : ℝ} {W : Window coord a b} (hc : 0 < coord) (hc1 : coord < 1) |
| 348 | 217 | |
| 349 | | -noncomputable def ofModel (F : Model → ℝ) (hF : ContDiffOn ℝ ∞ F modelDomain) |
| 350 | | - (hs : ModelSupported a b F) : SupportedContinuation W (physicalSource coord F) where |
| 351 | | - value := continuedSource coord F |
| 352 | | - smooth := (continuedSource_smooth hc hc1 hF).mono (fun _ hp => W.stable hp) |
| 353 | | - supported := continuedSource_supported hs W.stable |
| 354 | | - agrees := continuedSource_agreement hc hc1 F W.carrier |
| 355 | | - |
| 356 | 218 | noncomputable def primitive {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 357 | 219 | (ha : 0 < a) (hab : a < b) {d : ℝ} (hd : 0 < d) (M : ℝ) (v : Slow) : |
| 358 | 220 | SupportedContinuation W |
| @@ -384,18 +246,6 @@ noncomputable def stream {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 384 | 246 | W.isOpen (fun _ hs => W.length_pos hs) e.smooth e.supported |
| 385 | 247 | agrees := streamPotential_agreement hc hc1 e.agrees d a b M v |
| 386 | 248 | |
| 387 | | -noncomputable def aliasField {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 388 | | - (ha : 0 < a) (hab : a < b) {d : ℝ} (hd : 0 < d) (M : ℝ) (v : Slow) : |
| 389 | | - SupportedContinuation W |
| 390 | | - (VariableGaugeMean.compactAlias d a b M (VariableGaugeMean.qLength coord) v f) where |
| 391 | | - value := VariableGaugeMean.compactAlias d a b M (stableLength coord) v e.value |
| 392 | | - smooth := W.compactAlias_smooth hc hc1 ha hab hd M v e.smooth e.supported |
| 393 | | - supported := by |
| 394 | | - intro p hp hn |
| 395 | | - exact RadialPullback.physicalAlias_supported (mul_pos (W.length_pos hp) ha) |
| 396 | | - (mul_lt_mul_of_pos_left hab (W.length_pos hp)) hd M ((0 : Slow), v) e.value hn |
| 397 | | - agrees := compactAlias_agreement hc hc1 e.agrees d a b M v |
| 398 | | - |
| 399 | 249 | omit hc hc1 in |
| 400 | 250 | noncomputable def temporal {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 401 | 251 | (h : ℝ) (n i : ℕ) (hp : PhysicalMeanDomain.PeriodicOn W.carrier e.value) : |
| @@ -411,56 +261,6 @@ namespace SupportedContinuation |
| 411 | 261 | |
| 412 | 262 | variable {coord a b : ℝ} {W : Window coord a b} |
| 413 | 263 | |
| 414 | | -noncomputable def scaleSlow {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 415 | | - {c : Slow → ℝ} (C : Slow → ℝ) (hC : ContDiffOn ℝ ∞ C W.carrier) |
| 416 | | - (he : EqOn C c (W.carrier ∩ positiveSlow)) : |
| 417 | | - SupportedContinuation W (fun p => c p.2.1 * f p) where |
| 418 | | - value := fun p => C p.2.1 * e.value p |
| 419 | | - smooth := (hC.comp contDiffOn_snd.fst (fun _ hp => hp)).mul e.smooth |
| 420 | | - supported := fun p hp hn => e.supported p hp (right_ne_zero_of_mul hn) |
| 421 | | - agrees := fun _ hp => congrArg₂ (fun x y : ℝ => x * y) (he hp) (e.agrees hp) |
| 422 | | - |
| 423 | | -noncomputable def finiteSum {ι : Type*} (s : Finset ι) (f : ι → Lift → ℝ) |
| 424 | | - (e : ∀ i, SupportedContinuation W (f i)) : |
| 425 | | - SupportedContinuation W (fun p => ∑ i ∈ s, f i p) where |
| 426 | | - value := fun p => ∑ i ∈ s, (e i).value p |
| 427 | | - smooth := ContDiffOn.sum (fun i _ => (e i).smooth) |
| 428 | | - supported := by |
| 429 | | - intro p hp hn |
| 430 | | - by_contra hr |
| 431 | | - apply hn |
| 432 | | - apply Finset.sum_eq_zero |
| 433 | | - intro i _ |
| 434 | | - by_contra hi |
| 435 | | - exact hr ((e i).supported p hp hi) |
| 436 | | - agrees := by |
| 437 | | - intro p hp |
| 438 | | - exact Finset.sum_congr rfl (fun i _ => (e i).agrees hp) |
| 439 | | - |
| 440 | | -/-- Actual radial/torus integration produces smooth slow debt coefficients |
| 441 | | -on the continued neighborhood. -/ |
| 442 | | -theorem pressureMass_smooth {f : Lift → ℝ} (e : SupportedContinuation W f) : |
| 443 | | - ContDiffOn ℝ ∞ (PressureStream.pressureMass e.value) W.carrier := by |
| 444 | | - have hm := PhysicalMeanDomain.liftedPressureMass_contDiffOn W.isOpen e.smooth (W.fixed_support e.supported) |
| 445 | | - have hmap : ContDiffOn ℝ ∞ (fun s : Slow => ((0 : ℝ), (s, (0 : Slow)))) W.carrier := |
| 446 | | - contDiffOn_const.prodMk (contDiffOn_id.prodMk contDiffOn_const) |
| 447 | | - exact hm.comp hmap (fun _ hp => hp) |
| 448 | | - |
| 449 | | -theorem pressureMass_agreement {f : Lift → ℝ} (e : SupportedContinuation W f) : |
| 450 | | - EqOn (PressureStream.pressureMass e.value) (PressureStream.pressureMass f) |
| 451 | | - (W.carrier ∩ positiveSlow) := by |
| 452 | | - intro s hs |
| 453 | | - exact PhysicalMeanDomain.liftedPressureMass_fiberLocal e.value f s (e.agrees.fiber hs.1 hs.2) 0 0 |
| 454 | | - |
| 455 | | -theorem support_on_past {f : Lift → ℝ} (e : SupportedContinuation W f) |
| 456 | | - (hc : 0 < coord) (hc1 : coord < 1) {p : Lift} |
| 457 | | - (hp : p.2.1 ∈ W.carrier) (ht : 0 < p.2.1.1) (hn : f p ≠ 0) : |
| 458 | | - p.1 ∈ Icc (VariableGaugeMean.qLength coord p.2.1 * a) |
| 459 | | - (VariableGaugeMean.qLength coord p.2.1 * b) := by |
| 460 | | - have he := e.agrees ⟨hp, ht⟩ |
| 461 | | - have hs := e.supported p hp (fun hzero => hn (he.symm.trans hzero)) |
| 462 | | - simpa only [stableLength_eq_qLength hc hc1 ht] using hs |
| 463 | | - |
| 464 | 264 | end SupportedContinuation |
| 465 | 265 | |
| 466 | 266 | section ReferenceODE |
| @@ -470,42 +270,6 @@ variable {P Q V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 470 | 270 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 471 | 271 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 472 | 272 | |
| 473 | | -/-- Reparameterize primitive ODE coefficients and forcing, while keeping |
| 474 | | -the native-copy path and its entry point unchanged. -/ |
| 475 | | -noncomputable def pullLinearData (φ : P → Q) (d : CommonCoverSolve.LinearData Q V E) : |
| 476 | | - CommonCoverSolve.LinearData P V E where |
| 477 | | - coefficient := fun p => d.coefficient (φ p.1, p.2) |
| 478 | | - forcingMap := fun p => d.forcingMap (φ p.1, p.2) |
| 479 | | - source := fun p => d.source (φ p.1, p.2) |
| 480 | | - |
| 481 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 482 | | - [CompleteSpace E] in |
| 483 | | -theorem coefficientPath_pull (φ : P → Q) (d : CommonCoverSolve.LinearData Q V E) |
| 484 | | - (g : CommonCoverSolve.Geometry) (k : TorusInverse.Frequency) (p : P × Slow) (a b : ℝ) : |
| 485 | | - (pullLinearData φ d).coefficientPath (a := a) (b := b) g k p = |
| 486 | | - d.coefficientPath g k (φ p.1, p.2) := rfl |
| 487 | | - |
| 488 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 489 | | - [CompleteSpace E] in |
| 490 | | -theorem forcingPath_pull (φ : P → Q) (d : CommonCoverSolve.LinearData Q V E) |
| 491 | | - (g : CommonCoverSolve.Geometry) (k : TorusInverse.Frequency) (p : P × Slow) (a b : ℝ) : |
| 492 | | - (pullLinearData φ d).forcingPath (a := a) (b := b) g k p = |
| 493 | | - d.forcingPath g k (φ p.1, p.2) := rfl |
| 494 | | - |
| 495 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 496 | | -/-- This is the actual Volterra solution operator, including its anchored |
| 497 | | -path. Reparameterization is an equality of definitions. -/ |
| 498 | | -theorem copySolve_pull (φ : P → Q) (d : CommonCoverSolve.LinearData Q V E) |
| 499 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) |
| 500 | | - (k : TorusInverse.Frequency) (p : P × Slow) : |
| 501 | | - (pullLinearData φ d).copySolve g hab k p = d.copySolve g hab k (φ p.1, p.2) := rfl |
| 502 | | - |
| 503 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 504 | | -theorem commonSolve_pull (φ : P → Q) (d : CommonCoverSolve.LinearData Q V E) |
| 505 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) |
| 506 | | - (κ : Slow → ℝ) (p : P × Slow) : |
| 507 | | - (pullLinearData φ d).commonSolve g hab κ p = d.commonSolve g hab κ (φ p.1, p.2) := rfl |
| 508 | | - |
| 509 | 273 | end ReferenceODE |
| 510 | 274 | |
| 511 | 275 | section ContinuedReferenceODE |
| @@ -513,118 +277,10 @@ section ContinuedReferenceODE |
| 513 | 277 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 514 | 278 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 515 | 279 | |
| 516 | | -noncomputable def stableParameter (coord : ℝ) (p : ℝ × Slow) : MeanRankUpdate.ModelPoint := |
| 517 | | - (stableQ coord p.2, (p.1, p.2.2)) |
| 518 | | - |
| 519 | | -noncomputable def physicalParameter (coord : ℝ) (p : ℝ × Slow) : MeanRankUpdate.ModelPoint := |
| 520 | | - (SimilarityCoordinates.coordinateQ coord p.2, (p.1, p.2.2)) |
| 521 | | - |
| 522 | | -noncomputable def continuedReferenceSolve (coord : ℝ) |
| 523 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 524 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) (κ : Slow → ℝ) : Lift → E := |
| 525 | | - fun p => (pullLinearData (stableParameter coord) d).commonSolve g hab κ ((p.1, p.2.1), p.2.2) |
| 526 | | - |
| 527 | | -noncomputable def physicalReferenceSolve (coord : ℝ) |
| 528 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 529 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) (κ : Slow → ℝ) : Lift → E := |
| 530 | | - fun p => (pullLinearData (physicalParameter coord) d).commonSolve g hab κ ((p.1, p.2.1), p.2.2) |
| 531 | | - |
| 532 | | -theorem continuedReferenceSolve_eq (coord : ℝ) |
| 533 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 534 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) (κ : Slow → ℝ) : |
| 535 | | - continuedReferenceSolve coord d g hab κ = d.commonSolve g hab κ ∘ stableModel coord := rfl |
| 536 | | - |
| 537 | | -theorem physicalReferenceSolve_eq (coord : ℝ) |
| 538 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 539 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) (κ : Slow → ℝ) : |
| 540 | | - physicalReferenceSolve coord d g hab κ = d.commonSolve g hab κ ∘ physicalModel coord := rfl |
| 541 | | - |
| 542 | | -/-- The actual sum of localized native Volterra solves continues smoothly |
| 543 | | -from smooth primitive matrix, conversion map, and source models. No |
| 544 | | -regularity assumption is made on a solved amplitude. -/ |
| 545 | | -theorem continuedReferenceSolve_smooth {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 546 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 547 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) |
| 548 | | - (hA : ContDiffOn ℝ ∞ d.coefficient (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 549 | | - (hB : ContDiffOn ℝ ∞ d.forcingMap (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 550 | | - (hf : ContDiffOn ℝ ∞ d.source (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 551 | | - {κ : Slow → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 552 | | - (hsκ : tsupport κ ⊆ univ ×ˢ Ioo a b) : |
| 553 | | - ContDiffOn ℝ ∞ (continuedReferenceSolve coord d g hab κ) |
| 554 | | - (PhysicalMeanDomain.slowDomain (PositiveRepresentatives.stableTarget coord)) := by |
| 555 | | - have hsolve := d.commonSolve_contDiffOn g hab PhysicalCoordinateBounds.positiveTime_isOpen |
| 556 | | - hA hB hf hκ hcκ hsκ |
| 557 | | - exact hsolve.comp (stableModel_contDiffOn hc hc1) |
| 558 | | - (fun _ hp => ⟨stableQ_pos hp, mem_univ _⟩) |
| 559 | | - |
| 560 | | -theorem referenceSolve_agreement {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 561 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 562 | | - (g : CommonCoverSolve.Geometry) {a b : ℝ} (hab : a ≤ b) (κ : Slow → ℝ) (U : Set Slow) : |
| 563 | | - FiberAgreement U (continuedReferenceSolve coord d g hab κ) |
| 564 | | - (physicalReferenceSolve coord d g hab κ) := by |
| 565 | | - intro p hp |
| 566 | | - rw [continuedReferenceSolve_eq, physicalReferenceSolve_eq] |
| 567 | | - simp only [comp_apply, stableModel, physicalModel, stableQ_eq_coordinateQ hc hc1 hp.2] |
| 568 | | - |
| 569 | | -/-- Radial support of the primitive forcing propagates through the |
| 570 | | -zero-entry Volterra solve and the actual sum of its native copies. -/ |
| 571 | | -theorem referenceSolve_model_supported |
| 572 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 573 | | - (g : CommonCoverSolve.Geometry) {s t : ℝ} (hst : s ≤ t) (κ : Slow → ℝ) |
| 574 | | - {a b : ℝ} (hs : ModelSupported a b d.source) : |
| 575 | | - ModelSupported a b (d.commonSolve g hst κ) := by |
| 576 | | - intro y hy hn |
| 577 | | - by_contra hr |
| 578 | | - have hsource : ∀ Y : Slow, d.source (y.1, Y) = 0 := by |
| 579 | | - intro Y |
| 580 | | - by_contra hne |
| 581 | | - exact hr (hs (y.1, Y) hy hne) |
| 582 | | - have hcopy (k : TorusInverse.Frequency) : d.copySolve g hst k y = 0 := |
| 583 | | - d.copySolve_zero_of_source_zero g hst k y.1 y.2 (fun _ _ => hsource _) |
| 584 | | - apply hn |
| 585 | | - simp only [CommonCoverSolve.LinearData.commonSolve, CommonCoverSolve.LinearData.localizedCopy, |
| 586 | | - hcopy, smul_zero, tsum_zero] |
| 587 | | - |
| 588 | | -/-- A real component of an actual reference solve supplies a primitive |
| 589 | | -continuation for the mean calculus. Its smoothness and support are derived |
| 590 | | -from the ODE inputs, not assumed for the solved component. -/ |
| 591 | | -noncomputable def referenceContinuation {coord a b : ℝ} {W : Window coord a b} |
| 592 | | - (hc : 0 < coord) (hc1 : coord < 1) |
| 593 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 594 | | - (g : CommonCoverSolve.Geometry) {s t : ℝ} (hst : s ≤ t) |
| 595 | | - (hA : ContDiffOn ℝ ∞ d.coefficient (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 596 | | - (hB : ContDiffOn ℝ ∞ d.forcingMap (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 597 | | - (hf : ContDiffOn ℝ ∞ d.source (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 598 | | - (hs : ModelSupported a b d.source) |
| 599 | | - {κ : Slow → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 600 | | - (hsκ : tsupport κ ⊆ univ ×ˢ Ioo s t) (L : E →L[ℝ] ℝ) : |
| 601 | | - SupportedContinuation W (fun p => L (physicalReferenceSolve coord d g hst κ p)) := by |
| 602 | | - have hmodel := d.commonSolve_contDiffOn g hst PhysicalCoordinateBounds.positiveTime_isOpen |
| 603 | | - hA hB hf hκ hcκ hsκ |
| 604 | | - have hsmodel := referenceSolve_model_supported d g hst κ hs |
| 605 | | - refine SupportedContinuation.ofModel hc hc1 (fun y => L (d.commonSolve g hst κ y)) ?_ ?_ |
| 606 | | - · exact (L.contDiff.comp_contDiffOn hmodel).mono (fun y hy => ⟨hy, mem_univ _⟩) |
| 607 | | - · intro y hy hn |
| 608 | | - apply hsmodel y hy |
| 609 | | - intro hz |
| 610 | | - exact hn (by simp only [hz, map_zero]) |
| 611 | | - |
| 612 | 280 | end ContinuedReferenceODE |
| 613 | 281 | |
| 614 | 282 | section ContinuedPhase |
| 615 | 283 | |
| 616 | | -/-- The actual periodic-clock phase is continued by the same stable |
| 617 | | -parameter substitution, keeping every clock and native-copy datum fixed. -/ |
| 618 | | -theorem continued_periodic_phase_smooth {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 619 | | - (g : CommonCoverSolve.Geometry) (w : PeriodicPhaseAssembly.ClockWindow) |
| 620 | | - {A B : MeanRankUpdate.ModelPoint → ℝ} |
| 621 | | - (hA : ContDiffOn ℝ ∞ A PhysicalCoordinateBounds.positiveTime) |
| 622 | | - (hB : ContDiffOn ℝ ∞ B PhysicalCoordinateBounds.positiveTime) : |
| 623 | | - ContDiffOn ℝ ∞ (continuedSource coord (PeriodicPhaseAssembly.phase g w.cutoff A B)) |
| 624 | | - (PhysicalMeanDomain.slowDomain (PositiveRepresentatives.stableTarget coord)) := by |
| 625 | | - apply continuedSource_smooth hc hc1 |
| 626 | | - exact (PeriodicPhaseAssembly.phase_contDiffOn g w hA hB).mono (fun y hy => ⟨hy, mem_univ _⟩) |
| 627 | | - |
| 628 | 284 | end ContinuedPhase |
| 629 | 285 | |
| 630 | 286 | section FullReferenceCarrier |
| @@ -632,97 +288,10 @@ section FullReferenceCarrier |
| 632 | 288 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 633 | 289 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 634 | 290 | |
| 635 | | -noncomputable def referenceCarrierModel |
| 636 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 637 | | - (g : CommonCoverSolve.Geometry) {s t : ℝ} (hst : s ≤ t) (κ : Slow → ℝ) |
| 638 | | - (w : PeriodicPhaseAssembly.ClockWindow) (A B : MeanRankUpdate.ModelPoint → ℝ) |
| 639 | | - (frequency : ℝ) (L : E →L[ℝ] ℂ) (y : Model) : ℝ := |
| 640 | | - (HarmonicCalculus.mode frequency (PeriodicPhaseAssembly.phase g w.cutoff A B) |
| 641 | | - (fun z => L (d.commonSolve g hst κ z)) y).re |
| 642 | | - |
| 643 | | -/-- The complete carrier keeps the genuine periodic clock and multiplies |
| 644 | | -the actual reference solve. The phase is not replaced by an unwrapped |
| 645 | | -single-copy expression. -/ |
| 646 | | -theorem referenceCarrier_physical_formula (coord : ℝ) |
| 647 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 648 | | - (g : CommonCoverSolve.Geometry) {s t : ℝ} (hst : s ≤ t) (κ : Slow → ℝ) |
| 649 | | - (w : PeriodicPhaseAssembly.ClockWindow) (A B : MeanRankUpdate.ModelPoint → ℝ) |
| 650 | | - (frequency : ℝ) (L : E →L[ℝ] ℂ) (p : Lift) : |
| 651 | | - physicalSource coord (referenceCarrierModel d g hst κ w A B frequency L) p = |
| 652 | | - (L (physicalReferenceSolve coord d g hst κ p) * |
| 653 | | - HarmonicCalculus.carrier frequency |
| 654 | | - (physicalSource coord (PeriodicPhaseAssembly.phase g w.cutoff A B)) p).re := rfl |
| 655 | | - |
| 656 | | -noncomputable def referenceCarrierContinuation {coord a b : ℝ} {W : Window coord a b} |
| 657 | | - (hc : 0 < coord) (hc1 : coord < 1) |
| 658 | | - (d : CommonCoverSolve.LinearData MeanRankUpdate.ModelPoint V E) |
| 659 | | - (g : CommonCoverSolve.Geometry) {s t : ℝ} (hst : s ≤ t) |
| 660 | | - (hM : ContDiffOn ℝ ∞ d.coefficient (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 661 | | - (hL : ContDiffOn ℝ ∞ d.forcingMap (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 662 | | - (hf : ContDiffOn ℝ ∞ d.source (PhysicalCoordinateBounds.positiveTime ×ˢ univ)) |
| 663 | | - (hs : ModelSupported a b d.source) |
| 664 | | - {κ : Slow → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 665 | | - (hsκ : tsupport κ ⊆ univ ×ˢ Ioo s t) |
| 666 | | - (w : PeriodicPhaseAssembly.ClockWindow) (A B : MeanRankUpdate.ModelPoint → ℝ) |
| 667 | | - (hA : ContDiffOn ℝ ∞ A PhysicalCoordinateBounds.positiveTime) |
| 668 | | - (hB : ContDiffOn ℝ ∞ B PhysicalCoordinateBounds.positiveTime) |
| 669 | | - (frequency : ℝ) (L : E →L[ℝ] ℂ) : |
| 670 | | - SupportedContinuation W |
| 671 | | - (physicalSource coord (referenceCarrierModel d g hst κ w A B frequency L)) := by |
| 672 | | - have hsol := d.commonSolve_contDiffOn g hst PhysicalCoordinateBounds.positiveTime_isOpen |
| 673 | | - hM hL hf hκ hcκ hsκ |
| 674 | | - have hphase := PeriodicPhaseAssembly.phase_contDiffOn g w hA hB |
| 675 | | - have hmode := HarmonicCalculus.contDiffOn_mode frequency hphase (L.contDiff.comp_contDiffOn hsol) |
| 676 | | - have hsmodel := referenceSolve_model_supported d g hst κ hs |
| 677 | | - refine SupportedContinuation.ofModel hc hc1 |
| 678 | | - (referenceCarrierModel d g hst κ w A B frequency L) ?_ ?_ |
| 679 | | - · exact (Complex.reCLM.contDiff.comp_contDiffOn hmode).mono (fun y hy => ⟨hy, mem_univ _⟩) |
| 680 | | - · intro y hy hn |
| 681 | | - apply hsmodel y hy |
| 682 | | - intro hz |
| 683 | | - exact hn (by simp only [referenceCarrierModel, HarmonicCalculus.mode, hz, map_zero, |
| 684 | | - zero_mul, Complex.zero_re]) |
| 685 | | - |
| 686 | 291 | end FullReferenceCarrier |
| 687 | 292 | |
| 688 | 293 | section RankModels |
| 689 | 294 | |
| 690 | | -theorem rankAngular_model_supported (coord A B lam a b : ℝ) (hab : a < b) |
| 691 | | - (d : MeanRankUpdate.Debt) : |
| 692 | | - ModelSupported a b (fun y => MeanRankUpdate.angularModel coord A B lam a b d y.1) := by |
| 693 | | - intro y hy hn |
| 694 | | - have hr := MeanRankUpdate.angularIncrement_tsupport lam (MeanRankUpdate.modelAmplitude coord B y.1) |
| 695 | | - a b (MeanRankUpdate.modelVelocity A y.1) (Real.sqrt_pos.mpr hy) hab d (subset_tsupport _ hn) |
| 696 | | - exact ⟨hr.1.le, hr.2.le⟩ |
| 697 | | - |
| 698 | | -theorem rankAxial_model_supported (coord A B lam a b : ℝ) (hab : a < b) |
| 699 | | - (d : MeanRankUpdate.Debt) : |
| 700 | | - ModelSupported a b (fun y => MeanRankUpdate.axialModel coord A B lam a b d y.1) := by |
| 701 | | - intro y hy hn |
| 702 | | - have hr := MeanRankUpdate.desiredAxialIncrement_tsupport lam (MeanRankUpdate.modelAmplitude coord B y.1) |
| 703 | | - a b (MeanRankUpdate.modelVelocity A y.1) (Real.sqrt_pos.mpr hy) hab d (subset_tsupport _ hn) |
| 704 | | - exact ⟨hr.1.le, hr.2.le⟩ |
| 705 | | - |
| 706 | | -/-- The explicit five-row angular kernel supplies its own primitive |
| 707 | | -continuation; its smoothness is not an additional source assumption. -/ |
| 708 | | -noncomputable def rankAngularContinuation {coord a b : ℝ} {W : Window coord a b} |
| 709 | | - (hc : 0 < coord) (hc1 : coord < 1) (A B lam : ℝ) (hB : B ≠ 0) (hab : a < b) |
| 710 | | - (d : MeanRankUpdate.Debt) : |
| 711 | | - SupportedContinuation W (MeanRankUpdate.chartKernel coord (MeanRankUpdate.angularModel coord A B lam a b d)) := by |
| 712 | | - apply SupportedContinuation.ofModel hc hc1 (fun y => MeanRankUpdate.angularModel coord A B lam a b d y.1) |
| 713 | | - · exact (MeanRankUpdate.angularModel_contDiffOn coord A B lam a b hB d).comp |
| 714 | | - contDiffOn_fst (fun _ hy => hy) |
| 715 | | - · exact rankAngular_model_supported coord A B lam a b hab d |
| 716 | | - |
| 717 | | -noncomputable def rankAxialContinuation {coord a b : ℝ} {W : Window coord a b} |
| 718 | | - (hc : 0 < coord) (hc1 : coord < 1) (A B lam : ℝ) (hB : B ≠ 0) (hab : a < b) |
| 719 | | - (d : MeanRankUpdate.Debt) : |
| 720 | | - SupportedContinuation W (MeanRankUpdate.chartKernel coord (MeanRankUpdate.axialModel coord A B lam a b d)) := by |
| 721 | | - apply SupportedContinuation.ofModel hc hc1 (fun y => MeanRankUpdate.axialModel coord A B lam a b d y.1) |
| 722 | | - · exact (MeanRankUpdate.axialModel_contDiffOn coord A B lam a b hB d).comp |
| 723 | | - contDiffOn_fst (fun _ hy => hy) |
| 724 | | - · exact rankAxial_model_supported coord A B lam a b hab d |
| 725 | | - |
| 726 | 295 | end RankModels |
| 727 | 296 | |
| 728 | 297 | section PhysicalFields |
| @@ -746,58 +315,9 @@ noncomputable def physicalDomain (U : Set Slow) : Set SpaceTime := physicalSlow |
| 746 | 315 | theorem physicalDomain_open {U : Set Slow} (hU : IsOpen U) : IsOpen (physicalDomain U) := |
| 747 | 316 | hU.preimage physicalSlow_contDiff.continuous |
| 748 | 317 | |
| 749 | | -theorem radius_pos_of_projection {w : SpaceTime} |
| 750 | | - (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : 0 < AnnularEndpoint.radius w := |
| 751 | | - (norm_pos_iff.mpr hw).trans_le (PolarCharts.norm_le_radius _) |
| 752 | | - |
| 753 | | -theorem radius_contDiffAt {w : SpaceTime} (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : |
| 754 | | - ContDiffAt ℝ ∞ AnnularEndpoint.radius w := by |
| 755 | | - have hs : w.2 0 ^ 2 + w.2 1 ^ 2 ≠ 0 := by |
| 756 | | - intro hz |
| 757 | | - apply hw |
| 758 | | - apply Prod.ext |
| 759 | | - · change w.2 0 = 0 |
| 760 | | - nlinarith [sq_nonneg (w.2 1), sq_nonneg (w.2 0)] |
| 761 | | - · change w.2 1 = 0 |
| 762 | | - nlinarith [sq_nonneg (w.2 1), sq_nonneg (w.2 0)] |
| 763 | | - change ContDiffAt ℝ ∞ (fun z : SpaceTime => Real.sqrt (z.2 0 ^ 2 + z.2 1 ^ 2)) w |
| 764 | | - exact ((((AxisymmetricFields.projection 0).contDiff.comp contDiff_snd).contDiffAt.pow 2).add |
| 765 | | - (((AxisymmetricFields.projection 1).contDiff.comp contDiff_snd).contDiffAt.pow 2)).sqrt hs |
| 766 | | - |
| 767 | | -theorem physicalLift_contDiffAt (h : ℝ) (n : ℕ) {w : SpaceTime} |
| 768 | | - (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : ContDiffAt ℝ ∞ (physicalLift h n) w := |
| 769 | | - (radius_contDiffAt hw).prodMk (physicalSlow_contDiff.contDiffAt.prodMk |
| 770 | | - (PhysicalGraphBounds.contDiffAt_nativeGraph h n hw)) |
| 771 | | - |
| 772 | 318 | noncomputable def physicalScalar (h : ℝ) (n : ℕ) (f : Lift → ℝ) : SpaceTime → ℝ := |
| 773 | 319 | f ∘ physicalLift h n |
| 774 | 320 | |
| 775 | | -theorem physicalScalar_zero_germ (h : ℝ) (n : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 776 | | - {c e : ℝ} {f : Lift → ℝ} (hs : PhysicalMeanDomain.SupportedOn c e U f) |
| 777 | | - {w : SpaceTime} (hw : w ∈ physicalDomain U) (hr : AnnularEndpoint.radius w < c) : |
| 778 | | - physicalScalar h n f =ᶠ[𝓝 w] fun _ => 0 := by |
| 779 | | - filter_upwards [(physicalDomain_open hU).mem_nhds hw, |
| 780 | | - AnnularEndpoint.radius_continuous.continuousAt (gt_mem_nhds hr)] with z hz hzr |
| 781 | | - by_contra hn |
| 782 | | - exact (not_lt_of_ge (hs (physicalLift h n z) hz hn).1) hzr |
| 783 | | - |
| 784 | | -/-- A positive lower radial support bound removes the coordinate singularity |
| 785 | | -on the symmetry axis. No smoothness of the graph at the axis is assumed. -/ |
| 786 | | -theorem physicalScalar_smooth (h : ℝ) (n : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 787 | | - {c e : ℝ} (hc : 0 < c) {f : Lift → ℝ} |
| 788 | | - (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 789 | | - (hs : PhysicalMeanDomain.SupportedOn c e U f) : |
| 790 | | - ContDiffOn ℝ ∞ (physicalScalar h n f) (physicalDomain U) := by |
| 791 | | - intro w hw |
| 792 | | - by_cases ha : PhysicalGraphBounds.radialProjection w = 0 |
| 793 | | - · have hr : AnnularEndpoint.radius w = 0 := by |
| 794 | | - simp only [AnnularEndpoint.radius, ha, PolarCharts.radius, Prod.fst_zero, Prod.snd_zero, |
| 795 | | - zero_pow (by decide : 2 ≠ 0), zero_add, Real.sqrt_zero] |
| 796 | | - exact (contDiffAt_const.congr_of_eventuallyEq |
| 797 | | - (physicalScalar_zero_germ h n hU hs hw (hr ▸ hc))).contDiffWithinAt |
| 798 | | - · exact ((hf.contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hw)).comp w |
| 799 | | - (physicalLift_contDiffAt h n ha)).contDiffWithinAt |
| 800 | | - |
| 801 | 321 | /-- `streamPotential` is already the azimuthal component of the vector |
| 802 | 322 | potential, including its division by the radial variable. -/ |
| 803 | 323 | noncomputable def azimuthalPotential (h : ℝ) (n : ℕ) (f : Lift → ℝ) (w : SpaceTime) : Space := |
| @@ -809,150 +329,12 @@ noncomputable def azimuthalPotential (h : ℝ) (n : ℕ) (f : Lift → ℝ) (w : |
| 809 | 329 | noncomputable def angularField (h : ℝ) (n : ℕ) (f : Lift → ℝ) : SpaceTime → Space := |
| 810 | 330 | azimuthalPotential h n f |
| 811 | 331 | |
| 812 | | -theorem azimuthalPotential_smooth (h : ℝ) (n : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 813 | | - {c e : ℝ} (hc : 0 < c) {f : Lift → ℝ} |
| 814 | | - (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 815 | | - (hs : PhysicalMeanDomain.SupportedOn c e U f) : |
| 816 | | - ContDiffOn ℝ ∞ (azimuthalPotential h n f) (physicalDomain U) := by |
| 817 | | - intro w hw |
| 818 | | - by_cases ha : PhysicalGraphBounds.radialProjection w = 0 |
| 819 | | - · have hr : AnnularEndpoint.radius w = 0 := by |
| 820 | | - simp [AnnularEndpoint.radius, ha, PolarCharts.radius] |
| 821 | | - have he : azimuthalPotential h n f =ᶠ[𝓝 w] fun _ => 0 := by |
| 822 | | - filter_upwards [physicalScalar_zero_germ h n hU hs hw (hr ▸ hc)] with z hz |
| 823 | | - simp only [azimuthalPotential, hz, mul_zero, zero_smul, add_zero] |
| 824 | | - exact (contDiffAt_const.congr_of_eventuallyEq he).contDiffWithinAt |
| 825 | | - · have hR := radius_contDiffAt ha |
| 826 | | - have hRn := (radius_pos_of_projection ha).ne' |
| 827 | | - have hψ := (physicalScalar_smooth h n hU hc hf hs).contDiffAt |
| 828 | | - ((physicalDomain_open hU).mem_nhds hw) |
| 829 | | - have h0 : ContDiffAt ℝ ∞ (fun z : SpaceTime => z.2 0) w := |
| 830 | | - ((AxisymmetricFields.projection 0).contDiff.comp contDiff_snd).contDiffAt |
| 831 | | - have h1 : ContDiffAt ℝ ∞ (fun z : SpaceTime => z.2 1) w := |
| 832 | | - ((AxisymmetricFields.projection 1).contDiff.comp contDiff_snd).contDiffAt |
| 833 | | - exact ((((h1.neg.div hR hRn).mul hψ).smul contDiffAt_const).add |
| 834 | | - (((h0.div hR hRn).mul hψ).smul contDiffAt_const)).contDiffWithinAt |
| 835 | | - |
| 836 | 332 | namespace SupportedContinuation |
| 837 | 333 | |
| 838 | 334 | variable {coord a b : ℝ} {W : Window coord a b} {f : Lift → ℝ} |
| 839 | 335 | |
| 840 | | -noncomputable def physicalExtension (e : SupportedContinuation W f) (h : ℝ) (n : ℕ) |
| 841 | | - {x : Space} (hx : (0, x 2) ∈ W.carrier) : |
| 842 | | - JointResidualLimits.OneSidedExtension (physicalScalar h n f) x where |
| 843 | | - value := physicalScalar h n e.value |
| 844 | | - domain := physicalDomain W.carrier |
| 845 | | - isOpen := physicalDomain_open W.isOpen |
| 846 | | - mem := by simpa only [physicalDomain, mem_preimage, physicalSlow, sub_self] using hx |
| 847 | | - smooth := physicalScalar_smooth h n W.isOpen W.lower_pos e.smooth (W.fixed_support e.supported) |
| 848 | | - agrees := by |
| 849 | | - intro w hw |
| 850 | | - exact e.agrees ⟨hw.1, show 0 < 1 - w.1 from sub_pos.mpr hw.2.1⟩ |
| 851 | | - |
| 852 | | -noncomputable def azimuthalExtension (e : SupportedContinuation W f) (h : ℝ) (n : ℕ) |
| 853 | | - {x : Space} (hx : (0, x 2) ∈ W.carrier) : |
| 854 | | - JointResidualLimits.OneSidedExtension (azimuthalPotential h n f) x where |
| 855 | | - value := azimuthalPotential h n e.value |
| 856 | | - domain := physicalDomain W.carrier |
| 857 | | - isOpen := physicalDomain_open W.isOpen |
| 858 | | - mem := by simpa only [physicalDomain, mem_preimage, physicalSlow, sub_self] using hx |
| 859 | | - smooth := azimuthalPotential_smooth h n W.isOpen W.lower_pos e.smooth (W.fixed_support e.supported) |
| 860 | | - agrees := by |
| 861 | | - intro w hw |
| 862 | | - have he := (e.physicalExtension h n hx).agrees hw |
| 863 | | - change physicalScalar h n e.value w = physicalScalar h n f w at he |
| 864 | | - dsimp only [azimuthalPotential] |
| 865 | | - rw [he] |
| 866 | | - |
| 867 | | -noncomputable def angularExtension (e : SupportedContinuation W f) (h : ℝ) (n : ℕ) |
| 868 | | - {x : Space} (hx : (0, x 2) ∈ W.carrier) : |
| 869 | | - JointResidualLimits.OneSidedExtension (angularField h n f) x := |
| 870 | | - e.azimuthalExtension h n hx |
| 871 | | - |
| 872 | 336 | end SupportedContinuation |
| 873 | 337 | |
| 874 | | -/-- The scalar pressure and the actual azimuthal mean potential (and hence |
| 875 | | -its Cartesian curl) have ambient endpoint extensions from primitive model |
| 876 | | -smoothness and support. No extension of a solved field is an input. -/ |
| 877 | | -theorem mean_model_extensions {h a b d : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 878 | | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (M : ℝ) (v : Slow) (n : ℕ) |
| 879 | | - (F : Model → ℝ) (hF : ContDiffOn ℝ ∞ F modelDomain) (hs : ModelSupported a b F) |
| 880 | | - {x : Space} (hx : x 2 ≠ 0) : |
| 881 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 882 | | - (physicalScalar h n (VariableGaugeMean.meanPressure d a b M hab |
| 883 | | - (VariableGaugeMean.qLength (2 * h)) v (physicalSource (2 * h) F))) x) ∧ |
| 884 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 885 | | - (azimuthalPotential h n (VariableGaugeMean.streamPotential d a b M |
| 886 | | - (VariableGaugeMean.qLength (2 * h)) v (physicalSource (2 * h) F))) x) ∧ |
| 887 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 888 | | - (SpatialCurl.spatialCurl (azimuthalPotential h n (VariableGaugeMean.streamPotential d a b M |
| 889 | | - (VariableGaugeMean.qLength (2 * h)) v (physicalSource (2 * h) F)))) x) := by |
| 890 | | - have hc : 0 < 2 * h := by linarith |
| 891 | | - have hc1 : 2 * h < 1 := by linarith |
| 892 | | - obtain ⟨W, hw⟩ := exists_endpoint_window hc hc1 ha hab hx |
| 893 | | - let e : SupportedContinuation W (physicalSource (2 * h) F) := |
| 894 | | - SupportedContinuation.ofModel hc hc1 F hF hs |
| 895 | | - let ep := (e.pressure hc hc1 ha hab hd M v).physicalExtension h n hw |
| 896 | | - let eA := (e.stream hc hc1 ha hab hd M v).azimuthalExtension h n hw |
| 897 | | - exact ⟨⟨ep⟩, ⟨eA⟩, ⟨AnnularEndpoint.curlExtension eA⟩⟩ |
| 898 | | - |
| 899 | | -/-- The actual temporal inverse is taken before reconstructing its mean |
| 900 | | -stream potential. Its full-fiber continuation comes from the input torus |
| 901 | | -periodicity and the proved inverse construction. -/ |
| 902 | | -theorem temporal_mean_model_extension {h a b d : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 903 | | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (M : ℝ) (v : Slow) (n i : ℕ) |
| 904 | | - (F : Model → ℝ) (hF : ContDiffOn ℝ ∞ F modelDomain) (hs : ModelSupported a b F) |
| 905 | | - (hp : ModelPeriodic F) {x : Space} (hx : x 2 ≠ 0) : |
| 906 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 907 | | - (azimuthalPotential h n (VariableGaugeMean.streamPotential d a b M |
| 908 | | - (VariableGaugeMean.qLength (2 * h)) v |
| 909 | | - (MeanChartCompatibility.temporalAtIndex h n i (physicalSource (2 * h) F)))) x) := by |
| 910 | | - have hc : 0 < 2 * h := by linarith |
| 911 | | - have hc1 : 2 * h < 1 := by linarith |
| 912 | | - obtain ⟨W, hw⟩ := exists_endpoint_window hc hc1 ha hab hx |
| 913 | | - let e : SupportedContinuation W (physicalSource (2 * h) F) := |
| 914 | | - SupportedContinuation.ofModel hc hc1 F hF hs |
| 915 | | - have heper : PhysicalMeanDomain.PeriodicOn W.carrier e.value := continuedSource_periodic hp W.stable |
| 916 | | - exact ⟨((e.temporal h n i heper).stream hc hc1 ha hab hd M v).azimuthalExtension h n hw⟩ |
| 917 | | - |
| 918 | | -theorem mean_models_supported {coord a b d : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 919 | | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (M : ℝ) (v : Slow) |
| 920 | | - (F : Model → ℝ) (hF : ContDiffOn ℝ ∞ F modelDomain) (hs : ModelSupported a b F) : |
| 921 | | - VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) positiveSlow |
| 922 | | - (VariableGaugeMean.meanPressure d a b M hab (VariableGaugeMean.qLength coord) v (physicalSource coord F)) ∧ |
| 923 | | - VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) positiveSlow |
| 924 | | - (VariableGaugeMean.streamPotential d a b M (VariableGaugeMean.qLength coord) v (physicalSource coord F)) := by |
| 925 | | - constructor |
| 926 | | - · intro p hp hn |
| 927 | | - obtain ⟨W, hw⟩ := exists_window_at hc hc1 ha hab |
| 928 | | - (PositiveRepresentatives.positiveTime_mem_stableTarget hc hc1 hp) |
| 929 | | - let e : SupportedContinuation W (physicalSource coord F) := SupportedContinuation.ofModel hc hc1 F hF hs |
| 930 | | - exact (e.pressure hc hc1 ha hab hd M v).support_on_past hc hc1 hw hp hn |
| 931 | | - · intro p hp hn |
| 932 | | - obtain ⟨W, hw⟩ := exists_window_at hc hc1 ha hab |
| 933 | | - (PositiveRepresentatives.positiveTime_mem_stableTarget hc hc1 hp) |
| 934 | | - let e : SupportedContinuation W (physicalSource coord F) := SupportedContinuation.ofModel hc hc1 F hF hs |
| 935 | | - exact (e.stream hc hc1 ha hab hd M v).support_on_past hc hc1 hw hp hn |
| 936 | | - |
| 937 | | -theorem physicalScalar_shrinkingSupport (h : ℝ) (n : ℕ) {a b : ℝ} {f : Lift → ℝ} |
| 938 | | - (hf : VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength (2 * h)) positiveSlow f) : |
| 939 | | - AnnularEndpoint.ShrinkingSupport h b (physicalScalar h n f) := by |
| 940 | | - intro w ht hn |
| 941 | | - have hs := (hf (physicalLift h n w) (show 0 < 1 - w.1 from sub_pos.mpr ht) hn).2 |
| 942 | | - change AnnularEndpoint.radius w ≤ |
| 943 | | - Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2)) * b at hs |
| 944 | | - change AnnularEndpoint.radius w ≤ |
| 945 | | - b * Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2)) |
| 946 | | - simpa only [mul_comm] using hs |
| 947 | | - |
| 948 | | -theorem azimuthalPotential_shrinkingSupport (h : ℝ) (n : ℕ) {a b : ℝ} {f : Lift → ℝ} |
| 949 | | - (hf : VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength (2 * h)) positiveSlow f) : |
| 950 | | - AnnularEndpoint.ShrinkingSupport h b (azimuthalPotential h n f) := by |
| 951 | | - intro w ht hn |
| 952 | | - apply physicalScalar_shrinkingSupport h n hf w ht |
| 953 | | - intro hz |
| 954 | | - exact hn (by simp only [azimuthalPotential, hz, mul_zero, zero_smul, add_zero]) |
| 955 | | - |
| 956 | 338 | end PhysicalFields |
| 957 | 339 | |
| 958 | 340 | section DiagonalCutoffs |
| @@ -1019,65 +401,4 @@ theorem diagonal_extension {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1019 | 401 | |
| 1020 | 402 | end DiagonalCutoffs |
| 1021 | 403 | |
| 1022 | | -/-- All stages of actual moving mean reconstruction can be summed with the |
| 1023 | | -chosen cutoff schedule at a nonzero-axial endpoint. The model assumptions |
| 1024 | | -are on the primitive source of each stage. -/ |
| 1025 | | -theorem mean_diagonal_extensions {h a b d : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1026 | | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1027 | | - (M : ℕ → ℝ) (v : ℕ → Slow) (n : ℕ → ℕ) |
| 1028 | | - (F : ℕ → Model → ℝ) (hF : ∀ j, ContDiffOn ℝ ∞ (F j) modelDomain) |
| 1029 | | - (hs : ∀ j, ModelSupported a b (F j)) {scale : ℕ → ℝ} (hscale : Tendsto scale atTop atTop) |
| 1030 | | - {x : Space} (hx : x 2 ≠ 0) : |
| 1031 | | - let p := fun j => physicalScalar h (n j) (VariableGaugeMean.meanPressure d a b (M j) hab |
| 1032 | | - (VariableGaugeMean.qLength (2 * h)) (v j) (physicalSource (2 * h) (F j))) |
| 1033 | | - let A := fun j => azimuthalPotential h (n j) (VariableGaugeMean.streamPotential d a b (M j) |
| 1034 | | - (VariableGaugeMean.qLength (2 * h)) (v j) (physicalSource (2 * h) (F j))) |
| 1035 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 1036 | | - (SolenoidalDiagonal.potentialSum scale (PhysicalWaveSum.physicalQ h) p) x) ∧ |
| 1037 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 1038 | | - (SolenoidalDiagonal.potentialSum scale (PhysicalWaveSum.physicalQ h) A) x) ∧ |
| 1039 | | - Nonempty (JointResidualLimits.OneSidedExtension |
| 1040 | | - (SolenoidalDiagonal.velocitySum scale (PhysicalWaveSum.physicalQ h) A) x) := by |
| 1041 | | - have he := fun j => mean_model_extensions hh hh1 ha hab hd (M j) (v j) (n j) (F j) (hF j) (hs j) hx |
| 1042 | | - obtain ⟨eA⟩ := diagonal_extension hh hh1 hscale hx (fun j => (he j).2.1) |
| 1043 | | - exact ⟨diagonal_extension hh hh1 hscale hx (fun j => (he j).1), ⟨eA⟩, |
| 1044 | | - ⟨AnnularEndpoint.curlExtension eA⟩⟩ |
| 1045 | | - |
| 1046 | | -/-- Combining the new positive-q continuation with the shrinking-support |
| 1047 | | -argument gives full away-extensions for these actually reconstructed mean |
| 1048 | | -families. The common outer support bound is a conclusion of the primitive |
| 1049 | | -model support, rather than an additional output assumption. -/ |
| 1050 | | -theorem mean_diagonal_awayExtensions {h a b d : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 1051 | | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 1052 | | - (M : ℕ → ℝ) (v : ℕ → Slow) (n : ℕ → ℕ) |
| 1053 | | - (F : ℕ → Model → ℝ) (hF : ∀ j, ContDiffOn ℝ ∞ (F j) modelDomain) |
| 1054 | | - (hs : ∀ j, ModelSupported a b (F j)) {scale : ℕ → ℝ} (hscale : Tendsto scale atTop atTop) : |
| 1055 | | - let p := fun j => physicalScalar h (n j) (VariableGaugeMean.meanPressure d a b (M j) hab |
| 1056 | | - (VariableGaugeMean.qLength (2 * h)) (v j) (physicalSource (2 * h) (F j))) |
| 1057 | | - let A := fun j => azimuthalPotential h (n j) (VariableGaugeMean.streamPotential d a b (M j) |
| 1058 | | - (VariableGaugeMean.qLength (2 * h)) (v j) (physicalSource (2 * h) (F j))) |
| 1059 | | - JointResidualLimits.AwayExtensions (SolenoidalDiagonal.potentialSum scale (PhysicalWaveSum.physicalQ h) p) ∧ |
| 1060 | | - JointResidualLimits.AwayExtensions (SolenoidalDiagonal.potentialSum scale (PhysicalWaveSum.physicalQ h) A) ∧ |
| 1061 | | - JointResidualLimits.AwayExtensions (SolenoidalDiagonal.velocitySum scale (PhysicalWaveSum.physicalQ h) A) := by |
| 1062 | | - have hsup j := mean_models_supported (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) |
| 1063 | | - ha hab hd (M j) (v j) (F j) (hF j) (hs j) |
| 1064 | | - have hps := AnnularEndpoint.ShrinkingSupport.potentialSum |
| 1065 | | - (fun j => physicalScalar_shrinkingSupport h (n j) (hsup j).1) scale (PhysicalWaveSum.physicalQ h) |
| 1066 | | - have hAs := AnnularEndpoint.ShrinkingSupport.potentialSum |
| 1067 | | - (fun j => azimuthalPotential_shrinkingSupport h (n j) (hsup j).2) scale (PhysicalWaveSum.physicalQ h) |
| 1068 | | - have hvs := hAs.spatialCurl hh hh1 |
| 1069 | | - refine ⟨?_, ?_, ?_⟩ |
| 1070 | | - · intro x hx |
| 1071 | | - by_cases hz : x 2 = 0 |
| 1072 | | - · exact hps.oneSidedExtension hh hh1 hx hz |
| 1073 | | - · exact (mean_diagonal_extensions hh hh1 ha hab hd M v n F hF hs hscale hz).1 |
| 1074 | | - · intro x hx |
| 1075 | | - by_cases hz : x 2 = 0 |
| 1076 | | - · exact hAs.oneSidedExtension hh hh1 hx hz |
| 1077 | | - · exact (mean_diagonal_extensions hh hh1 ha hab hd M v n F hF hs hscale hz).2.1 |
| 1078 | | - · intro x hx |
| 1079 | | - by_cases hz : x 2 = 0 |
| 1080 | | - · exact hvs.oneSidedExtension hh hh1 hx hz |
| 1081 | | - · exact (mean_diagonal_extensions hh hh1 ha hab hd M v n F hF hs hscale hz).2.2 |
| 1082 | | - |
| 1083 | 404 | end NavierStokes.OffplaneCorrectionExtensions |