import NavierStokes.ActualSignedControl import NavierStokes.BaseContextAssembly import NavierStokes.CommonBaseContext import NavierStokes.PeriodicPhaseAssembly /-! # Geometry of the actual prepared primary charts The native variables are `(p,(u,v))`, with `p=(R,(Z,T))`. The pulse coordinate is exactly `v/L`, and the common-cover chart uses the chosen slot basis and the actual difference of covering indices. -/ noncomputable section namespace NavierStokes.ActualSignedGeometry open Set Function Filter WeightedClasses PhaseJetBounds PrimaryCopyBounds open scoped ContDiff Topology BigOperators abbrev Slow := PhaseCalculus.Slow abbrev Plane := TorusInverse.Plane abbrev Native := Slow × Plane private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := ENat.natCast_le_of_coe_top_le_withTop le_rfl n /-! ## The positive native annulus and the actual pulse coordinate -/ noncomputable def standardSlowRegion {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : LocalSignedRequest.SlowRegion (2 * h) where carrier := {z | 0 < z.1 ∧ SimilarityCoordinates.coordinateQ (2 * h) z ∈ Ioo (1 / 2 : ℝ) 2} isOpen := by rw [isOpen_iff_mem_nhds] intro z hz have hq := (SimilarityCoordinates.coordinateQ_smooth (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) hz.1).continuousAt exact inter_mem (isOpen_lt continuous_const continuous_fst |>.mem_nhds hz.1) (hq.preimage_mem_nhds (isOpen_Ioo.mem_nhds hz.2)) coord_pos := by linarith coord_lt_one := by linarith qlo := 1 / 2 qhi := 2 qlo_pos := by norm_num time_pos := fun _ hz => hz.1 q_mem := fun _ hz => ⟨hz.2.1.le, hz.2.2.le⟩ section Prepared variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) abbrev Label := PrimaryGeometryAssembly.Index W a.N noncomputable def nativeSlow : PrimaryCopyBounds.JetDomain (Label H v a) Slow where scale L := ChartScales.S (BaseChartJets.cellBand L) carrier L := (PrimaryGeometryAssembly.domain W a.N).carrier L ∩ BaseContextAssembly.slowCarrier W (standardSlowRegion F.data.h_pos F.data.h_lt_half) isOpen L := ((PrimaryGeometryAssembly.domain W a.N).isOpen L).inter (BaseContextAssembly.slowCarrier_open W _) one_le_scale L := (PrimaryGeometryAssembly.domain W a.N).one_le_scale L growth L p := (BaseContextAssembly.nativeStrip W (standardSlowRegion F.data.h_pos F.data.h_lt_half)).growth (BaseChartJets.cellBand L) (BaseContextAssembly.insertSlow p) scale_le_growth L p _ := by exact (le_max_right 1 (ChartScales.S (BaseChartJets.cellBand L))).trans ((BaseContextAssembly.nativeStrip W _).slow_le_growth _ _) noncomputable def nativeDomain : PrimaryCopyBounds.JetDomain (Label H v a) Native where scale L := ChartScales.S (BaseChartJets.cellBand L) carrier L := (nativeSlow H v a).carrier L ×ˢ (Ioo (-r0) r0 ×ˢ Ioo 0 (ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L))) isOpen L := ((nativeSlow H v a).isOpen L).prod (isOpen_Ioo.prod isOpen_Ioo) one_le_scale L := (nativeSlow H v a).one_le_scale L growth L x := (nativeSlow H v a).growth L x.1 scale_le_growth L x hx := (nativeSlow H v a).scale_le_growth L x.1 hx.1 noncomputable def pulseCoordinates (L : Label H v a) (x : Native) : Slow × ℝ := (x.1, x.2.2 / ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L)) theorem nativeSlow_positive (L : Label H v a) {p : Slow} (hp : p ∈ (nativeSlow H v a).carrier L) : p ∈ PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W) := by have hs := (BaseContextAssembly.nativeStrip_mem W _ _).mp hp.2 have ht : 0 < p.2.2 := hs.1.1 have hq : SimilarityHomogeneity.chartQ F.data.h p ∈ Icc (1 / 2 : ℝ) 2 := ⟨hs.1.2.1.le, hs.1.2.2.le⟩ have hspec := SimilarityCoordinates.coordinateQ_spec (by linarith [F.data.h_pos] : 0 < 2 * F.data.h) (by linarith [F.data.h_lt_half] : 2 * F.data.h < 1) (p := (p.2.2, p.2.1)) ht have hactive := (BaseContextAssembly.nativeStrip_active W _ hp.2).1 refine ⟨subset_closure ?_, ht⟩ refine ⟨(BaseContextAssembly.nativeStrip_radius W _ hp.2).le, ht.le, SimilarityHomogeneity.chartQ F.data.h p, hq, hspec.2, ?_⟩ have he := And.intro hactive.1.le hactive.2.le simp only [BaseChartJets.normalizedCoordinates_eq, SimilarityHomogeneity.chartX, SimilarityCoordinates.coordinateX, BaseContextAssembly.slowCoordinates_insert, div_div] at he exact he theorem pulseCoordinates_jets (hr0 : 0 < r0) : PolynomialJets (nativeDomain H v a).toDomain (pulseCoordinates H v a) := by have hslow : PolynomialJets (nativeDomain H v a).toDomain (fun _ (x : Native) => x.1) := by have hp := PolynomialJets.affine (D := (nativeDomain H v a).toDomain) (ContinuousLinearMap.fst ℝ Slow Plane) (fun _ => 0) (BaseContextAssembly.one_le_geometryBound W (standardSlowRegion F.data.h_pos F.data.h_lt_half)) (m := 0) ?_ · simp only [add_zero] at hp exact hp intro L x hx simpa only [pow_zero, mul_one, add_zero, ContinuousLinearMap.coe_fst'] using (BaseContextAssembly.native_geometry W (standardSlowRegion F.data.h_pos F.data.h_lt_half) (Label H v a)).bounded L x.1 hx.1.2 have hv : PolynomialJets (nativeDomain H v a).toDomain (fun _ (x : Native) => x.2.2) := by have hp := PolynomialJets.affine (D := (nativeDomain H v a).toDomain) ((ContinuousLinearMap.snd ℝ ℝ ℝ).comp (ContinuousLinearMap.snd ℝ Slow Plane)) (fun _ => 0) (C := max 1 (2 * r0 * ChartScales.Tg)) (m := 1) (le_max_left _ _) ?_ · simpa only [add_zero, ContinuousLinearMap.comp_apply, ContinuousLinearMap.coe_snd'] using hp intro L x hx have hn := (a.large (BaseChartJets.cellBand L) L.property).four_le have hL := (ChartScales.slotLength_bounds r0 F.data.h hr0.le F.data.h_pos.le hn).2 have hxv : |x.2.2| ≤ ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) := by rw [abs_of_pos hx.2.2.1] exact hx.2.2.2.le simp only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.coe_snd', add_zero, Real.norm_eq_abs, pow_one] exact hxv.trans (hL.trans (mul_le_mul_of_nonneg_right (le_max_right _ _) (zero_le_one.trans ((nativeDomain H v a).one_le_scale L)))) have hi : PolynomialJets (nativeDomain H v a).toDomain (fun L _ => (ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L))⁻¹) := by apply PolynomialJets.const_uniform _ a.one_le_M intro L have hn := (a.large (BaseChartJets.cellBand L) L.property).four_le have hL := (ChartScales.slotLength_bounds r0 F.data.h hr0.le F.data.h_pos.le hn).1 have hS := (nativeDomain H v a).one_le_scale L have hlow : 2 * r0 ≤ ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) := by exact (le_mul_of_one_le_right (by positivity) hS).trans hL rw [Real.norm_eq_abs, abs_of_pos (inv_pos.mpr (lt_of_lt_of_le (by positivity) hlow))] simpa only [one_div] using (one_div_le_one_div_of_le (by positivity) hlow).trans a.length_bound unfold pulseCoordinates simp only [div_eq_mul_inv] exact hslow.pair (hv.mul hi) theorem radialDelta_le_edge {r : ℝ} (hr : r ∈ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) (eta : ℝ) : WeightedRadialPrimitive.delta (WeightedRadialPrimitive.logLength (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) (WeightedRadialPrimitive.logPosition (PrimaryTargetBounds.leftRadius W) r) ≤ FinalSlowBase.edgeDistance W (r ^ 2 / 2, eta) := by have ha := PrimaryTargetBounds.leftRadius_pos W have hb := PrimaryTargetBounds.rightRadius_pos W have hr0 := ha.trans hr.1 have hasq : (PrimaryTargetBounds.leftRadius W) ^ 2 / 2 = NominalConeAssembly.activeLeft W := by rw [PrimaryTargetBounds.leftRadius, Real.sq_sqrt (mul_nonneg (by norm_num) (NominalConeAssembly.activeLeft_pos W).le)] ring have hbsq : (PrimaryTargetBounds.rightRadius W) ^ 2 / 2 = NominalConeAssembly.activeRight W := by rw [PrimaryTargetBounds.rightRadius, Real.sq_sqrt (mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos W).le)] ring have halog := PrimaryTargetBounds.log_square_half ha have hblog := PrimaryTargetBounds.log_square_half hb rw [hasq] at halog rw [hbsq] at hblog have hl : Real.log (r ^ 2 / 2) - FinalSlowBase.logLeft W = 2 * WeightedRadialPrimitive.logPosition (PrimaryTargetBounds.leftRadius W) r := by rw [FinalSlowBase.logLeft, WeightedRadialPrimitive.logPosition, Real.log_div hr0.ne' ha.ne', PrimaryTargetBounds.log_square_half hr0, halog] ring have hu : FinalSlowBase.logRight W - Real.log (r ^ 2 / 2) = 2 * (WeightedRadialPrimitive.logLength (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) - WeightedRadialPrimitive.logPosition (PrimaryTargetBounds.leftRadius W) r) := by rw [FinalSlowBase.logRight, WeightedRadialPrimitive.logLength, WeightedRadialPrimitive.logPosition, Real.log_div hb.ne' ha.ne', Real.log_div hr0.ne' ha.ne', PrimaryTargetBounds.log_square_half hr0, hblog] ring have hp := WeightedRadialPrimitive.logPosition_mem ha hr change min 1 (min _ _) ≤ min 1 (min _ _) rw [hl, hu] exact min_le_min le_rfl (min_le_min (by linarith [hp.1]) (by linarith [hp.2])) theorem nativeSlow_inverse_edge (L : Label H v a) {p : Slow} (hp : p ∈ (nativeSlow H v a).carrier L) : (FinalSlowBase.edgeDistance W (BaseChartJets.normalizedCoordinates F.data.h p).2)⁻¹ ≤ (nativeSlow H v a).growth L p := by let st := BaseContextAssembly.nativeStrip W (standardSlowRegion F.data.h_pos F.data.h_lt_half) have hm := (BaseContextAssembly.nativeStrip_mem W _ _).mp hp.2 have ht : 0 < p.2.2 := hm.1.1 have hδ := st.delta_pos _ hp.2 have hle := radialDelta_le_edge (W := W) hm.2 (BaseChartJets.normalizedCoordinates F.data.h p).2.2 simp only [BaseContextAssembly.slowCoordinates_insert] at hle rw [PrimaryTargetBounds.profileRadius_sq (F := F) ht] at hle have heq : PrimaryTargetBounds.profileRadius F.data.h p = (LocalSignedRequest.profileMap (2 * F.data.h) (BaseContextAssembly.insertSlow p)).1 := by unfold PrimaryTargetBounds.profileRadius rw [BaseChartJets.normalizedCoordinates_eq] rfl rw [heq] at hle have hi : (FinalSlowBase.edgeDistance W (BaseChartJets.normalizedCoordinates F.data.h p).2)⁻¹ ≤ (st.delta (BaseContextAssembly.insertSlow p))⁻¹ := by simpa only [one_div] using one_div_le_one_div_of_le hδ hle exact hi.trans ((le_max_right 1 _).trans (le_mul_of_one_le_left (le_trans zero_le_one (le_max_left 1 _)) (st.one_le_slow _))) /-- This is the native chart of the supplied prepared family. All its coordinate, growth, annular and positive-reference fields are proved. -/ noncomputable def preparedChart (hr0 : 0 < r0) : ActualSignedControl.PreparedChart H v a Native where native := nativeDomain H v a slow := nativeSlow H v a coordinate := pulseCoordinates H v a scale _ := rfl coordinate_jets := pulseCoordinates_jets H v a hr0 maps L x hx := by have hL : 0 < ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) := div_pos (mul_pos (by norm_num) hr0) (ChartScales.timeCoefficient_pos _ _) exact ⟨hx.1.1, div_pos hx.2.2.1 hL, (div_lt_one hL).mpr hx.2.2.2⟩ positive L x hx := nativeSlow_positive H v a L hx.1 slow_maps _ _ hx := hx.1 slow_growth _ _ _ := le_rfl radiusLower := BaseContextAssembly.geometryRadius W (standardSlowRegion F.data.h_pos F.data.h_lt_half) normUpper := BaseContextAssembly.geometryBound W (standardSlowRegion F.data.h_pos F.data.h_lt_half) qLower := (1 / 2) / 2 qUpper := BaseContextAssembly.geometryUpper (standardSlowRegion F.data.h_pos F.data.h_lt_half) radius_pos := BaseContextAssembly.geometryRadius_pos W _ q_pos := by norm_num geometry := by have g := BaseContextAssembly.native_geometry W (standardSlowRegion F.data.h_pos F.data.h_lt_half) (Label H v a) exact ⟨fun L p hp => g.time L p hp.2, fun L p hp => g.radius L p hp.2, fun L p hp => g.bounded L p hp.2, fun L p hp => g.q_range L p hp.2, fun L p hp => g.x_range L p hp.2⟩ inverse_edge L p hp := nativeSlow_inverse_edge H v a L hp @[simp] theorem preparedChart_coordinate (hr0 : 0 < r0) (L : Label H v a) (x : Native) : (preparedChart H v a hr0).coordinate L x = (x.1, x.2.2 / (PrimaryGeometryAssembly.construction H v a hr0 0).L L) := rfl end Prepared /-! ## Uniform comparisons on the actual four-level window -/ noncomputable def powerBound (exponent : ℝ) : ℝ := (2 : ℝ) ^ (4 * |exponent|) theorem powerBound_one (exponent : ℝ) : 1 ≤ powerBound exponent := Real.one_le_rpow (by norm_num) (mul_nonneg (by norm_num) (abs_nonneg _)) theorem dyadic_ratioPower (n m : ℕ) (exponent : ℝ) : PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent = (2 : ℝ) ^ (((m : ℝ) - (n : ℝ)) * exponent) := by unfold PhysicalParticularWave.ratioPower ChartScales.Q SlotColoring.dyadicQ rw [← Real.rpow_mul (by norm_num : (0 : ℝ) ≤ 2), ← Real.rpow_mul (by norm_num : (0 : ℝ) ≤ 2), ← Real.rpow_sub (by norm_num : (0 : ℝ) < 2)] congr 1 ring theorem dyadic_ratioPower_le {n m : ℕ} (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) (exponent : ℝ) : PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent ≤ powerBound exponent := by rw [dyadic_ratioPower] apply Real.rpow_le_rpow_of_exponent_le (by norm_num) have hd : |(m : ℝ) - (n : ℝ)| ≤ 4 := by have h1 : (n : ℝ) ≤ (m : ℝ) + 4 := by exact_mod_cast hnm have h2 : (m : ℝ) ≤ (n : ℝ) + 4 := by exact_mod_cast hmn rw [abs_le] constructor <;> linarith calc _ ≤ |((m : ℝ) - (n : ℝ)) * exponent| := le_abs_self _ _ = |(m : ℝ) - (n : ℝ)| * |exponent| := abs_mul _ _ _ ≤ _ := mul_le_mul_of_nonneg_right hd (abs_nonneg _) theorem dyadic_ratioPower_lower {n m : ℕ} (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) (exponent : ℝ) : 1 / powerBound exponent ≤ PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent := by have h := dyadic_ratioPower_le hmn hnm exponent have hp := PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos m) (ChartScales.Q_pos n) exponent have hb : 0 < powerBound exponent := zero_lt_one.trans_le (powerBound_one _) have he : PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent * PhysicalParticularWave.ratioPower (ChartScales.Q m) (ChartScales.Q n) exponent = 1 := by unfold PhysicalParticularWave.ratioPower field_simp [(Real.rpow_pos_of_pos (ChartScales.Q_pos n) exponent).ne', (Real.rpow_pos_of_pos (ChartScales.Q_pos m) exponent).ne'] apply (div_le_iff₀ hb).mpr calc 1 = PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent * PhysicalParticularWave.ratioPower (ChartScales.Q m) (ChartScales.Q n) exponent := he.symm _ ≤ _ := mul_le_mul_of_nonneg_left h (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) exponent).le theorem S_window_le {n m : ℕ} (hn : 1 ≤ n) (hmn : m ≤ n + 4) : ChartScales.S m ≤ 25 * ChartScales.S n := by have hm : (m : ℝ) ≤ 5 * (n : ℝ) := by exact_mod_cast (show m ≤ 5 * n by omega) have h0 : (0 : ℝ) ≤ m := Nat.cast_nonneg _ have hn0 : (0 : ℝ) ≤ n := Nat.cast_nonneg _ unfold ChartScales.S nlinarith [sq_nonneg (5 * (n : ℝ) - m)] theorem sqrt_S_window {n m : ℕ} (hn : 1 ≤ n) (hm : 1 ≤ m) (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) : 1 / 5 ≤ Real.sqrt (ChartScales.S n) / Real.sqrt (ChartScales.S m) ∧ Real.sqrt (ChartScales.S n) / Real.sqrt (ChartScales.S m) ≤ 5 := by have hn0 : (0 : ℝ) < n := by exact_mod_cast (show 0 < n by omega) have hm0 : (0 : ℝ) < m := by exact_mod_cast (show 0 < m by omega) have hn5 : (n : ℝ) ≤ 5 * (m : ℝ) := by exact_mod_cast (show n ≤ 5 * m by omega) have hm5 : (m : ℝ) ≤ 5 * (n : ℝ) := by exact_mod_cast (show m ≤ 5 * n by omega) simp only [ChartScales.S, Real.sqrt_sq (le_of_lt hn0), Real.sqrt_sq (le_of_lt hm0)] exact ⟨(le_div_iff₀ hm0).mpr (by linarith), (div_le_iff₀ hm0).mpr hn5⟩ theorem common_native_gap {h : ℝ} (hh : 0 ≤ h) {index : ℕ → ℕ} {budget : ℕ} (hi : CommonBaseContext.IndexBounds h index budget) {n m : ℕ} (hn : 1 ≤ n) (hm : 1 ≤ m) (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) : ChartScales.nativeIndex h m - index n ≤ budget + SlotColoring.nativeGap h := by have hg := (SlotColoring.nativeIndex_gap h hh hn hm hnm hmn).2 have hb := hi.gap_le n have he := hi.le_native n dsimp only [ChartScales.nativeIndex] at * omega section Scales variable {Λ : Type} (chart : ℕ → ℕ) (reference : Λ → ℕ → ℕ) (hnear : ∀ l n, chart n ≤ reference l n + 4 ∧ reference l n ≤ chart n + 4) noncomputable def bandPowerScale (exponent : ℝ) : ActualSignedControl.PositiveScale Λ where value l n := PhysicalParticularWave.ratioPower (ChartScales.Q (chart n)) (ChartScales.Q (reference l n)) exponent lower := 1 / powerBound exponent upper := powerBound exponent lower_pos := div_pos zero_lt_one (zero_lt_one.trans_le (powerBound_one _)) upper_one := powerBound_one _ bounds l n := ⟨dyadic_ratioPower_lower (hnear l n).1 (hnear l n).2 _, dyadic_ratioPower_le (hnear l n).1 (hnear l n).2 _⟩ noncomputable def velocityScale (h : ℝ) : ActualSignedControl.PositiveScale Λ := bandPowerScale chart reference hnear (CoordinateAlgebra.A h) noncomputable def clockScale (h : ℝ) : ActualSignedControl.PositiveScale Λ := bandPowerScale chart reference hnear (CoordinateAlgebra.A h + 1 / 2) @[simp] theorem velocityScale_value (h : ℝ) (l : Λ) (n : ℕ) : (velocityScale chart reference hnear h).value l n = PhysicalParticularWave.velocityWeight h (ChartScales.Q (chart n)) (ChartScales.Q (reference l n)) := rfl @[simp] theorem clockScale_value (h : ℝ) (l : Λ) (n : ℕ) : (clockScale chart reference hnear h).value l n = PhysicalParticularWave.clockWeight h (ChartScales.Q (chart n)) (ChartScales.Q (reference l n)) := rfl end Scales /-! ## The selected slot, including the periodic clock's padding -/ section Slots variable {D h : ℝ} {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem D h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) noncomputable def slotGeometry (l : SlotColoring.Label) (gap : ℕ) : CommonCoverSolve.Geometry := CommonCoverClass.bandGeometry (TorusAverages.slotChart vr vt hdet) h l.1 gap (PartitionedCovariance.slotCenter h l - sys.radius • vt) noncomputable def clockWindow (m : ℕ) : PeriodicPhaseAssembly.ClockWindow where lower := (-sys.radius, 0) upper := (sys.radius, ChartScales.slotLength sys.radius h m) padding := min sys.radius (ChartScales.slotLength sys.radius h m) / 16 padding_pos := div_pos (lt_min sys.radius_pos (div_pos (mul_pos (by norm_num) sys.radius_pos) (ChartScales.timeCoefficient_pos h m))) (by norm_num) theorem slotGeometry_basis (l : SlotColoring.Label) (gap : ℕ) (z : Plane) : (slotGeometry sys hdet l gap).basis z = z.1 • vr + (ChartScales.timeCoefficient h l.1 * z.2) • vt := by rw [slotGeometry, CommonCoverClass.bandGeometry, CommonCoverClass.scaledBasis_apply, TorusAverages.slotChart_apply] theorem clock_outer_in_slot (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (gap : ℕ) : (fun z => (slotGeometry sys hdet l gap).center + (slotGeometry sys hdet l gap).basis z) '' (clockWindow sys l.1).outer ⊆ PartitionedCovariance.slotSet h sys.radius vr vt l := by rintro _ ⟨z, hz, rfl⟩ have hr := sys.radius_pos have hci := ChartScales.timeCoefficient_pos h l.1 have hci1 : ChartScales.timeCoefficient h l.1 ≤ 1 := ((ChartScales.timeCoefficient_bounds h hh hl).2).trans ((div_le_one (ChartScales.S_pos (by omega))).mpr (PhysicalGraphBounds.S_ge_one (by omega))) have hpad0 := (clockWindow sys l.1).padding_pos have hpad : (clockWindow sys l.1).padding ≤ sys.radius / 16 := div_le_div_of_nonneg_right (min_le_left _ _) (by norm_num) have hz1 : |z.1| ≤ 2 * sys.radius := by have he : -sys.radius - 2 * (clockWindow sys l.1).padding ≤ z.1 ∧ z.1 ≤ sys.radius + 2 * (clockWindow sys l.1).padding := hz.1 exact abs_le.mpr ⟨by linarith [he.1], by linarith [he.2]⟩ have hprodpad : ChartScales.timeCoefficient h l.1 * (clockWindow sys l.1).padding ≤ sys.radius / 16 := (mul_le_of_le_one_left hpad0.le hci1).trans hpad have htime : ChartScales.timeCoefficient h l.1 * ChartScales.slotLength sys.radius h l.1 = 2 * sys.radius := by unfold ChartScales.slotLength field_simp have hz2 : |ChartScales.timeCoefficient h l.1 * z.2 - sys.radius| ≤ 2 * sys.radius := by have he : -(2 * (clockWindow sys l.1).padding) ≤ z.2 ∧ z.2 ≤ ChartScales.slotLength sys.radius h l.1 + 2 * (clockWindow sys l.1).padding := by have he := hz.2 simp only [clockWindow, zero_sub] at he exact he have hlo := mul_le_mul_of_nonneg_left he.1 hci.le have hhi := mul_le_mul_of_nonneg_left he.2 hci.le exact abs_le.mpr ⟨by nlinarith, by nlinarith⟩ refine ⟨z.1, ChartScales.timeCoefficient h l.1 * z.2 - sys.radius, hz1, hz2, ?_⟩ dsimp only rw [slotGeometry_basis] change PartitionedCovariance.slotCenter h l - sys.radius • vt + (z.1 • vr + (ChartScales.timeCoefficient h l.1 * z.2) • vt) = _ rw [sub_smul] abel theorem clockWindow_injective (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (gap : ℕ) : InjOn TorusAverages.quotientPoint ((fun z => (slotGeometry sys hdet l gap).center + (slotGeometry sys hdet l gap).basis z) '' (clockWindow sys l.1).outer) := (sys.injective l).mono (clock_outer_in_slot sys hdet hh hl gap) theorem slotGeometry_separated (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (gap : ℕ) : WaveEnvelopeTransport.Separated (slotGeometry sys hdet l gap) sys.radius (ChartScales.slotLength sys.radius h l.1) := by apply (clockWindow_injective sys hdet hh hl gap).mono rintro _ ⟨z, hz, rfl⟩ exact ⟨z, (clockWindow sys l.1).core_subset_outer hz, rfl⟩ theorem slotGeometry_argumentCost (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) {gap budget : ℕ} (hg : gap ≤ budget) : CommonCoverClass.argumentCost (slotGeometry sys hdet l gap) ≤ CommonCoverClass.bandArgumentCost (TorusAverages.slotChart vr vt hdet) budget * ChartScales.S l.1 := CommonCoverClass.bandGeometry_argumentCost_le _ hh hl hg _ theorem slotGeometry_common_cost (hh : 0 ≤ h) {index : ℕ → ℕ} {budget : ℕ} (hi : CommonBaseContext.IndexBounds h index budget) {n : ℕ} {l : SlotColoring.Label} (hn : 1 ≤ n) (hl : 4 ≤ l.1) (hnl : n ≤ l.1 + 4) (hln : l.1 ≤ n + 4) : CommonCoverClass.argumentCost (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)) ≤ (25 * CommonCoverClass.bandArgumentCost (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap h)) * ChartScales.S n := by refine (slotGeometry_argumentCost sys hdet hh hl (common_native_gap hh hi hn (by omega) hnl hln)).trans ?_ have hc := CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap h) have he := mul_le_mul_of_nonneg_left (S_window_le hn hln) (zero_le_one.trans hc) nlinarith end Slots /-! ## The exact physical change of slow variables and the copy affine map -/ noncomputable def slowChange (h Q Qr : ℝ) : Slow →L[ℝ] Slow := (PhysicalParticularWave.ratioPower Q Qr (1 / 2) • ContinuousLinearMap.fst ℝ ℝ Plane).prod (((PhysicalParticularWave.ratioPower Q Qr (CoordinateAlgebra.D h) • ContinuousLinearMap.fst ℝ ℝ ℝ).prod (PhysicalParticularWave.ratioPower Q Qr 1 • ContinuousLinearMap.snd ℝ ℝ ℝ)).comp (ContinuousLinearMap.snd ℝ ℝ Plane)) @[simp] theorem slowChange_apply (h Q Qr : ℝ) (p : Slow) : slowChange h Q Qr p = (PhysicalParticularWave.ratioPower Q Qr (1 / 2) * p.1, (PhysicalParticularWave.ratioPower Q Qr (CoordinateAlgebra.D h) * p.2.1, PhysicalParticularWave.ratioPower Q Qr 1 * p.2.2)) := rfl theorem slowChange_eq_transition {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (h : ℝ) : ⇑(slowChange h Q Qr) = SimilarityHomogeneity.chartTransition h Q Qr := by funext p simp only [slowChange_apply, SimilarityHomogeneity.chartTransition, PhysicalParticularWave.ratioPower, Real.div_rpow hQ.le hQr.le, Real.rpow_one] theorem slowChange_time {h Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) {p : Slow} (ht : 0 < p.2.2) : 0 < (slowChange h Q Qr p).2.2 := mul_pos (PhysicalParticularWave.ratioPower_pos hQ hQr _) ht theorem slowChange_radius {h Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) {p : Slow} (hr : 0 < p.1) : 0 < (slowChange h Q Qr p).1 := mul_pos (PhysicalParticularWave.ratioPower_pos hQ hQr _) hr theorem normalized_inner_slowChange {F : OutgoingProfile.Profile} {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) {p : Slow} (ht : 0 < p.2.2) : (BaseChartJets.normalizedCoordinates F.data.h (slowChange F.data.h Q Qr p)).2 = (BaseChartJets.normalizedCoordinates F.data.h p).2 := by rw [slowChange_eq_transition hQ hQr, BaseChartJets.normalizedCoordinates_eq, BaseChartJets.normalizedCoordinates_eq] exact SimilarityHomogeneity.chartInner_transition F.data.h_pos F.data.h_lt_half hQ hQr ht theorem profileRadius_slowChange {F : OutgoingProfile.Profile} {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) {p : Slow} (ht : 0 < p.2.2) (hr : 0 < p.1) : PrimaryTargetBounds.profileRadius F.data.h (slowChange F.data.h Q Qr p) = PrimaryTargetBounds.profileRadius F.data.h p := by have htp := slowChange_time (h := F.data.h) hQ hQr ht have hrp := slowChange_radius (h := F.data.h) hQ hQr hr have hp := PrimaryTargetBounds.profileRadius_pos (F := F) ht hr have hp' := PrimaryTargetBounds.profileRadius_pos (F := F) htp hrp have he := congrArg Prod.fst (normalized_inner_slowChange (F := F) hQ hQr ht) rw [← PrimaryTargetBounds.profileRadius_sq (F := F) htp, ← PrimaryTargetBounds.profileRadius_sq (F := F) ht] at he nlinarith theorem movingWeight_slowChange {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) {p : Slow} (ht : 0 < p.2.2) (hr : 0 < p.1) : PrimaryTargetBounds.movingWeight W (slowChange F.data.h Q Qr p) = PrimaryTargetBounds.movingWeight W p := by unfold PrimaryTargetBounds.movingWeight rw [profileRadius_slowChange hQ hQr ht hr] noncomputable def slowChangeCost (h : ℝ) : ℝ := 1 + powerBound (1 / 2) + powerBound (CoordinateAlgebra.D h) + powerBound 1 theorem slowChangeCost_one (h : ℝ) : 1 ≤ slowChangeCost h := by unfold slowChangeCost linarith [powerBound_one (1 / 2), powerBound_one (CoordinateAlgebra.D h), powerBound_one 1] theorem norm_slowChange_le (h : ℝ) {n m : ℕ} (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) : ‖slowChange h (ChartScales.Q n) (ChartScales.Q m)‖ ≤ slowChangeCost h := by apply ContinuousLinearMap.opNorm_le_bound _ (zero_le_one.trans (slowChangeCost_one _)) intro p have hc (exponent : ℝ) : |PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent| ≤ powerBound exponent := by rw [abs_of_pos (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos _) (ChartScales.Q_pos _) _)] exact dyadic_ratioPower_le hnm hmn _ have hb (exponent : ℝ) (hcost : powerBound exponent ≤ slowChangeCost h) (y : ℝ) (hy : ‖y‖ ≤ ‖p‖) : ‖PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) exponent * y‖ ≤ slowChangeCost h * ‖p‖ := by rw [norm_mul, Real.norm_eq_abs] exact mul_le_mul ((hc exponent).trans hcost) hy (norm_nonneg _) (zero_le_one.trans (slowChangeCost_one _)) change max ‖_‖ (max ‖_‖ ‖_‖) ≤ _ have h1 := powerBound_one (1 / 2) have h2 := powerBound_one (CoordinateAlgebra.D h) have h3 := powerBound_one 1 refine max_le (hb (1 / 2) (by unfold slowChangeCost; linarith) p.1 (norm_fst_le p)) ?_ exact max_le (hb (CoordinateAlgebra.D h) (by unfold slowChangeCost; linarith) p.2.1 ((norm_fst_le p.2).trans (norm_snd_le p))) (hb 1 (by unfold slowChangeCost; linarith) p.2.2 ((norm_snd_le p.2).trans (norm_snd_le p))) noncomputable def meanEquiv : Native ≃ₗᵢ[ℝ] LocalSignedRequest.Point := (ParticularWaveBounds.liftAssoc Plane).symm.trans PhysicalResidualTZ.swapSlow @[simp] theorem meanEquiv_apply (x : Native) : meanEquiv x = (x.1.1, ((x.1.2.2, x.1.2.1), x.2)) := rfl noncomputable def viewStrip {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (chart : ℕ → ℕ) : StripData Native := ParticularWaveBounds.reindexStrip meanEquiv (UniformPrimaryWeights.reindexedStrip (BaseContextAssembly.nativeStrip W U) (fun n => (chart n, ()))) theorem viewStrip_slow {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (chart : ℕ → ℕ) (n : ℕ) : (viewStrip W U chart).slow n = max 1 (ChartScales.S (chart n)) := rfl theorem viewStrip_mem {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (chart : ℕ → ℕ) (x : Native) : x ∈ (viewStrip W U chart).domain ↔ x.1 ∈ BaseContextAssembly.slowCarrier W U := Iff.rfl theorem viewStrip_zeta {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (chart : ℕ → ℕ) (x : Native) : (viewStrip W U chart).zeta x = PrimaryTargetBounds.movingWeight W x.1 := by change (BaseContextAssembly.nativeStrip W U).zeta (meanEquiv x) = _ exact PrimaryTargetBounds.movingStripData_zeta W U _ _ _ _ _ _ theorem viewStrip_delta {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (chart : ℕ → ℕ) (x : Native) : (viewStrip W U chart).delta x = WeightedRadialPrimitive.delta (WeightedRadialPrimitive.logLength (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) (WeightedRadialPrimitive.logPosition (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.profileRadius F.data.h x.1)) := by unfold PrimaryTargetBounds.profileRadius rw [BaseChartJets.normalizedCoordinates_eq] rfl section CopyMap variable {D h : ℝ} {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem D h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) noncomputable def copyPoint (l : SlotColoring.Label) (chart common : ℕ) (k : TorusInverse.Frequency) (x : Native) : Native := (slowChange h (ChartScales.Q chart) (ChartScales.Q l.1) x.1, (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - common)).coordinates k x.2) noncomputable def copyLinear (l : SlotColoring.Label) (chart common : ℕ) : Native →L[ℝ] Native := (slowChange h (ChartScales.Q chart) (ChartScales.Q l.1)).prodMap (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - common)).coordinateLinear theorem copyPoint_affine (l : SlotColoring.Label) (chart common : ℕ) (k : TorusInverse.Frequency) (x : Native) : copyPoint sys hdet l chart common k x = copyLinear sys hdet l chart common x + copyPoint sys hdet l chart common k 0 := by apply Prod.ext · simp [copyPoint, copyLinear] · change (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - common)).coordinates k x.2 = (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - common)).coordinateLinear x.2 + (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - common)).coordinates k 0 rw [CommonCoverSolve.Geometry.coordinates_eq_affine, add_comm] theorem norm_copyLinear_le (hh : 0 ≤ h) {index : ℕ → ℕ} {budget : ℕ} (hi : CommonBaseContext.IndexBounds h index budget) {n : ℕ} {l : SlotColoring.Label} (hn : 1 ≤ n) (hl : 4 ≤ l.1) (hnl : n ≤ l.1 + 4) (hln : l.1 ≤ n + 4) : ‖copyLinear sys hdet l n (index n)‖ ≤ (slowChangeCost h + 25 * CommonCoverClass.bandArgumentCost (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap h)) * BaseContextAssembly.slowScale n := by have hc := norm_slowChange_le h hnl hln have hg := slotGeometry_common_cost sys hdet hh hi hn hl hnl hln have hd : ‖(slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)).coordinateLinear‖ ≤ CommonCoverClass.argumentCost (slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)) := by unfold CommonCoverClass.argumentCost have hp : 0 ≤ ‖(slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)).pointLinear‖ * (1 + ‖(slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)).coordinateLinear‖) := by positivity linarith have hS : 1 ≤ BaseContextAssembly.slowScale n := BaseContextAssembly.one_le_slowScale _ have hSs : ChartScales.S n ≤ BaseContextAssembly.slowScale n := le_max_right _ _ have hC := CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap h) have hA := slowChangeCost_one h have hSn : 0 ≤ ChartScales.S n := sq_nonneg _ apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) intro x change max ‖slowChange h (ChartScales.Q n) (ChartScales.Q l.1) x.1‖ ‖(slotGeometry sys hdet l (ChartScales.nativeIndex h l.1 - index n)).coordinateLinear x.2‖ ≤ _ apply max_le · calc _ ≤ slowChangeCost h * ‖x‖ := ((slowChange h _ _).le_opNorm _).trans (mul_le_mul hc (norm_fst_le x) (norm_nonneg _) (by linarith)) _ ≤ _ := mul_le_mul_of_nonneg_right (by nlinarith) (norm_nonneg _) · calc _ ≤ (25 * CommonCoverClass.bandArgumentCost (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap h) * ChartScales.S n) * ‖x‖ := ((slotGeometry sys hdet l _).coordinateLinear.le_opNorm _).trans (mul_le_mul (hd.trans hg) (norm_snd_le x) (norm_nonneg _) (by positivity)) _ ≤ _ := mul_le_mul_of_nonneg_right (by nlinarith) (norm_nonneg _) end CopyMap /-! ## The exact coefficient and phase-normal scale factors -/ theorem sqrt_epsilon (h : ℝ) (n : ℕ) : Real.sqrt (ChartScales.epsilon h n) = ChartScales.Q n ^ (h / 2) := by rw [Real.sqrt_eq_rpow, ChartScales.epsilon, ← Real.rpow_mul (ChartScales.Q_pos n).le] congr 1 ring theorem sqrt_epsilon_ratio (h : ℝ) (n m : ℕ) : Real.sqrt (ChartScales.epsilon h m) / Real.sqrt (ChartScales.epsilon h n) = PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) (-(h / 2)) := by rw [sqrt_epsilon, sqrt_epsilon] simpa only [neg_neg] using PhysicalParticularWave.ratioPower_neg_div (ChartScales.Q_pos n) (ChartScales.Q_pos m) (-(h / 2)) noncomputable def roundedCarrier (h : ℝ) (n : ℕ) : ℝ := (ChartScales.carrier h n : ℝ) * Real.sqrt (ChartScales.epsilon h n) theorem roundedCarrier_bounds {h : ℝ} (hh : 0 ≤ h) (n : ℕ) : 1 ≤ roundedCarrier h n ∧ roundedCarrier h n ≤ 2 := by obtain ⟨hl, hu⟩ := Scaling.carrier_frequency_sqrt_bounds (ChartScales.epsilon_pos h n) have hs : Real.sqrt (ChartScales.epsilon h n) ≤ 1 := by simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt (ChartScales.epsilon_le_one h hh n) exact ⟨hl, hu.trans (by linarith)⟩ section PhysicalScales variable {Λ : Type} (chart : ℕ → ℕ) (reference : Λ → ℕ → ℕ) (hnear : ∀ l n, chart n ≤ reference l n + 4 ∧ reference l n ≤ chart n + 4) noncomputable def coefficientScale (h : ℝ) : ActualSignedControl.PositiveScale Λ := (velocityScale chart reference hnear h).mul (bandPowerScale chart reference hnear (-(h / 2))) theorem coefficientScale_value (h : ℝ) (l : Λ) (n : ℕ) : (coefficientScale chart reference hnear h).value l n = PhysicalSignedWave.coefficientScale (ChartScales.epsilon h (chart n)) (ChartScales.epsilon h (reference l n)) (PhysicalParticularWave.velocityWeight h (ChartScales.Q (chart n)) (ChartScales.Q (reference l n))) := by change PhysicalParticularWave.velocityWeight h _ _ * PhysicalParticularWave.ratioPower _ _ (-(h / 2)) = _ rw [← sqrt_epsilon_ratio] unfold PhysicalSignedWave.coefficientScale ring noncomputable def carrierRatioScale {h : ℝ} (hh : 0 ≤ h) : ActualSignedControl.PositiveScale Λ where value l n := roundedCarrier h (reference l n) / roundedCarrier h (chart n) lower := 1 / 2 upper := 2 lower_pos := by norm_num upper_one := by norm_num bounds l n := by have h1 := roundedCarrier_bounds hh (reference l n) have h2 := roundedCarrier_bounds hh (chart n) have hpos : 0 < roundedCarrier h (chart n) := zero_lt_one.trans_le h2.1 exact ⟨(le_div_iff₀ hpos).mpr (by linarith), (div_le_iff₀ hpos).mpr (by linarith)⟩ noncomputable def normalScale {h : ℝ} (hh : 0 ≤ h) : ActualSignedControl.PositiveScale Λ := (carrierRatioScale chart reference hh).mul (bandPowerScale chart reference hnear (h / 2 + 1 / 2)) theorem normalScale_value {h : ℝ} (hh : 0 ≤ h) (l : Λ) (n : ℕ) : (normalScale chart reference hnear hh).value l n = PhysicalParticularWave.normalWeight (ChartScales.Q (chart n)) (ChartScales.Q (reference l n)) (ChartScales.carrier h (chart n)) (ChartScales.carrier h (reference l n)) := by change (roundedCarrier h (reference l n) / roundedCarrier h (chart n)) * PhysicalParticularWave.ratioPower _ _ (h / 2 + 1 / 2) = _ rw [← PhysicalParticularWave.ratioPower_mul (ChartScales.Q_pos _) (ChartScales.Q_pos _)] unfold roundedCarrier PhysicalParticularWave.normalWeight PhysicalParticularWave.ratioPower rw [sqrt_epsilon, sqrt_epsilon] have hn := Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h (chart n)) have hm := Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h (reference l n)) field_simp [(Real.rpow_pos_of_pos (ChartScales.Q_pos (chart n)) (h / 2)).ne', (Real.rpow_pos_of_pos (ChartScales.Q_pos (reference l n)) (h / 2)).ne', (Real.rpow_pos_of_pos (ChartScales.Q_pos (reference l n)) (1 / 2)).ne', (show (ChartScales.carrier h (chart n) : ℝ) ≠ 0 from hn.ne')] end PhysicalScales /-! ## The concrete prepared-copy chart -/ section PreparedCopies variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem (CoordinateAlgebra.D F.data.h) F.data.h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) {Λ : Type} (reference : Λ → ℕ → Label H v a) (chart index : ℕ → ℕ) (sign : Λ → ℕ → Fin 2) noncomputable def copyLabel (l : Λ) (n : ℕ) : SlotColoring.Label := PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label W (reference l n)) (sign l n) noncomputable def phaseCell (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) : Set Native := copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k ⁻¹' (nativeDomain H v a).carrier (reference l n) theorem phaseCell_open (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) : IsOpen (phaseCell H v a sys hdet reference chart index sign l n k) := by apply ((nativeDomain H v a).isOpen (reference l n)).preimage exact ((slowChange F.data.h _ _).continuous.comp continuous_fst).prodMk (((slotGeometry sys hdet _ _).coordinates_contDiff k).continuous.comp continuous_snd) theorem copy_weight_eq (hr0 : 0 < r0) (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) {x : Native} (hx : x ∈ (viewStrip W U chart).domain) : (preparedChart H v a hr0).weight (reference l n) (copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k x) = (viewStrip W U chart).zeta x := by have hp := (viewStrip_mem W U chart x).mp hx have ht := BaseContextAssembly.nativeStrip_time W U hp have hr := BaseContextAssembly.nativeStrip_radius W U hp change PrimaryTargetBounds.movingWeight W (slowChange F.data.h _ _ x.1) = _ rw [movingWeight_slowChange W (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr, viewStrip_zeta] theorem copy_growth_le (hchart : ∀ n, 1 ≤ chart n) (hnear : ∀ l n, chart n ≤ BaseChartJets.cellBand (reference l n) + 4 ∧ BaseChartJets.cellBand (reference l n) ≤ chart n + 4) (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) {x : Native} (hx : x ∈ (viewStrip W U chart).domain) : (nativeDomain H v a).growth (reference l n) (copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k x) ≤ 25 * (viewStrip W U chart).growth n x := by have hp := (viewStrip_mem W U chart x).mp hx have ht := BaseContextAssembly.nativeStrip_time W U hp have hr := BaseContextAssembly.nativeStrip_radius W U hp have he : (BaseContextAssembly.nativeStrip W (standardSlowRegion F.data.h_pos F.data.h_lt_half)).delta (BaseContextAssembly.insertSlow (slowChange F.data.h (ChartScales.Q (chart n)) (ChartScales.Q (BaseChartJets.cellBand (reference l n))) x.1)) = (viewStrip W U chart).delta x := by change (viewStrip W (standardSlowRegion F.data.h_pos F.data.h_lt_half) id).delta (slowChange F.data.h (ChartScales.Q (chart n)) (ChartScales.Q (BaseChartJets.cellBand (reference l n))) x.1, 0) = _ rw [viewStrip_delta, viewStrip_delta, profileRadius_slowChange (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr] have hSn := PhysicalGraphBounds.S_ge_one (hchart n) have hSm := S_window_le (hchart n) (hnear l n).2 have hmax : BaseContextAssembly.slowScale (BaseChartJets.cellBand (reference l n)) ≤ 25 * BaseContextAssembly.slowScale (chart n) := by unfold BaseContextAssembly.slowScale rw [max_eq_right hSn] exact max_le (by linarith) hSm change BaseContextAssembly.slowScale (BaseChartJets.cellBand (reference l n)) * max 1 ((BaseContextAssembly.nativeStrip W _).delta (BaseContextAssembly.insertSlow (slowChange F.data.h (ChartScales.Q (chart n)) (ChartScales.Q (BaseChartJets.cellBand (reference l n))) x.1)))⁻¹ ≤ _ rw [he] exact (mul_le_mul_of_nonneg_right hmax (zero_le_one.trans (le_max_left 1 _))).trans_eq (by change (25 * BaseContextAssembly.slowScale (chart n)) * max 1 ((viewStrip W U chart).delta x)⁻¹ = 25 * (BaseContextAssembly.slowScale (chart n) * max 1 ((viewStrip W U chart).delta x)⁻¹) ring) /-- The copy chart is assembled from the actual dyadic and slot maps. The only indexing restrictions are the active four-level window and the chosen common-cover budget; all analytic comparisons are derived. -/ noncomputable def copyChart (hr0 : 0 < r0) (hchart : ∀ n, 1 ≤ chart n) (hnear : ∀ l n, chart n ≤ BaseChartJets.cellBand (reference l n) + 4 ∧ BaseChartJets.cellBand (reference l n) ≤ chart n + 4) {budget : ℕ} (hi : CommonBaseContext.IndexBounds F.data.h index budget) : ActualSignedControl.CopyChart (viewStrip W U chart) (nativeDomain H v a) (preparedChart H v a hr0).weight (phaseCell H v a sys hdet reference chart index sign) where index := reference linear l n _ := copyLinear sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) shift l n k := copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k 0 maps l n k x hx hi := by rw [← copyPoint_affine] exact hi growthConstant := 25 linearConstant := slowChangeCost F.data.h + 25 * CommonCoverClass.bandArgumentCost (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap F.data.h) growth_one := by norm_num linear_one := by have h1 := slowChangeCost_one F.data.h have h2 := CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) (budget + SlotColoring.nativeGap F.data.h) linarith growthDegree := 1 linearDegree := 1 growth_bound l n k x hx _ := by rw [← copyPoint_affine, pow_one] exact copy_growth_le H v a sys hdet U reference chart index sign hchart hnear l n k hx linear_bound l n _ := by rw [pow_one] exact norm_copyLinear_le sys hdet F.data.h_pos.le hi (hchart n) (a.large _ (reference l n).property).four_le (hnear l n).1 (hnear l n).2 weight_eq l n k x hx _ := by rw [← copyPoint_affine] exact copy_weight_eq H v a sys hdet U reference chart index sign hr0 l n k hx ratioLower := 1 / 5 ratioUpper := 5 ratio_pos := by norm_num ratio_one := by norm_num scale_ratio l n := by change 1 / 5 ≤ Real.sqrt (max 1 (ChartScales.S (chart n))) / Real.sqrt (ChartScales.S (BaseChartJets.cellBand (reference l n))) ∧ Real.sqrt (max 1 (ChartScales.S (chart n))) / Real.sqrt (ChartScales.S (BaseChartJets.cellBand (reference l n))) ≤ 5 rw [max_eq_right (PhysicalGraphBounds.S_ge_one (hchart n))] exact sqrt_S_window (hchart n) (reference l n).val.property.1 (hnear l n).1 (hnear l n).2 theorem copyChart_pull (hr0 : 0 < r0) (hchart : ∀ n, 1 ≤ chart n) (hnear : ∀ l n, chart n ≤ BaseChartJets.cellBand (reference l n) + 4 ∧ BaseChartJets.cellBand (reference l n) ≤ chart n + 4) {budget : ℕ} (hi : CommonBaseContext.IndexBounds F.data.h index budget) {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : Label H v a → Native → E) (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) (x : Native) : (copyChart H v a sys hdet U reference chart index sign hr0 hchart hnear hi).pull f l n k x = f (reference l n) (copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k x) := by change f (reference l n) (copyLinear sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) x + copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k 0) = _ rw [← copyPoint_affine] end PreparedCopies /-! ## Actual periodic phase normals on the native cores -/ abbrev Cylinder := PhysicalResidualBridge.Cylinder noncomputable def radialVector : Plane := TorusInverse.vector .radial noncomputable def temporalVector : Plane := TorusInverse.vector .temporal theorem vectors_det : radialVector.1 * temporalVector.2 - radialVector.2 * temporalVector.1 ≠ 0 := by dsimp [radialVector, temporalVector, TorusInverse.vector] nlinarith [sq_nonneg (Real.sqrt 2 - 1)] noncomputable def slotLinear (g : CommonCoverSolve.Geometry) : Cylinder →L[ℝ] PhaseCalculus.Slot where toFun x := ((x.1.1, x.1.2.1), (x.2, (g.coordinateLinear x.1.2.2).2)) map_add' x y := by ext <;> simp map_smul' c x := by ext <;> simp cont := (continuous_fst.fst.prodMk continuous_fst.snd.fst).prodMk (continuous_snd.prodMk ((g.coordinateLinear.continuous.comp continuous_fst.snd.snd).snd)) noncomputable def slotCoordinates (g : CommonCoverSolve.Geometry) (k : TorusInverse.Frequency) (x : Cylinder) : PhaseCalculus.Slot := ((x.1.1, x.1.2.1), (x.2, (g.coordinates k x.1.2.2).2)) theorem slotCoordinates_affine (g : CommonCoverSolve.Geometry) (k : TorusInverse.Frequency) : slotCoordinates g k = fun x => slotLinear g x + ((0, 0), (0, (g.coordinates k 0).2)) := by funext x apply Prod.ext · simp [slotCoordinates, slotLinear] · apply Prod.ext · simp [slotCoordinates, slotLinear] · change (g.coordinates k x.1.2.2).2 = (g.coordinateLinear x.1.2.2).2 + (g.coordinates k 0).2 rw [g.coordinates_eq_affine] exact add_comm _ _ theorem slotCoordinates_hasFDerivAt (g : CommonCoverSolve.Geometry) (k : TorusInverse.Frequency) (x : Cylinder) : HasFDerivAt (slotCoordinates g k) (slotLinear g) x := by rw [slotCoordinates_affine] exact (slotLinear g).hasFDerivAt.add_const _ section ActualPhase variable {D h : ℝ} (sys : PartitionedCovariance.SlotSystem D h radialVector temporalVector) theorem slot_coordinate_radial (l : SlotColoring.Label) (gap : ℕ) : (slotGeometry sys vectors_det l gap).coordinateLinear radialVector = (ChartScales.Lambda ^ gap, 0) := by let g := slotGeometry sys vectors_det l gap have hb : g.basis (1, 0) = radialVector := by rw [slotGeometry_basis] simp have he : g.basis.symm radialVector = (1, 0) := (g.basis.symm_apply_eq).mpr hb.symm change g.basis.symm (CommonCoverSolve.coverPower gap radialVector) = _ rw [show CommonCoverSolve.coverPower gap radialVector = ChartScales.Lambda ^ gap • radialVector from CommonBaseContext.coverPower_radial gap, map_smul, he] simp theorem slot_coordinates_radial (l : SlotColoring.Label) (gap i : ℕ) (Q : ℝ) (x : Cylinder) : slotLinear (slotGeometry sys vectors_det l gap) ((PhysicalResidualBridge.commonGraph Q h i).radial x) = PhaseCalculus.eR := by change ((1, (0, 0)), (0, ((slotGeometry sys vectors_det l gap).coordinateLinear ((_ * _) • radialVector)).2)) = _ rw [map_smul, slot_coordinate_radial] simp [PhaseCalculus.eR] theorem slot_coordinates_angular (g : CommonCoverSolve.Geometry) (x : Cylinder) : slotLinear g (PhysicalResidualBridge.ScaledGraph.angular x) = PhaseCalculus.eTheta := by change ((0, (0, 0)), (1, (g.coordinateLinear 0).2)) = _ simp [PhaseCalculus.eTheta] theorem slot_coordinates_axial (g : CommonCoverSolve.Geometry) (Q h : ℝ) (i : ℕ) (x : Cylinder) : slotLinear g ((PhysicalResidualBridge.commonGraph Q h i).axial x) = Q ^ h • PhaseCalculus.eZ := by change ((0, (Q ^ h, 0)), (0, (g.coordinateLinear 0).2)) = _ simp [PhaseCalculus.eZ] noncomputable def periodicPhase (l : SlotColoring.Label) (gap : ℕ) (epsilon p pz x0 : ℝ) (F G : Slow → ℝ) (x : Cylinder) : ℝ := PhaseCalculus.phase epsilon p pz x0 F G ((x.1.1, x.1.2.1), (x.2, PeriodicPhaseAssembly.periodicClock (slotGeometry sys vectors_det l gap) (clockWindow sys l.1).cutoff x.1.2.2)) theorem periodicPhase_germ (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (gap : ℕ) (epsilon p pz x0 : ℝ) (F G : Slow → ℝ) (k : TorusInverse.Frequency) {x : Cylinder} (hx : (slotGeometry sys vectors_det l gap).coordinates k x.1.2.2 ∈ (clockWindow sys l.1).core) : periodicPhase sys l gap epsilon p pz x0 F G =ᶠ[𝓝 x] PhaseCalculus.phase epsilon p pz x0 F G ∘ slotCoordinates (slotGeometry sys vectors_det l gap) k := by have he := PeriodicPhaseAssembly.periodicClock_germ (slotGeometry sys vectors_det l gap) (clockWindow sys l.1) (clockWindow_injective sys vectors_det hh hl gap) k (z := ((x.1.1, x.1.2.1), x.1.2.2)) hx have ht : Tendsto (fun y : Cylinder => ((y.1.1, y.1.2.1), y.1.2.2)) (𝓝 x) (𝓝 ((x.1.1, x.1.2.1), x.1.2.2)) := ((continuous_fst.fst.prodMk continuous_fst.snd.fst).prodMk continuous_fst.snd.snd).continuousAt filter_upwards [ht.eventually he] with y hy simp only [periodicPhase, Function.comp_apply, slotCoordinates, hy] private theorem normal_pullback {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] (chi : X → PhaseCalculus.Slot) (epsilon p pz x0 : ℝ) (F G : Slow → ℝ) (Vr Vtheta Vz : X → X) {x : X} (hchi : DifferentiableAt ℝ chi x) (hF : DifferentiableAt ℝ F (chi x).1) (hG : DifferentiableAt ℝ G (chi x).1) (hr : fderiv ℝ chi x (Vr x) = PhaseCalculus.eR) (ht : fderiv ℝ chi x (Vtheta x) = PhaseCalculus.eTheta) (hz : fderiv ℝ chi x (Vz x) = epsilon • PhaseCalculus.eZ) : HarmonicCalculus.phaseNormal (fun y => (chi y).1.1) Vr Vtheta Vz (PhaseCalculus.phase epsilon p pz x0 F G ∘ chi) x = PhaseCalculus.phaseNormal epsilon p pz x0 F G (chi x) := by have hd := fderiv_comp x (PrimaryMaterialDefect.differentiableAt_phase epsilon p pz x0 F G (chi x) hF hG) hchi ext i fin_cases i <;> simp [HarmonicCalculus.phaseNormal, PhaseCalculus.phaseNormal, HarmonicCalculus.along, hd, hr, ht, hz] theorem nativePhase_normal (l : SlotColoring.Label) (gap i : ℕ) {Q : ℝ} (hQ : 0 < Q) (p pz x0 : ℝ) (F G : Slow → ℝ) (k : TorusInverse.Frequency) (theta : ℝ) {x : Cylinder} (hF : DifferentiableAt ℝ F (x.1.1, x.1.2.1)) (hG : DifferentiableAt ℝ G (x.1.1, x.1.2.1)) : HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial (PhaseCalculus.phase (Q ^ h) p pz x0 F G ∘ slotCoordinates (slotGeometry sys vectors_det l gap) k) x = PhaseCalculus.phaseNormal (Q ^ h) p pz x0 F G ((x.1.1, x.1.2.1), (theta, ((slotGeometry sys vectors_det l gap).coordinates k x.1.2.2).2)) := by have hc := slotCoordinates_hasFDerivAt (slotGeometry sys vectors_det l gap) k x have he := normal_pullback (slotCoordinates (slotGeometry sys vectors_det l gap) k) (Q ^ h) p pz x0 F G (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial hc.differentiableAt hF hG (by rw [hc.fderiv]; exact slot_coordinates_radial sys l gap i Q x) (by rw [hc.fderiv]; exact slot_coordinates_angular _ _) (by rw [hc.fderiv]; exact slot_coordinates_axial _ _ _ _ _) change HarmonicCalculus.phaseNormal (fun y => (slotCoordinates (slotGeometry sys vectors_det l gap) k y).1.1) _ _ _ _ _ = _ rw [he] rw [PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ _ (Real.rpow_pos_of_pos hQ _).ne' hF hG, PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ _ (Real.rpow_pos_of_pos hQ _).ne' hF hG] rfl theorem periodicPhase_differentiableAt (l : SlotColoring.Label) (gap : ℕ) (epsilon p pz x0 : ℝ) (F G : Slow → ℝ) {x : Cylinder} (hF : DifferentiableAt ℝ F (x.1.1, x.1.2.1)) (hG : DifferentiableAt ℝ G (x.1.1, x.1.2.1)) : DifferentiableAt ℝ (periodicPhase sys l gap epsilon p pz x0 F G) x := by have hc := (PeriodicPhaseAssembly.periodicClock_contDiff (slotGeometry sys vectors_det l gap) (clockWindow sys l.1)).differentiable (by simp) have hchi : DifferentiableAt ℝ (fun y : Cylinder => ((y.1.1, y.1.2.1), (y.2, PeriodicPhaseAssembly.periodicClock (slotGeometry sys vectors_det l gap) (clockWindow sys l.1).cutoff y.1.2.2))) x := (differentiableAt_fst.fst.prodMk differentiableAt_fst.snd.fst).prodMk (differentiableAt_snd.prodMk (hc.differentiableAt.comp x differentiableAt_fst.snd.snd)) exact (PrimaryMaterialDefect.differentiableAt_phase epsilon p pz x0 F G _ hF hG).comp x hchi theorem periodicPhase_normal_germ (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (gap i : ℕ) {Q : ℝ} (hQ : 0 < Q) (p pz x0 : ℝ) (F G : Slow → ℝ) {S : Set Slow} (hS : IsOpen S) (hF : ContDiffOn ℝ ∞ F S) (hG : ContDiffOn ℝ ∞ G S) (k : TorusInverse.Frequency) (theta : ℝ) {x : Cylinder} (hx : (x.1.1, x.1.2.1) ∈ S) (hc : (slotGeometry sys vectors_det l gap).coordinates k x.1.2.2 ∈ (clockWindow sys l.1).core) : (fun y => HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial (periodicPhase sys l gap (Q ^ h) p pz x0 F G) y) =ᶠ[𝓝 x] fun y => PhaseCalculus.phaseNormal (Q ^ h) p pz x0 F G ((y.1.1, y.1.2.1), (theta, ((slotGeometry sys vectors_det l gap).coordinates k y.1.2.2).2)) := by have hp := periodicPhase_germ sys hh hl gap (Q ^ h) p pz x0 F G k hc have hr := ParticularWaveAssembly.along_germ hp (PhysicalResidualBridge.commonGraph Q h i).radial have ht := ParticularWaveAssembly.along_germ hp PhysicalResidualBridge.ScaledGraph.angular have hz := ParticularWaveAssembly.along_germ hp (PhysicalResidualBridge.commonGraph Q h i).axial have hm : ∀ᶠ y : Cylinder in 𝓝 x, (y.1.1, y.1.2.1) ∈ S := (hS.preimage (continuous_fst.fst.prodMk continuous_fst.snd.fst)).mem_nhds hx filter_upwards [hr, ht, hz, hm] with y hyr hyt hyz hy have he : HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial (periodicPhase sys l gap (Q ^ h) p pz x0 F G) y = HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial (PhaseCalculus.phase (Q ^ h) p pz x0 F G ∘ slotCoordinates (slotGeometry sys vectors_det l gap) k) y := by simp only [HarmonicCalculus.phaseNormal, hyr, hyt, hyz] exact he.trans (nativePhase_normal sys l gap i hQ p pz x0 F G k theta ((hF.contDiffAt (hS.mem_nhds hy)).differentiableAt (by simp)) ((hG.contDiffAt (hS.mem_nhds hy)).differentiableAt (by simp))) theorem phase_normal_view_germ (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) (i gap : ℕ) {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (K Kr p pz x0 : ℝ) (F G : Slow → ℝ) {S : Set Slow} (hS : IsOpen S) (hF : ContDiffOn ℝ ∞ F S) (hG : ContDiffOn ℝ ∞ G S) (k : TorusInverse.Frequency) (theta : ℝ) {x : Cylinder} (hxR : 0 < x.1.1) (hxS : (slowChange h Q Qr (x.1.1, x.1.2.1)) ∈ S) (hc : (slotGeometry sys vectors_det l 0).coordinates k (CommonCoverSolve.coverPower gap x.1.2.2) ∈ (clockWindow sys l.1).core) : (fun y => HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial (fun z => (Kr / K) * periodicPhase sys l 0 (Qr ^ h) p pz x0 F G (PhysicalParticularWave.cylinderChange h Q Qr gap z)) y) =ᶠ[𝓝 x] fun y => PhysicalParticularWave.normalWeight Q Qr K Kr • PhaseCalculus.phaseNormal (Qr ^ h) p pz x0 F G (slowChange h Q Qr (y.1.1, y.1.2.1), (theta, ((slotGeometry sys vectors_det l 0).coordinates k (CommonCoverSolve.coverPower gap y.1.2.2)).2)) := by let changeMap := PhysicalParticularWave.cylinderChange h Q Qr gap have hn := periodicPhase_normal_germ sys hh hl 0 (i + gap) hQr p pz x0 F G hS hF hG k theta (x := changeMap x) hxS hc have hp : Tendsto changeMap (𝓝 x) (𝓝 (changeMap x)) := changeMap.continuous.continuousAt have hR : ∀ᶠ y : Cylinder in 𝓝 x, 0 < y.1.1 := (isOpen_lt continuous_const continuous_fst.fst).mem_nhds hxR have hslow : ∀ᶠ y : Cylinder in 𝓝 x, slowChange h Q Qr (y.1.1, y.1.2.1) ∈ S := (hS.preimage ((slowChange h Q Qr).continuous.comp (continuous_fst.fst.prodMk continuous_fst.snd.fst))).mem_nhds hxS filter_upwards [hp.eventually hn, hR, hslow] with y hyN hyR hyS have hFd := (hF.contDiffAt (hS.mem_nhds hyS)).differentiableAt (by simp) have hGd := (hG.contDiffAt (hS.mem_nhds hyS)).differentiableAt (by simp) have hd := periodicPhase_differentiableAt sys l 0 (Qr ^ h) p pz x0 F G (x := changeMap y) hFd hGd exact (PhysicalParticularWave.phaseNormal_chartChange hQ hQr h i gap K Kr hyR hd).trans (congrArg (fun N => PhysicalParticularWave.normalWeight Q Qr K Kr • N) hyN) end ActualPhase section ReferenceViews variable {D h : ℝ} {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem D h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) theorem slotGeometry_refine (l : SlotColoring.Label) (gap : ℕ) : CopySolveCompatibility.refineGeometry (slotGeometry sys hdet l 0) gap = slotGeometry sys hdet l gap := by simp [CopySolveCompatibility.refineGeometry, slotGeometry, CommonCoverClass.bandGeometry] theorem slot_coordinates_from_zero (l : SlotColoring.Label) (gap : ℕ) (k : TorusInverse.Frequency) (Y : Plane) : (slotGeometry sys hdet l 0).coordinates k (CommonCoverSolve.coverPower gap Y) = (slotGeometry sys hdet l gap).coordinates k Y := by rw [← slotGeometry_refine sys hdet l gap] exact (CopySolveCompatibility.coordinates_refine _ _ _ _).symm noncomputable def cylinderNative (x : Cylinder) : Native := ((x.1.1, x.1.2.1), x.1.2.2) theorem copyPoint_eq_reference_view (l : SlotColoring.Label) (n common : ℕ) (k : TorusInverse.Frequency) (x : Cylinder) : copyPoint sys hdet l n common k (cylinderNative x) = ParticularWaveBounds.nativePoint (slotGeometry sys hdet l 0) k (cylinderNative (PhysicalParticularWave.cylinderChange h (ChartScales.Q n) (ChartScales.Q l.1) (ChartScales.nativeIndex h l.1 - common) x)) := by apply Prod.ext rfl exact (slot_coordinates_from_zero sys hdet l _ k _).symm theorem reference_view_graph (l : SlotColoring.Label) (n common : ℕ) (hi : common ≤ ChartScales.nativeIndex h l.1) {z : ProblemStatement.SpaceTime} (hz : 0 < z.2 0) : PhysicalParticularWave.cylinderChange h (ChartScales.Q n) (ChartScales.Q l.1) (ChartScales.nativeIndex h l.1 - common) ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h common).map z) = (PhysicalResidualBridge.commonGraph (ChartScales.Q l.1) h (ChartScales.nativeIndex h l.1)).map z := by rw [PhysicalParticularWave.cylinderChange_graph (ChartScales.Q_pos _) (ChartScales.Q_pos _) h common _ hz, Nat.add_sub_of_le hi] end ReferenceViews section PreparedNormals variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) {upper : ℝ} {B N0 : ℕ} (sys : PartitionedCovariance.SlotSystem (CoordinateAlgebra.D F.data.h) F.data.h radialVector temporalVector) (a : PrimaryGeometryAssembly.Prepared H v upper B sys.radius N0) noncomputable def preparedPhase (j : Fin 2) (L : Label H v a) : Cylinder → ℝ := let P := PrimaryGeometryAssembly.construction H v a sys.radius_pos j periodicPhase sys (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label W L) j) 0 (ChartScales.epsilon F.data.h (BaseChartJets.cellBand L)) (P.phase.p L) (P.phase.pz L) (P.phase.x0 L) (P.phase.F L) (P.phase.G L) noncomputable def preparedViewPhase (j : Fin 2) (L : Label H v a) (n common : ℕ) : Cylinder → ℝ := fun x => ((ChartScales.carrier F.data.h (BaseChartJets.cellBand L) : ℝ) / (ChartScales.carrier F.data.h n : ℝ)) * preparedPhase H v sys a j L (PhysicalParticularWave.cylinderChange F.data.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) (ChartScales.nativeIndex F.data.h (BaseChartJets.cellBand L) - common) x) theorem phaseNormal_pulseCoordinates (j : Fin 2) (L : Label H v a) (x : Native) : ActualSignedControl.phaseNormal (PrimaryGeometryAssembly.construction H v a sys.radius_pos j) (pulseCoordinates H v a) L x = (PrimaryGeometryAssembly.construction H v a sys.radius_pos j).phase.normal L (x.1, x.2.2) := by unfold ActualSignedControl.phaseNormal PrimaryCopyBounds.phasePoint pulseCoordinates have hL := (PrimaryGeometryAssembly.construction H v a sys.radius_pos j).L_pos L change (PrimaryGeometryAssembly.construction H v a sys.radius_pos j).phase.normal L (x.1, (PrimaryGeometryAssembly.construction H v a sys.radius_pos j).L L * (x.2.2 / (PrimaryGeometryAssembly.construction H v a sys.radius_pos j).L L)) = _ rw [mul_div_cancel₀ _ hL.ne'] /-- The normal germ required by the signed-copy control theorem is an output for the actual shared prepared phase and physical chart. -/ theorem preparedView_normal_germ (j : Fin 2) (L : Label H v a) (n common : ℕ) (k : TorusInverse.Frequency) {x : Cylinder} (hcell : copyPoint sys vectors_det (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label W L) j) n common k (cylinderNative x) ∈ (nativeDomain H v a).carrier L) : (fun y => HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph (ChartScales.Q n) F.data.h common).radial PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph (ChartScales.Q n) F.data.h common).axial (preparedViewPhase H v sys a j L n common) y) =ᶠ[𝓝 x] fun y => PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) (ChartScales.carrier F.data.h n) (ChartScales.carrier F.data.h (BaseChartJets.cellBand L)) • ActualSignedControl.phaseNormal (PrimaryGeometryAssembly.construction H v a sys.radius_pos j) (pulseCoordinates H v a) L (copyPoint sys vectors_det (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label W L) j) n common k (cylinderNative y)) := by let P := PrimaryGeometryAssembly.construction H v a sys.radius_pos j let l := PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label W L) j let gap := ChartScales.nativeIndex F.data.h (BaseChartJets.cellBand L) - common have hl : 4 ≤ l.1 := (a.large _ L.property).four_le have hm : slowChange F.data.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) (x.1.1, x.1.2.1) ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L := hcell.1.1 have hr : 0 < x.1.1 := by have hp := a.radius_pos L _ hm change 0 < PhysicalParticularWave.ratioPower _ _ (1 / 2) * x.1.1 at hp exact (mul_pos_iff_of_pos_left (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos _) (ChartScales.Q_pos _) _)).mp hp have hc : (slotGeometry sys vectors_det l 0).coordinates k (CommonCoverSolve.coverPower gap x.1.2.2) ∈ (clockWindow sys l.1).core := by rw [slot_coordinates_from_zero] exact ⟨⟨hcell.2.1.1.le, hcell.2.1.2.le⟩, ⟨hcell.2.2.1.le, hcell.2.2.2.le⟩⟩ have he := phase_normal_view_germ sys F.data.h_pos.le hl common gap (ChartScales.Q_pos n) (ChartScales.Q_pos (BaseChartJets.cellBand L)) (ChartScales.carrier F.data.h n) (ChartScales.carrier F.data.h (BaseChartJets.cellBand L)) (P.phase.p L) (P.phase.pz L) (P.phase.x0 L) (P.phase.F L) (P.phase.G L) ((PrimaryGeometryAssembly.domain W a.N).isOpen L) (P.baseF.smooth L) (P.baseG.smooth L) k (P.phase.theta L) hr hm hc filter_upwards [he] with y hy apply hy.trans congr 1 rw [phaseNormal_pulseCoordinates] change PhaseCalculus.phaseNormal _ _ _ _ _ _ _ = PhaseCalculus.phaseNormal _ _ _ _ _ _ _ rw [slot_coordinates_from_zero] rfl end PreparedNormals /-! ## Active-pair indexing retains the true fields on inactive labels -/ section SelectedPairs variable {Λ I E X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [NormedAddCommGroup E] [NormedSpace ℝ E] /-- Restricting the index set does not change a field or any of its jets. This transfers a single uniform estimate back to the original labels on their actual active cells. No values or scales are substituted there. -/ theorem uniformLocalJets_of_selected_pairs (s : StripData X) (P : Λ → ℕ → Prop) (e : ℕ → {q : Λ × ℕ // P q.1 q.2}) (he : Surjective e) {w : Λ → ℕ → X → ℝ} {f : Λ → ℕ → I → X → E} {K : Λ → ℕ → I → Set X} {alpha : ℝ} (hactive : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → P l n) (hj : PeriodizedWaveBounds.UniformLocalJets (UniformPrimaryWeights.reindexedStrip s (fun q => ((e q).val.2, ()))) (fun (_ : Unit) q x => w (e q).val.1 (e q).val.2 x) alpha (fun (_ : Unit) q i => K (e q).val.1 (e q).val.2 i) (fun (_ : Unit) q i => f (e q).val.1 (e q).val.2 i)) : PeriodizedWaveBounds.UniformLocalJets s w alpha K f := by constructor · intro l n i x hx hk obtain ⟨q, hq⟩ := he ⟨(l, n), hactive l n i x hx hk⟩ have h := hj.smooth () q i x hx simpa only [hq] using h (by simpa only [hq] using hk) · intro m obtain ⟨C, hC, p, hb⟩ := hj.bounds m refine ⟨C, hC, p, ?_⟩ intro l n i x hx hk j hjm obtain ⟨q, hq⟩ := he ⟨(l, n), hactive l n i x hx hk⟩ simpa only [majorant, StripData.growth, UniformPrimaryWeights.reindexedStrip, hq] using hb () q i x hx (by simpa only [hq] using hk) j hjm end SelectedPairs section ActiveCopies variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem (CoordinateAlgebra.D F.data.h) F.data.h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) {Λ : Type} (reference : Λ → ℕ → Label H v a) (chart index : ℕ → ℕ) (sign : Λ → ℕ → Fin 2) noncomputable def ActivePairCondition (l : Λ) (n : ℕ) : Prop := 1 ≤ chart n ∧ chart n ≤ BaseChartJets.cellBand (reference l n) + 4 ∧ BaseChartJets.cellBand (reference l n) ≤ chart n + 4 abbrev ActivePair := {q : Λ × ℕ // ActivePairCondition H v a reference chart q.1 q.2} noncomputable def activePhaseCell (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) : Set Native := {x | ActivePairCondition H v a reference chart l n ∧ x ∈ phaseCell H v a sys hdet reference chart index sign l n k} variable [Countable Λ] [Nonempty (ActivePair H v a reference chart)] noncomputable def activeEnumeration : ℕ → ActivePair H v a reference chart := Classical.choose (exists_surjective_nat (ActivePair H v a reference chart)) theorem activeEnumeration_surjective : Surjective (activeEnumeration H v a reference chart) := Classical.choose_spec (exists_surjective_nat (ActivePair H v a reference chart)) noncomputable def activeReference (_ : Unit) (q : ℕ) : Label H v a := reference (activeEnumeration H v a reference chart q).val.1 (activeEnumeration H v a reference chart q).val.2 noncomputable def activeChart (q : ℕ) : ℕ := chart (activeEnumeration H v a reference chart q).val.2 noncomputable def activeSign (_ : Unit) (q : ℕ) : Fin 2 := sign (activeEnumeration H v a reference chart q).val.1 (activeEnumeration H v a reference chart q).val.2 theorem active_near (q : ℕ) : activeChart H v a reference chart q ≤ BaseChartJets.cellBand (activeReference H v a reference chart () q) + 4 ∧ BaseChartJets.cellBand (activeReference H v a reference chart () q) ≤ activeChart H v a reference chart q + 4 := (activeEnumeration H v a reference chart q).property.2 /-- Every input of this chart is the original active pair. Its uniform bounds are valid without any comparison for inactive label-band pairs. -/ noncomputable def activeCopyChart (hr0 : 0 < r0) {budget : ℕ} (hi : CommonBaseContext.IndexBounds F.data.h index budget) := copyChart H v a sys hdet U (activeReference H v a reference chart) (activeChart H v a reference chart) index (activeSign H v a reference chart sign) hr0 (fun q => (activeEnumeration H v a reference chart q).property.1) (fun _ q => active_near H v a reference chart q) hi theorem active_reindexed_strip : viewStrip W U (activeChart H v a reference chart) = UniformPrimaryWeights.reindexedStrip (viewStrip W U chart) (fun q => ((activeEnumeration H v a reference chart q).val.2, ())) := rfl end ActiveCopies /-! ## The angle coordinate is retained when making harmonic blocks -/ noncomputable def cylinderNativeLinear : Cylinder →L[ℝ] Native := (ParticularWaveBounds.liftAssoc Plane).toContinuousLinearEquiv.toContinuousLinearMap.comp (ContinuousLinearMap.fst ℝ PhysicalResidualBridge.Lift ℝ) @[simp] theorem cylinderNativeLinear_apply (x : Cylinder) : cylinderNativeLinear x = cylinderNative x := rfl theorem norm_cylinderNativeLinear : ‖cylinderNativeLinear‖ ≤ 1 := by apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one intro x change ‖(ParticularWaveBounds.liftAssoc Plane) x.1‖ ≤ 1 * ‖x‖ rw [LinearIsometryEquiv.norm_map, one_mul] exact norm_fst_le x noncomputable def cylinderStrip (s : StripData Native) : StripData Cylinder := ParticularWaveBounds.reindexStrip (StateReindex.cylinder (ParticularWaveBounds.liftAssoc Plane)) (HarmonicWaveInteraction.productStrip s) noncomputable def cylinderCopyChart {Λ I i : Type} {s : StripData Native} {V : JetDomain i Native} {weight : i → Native → ℝ} {K : Λ → ℕ → I → Set Native} (c : ActualSignedControl.CopyChart s V weight K) : ActualSignedControl.CopyChart (cylinderStrip s) V weight (fun l n k => cylinderNative ⁻¹' K l n k) where index := c.index linear l n k := (c.linear l n k).comp cylinderNativeLinear shift := c.shift maps l n k x hx hk := c.maps l n k (cylinderNative x) hx hk growthConstant := c.growthConstant linearConstant := c.linearConstant growth_one := c.growth_one linear_one := c.linear_one growthDegree := c.growthDegree linearDegree := c.linearDegree growth_bound l n k x hx hk := c.growth_bound l n k (cylinderNative x) hx hk linear_bound l n k := by exact (ContinuousLinearMap.opNorm_comp_le _ _).trans ((mul_le_of_le_one_right (norm_nonneg _) norm_cylinderNativeLinear).trans (c.linear_bound l n k)) weight_eq l n k x hx hk := c.weight_eq l n k (cylinderNative x) hx hk ratioLower := c.ratioLower ratioUpper := c.ratioUpper ratio_pos := c.ratio_pos ratio_one := c.ratio_one scale_ratio := c.scale_ratio theorem cylinderCopyChart_pull {Λ I i E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : StripData Native} {V : JetDomain i Native} {weight : i → Native → ℝ} {K : Λ → ℕ → I → Set Native} (c : ActualSignedControl.CopyChart s V weight K) (f : i → Native → E) (l : Λ) (n : ℕ) (k : I) (x : Cylinder) : (cylinderCopyChart c).pull f l n k x = c.pull f l n k (cylinderNative x) := rfl /-! ## The actual cutoffs locate every nonzero native contribution -/ section CutoffSupport variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) noncomputable def nativeCutoff (L : Label H v a) (x : Native) : ℝ := SquaredPartition.dyadicProfile (SimilarityHomogeneity.chartQ F.data.h x.1) * PrimaryRepresentatives.nativeMask (BaseChartJets.cellBand L) (PrimaryGeometryAssembly.label W L).2 x.1 * PartitionedCovariance.cutoff r0 x.2.1 * GaussianTailFlat.profile (pulseCoordinates H v a L x).2 theorem nativeCutoff_nonzero_mem (hr0 : 0 < r0) (L : Label H v a) {x : Native} (ht : 0 < x.1.2.2) (hactive : PrimaryTargetBounds.profileRadius F.data.h x.1 ∈ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) (hx : nativeCutoff H v a L x ≠ 0) : x ∈ (nativeDomain H v a).carrier L := by simp only [nativeCutoff, mul_ne_zero_iff] at hx have hq : SimilarityHomogeneity.chartQ F.data.h x.1 ∈ Ioo (1 / 2 : ℝ) 2 := by rw [← SquaredPartition.dyadicProfile_support] exact hx.1.1.1 have hs : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L := PrimaryGeometryAssembly.native_support_in_carrier W L ⟨subset_closure hx.1.1.2, ht⟩ have hu : x.2.1 ∈ Ioo (-r0) r0 := by rw [← PartitionedCovariance.cutoff_support hr0] exact hx.1.2 have hgauss : |(pulseCoordinates H v a L x).2 - 1 / 2| < 1 / 3 := by by_contra hn exact hx.2 (GaussianTailFlat.profile_zero (le_of_not_gt hn)) have hdiv : 0 < x.2.2 / ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) ∧ x.2.2 / ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) < 1 := by dsimp only [pulseCoordinates] at hgauss constructor <;> linarith [(abs_lt.mp hgauss).1, (abs_lt.mp hgauss).2] have hL : 0 < ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) := div_pos (mul_pos (by norm_num) hr0) (ChartScales.timeCoefficient_pos _ _) have hv : x.2.2 ∈ Ioo 0 (ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L)) := by exact ⟨by simpa only [zero_mul] using (lt_div_iff₀ hL).mp hdiv.1, (div_lt_one hL).mp hdiv.2⟩ refine ⟨⟨hs, ?_⟩, hu, hv⟩ apply (BaseContextAssembly.nativeStrip_mem W _ _).mpr exact ⟨⟨ht, hq⟩, hactive⟩ theorem nativeCutoff_zero_germ_outside_q (L : Label H v a) {x : Native} (ht : 0 < x.1.2.2) (hq : SimilarityHomogeneity.chartQ F.data.h x.1 ∉ Icc (1 / 2 : ℝ) 2) : nativeCutoff H v a L =ᶠ[𝓝 x] fun _ => 0 := by have he : SquaredPartition.dyadicProfile =ᶠ[𝓝 (SimilarityHomogeneity.chartQ F.data.h x.1)] fun _ => 0 := notMem_tsupport_iff_eventuallyEq.mp (by simpa only [SquaredPartition.dyadicProfile_tsupport] using hq) have hc : ContinuousAt (fun y : Native => SimilarityHomogeneity.chartQ F.data.h y.1) x := by exact ((SimilarityCoordinates.coordinateQ_smooth (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) ht).continuousAt).comp (continuousAt_fst.snd.snd.prodMk continuousAt_fst.snd.fst) filter_upwards [hc.eventually he] with y hy simp only [nativeCutoff, hy, zero_mul] theorem nativeCutoff_zero_germ_outside_cell (L : Label H v a) {x : Native} (ht : 0 < x.1.2.2) (hx : x.1 ∉ (PrimaryGeometryAssembly.domain W a.N).carrier L) : nativeCutoff H v a L =ᶠ[𝓝 x] fun _ => 0 := by have hs : x.1 ∉ tsupport (PrimaryRepresentatives.nativeMask (BaseChartJets.cellBand L) (PrimaryGeometryAssembly.label W L).2) := by intro hs exact hx (PrimaryGeometryAssembly.native_support_in_carrier W L ⟨hs, ht⟩) have he := notMem_tsupport_iff_eventuallyEq.mp hs filter_upwards [continuousAt_fst.eventually he] with y hy simp only [nativeCutoff, hy, Pi.zero_apply, mul_zero, zero_mul] theorem copy_cutoff_mem_phaseCell (hr0 : 0 < r0) {vr vt : Plane} (sys : PartitionedCovariance.SlotSystem (CoordinateAlgebra.D F.data.h) F.data.h vr vt) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) {Λ : Type} (reference : Λ → ℕ → Label H v a) (chart index : ℕ → ℕ) (sign : Λ → ℕ → Fin 2) (l : Λ) (n : ℕ) (k : TorusInverse.Frequency) {x : Native} (hx : x ∈ (viewStrip W U chart).domain) (hn : nativeCutoff H v a (reference l n) (copyPoint sys hdet (copyLabel H v a reference sign l n) (chart n) (index (chart n)) k x) ≠ 0) : x ∈ phaseCell H v a sys hdet reference chart index sign l n k := by have hp := (viewStrip_mem W U chart x).mp hx have ht := BaseContextAssembly.nativeStrip_time W U hp have hr := BaseContextAssembly.nativeStrip_radius W U hp have ha := ((BaseContextAssembly.nativeStrip_mem W U _).mp hp).2 apply nativeCutoff_nonzero_mem H v a hr0 (reference l n) _ _ hn · exact slowChange_time (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht · change PrimaryTargetBounds.profileRadius F.data.h (slowChange F.data.h _ _ x.1) ∈ _ rw [profileRadius_slowChange (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr] exact ha end CutoffSupport /-! ## The solver's `(R,(T,Z))` parameter ordering -/ noncomputable def swapParameter : Slow ≃ₗᵢ[ℝ] Slow where toFun x := (x.1, (x.2.2, x.2.1)) invFun x := (x.1, (x.2.2, x.2.1)) left_inv _ := rfl right_inv _ := rfl map_add' _ _ := rfl map_smul' _ _ := rfl norm_map' x := by change ‖(x.1, (x.2.2, x.2.1))‖ = ‖x‖ simp only [Prod.norm_def, max_comm ‖x.2.1‖ ‖x.2.2‖] noncomputable def parameterLinear (h Q Qr : ℝ) : Slow →L[ℝ] Slow := swapParameter.toContinuousLinearEquiv.toContinuousLinearMap.comp ((slowChange h Q Qr).comp swapParameter.toContinuousLinearEquiv.toContinuousLinearMap) @[simp] theorem parameterLinear_apply (h Q Qr : ℝ) (x : Slow) : parameterLinear h Q Qr x = PhysicalParticularWave.parameterChange h Q Qr x := rfl theorem norm_parameterLinear_le (h : ℝ) {n m : ℕ} (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) : ‖parameterLinear h (ChartScales.Q n) (ChartScales.Q m)‖ ≤ slowChangeCost h := by apply ContinuousLinearMap.opNorm_le_bound _ (zero_le_one.trans (slowChangeCost_one h)) intro x change ‖swapParameter (slowChange h (ChartScales.Q n) (ChartScales.Q m) (swapParameter x))‖ ≤ _ rw [LinearIsometryEquiv.norm_map] calc _ ≤ ‖slowChange h (ChartScales.Q n) (ChartScales.Q m)‖ * ‖swapParameter x‖ := (slowChange h _ _).le_opNorm _ _ ≤ slowChangeCost h * ‖x‖ := by rw [LinearIsometryEquiv.norm_map] exact mul_le_mul_of_nonneg_right (norm_slowChange_le h hnm hmn) (norm_nonneg _) end NavierStokes.ActualSignedGeometry