math / data /lean /OAI /Dynamics /ThreeTorus /PacketStates.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
111 kB
import OAI.Dynamics.ThreeTorus.PassageFamilies namespace OAI /-! Closed finite packet states, canonical densities, residue reindexing, anchors, reflection, clipping, and state tracking. -/ section /-! Concrete finite-packet input data and the support bookkeeping used by iteration. Field regularity is inherited from literal amplitudes. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) def core (i : ΞΉ) : Set ℝ := tsupport (F.Aβ‚€ i 0) lemma core_subset (i : ΞΉ) : F.core i βŠ† Icc F.l F.u := closure_minimal ((F.support_lift i 0).trans Ioc_subset_Icc_self) isClosed_Icc lemma core_compact (i : ΞΉ) : IsCompact (F.core i) := isCompact_Icc.of_isClosed_subset (isClosed_tsupport _) (F.core_subset i) lemma support_subset_core (hmod : F.SpareIndependent) (i : ΞΉ) (a : UnitAddCircle) : support (F.Aβ‚€ i a) βŠ† F.core i := by intro x hx apply subset_tsupport _ intro hz apply hx apply norm_eq_zero.mp rw [hmod.1 i a x,hz,norm_zero] lemma amplitude_bound [Finite ΞΉ] : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€ i p, β€–F.A i pβ€–^2 ≀ B := by classical have hb i := (isCompact_range ((F.continuous_amplitude i).norm.pow 2)).isBounded.exists_norm_le choose B hB using hb obtain ⟨C,hC⟩ := (Set.finite_range B).isCompact.isBounded.exists_norm_le refine ⟨max C 0,le_max_right _ _,fun i p => ?_⟩ have h₁ := hB i _ (mem_range_self p) have hβ‚‚ := hC _ (mem_range_self i) exact (le_abs_self _).trans (h₁.trans ((le_abs_self _).trans (hβ‚‚.trans (le_max_left _ _)))) /-- Adding an integral carrier changes no temporal eigenfrequency modulo one. -/ def carrier (c : β„€) : PassagePackets ΞΉ := { F with V := fun x => (c:ℝ)+F.V x periodic := fun x => by dsimp; rw [F.periodic x] smooth_speed := contDiff_const.add F.smooth_speed positive_deriv := fun x hx => by simpa only [deriv_const_add] using F.positive_deriv x hx } lemma carrier_spare (c : β„€) (hmod : F.SpareIndependent) : (F.carrier c).SpareIndependent := hmod lemma carrier_circle (c : β„€) (x : ℝ) : ((F.carrier c).V x:UnitAddCircle) = (F.V x:UnitAddCircle) := by change (((c:ℝ)+F.V x:ℝ):UnitAddCircle) = _ rw [AddCircle.coe_add] have hc : ((c:ℝ):UnitAddCircle) = 0 := (AddCircle.coe_eq_zero_iff 1).mpr ⟨c,by simp⟩ rw [hc,zero_add] /-- Scalar cutoffs with arbitrarily small support tracking error exist for EVERY sufficiently large carrier. Choosing the carrier is therefore still compatible with the signal-law and normalized-index error bounds. -/ theorem tracked_cutoffs [Finite ΞΉ] (hi : Injective F.m) (hmod : F.SpareIndependent) {Ξ· : ℝ} (hΞ· : 0 < Ξ·) : βˆ€αΆ  c : β„• in atTop, 0 < c ∧ βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ (βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ξ·) ∧ βˆ€ (C : Set ℝ) a s, stationaryWeight C (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s = 1) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) := by have hv : Continuous F.periodic.lift := by apply Continuous.quotient_lift exact F.smooth_speed.continuous filter_upwards [eventually_integral_speed_separation F.m F.periodic.lift F.nonzero hv] with c hc have hzero i : 0 βˆ‰ (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i := by rintro ⟨x,_hx,he⟩ exact hc.2.1 i (x:UnitAddCircle) he have hsep : Pairwise (fun i j => Disjoint ((fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i) ((fun x => (F.m j:ℝ)*((c:ℝ)+F.V x)) '' F.core j)) := by intro i j hij rw [Set.disjoint_left] rintro s ⟨x,_hx,rfl⟩ ⟨y,_hy,he⟩ exact hij (hi (hc.2.2 i j (x:UnitAddCircle) (y:UnitAddCircle) he.symm)) obtain βŸ¨Ο‡,hΟ‡,hd⟩ := tracked_frequency_cutoffs F.m (fun x => (c:ℝ)+F.V x) F.core (continuous_const.add F.smooth_speed.continuous) F.core_compact hzero hsep hΞ· exact ⟨hc.1,Ο‡,fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1, (hΟ‡ i).2.2.2.1,(hΟ‡ i).2.2.2.2.2.1,fun C a s => (hΟ‡ i).2.2.2.2.2.2 C (F.Aβ‚€ i a) (F.support_subset_core hmod i a) s⟩,hd⟩ end PassagePackets end ThreeTorus end end section /-! Canonical smooth density of a literal passage-state packet. These are computed from the actual amplitude and speed; no spectral property is a field. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus lemma continuous_density_unique {p q : UnitAddCircle β†’ ℝ} (hp : Continuous p) (hq : Continuous q) (hp0 : βˆ€ z, 0 ≀ p z) (hq0 : βˆ€ z, 0 ≀ q z) (he : AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (p z)) = AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (q z))) : p = q := by apply (Continuous.ae_eq_iff_eq AddCircle.haarAddCircle hp hq).mp have hh := (withDensity_eq_iff_of_sigmaFinite hp.measurable.ennreal_ofReal.aemeasurable hq.measurable.ennreal_ofReal.aemeasurable).mp he filter_upwards [hh] with z hz have hh := congrArg ENNReal.toReal hz simpa only [ENNReal.toReal_ofReal (hp0 z), ENNReal.toReal_ofReal (hq0 z)] using hh lemma fold_density_nonzero {q : ℝ β†’ ℝ} {z : UnitAddCircle} (hz : foldCircleDensity q z β‰  0) : βˆƒ s : ℝ, (s:UnitAddCircle) = z ∧ q s β‰  0 := by obtain ⟨x,rfl⟩ := Quotient.mk_surjective z rw [foldCircleDensity_coe_all] at hz have hk : βˆƒ k : β„€, q (x+k) β‰  0 := by by_contra hh push Not at hh exact hz (by simp only [hh,tsum_zero]) obtain ⟨k,hk⟩ := hk refine ⟨x+k,?_,hk⟩ rw [AddCircle.coe_add] have he : ((k:ℝ):UnitAddCircle) = 0 := (AddCircle.coe_eq_zero_iff 1).mpr ⟨k,by simp⟩ rw [he,add_zero] lemma foldCircleDensity_finsetSum_eq {ΞΉ : Type*} (S : Finset ΞΉ) (q : ΞΉ β†’ ℝ β†’ ℝ) (hq : βˆ€ i ∈ S, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (q i)) (hc : βˆ€ i ∈ S, HasCompactSupport (q i)) : foldCircleDensity (fun x => βˆ‘ i ∈ S, q i x) = fun z => βˆ‘ i ∈ S, foldCircleDensity (q i) z := by have hqS : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun x => βˆ‘ i ∈ S, q i x) := ContDiff.sum hq have hcS : HasCompactSupport (fun x => βˆ‘ i ∈ S, q i x) := by convert HasCompactSupport.finset_sum hc using 1 funext point simp only [Finset.sum_apply] apply (Continuous.ae_eq_iff_eq AddCircle.haarAddCircle (continuous_of_continuous_lift (foldCircleDensity_smooth_lift hqS hcS).continuous) (continuous_finsetSum _ (fun i hi => continuous_of_continuous_lift (foldCircleDensity_smooth_lift (hq i hi) (hc i hi)).continuous))).mp exact foldCircleDensity_finsetSum_ae S q (fun i hi => (hq i hi).continuous.measurable) (fun i hi => (hq i hi).continuous.integrable_of_hasCompactSupport (hc i hi)) namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) def weight (i : ΞΉ) : ℝ β†’ ℝ := stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i 0) def density (i : ΞΉ) : UnitAddCircle β†’ ℝ := foldCircleDensity (F.weight i) lemma weight_nonneg (i : ΞΉ) (s : ℝ) : 0 ≀ F.weight i s := branchDensity_nonneg (fun _ => sq_nonneg _) s lemma density_nonneg (i : ΞΉ) (z : UnitAddCircle) : 0 ≀ F.density i z := foldCircleDensity_nonneg (F.weight_nonneg i) z lemma smooth_zero_lift (i : ΞΉ) : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (F.Aβ‚€ i 0) := by simpa only [Function.comp_def, AddCircle.coe_zero] using (F.smooth_lift i).comp (show ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun x : ℝ => (x,(0:ℝ))) from contDiff_id.prodMk contDiff_const) lemma weight_regular (i : ΞΉ) : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (F.weight i) ∧ HasCompactSupport (F.weight i) := by let q := fun x => β€–F.Aβ‚€ i 0 xβ€–^2 have hqs : tsupport q βŠ† F.core i := by apply closure_mono intro x hx hz exact hx (by simp [q,hz]) have hqc : HasCompactSupport q := (F.core_compact i).of_isClosed_subset isClosed_closure hqs have hs : tsupport q βŠ† Ioo (F.l-F.R) (F.u+F.R) := by intro x hx have hh := F.core_subset i (hqs hx) constructor <;> linarith [F.Rpos,hh.1,hh.2] have has : support (F.Aβ‚€ i 0) βŠ† Ioo (F.l-F.R) (F.u+F.R) := by intro x hx have hh := F.support_lift i 0 hx constructor <;> linarith [F.Rpos,hh.1,hh.2] have hb := scaled_speed_good_branch (F.nonzero i) F.Rpos F.smooth_speed F.positive_deriv have he := stationaryWeight_change_branch Ioo_subset_Icc_self hb.1 has change ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (stationaryWeight _ _ _) ∧ HasCompactSupport (stationaryWeight _ _ _) rw [he] exact ⟨branchDensity_smooth (contDiff_const.mul F.smooth_speed) isOpen_Ioo (hb.1.mono Ioo_subset_Icc_self) hb.2 ((F.smooth_zero_lift i).norm_sq (π•œ := β„‚)) hqc hs, branchDensity_compact (continuous_const.mul F.smooth_speed.continuous) hqc⟩ lemma density_smooth (i : ΞΉ) : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun x : ℝ => F.density i (x:UnitAddCircle)) := foldCircleDensity_smooth_lift (F.weight_regular i).1 (F.weight_regular i).2 lemma density_continuous (i : ΞΉ) : Continuous (F.density i) := continuous_of_continuous_lift (F.density_smooth i).continuous lemma speed_continuous : Continuous F.periodic.lift := by apply Continuous.quotient_lift exact F.smooth_speed.continuous /-- The canonical density is the spectral measure of the actual angular packet. -/ theorem density_spectral (hmod : F.SpareIndependent) (i : ΞΉ) : packetSpectralMeasure (fun u => (F.periodic.lift u:UnitAddCircle)) (F.m i) (F.A i) = AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (F.density i z)) := by have hb := scaled_speed_good_branch (F.nonzero i) F.Rpos F.smooth_speed F.positive_deriv have hs : support (F.Aβ‚€ i 0) βŠ† Ioo (F.l-F.R) (F.u+F.R) := by intro x hx have hh := F.support_lift i 0 hx constructor <;> linarith [F.Rpos,hh.1,hh.2] have he := oldPacket_spectralDensity_of_modulus (m := F.m i) (c := 0) (v := F.periodic.lift) (F.continuous_amplitude i) (F.smooth_zero_lift i).continuous (hmod.2 i) (F.lift_matches i 0) ((F.support_lift i 0).trans (by intro x hx; exact ⟨lt_of_le_of_lt F.lo hx.1, hx.2.trans F.uo⟩)) hs F.speed_continuous.measurable F.smooth_speed (fun _ _ => rfl) isOpen_Ioo Ioo_subset_Icc_self hb.1 hb.2 simpa only [Int.cast_zero,sub_zero,density,weight] using he lemma density_marginal (hmod : F.SpareIndependent) (i : ΞΉ) : foldCircleDensity (fun s => ∫ a, stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i a) s βˆ‚AddCircle.haarAddCircle) = F.density i := by congr 1 funext s simp [stationaryWeight_modulus_independent (hmod.1 i),weight] lemma density_carrier (hmod : F.SpareIndependent) (c : β„€) (i : ΞΉ) : (F.carrier c).density i = F.density i := by apply continuous_density_unique ((F.carrier c).density_continuous i) (F.density_continuous i) ((F.carrier c).density_nonneg i) (F.density_nonneg i) rw [← (F.carrier c).density_spectral (F.carrier_spare c hmod) i,← F.density_spectral hmod i] congr 1 funext z obtain ⟨x,rfl⟩ := Quotient.mk_surjective z exact F.carrier_circle c x /-- A nonzero density value is realized on the true old amplitude support, not merely in the convex hull of its frequency range. -/ lemma density_support (i : ΞΉ) {z : UnitAddCircle} (hz : F.density i z β‰  0) : βˆƒ x ∈ support (F.Aβ‚€ i 0), ((F.m i:ℝ)*F.V x:UnitAddCircle) = z := by obtain ⟨s,hs,hq⟩ := fold_density_nonzero hz have hy : s ∈ (fun x => (F.m i:ℝ)*F.V x) '' Icc (F.l-F.R) (F.u+F.R) := by by_contra hh exact hq (by simp [weight,stationaryWeight,branchDensity,hh]) let x := invFunOn (fun x => (F.m i:ℝ)*F.V x) (Icc (F.l-F.R) (F.u+F.R)) s have hx := invFunOn_pos hy refine ⟨x,?_,?_⟩ Β· intro hz change F.Aβ‚€ i 0 (invFunOn (fun x => (F.m i:ℝ)*F.V x) (Icc (F.l-F.R) (F.u+F.R)) s) = 0 at hz exact hq (by simp [weight,stationaryWeight,branchDensity,hy,hz]) Β· exact (congrArg (fun t : ℝ => (t:UnitAddCircle)) hx.2).trans hs end PassagePackets end ThreeTorus end end section /-! Exact identification of the canonical density of an iterated packet state with the literal finite density already controlled by the passage estimates. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus lemma exactRetainedPacketDensity_nonneg (I : Set ℝ) (J : ℝ β†’ ℝ) (ψ : UnitAddCircle β†’ ℝ) (Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ) (m : β„€) (H : β„• β†’ UnitAddCircle β†’ UnitAddCircle) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (S : Finset β„€) (n : β„•) (z : UnitAddCircle) : 0 ≀ exactRetainedPacketDensity I J ψ Ο‡ m H A S n z := by apply foldCircleDensity_nonneg intro t apply Finset.sum_nonneg intro j _hj exact unfoldedModeDensity_nonneg (circleDensityLift_nonneg (retainedCircleWeight_nonneg ψ Ο‡ _ n j) 0) (Nat.cast_nonneg n) j t lemma exactRetainedPacketDensity_singleton (I : Set ℝ) (J : ℝ β†’ ℝ) (ψ : UnitAddCircle β†’ ℝ) (Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ) (m : β„€) (H : β„• β†’ UnitAddCircle β†’ UnitAddCircle) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (j : β„€) (n : β„•) : exactRetainedPacketDensity I J ψ Ο‡ m H A {j} n = foldCircleDensity (unfoldedModeDensity I J (invFunOn J I) (deriv J) (circleDensityLift 0 (retainedCircleWeight ψ Ο‡ (fun n j => exactPassageCoeff m (H n) A j) n j)) n j) := by simp only [exactRetainedPacketDensity,Finset.sum_singleton] lemma exactRetainedPacketDensity_sum_singletons {I : Set ℝ} {J : ℝ β†’ ℝ} {ψ : UnitAddCircle β†’ ℝ} {Οˆβ‚€ : ℝ β†’ ℝ} {Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ} {m : β„€} {H : β„• β†’ UnitAddCircle β†’ UnitAddCircle} {Hl : β„• β†’ ℝ β†’ ℝ} {A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚} {S : Finset β„€} {n : β„•} (hJ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) J) (hIo : IsOpen I) (hinj : InjOn J I) (hd : βˆ€ x ∈ I, deriv J x β‰  0) (hψ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) Οˆβ‚€) (hc : HasCompactSupport Οˆβ‚€) (he : βˆ€ x ∈ Ioc (0:ℝ) (0+1), ψ (x:UnitAddCircle) = Οˆβ‚€ x) (hs : tsupport Οˆβ‚€ βŠ† Ioc (0:ℝ) (0+1) ∩ I) (hΟ‡ : CylinderSmooth Ο‡.uncurry) (hHl : βˆ€ n, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n)) (hH : βˆ€ n (t : ℝ), H n (t:UnitAddCircle) = (Hl n t:UnitAddCircle)) (hA : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => A (p.1,p.2))) (hn : 0 < n) (hS : βˆ€ j ∈ S, j β‰  0) : exactRetainedPacketDensity I J ψ Ο‡ m H A S n = fun z => βˆ‘ j ∈ S, exactRetainedPacketDensity I J ψ Ο‡ m H A {j} n z := by unfold exactRetainedPacketDensity simp only [Finset.sum_singleton] simp_rw [retainedWeight_lift_eq Ο‡ m H A n _ he (hs.trans inter_subset_left)] apply foldCircleDensity_finsetSum_eq Β· intro j _hj exact unfoldedModeDensity_smooth hJ hIo hinj hd (realRetainedWeight_smooth hψ hΟ‡ hHl hH hA n j) (realRetainedWeight_compact hc Ο‡ m H A n j) ((realRetainedWeight_support Οˆβ‚€ Ο‡ m H A n j).trans (hs.trans inter_subset_right)) n j Β· intro j hj exact unfoldedModeDensity_compact hJ.continuous (realRetainedWeight_compact hc Ο‡ m H A n j) (by exact_mod_cast hn.ne') (by exact_mod_cast hS j hj) lemma exactRetainedPacketDensity_filtered_singletons {I : Set ℝ} {J : ℝ β†’ ℝ} {ψ : UnitAddCircle β†’ ℝ} {Οˆβ‚€ : ℝ β†’ ℝ} {Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ} {m : β„€} {H : β„• β†’ UnitAddCircle β†’ UnitAddCircle} {Hl : β„• β†’ ℝ β†’ ℝ} {A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚} {S : Finset β„€} {n : β„•} (hJ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) J) (hIo : IsOpen I) (hinj : InjOn J I) (hd : βˆ€ x ∈ I, deriv J x β‰  0) (hψ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) Οˆβ‚€) (hc : HasCompactSupport Οˆβ‚€) (he : βˆ€ x ∈ Ioc (0:ℝ) (0+1), ψ (x:UnitAddCircle) = Οˆβ‚€ x) (hs : tsupport Οˆβ‚€ βŠ† Ioc (0:ℝ) (0+1) ∩ I) (hΟ‡ : CylinderSmooth Ο‡.uncurry) (hHl : βˆ€ n, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n)) (hH : βˆ€ n (t : ℝ), H n (t:UnitAddCircle) = (Hl n t:UnitAddCircle)) (hA : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => A (p.1,p.2))) (hn : 0 < n) (hS : βˆ€ j ∈ S, j β‰  0) (E : β„€ β†’ Prop) [DecidablePred E] : exactRetainedPacketDensity I J ψ Ο‡ m H A (S.filter E) n = fun z => βˆ‘ j : β†₯S, if E j.val then exactRetainedPacketDensity I J ψ Ο‡ m H A {j.val} n z else 0 := by rw [exactRetainedPacketDensity_sum_singletons hJ hIo hinj hd hψ hc he hs hΟ‡ hHl hH hA hn (fun j hj => hS j (Finset.mem_filter.mp hj).1)] funext z rw [Finset.sum_filter] exact (Finset.sum_coe_sort S (fun j => if E j then exactRetainedPacketDensity I J ψ Ο‡ m H A {j} n z else 0)).symm /-- Pointwise, not just a.e., identity of a literal output packet's canonical density. The hypotheses below are only smooth lifts and the displayed literal coefficient/speed identities; no new spectral law is assumed. -/ theorem literal_packet_canonical_density {ΞΉ : Type*} (F : PassagePackets ΞΉ) (hmod : F.SpareIndependent) (i : ΞΉ) {I : Set ℝ} {J : UnitAddCircle β†’ ℝ} {Jβ‚€ : ℝ β†’ ℝ} {ψ : UnitAddCircle β†’ ℝ} {Οˆβ‚€ : ℝ β†’ ℝ} {Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ} {m j : β„€} {n : β„•} {H : β„• β†’ UnitAddCircle β†’ UnitAddCircle} {Hl : β„• β†’ ℝ β†’ ℝ} {A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚} (hm : F.m i = j) (hamp : F.A i = retainedAmplitude ψ Ο‡ m H A n j) (hspeed : βˆ€ a, (F.periodic.lift a:UnitAddCircle) = (((1+J a/n)/n:ℝ):UnitAddCircle)) (hJc : Continuous J) (hJ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) Jβ‚€) (hJe : βˆ€ x ∈ I, J (x:UnitAddCircle) = Jβ‚€ x) (hIo : IsOpen I) (hinj : InjOn Jβ‚€ I) (hd : βˆ€ x ∈ I, deriv Jβ‚€ x β‰  0) (hψc : Continuous ψ) (hψ : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) Οˆβ‚€) (hc : HasCompactSupport Οˆβ‚€) (he : βˆ€ x ∈ Ioc (0:ℝ) (0+1), ψ (x:UnitAddCircle) = Οˆβ‚€ x) (hs : tsupport Οˆβ‚€ βŠ† Ioc (0:ℝ) (0+1) ∩ I) (hΟ‡c : Continuous Ο‡.uncurry) (hΟ‡ : CylinderSmooth Ο‡.uncurry) (hHc : βˆ€ n, Continuous (H n)) (hHl : βˆ€ n, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n)) (hH : βˆ€ n (t : ℝ), H n (t:UnitAddCircle) = (Hl n t:UnitAddCircle)) (hAc : Continuous A) (hA : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => A (p.1,p.2))) (hn : 0 < n) : F.density i = exactRetainedPacketDensity I Jβ‚€ ψ Ο‡ m H A {j} n := by have hj : j β‰  0 := hm β–Έ F.nonzero i have hps := exactRetainedPacketDensity_smooth_lift (m := m) hJ hIo hinj hd hψ hc he hs hΟ‡ hHl hH hA hn (S := {j}) (fun k hk => by simpa only [Finset.mem_singleton.mp hk] using hj) apply continuous_density_unique (F.density_continuous i) (continuous_of_continuous_lift hps.continuous) (F.density_nonneg i) (exactRetainedPacketDensity_nonneg I Jβ‚€ ψ Ο‡ m H A {j} n) rw [← F.density_spectral hmod i,hm,hamp,show (fun a => (F.periodic.lift a:UnitAddCircle)) = (fun a => (((1+J a/n)/n:ℝ):UnitAddCircle)) from funext hspeed, exactRetainedPacketDensity_singleton] exact retainedAmplitude_spectralDensity hψc hΟ‡c hHc hAc (fun x hx hp => (hs (subset_tsupport Οˆβ‚€ (by rwa [he x hx] at hp))).2) hJc.measurable hJ hJe hIo hinj hd hn hj end ThreeTorus end end section /-! The residue slices are slices of the actual retained angular list, not independently fabricated Fourier arrays. -/ noncomputable section open MeasureTheory Set Function Filter open scoped Topology BigOperators namespace ThreeTorus lemma sum_residue_rename {M : Type*} [AddCommMonoid M] (f : β„€ β†’ M) (S T : Finset β„€) (Q h : β„€) (hQ : Q β‰  0) (hS : βˆ€ k, k βˆ‰ S β†’ f (h+k*Q) = 0) (hT : βˆ€ j, j βˆ‰ T β†’ f j = 0) : βˆ‘ k ∈ S, f (h+k*Q) = βˆ‘ j ∈ T.filter (fun j => j % Q = h % Q), f j := by classical let a : β„€ β†’ β„€ := fun k => h+k*Q have hai : Injective a := fun x y he => mul_right_cancelβ‚€ hQ (add_left_cancel he) let F : β„€ β†’ M := fun j => if j % Q = h % Q then f j else 0 have hFa k : F (a k) = f (a k) := by simp [F,a,Int.add_mul_emod_self_right] have hSa j (hj : j βˆ‰ S.image a) : F j = 0 := by dsimp only [F] split_ifs with he Β· let k := j/Q-h/Q have hk : a k = j := by dsimp [a,k] have hh := Int.emod_add_ediv_mul h Q have hj' := Int.emod_add_ediv_mul j Q rw [he] at hj' nlinarith have hkS : k βˆ‰ S := fun hks => hj (hk β–Έ Finset.mem_image.mpr ⟨k,hks,rfl⟩) rw [← hk] exact hS k hkS Β· rfl have hTF j (hj : j βˆ‰ T) : F j = 0 := by simp [F,hT j hj] calc βˆ‘ k ∈ S, f (a k) = βˆ‘ k ∈ S, F (a k) := by simp_rw [hFa] _ = βˆ‘ j ∈ S.image a, F j := (Finset.sum_image hai.injOn).symm _ = βˆ‘ j ∈ T, F j := sum_eq_of_zero_off F (S.image a) T hSa hTF _ = _ := (Finset.sum_filter _ f).symm lemma exactRetainedPacketDensity_residue_rename (I : Set ℝ) (Jβ‚€ : ℝ β†’ ℝ) (ψ : UnitAddCircle β†’ ℝ) (Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ) (m : β„€) (H : β„• β†’ UnitAddCircle β†’ UnitAddCircle) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (S T : Finset β„€) (n : β„•) (Q h : β„€) (hQ : Q β‰  0) (hS : βˆ€ k, k βˆ‰ S β†’ βˆ€ a, Ο‡ (((h+k*Q:β„€):ℝ)/n) a = 0) (hT : βˆ€ j, j βˆ‰ T β†’ βˆ€ a, Ο‡ ((j:ℝ)/n) a = 0) : foldCircleDensity (fun t => βˆ‘ k ∈ S, unfoldedModeDensity I Jβ‚€ (invFunOn Jβ‚€ I) (deriv Jβ‚€) (circleDensityLift 0 (retainedCircleWeight ψ Ο‡ (fun n j => exactPassageCoeff m (H n) A j) n (h+k*Q))) n ((h+k*Q:β„€):ℝ) t) = exactRetainedPacketDensity I Jβ‚€ ψ Ο‡ m H A (T.filter (fun j => j % Q = h % Q)) n := by unfold exactRetainedPacketDensity congr 1 funext t apply sum_residue_rename (fun j : β„€ => unfoldedModeDensity I Jβ‚€ (invFunOn Jβ‚€ I) (deriv Jβ‚€) (circleDensityLift 0 (retainedCircleWeight ψ Ο‡ (fun n j => exactPassageCoeff m (H n) A j) n j)) n (j:ℝ) t) S T Q h hQ Β· intro k hk have hz := hS k hk simp only [Int.cast_add,Int.cast_mul] at hz simp [unfoldedModeDensity,scaledBranchKernel,branchDensity, circleDensityLift,retainedCircleWeight,hz] Β· intro j hj simp [unfoldedModeDensity,scaledBranchKernel,branchDensity, circleDensityLift,retainedCircleWeight,hT j hj] end ThreeTorus end end section /-! Neutral refresh splits the literal next angular list, simultaneously for all residues, with total error independent of the number of residue tests. -/ noncomputable section open MeasureTheory Set Function Filter open scoped Topology BigOperators namespace ThreeTorus lemma foldCircleDensity_const_mul (w : ℝ β†’ ℝ) (c : ℝ) : foldCircleDensity (fun s => c*w s) = fun z => c*foldCircleDensity w z := by funext z induction z using Quotient.inductionOn with | h x => simp only [foldCircleDensity_coe_all,tsum_mul_left] theorem exact_neutral_residue_refresh {A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚} {Aβ‚€ : UnitAddCircle β†’ ℝ β†’ β„‚} {Pr V : ℝ β†’ ℝ} {m : β„€} {Ξ” : β„• β†’ ℝ} {H : β„• β†’ UnitAddCircle β†’ UnitAddCircle} {o l u R : ℝ} (hm : m β‰  0) (hH : βˆ€ n (x : ℝ), H n (x : UnitAddCircle) = ((n:ℝ)*(Pr x+Ξ” n*x) : UnitAddCircle)) (hA : βˆ€ a x, x ∈ Ioc o (o+1) β†’ A ((x : UnitAddCircle),a) = Aβ‚€ a x) (hAβ‚€ : βˆ€ a, ContDiff ℝ 2 (Aβ‚€ a)) (hAc : Continuous Aβ‚€.uncurry) (hAd : Continuous (fun p : UnitAddCircle Γ— ℝ => deriv (Aβ‚€ p.1) p.2)) (hAr : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Aβ‚€ (p.2 : UnitAddCircle) p.1)) (hsupp : βˆ€ a, support (Aβ‚€ a) βŠ† Ioc l u) (hlo : o ≀ l) (huo : u ≀ o+1) (hlu : l ≀ u) (hR : 0 < R) (hPr : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) Pr) (hV : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) V) (hPV : deriv Pr = V) (hdV : βˆ€ x ∈ Icc (l-2*R) (u+2*R), 0 < deriv V x) (h0 : 0 βˆ‰ (fun x => (m:ℝ)*V x) '' Icc l u) (hHc : βˆ€ n, Continuous (H n)) (hAcont : Continuous A) (hΞ”t : Tendsto Ξ” atTop (𝓝 0)) {v : UnitAddCircle β†’ ℝ} (hv : Measurable v) (hVe : βˆ€ x : ℝ, v (x:UnitAddCircle) = V x) {B : ℝ} (hB : 0 ≀ B) (hAb : βˆ€ p, β€–A pβ€–^2 ≀ B) {Ξ΄ : ℝ} (c : LawCutoffs Ξ΄) (hΞ΄ : 0 < Ξ΄) (hΞ΄' : Ξ΄ < 1/8) {Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ} (hΟ‡c : Continuous Ο‡.uncurry) (hcΟ‡ : HasCompactSupport Ο‡.uncurry) (hzΟ‡ : βˆ€ a, Ο‡ 0 a = 0) (hΟ‡ : βˆ€ s a, 0 ≀ Ο‡ s a ∧ Ο‡ s a ≀ 1) (hΟ‡W : βˆ€ s a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (Aβ‚€ a) s β‰  0 β†’ Ο‡ s a = 1) {Q : β„•} (hQ : 0 < Q) : let pold := foldCircleDensity (fun s => ∫ a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (Aβ‚€ a) s βˆ‚AddCircle.haarAddCircle) βˆƒ C : ℝ, 0 ≀ C ∧ βˆ€ L : ℝ, 0 < L β†’ βˆ€ Ξ² : ℝ, βˆ€ T : β„• β†’ Finset β„€, (βˆ€ n, 0 < n β†’ βˆ€ j ∈ T n, j β‰  0) β†’ (βˆ€ n, 0 < n β†’ βˆ€ j βˆ‰ T n, βˆ€ a, Ο‡ ((j:ℝ)/n) a = 0) β†’ βˆ€ Ξ· : ℝ, 0 < Ξ· β†’ βˆ€αΆ  n : β„• in atTop, (βˆ‘ h : Fin Q, ∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal c L Ξ²) (neutralCircleCutoff c) Ο‡ m H A ((T n).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*pold z| βˆ‚AddCircle.haarAddCircle) < C/L+4*Ξ΄*B+Ξ· := by classical dsimp only let ψ := neutralCircleCutoff c let W := fun s a => stationaryWeight (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (Aβ‚€ a) s let pold := foldCircleDensity (fun s => ∫ a, W s a βˆ‚AddCircle.haarAddCircle) let pcut := foldCircleDensity (fun s => ∫ a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (fun x => (ψ a:β„‚)*Aβ‚€ a x) s βˆ‚AddCircle.haarAddCircle) let F := stationaryCutoffLift (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (fun p : ℝ Γ— ℝ => Aβ‚€ (p.2:UnitAddCircle) p.1) c.ψ have hψc := continuous_neutralCircleCutoff c have hψs : tsupport c.ψ βŠ† Ioc (0:ℝ) (0+1) ∩ Ioo Ξ΄ (1-Ξ΄) := by intro x hx have hh := c.ψ_support hx exact ⟨⟨by linarith [hh.1],by linarith [hh.2]⟩,hh⟩ have heψ : βˆ€ x ∈ Ioc (0:ℝ) (0+1), c.ψ x = ψ (x:UnitAddCircle) := by intro x hx exact (lawPsi_eq c hΞ΄ ⟨hx.1.le,by simpa using hx.2⟩).symm have hcut : (∫ z, |pcut z-pold z| βˆ‚AddCircle.haarAddCircle) ≀ B*(4*Ξ΄) := by have hs₁ : βˆ€ a, support (Aβ‚€ a) βŠ† Ioc o (o+1) := by intro a x hx have hh := hsupp a hx exact ⟨lt_of_le_of_lt hlo hh.1,hh.2.trans huo⟩ have hsβ‚‚ : βˆ€ a, support (Aβ‚€ a) βŠ† Ioo (l-R) (u+R) := by intro a x hx have hh := hsupp a hx exact ⟨by linarith [hh.1],by linarith [hh.2]⟩ have hb := oldStationaryMarginal_cutoff_l1 hAcont hAc hA hs₁ hsβ‚‚ hv hV (fun x _ => hVe x) isOpen_Ioo Ioo_subset_Icc_self (scaled_speed_good_branch hm hR hV hdV).1 (scaled_speed_good_branch hm hR hV hdV).2 hψc (neutralCircleCutoff_bounds c hΞ΄) hB hAb exact hb.trans (mul_le_mul_of_nonneg_left (neutralCircleCutoff_error c hΞ΄ hΞ΄') hB) have hmarg : (fun s => ∫ a, F (a,s)) = fun s => ∫ a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m:ℝ)*V x) (fun x => (ψ a:β„‚)*Aβ‚€ a x) s βˆ‚AddCircle.haarAddCircle := by funext s exact stationaryCutoffLift_marginal heψ (fun x hx => (hψs (subset_tsupport c.ψ hx)).1) _ _ s have hsp (h : Fin Q) := exact_neutral_circle_spectral_estimate hm hH hA hAβ‚€ hAc hAd hAr hsupp hlo huo hlu hR hPr hV hPV hdV h0 hHc hAcont hΞ”t isOpen_Ioo c.ψ_smooth c.ψ_compact hψs heψ hψc hΟ‡c hcΟ‡ hzΟ‡ (neutralCircleCutoff_bounds c hΞ΄) hΟ‡ hΟ‡W hQ (h.val:β„€) choose C hC hrest using hsp refine βŸ¨βˆ‘ h, C h,Finset.sum_nonneg (fun h _ => hC h),?_⟩ intro L hL Ξ² T hTN hTZ Ξ· hΞ· have hJs := neutralJitterReal_smooth c L Ξ² have hJc := continuous_neutralJitter c L Ξ² have heJ : βˆ€ a ∈ Ioo Ξ΄ (1-Ξ΄), neutralJitterReal c L Ξ² a = L*a+Ξ² := fun a ha => neutralJitterReal_affine c hΞ΄ L Ξ² ⟨ha.1.le,ha.2.le⟩ have hJinj : InjOn (neutralJitterReal c L Ξ²) (Ioo Ξ΄ (1-Ξ΄)) := by intro a ha b hb hab rw [heJ a ha,heJ b hb] at hab nlinarith have hJd : βˆ€ a ∈ Ioo Ξ΄ (1-Ξ΄), deriv (neutralJitterReal c L Ξ²) a β‰  0 := by intro a ha rw [neutralJitterReal_deriv c hΞ΄ L Ξ² ha] exact hL.ne' choose S hSN hST ht using fun h => hrest h L hL Ξ² (neutralJitterReal c L Ξ²) (neutralJitter c L Ξ²) heJ hJs hJc.measurable (fun x _ => neutralJitter_coe c L Ξ² x) have hpcuti : Integrable pcut AddCircle.haarAddCircle := by have hreg := exact_cutoff_weight_regular hm hR hV hdV hAr (fun a => (hsupp a).trans Ioc_subset_Icc_self) c.ψ_smooth c.ψ_compact h0 have hi := compact_slice_integral_regular ((hreg.1.comp (contDiff_snd.prodMk contDiff_fst)).continuous) (hreg.2.1.comp_homeomorph (Homeomorph.prodComm ℝ ℝ)) dsimp only [pcut] rw [← hmarg] exact integrable_foldCircleDensity hi.1.measurable hi.2 have hpoldi : Integrable pold AddCircle.haarAddCircle := by have hs₁ : βˆ€ a, support (Aβ‚€ a) βŠ† Ioc o (o+1) := fun a x hx => ⟨lt_of_le_of_lt hlo (hsupp a hx).1,(hsupp a hx).2.trans huo⟩ have hsβ‚‚ : βˆ€ a, support (Aβ‚€ a) βŠ† Ioo (l-R) (u+R) := by intro a x hx have hh := hsupp a hx exact ⟨by linarith [hh.1],by linarith [hh.2]⟩ exact (oldStationaryMarginal_map hAcont hAc hA hs₁ hsβ‚‚ hv hV (fun x _ => hVe x) isOpen_Ioo Ioo_subset_Icc_self (scaled_speed_good_branch hm hR hV hdV).1 (scaled_speed_good_branch hm hR hV hdV).2).1 have hQr : (0:ℝ) < Q := Nat.cast_pos.mpr hQ have hQz : (Q:β„€) β‰  0 := by exact_mod_cast hQ.ne' have hqpos : 0 < (Q:ℝ)⁻¹ := inv_pos.mpr hQr have hsall := (Filter.eventually_all).mpr (fun h => ht h (Ξ·/Q) (div_pos hΞ· hQr)) filter_upwards [hsall,eventually_gt_atTop (0:β„•)] with n hnsp hn have hp (h : Fin Q) := exactRetainedPacketDensity_integrable (m := m) hJs isOpen_Ioo hJinj hJd hψc hΟ‡c hHc hAcont hn (fun j (hj : j ∈ (T n).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) => hTN n hn j (Finset.mem_filter.mp hj).1) have hps (h : Fin Q) : (∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal c L Ξ²) ψ Ο‡ m H A ((T n).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*pcut z| βˆ‚AddCircle.haarAddCircle) < C h/L+Ξ·/Q := by have he := exactRetainedPacketDensity_residue_rename (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal c L Ξ²) ψ Ο‡ m H A (S h n) (T n) n (Q:β„€) (h.val:β„€) hQz (hST h n hn) (hTZ n hn) have hh := hnsp h rw [he,foldCircleDensity_const_mul,hmarg] at hh exact hh have hcscale : (∫ z, |(Q:ℝ)⁻¹*pcut z-(Q:ℝ)⁻¹*pold z| βˆ‚AddCircle.haarAddCircle) ≀ (Q:ℝ)⁻¹*(B*(4*Ξ΄)) := by simp_rw [← mul_sub,abs_mul,abs_of_pos hqpos] rw [integral_const_mul] exact mul_le_mul_of_nonneg_left hcut hqpos.le have hfinal (h : Fin Q) : (∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal c L Ξ²) ψ Ο‡ m H A ((T n).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*pold z| βˆ‚AddCircle.haarAddCircle) < C h/L+(4*Ξ΄*B+Ξ·)/Q := by have hh := integral_abs_sub_triangle (hp h) (hpcuti.const_mul (Q:ℝ)⁻¹) (hpoldi.const_mul (Q:ℝ)⁻¹) have hs := hps h calc _ ≀ _ := hh _ < C h/L+Ξ·/Q+(Q:ℝ)⁻¹*(B*(4*Ξ΄)) := add_lt_add_of_lt_of_le hs hcscale _ = _ := by ring calc _ < βˆ‘ h : Fin Q, (C h/L+(4*Ξ΄*B+Ξ·)/Q) := by apply Finset.sum_lt_sum Β· exact fun h _ => (hfinal h).le Β· exact ⟨⟨0,hQ⟩,Finset.mem_univ _,hfinal ⟨0,hQ⟩⟩ _ = _ := by rw [Finset.sum_add_distrib,← Finset.sum_div] simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul] field_simp ring end ThreeTorus end end section /-! The simultaneous neutral passage with an actual integer-rounded common primitive. Its complete geometry and all spectral estimates are supplied by one and the same sequence of smooth Haar-preserving maps. -/ noncomputable section open MeasureTheory Set Function Filter open scoped Topology BigOperators namespace ThreeTorus /-- The jitter, all packet lists and all cutoffs are fixed before the final passage integer. No primitive, convergence, or spectral data are assumed. -/ theorem exists_simultaneous_neutral_residue_passage {ΞΉ : Type*} [Fintype ΞΉ] {A : ΞΉ β†’ UnitAddCircle Γ— UnitAddCircle β†’ β„‚} {Aβ‚€ : ΞΉ β†’ UnitAddCircle β†’ ℝ β†’ β„‚} {V : ℝ β†’ ℝ} {m : ΞΉ β†’ β„€} {o l u R : ℝ} (hm : βˆ€ i, m i β‰  0) (hA : βˆ€ i a x, x ∈ Ioc o (o+1) β†’ A i ((x : UnitAddCircle),a) = Aβ‚€ i a x) (hAβ‚€ : βˆ€ i a, ContDiff ℝ 2 (Aβ‚€ i a)) (hAc : βˆ€ i, Continuous (Aβ‚€ i).uncurry) (hAd : βˆ€ i, Continuous (fun p : UnitAddCircle Γ— ℝ => deriv (Aβ‚€ i p.1) p.2)) (hAr : βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Aβ‚€ i (p.2 : UnitAddCircle) p.1)) (hsupp : βˆ€ i a, support (Aβ‚€ i a) βŠ† Ioc l u) (hlo : o ≀ l) (huo : u ≀ o+1) (hlu : l ≀ u) (hR : 0 < R) (hp : Periodic V 1) (hV : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) V) (hdV : βˆ€ x ∈ Icc (l-2*R) (u+2*R), 0 < deriv V x) (h0 : βˆ€ i, 0 βˆ‰ (fun x => (m i:ℝ)*V x) '' Icc l u) (hAcont : βˆ€ i, Continuous (A i)) (hAs : βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => A i (p.1,p.2))) {B : ΞΉ β†’ ℝ} (hB : βˆ€ i, 0 ≀ B i) (hAb : βˆ€ i p, β€–A i pβ€–^2 ≀ B i) {Ξ΄ : ℝ} (c : LawCutoffs Ξ΄) (hΞ΄ : 0 < Ξ΄) (hΞ΄' : Ξ΄ < 1/8) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hΟ‡s : βˆ€ i, CylinderSmooth (Ο‡ i).uncurry) (hΟ‡c : βˆ€ i, Continuous (Ο‡ i).uncurry) (hcΟ‡ : βˆ€ i, HasCompactSupport (Ο‡ i).uncurry) (hzΟ‡ : βˆ€ i a, Ο‡ i 0 a = 0) (hΟ‡ : βˆ€ i s a, 0 ≀ Ο‡ i s a ∧ Ο‡ i s a ≀ 1) (hΟ‡W : βˆ€ i s a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m i:ℝ)*V x) (Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s a = 1) {Q : β„•} (hQ : 0 < Q) : βˆƒ Ξ” : β„• β†’ ℝ, βˆƒ H : β„• β†’ UnitAddCircle β†’ UnitAddCircle, (βˆ€ n, 0 < n β†’ |Ξ” n| ≀ (n:ℝ)⁻¹) ∧ Tendsto Ξ” atTop (𝓝 0) ∧ (βˆ€ n, Continuous (H n)) ∧ (βˆ€ n (x : ℝ), H n (x:UnitAddCircle) = ((n:ℝ)*((∫ t in 0..x, V t)+Ξ” n*x):UnitAddCircle)) ∧ βˆƒ C Cq : ΞΉ β†’ ℝ, (βˆ€ i, 0 ≀ C i) ∧ (βˆ€ i, 0 ≀ Cq i) ∧ βˆ€ L : ℝ, 0 < L β†’ βˆ€ Ξ² : ℝ, let ψ := neutralCircleCutoff c let J := neutralJitter c L Ξ² let Jβ‚€ := neutralJitterReal c L Ξ² let Οƒ := fun (n : β„•) a => (((1+J a/n)/n:ℝ):UnitAddCircle) (βˆ€ n, Smooth (torusPassage (H n) (Οƒ n)) ∧ Smooth (torusPassage (H n) (Οƒ n)).symm ∧ MeasurePreserving (torusPassage (H n) (Οƒ n)) ΞΌ ΞΌ) ∧ (βˆ€ n, 0 < n β†’ βˆ€ x : Cover, torusPassage (H n) (Οƒ n) (project x) = project (passageFamily V Jβ‚€ 1 ((n:ℝ)⁻¹,Ξ” n) x) ∧ (torusPassage (H n) (Οƒ n)).symm (project x) = project (passageFamily V Jβ‚€ (-1) ((n:ℝ)⁻¹,Ξ” n) x)) ∧ (βˆ€ r : ℝ, βˆ€ K : Set Cover, IsCompact K β†’ βˆ€ d : β„•, TendstoUniformlyOn (fun (n : β„•) x => iteratedFDeriv ℝ d (passageFamily V Jβ‚€ r ((n:ℝ)⁻¹,Ξ” n)) x) (fun x => iteratedFDeriv ℝ d (fun y : Cover => ![y 0+r*V (y 1),y 1,y 2]) x) atTop K) ∧ βˆƒ S : β„• β†’ ΞΉ β†’ Finset β„€, (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i β†’ j β‰  0) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j βˆ‰ S n i β†’ βˆ€ a, Ο‡ i ((j:ℝ)/n) a = 0) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i ↔ βˆƒ a, Ο‡ i ((j:ℝ)/n) a β‰  0) ∧ βˆ€ Ξ· : ℝ, 0 < Ξ· β†’ βˆ€αΆ  n : β„• in atTop, 0 < n ∧ βˆ€ i, let f := retainedPassage (m i) (H n) (A i) (S n i) (fun j => Ο‡ i ((j:ℝ)/n)) ψ let p := exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (Ο‡ i) (m i) H (A i) (S n i) n let pold := foldCircleDensity (fun s => ∫ a, stationaryWeight (Icc (l-R) (u+R)) (fun x => (m i:ℝ)*V x) (Aβ‚€ i a) s βˆ‚AddCircle.haarAddCircle) (∫ x : TripleTorus, β€–packet (m i) (A i) x-f (passageChart (H n) x)β€–^2 βˆ‚tripleVolume) < 8*Ξ΄*B i+Ξ· ∧ (∫ z, |p z-pold z| βˆ‚AddCircle.haarAddCircle) < C i/L+4*Ξ΄*B i+Ξ· ∧ ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun x : ℝ => p x) ∧ (βˆ€ k : β„€, (∫ x : TripleTorus, starRingEnd β„‚ (f x)*f (twistIter (Οƒ n) k x) βˆ‚tripleVolume) = ∫ z, (p z:β„‚)*fourier k z βˆ‚AddCircle.haarAddCircle) ∧ (βˆ€ j u a, β€–retainedAmplitude ψ (Ο‡ i) (m i) H (A i) n j (u,a)β€– = β€–retainedAmplitude ψ (Ο‡ i) (m i) H (A i) n j (u,0)β€–) ∧ (βˆ‘ h : Fin Q, ∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (Ο‡ i) (m i) H (A i) ((S n i).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*pold z| βˆ‚AddCircle.haarAddCircle) < Cq i/L+4*Ξ΄*B i+Ξ· := by classical obtain βŸ¨Ξ”,H,hΞ”,hΞ”t,hHc,hHe,hgeo⟩ := exists_rounded_primitive_family hp hV have hPr : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun x => ∫ t in 0..x, V t) := contDiff_real_primitive hV have hPV : deriv (fun x => ∫ t in 0..x, V t) = V := deriv_real_primitive hV.continuous have hv : Continuous hp.lift := by apply Continuous.quotient_lift exact hV.continuous have heV (x : ℝ) : hp.lift (x:UnitAddCircle) = V x := rfl have hneutral i := exact_neutral_passage (hm i) hHe (hA i) (hAβ‚€ i) (hAc i) (hAd i) (hAr i) (hsupp i) hlo huo hlu hR hPr hV hPV hdV (h0 i) hHc (hAcont i) hΞ”t (hAs i) hv.measurable heV (hB i) (hAb i) c hΞ΄ hΞ΄' (hΟ‡s i) (hΟ‡c i) (hcΟ‡ i) (hzΟ‡ i) (hΟ‡ i) (hΟ‡W i) choose C hC hrest using hneutral have hresidue i := exact_neutral_residue_refresh (hm i) hHe (hA i) (hAβ‚€ i) (hAc i) (hAd i) (hAr i) (hsupp i) hlo huo hlu hR hPr hV hPV hdV (h0 i) hHc (hAcont i) hΞ”t hv.measurable heV (hB i) (hAb i) c hΞ΄ hΞ΄' (hΟ‡c i) (hcΟ‡ i) (hzΟ‡ i) (hΟ‡ i) (hΟ‡W i) hQ choose Cq hCq hres using hresidue refine βŸ¨Ξ”,H,hΞ”,hΞ”t,hHc,hHe,C,Cq,hC,hCq,?_⟩ intro L hL Ξ² dsimp only obtain ⟨hg,hgraph,hlimit⟩ := hgeo (neutralJitterReal c L Ξ²) (neutralJitterReal_periodic c L Ξ²) (neutralJitterReal_smooth c L Ξ²) refine ⟨hg,hgraph,hlimit,?_⟩ choose S hSN hST hgood using fun i => hrest i L hL Ξ² obtain ⟨T,hTN,hTE⟩ := cylinder_cutoff_exact_indices Ο‡ hcΟ‡ hzΟ‡ have hTZ n (hn : 0 < n) i j (hj : j βˆ‰ T n i) a : Ο‡ i ((j:ℝ)/n) a = 0 := by by_contra hh exact hj ((hTE n hn i j).mpr ⟨a,hh⟩) refine ⟨T,fun n _ i => hTN n i,hTZ,hTE,?_⟩ intro Ξ· hΞ· have hgall := (Filter.eventually_all).mpr (fun i => hgood i Ξ· hΞ·) have hqall := (Filter.eventually_all).mpr (fun i => hres i L hL Ξ² (fun n => T n i) (fun n _ => hTN n i) (fun n hn => hTZ n hn i) Ξ· hΞ·) filter_upwards [eventually_gt_atTop (0:β„•),hgall,hqall] with n hn hall hq refine ⟨hn,fun i => ?_⟩ have ef := retainedPassage_eq_of_cover (m i) (H n) (A i) (S i n) (T n i) (fun j => Ο‡ i ((j:ℝ)/n)) (neutralCircleCutoff c) (hST i n hn) (hTZ n hn i) have ep := exactRetainedPacketDensity_eq_of_cover (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal c L Ξ²) (neutralCircleCutoff c) (Ο‡ i) (m i) H (A i) (S i n) (T n i) n (hST i n hn) (hTZ n hn i) have hh := hall i dsimp only at hh rw [ef,ep] at hh exact ⟨hh.1,hh.2.1,hh.2.2.1,hh.2.2.2.1,hh.2.2.2.2,hq i⟩ end ThreeTorus end end section /-! An unconditional neutral refresh on the concrete iterable packet class. All cutoffs, carrier, broad jitter and rounded geometry are constructed, in that order. The new state uses the literal coefficients and its canonical spectra, not abstract model arrays. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus /-- Full neutral state producer. Both approximation errors may be arbitrarily small. The same output state has all actual spectral moments, exactly disjoint angular indices, and the residue refresh statement. -/ theorem eventually_neutral_state_family {ΞΉ : Type*} [Fintype ΞΉ] (F : PassagePackets ΞΉ) (hi : Injective F.m) (hmod : F.SpareIndependent) {Q : β„•} (hQ : 0 < Q) {Ξ΅ Ο„ : ℝ} (hΞ΅ : 0 < Ξ΅) (hΟ„ : 0 < Ο„) : βˆ€αΆ  c : β„• in atTop, 0 < c ∧ βˆƒ Ξ΄ : ℝ, βˆƒ cut : LawCutoffs Ξ΄, βˆƒ L : ℝ, βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, βˆƒ Ξ” : β„• β†’ ℝ, βˆƒ H : β„• β†’ UnitAddCircle β†’ UnitAddCircle, 0 < Ξ΄ ∧ Ξ΄ < 1/8 ∧ 0 < L ∧ (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ο„) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) ∧ (βˆ€ n, 0 < n β†’ |Ξ” n| ≀ (n:ℝ)⁻¹) ∧ Tendsto Ξ” atTop (𝓝 0) ∧ (βˆ€ n, Continuous (H n)) ∧ (βˆ€ n (x : ℝ), H n (x:UnitAddCircle) = ((n:ℝ)*((∫ t in 0..x, (c:ℝ)+F.V t)+Ξ” n*x):UnitAddCircle)) ∧ let ψ := neutralCircleCutoff cut let J := neutralJitter cut L 0 let Jβ‚€ := neutralJitterReal cut L 0 let Οƒ := fun (n : β„•) a => (((1+J a/n)/n:ℝ):UnitAddCircle) (βˆ€ n, Smooth (torusPassage (H n) (Οƒ n)) ∧ Smooth (torusPassage (H n) (Οƒ n)).symm ∧ MeasurePreserving (torusPassage (H n) (Οƒ n)) ΞΌ ΞΌ) ∧ (βˆ€ n, 0 < n β†’ βˆ€ x : Cover, torusPassage (H n) (Οƒ n) (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ 1 ((n:ℝ)⁻¹,Ξ” n) x) ∧ (torusPassage (H n) (Οƒ n)).symm (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ (-1) ((n:ℝ)⁻¹,Ξ” n) x)) ∧ (βˆ€ r : ℝ, βˆ€ K : Set Cover, IsCompact K β†’ βˆ€ d : β„•, TendstoUniformlyOn (fun (n : β„•) x => iteratedFDeriv ℝ d (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ r ((n:ℝ)⁻¹,Ξ” n)) x) (fun x => iteratedFDeriv ℝ d (fun y : Cover => ![y 0+r*((c:ℝ)+F.V (y 1)),y 1,y 2]) x) atTop K) ∧ βˆƒ S : β„• β†’ ΞΉ β†’ Finset β„€, (βˆ€ n, 0 < n β†’ Pairwise (fun i j => Disjoint (S n i) (S n j))) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0) ∧ βˆ€αΆ  n : β„• in atTop, 0 < n ∧ (βˆ€ i, let f := retainedPassage (F.m i) (H n) (F.A i) (S n i) (fun j _ => Ο‡ i ((j:ℝ)/n)) ψ let p := exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) (S n i) n (∫ x : TripleTorus, β€–packet (F.m i) (F.A i) x-f (passageChart (H n) x)β€–^2 βˆ‚tripleVolume) < Ξ΅ ∧ (∫ z, |p z-F.density i z| βˆ‚AddCircle.haarAddCircle) < Ξ΅ ∧ (βˆ€ k : β„€, (∫ x : TripleTorus, starRingEnd β„‚ (f x)*f (twistIter (Οƒ n) k x) βˆ‚tripleVolume) = ∫ z, (p z:β„‚)*fourier k z βˆ‚AddCircle.haarAddCircle) ∧ (βˆ‘ h : Fin Q, ∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) ((S n i).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*F.density i z| βˆ‚AddCircle.haarAddCircle) < Ξ΅) ∧ βˆƒ G : PassagePackets (PassageOutputIndex (S n)), Injective G.m ∧ G.SpareIndependent ∧ G.V = (fun x => (1+Jβ‚€ x/n)/n) ∧ (βˆ€ i, G.m i = i.2.val) ∧ (βˆ€ i, G.A i = retainedAmplitude ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) n i.2.val) ∧ (βˆ€ i, G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) {i.2.val} n) ∧ (βˆ€ i (E : β„€ β†’ Prop) [DecidablePred E], exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) ((S n i).filter E) n = fun z => βˆ‘ j : β†₯(S n i), if E j.val then G.density ⟨i,j⟩ z else 0) := by classical obtain ⟨B,hB,hAB⟩ := F.amplitude_bound have hden : 0 < 32*(B+1) := by positivity obtain ⟨δ,hΞ΄,hΞ΄hi⟩ := exists_between (lt_min (by norm_num : (0:ℝ)<1/8) (div_pos hΞ΅ hden)) have hΞ΄' : Ξ΄ < 1/8 := hΞ΄hi.trans_le (min_le_left _ _) have hΞ΄B : 8*Ξ΄*B < Ξ΅/4 := by have hh := (lt_div_iffβ‚€ hden).mp (hΞ΄hi.trans_le (min_le_right _ _)) nlinarith let cut := lawCutoffs Ξ΄ hΞ΄ hΞ΄' filter_upwards [F.tracked_cutoffs hi hmod hΟ„, eventually_integral_speed_separation F.m F.periodic.lift F.nonzero F.speed_continuous] with c hc hsep obtain ⟨hcp,Ο‡,hΟ‡,hdisj⟩ := hc let Fc := F.carrier (c:β„€) let X : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ := fun i s _ => Ο‡ i s have hXs i : CylinderSmooth (X i).uncurry := by change ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Ο‡ i p.1) exact (hΟ‡ i).1.comp contDiff_fst have hXc i : Continuous (X i).uncurry := (hΟ‡ i).1.continuous.comp continuous_fst have hXcompact i : HasCompactSupport (X i).uncurry := compactSupport_frequency_cylinder (hΟ‡ i).2.1 have hXzero i (a : UnitAddCircle) : X i 0 a = 0 := (hΟ‡ i).2.2.1 have hXbound i s (a : UnitAddCircle) : 0 ≀ X i s a ∧ X i s a ≀ 1 := (hΟ‡ i).2.2.2.1 s have hXW i s a : stationaryWeight (Icc (Fc.l-Fc.R) (Fc.u+Fc.R)) (fun x => (Fc.m i:ℝ)*Fc.V x) (Fc.Aβ‚€ i a) s β‰  0 β†’ X i s a = 1 := by simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using (hΟ‡ i).2.2.2.2.2 (Icc (F.l-F.R) (F.u+F.R)) a s have hzero i : 0 βˆ‰ (fun x => (Fc.m i:ℝ)*Fc.V x) '' Icc Fc.l Fc.u := by rintro ⟨x,_hx,he⟩ apply hsep.2.1 i (x:UnitAddCircle) change (F.m i:ℝ)*((c:ℝ)+F.V x) = 0 simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using he obtain βŸ¨Ξ”,H,hΞ”,hΞ”t,hHc,hHe,C,Cq,_hC,_hCq,hrest⟩ := exists_simultaneous_neutral_residue_passage Fc.nonzero Fc.lift_matches Fc.two Fc.continuous_lift Fc.continuous_deriv Fc.smooth_lift Fc.support_lift Fc.lo Fc.uo Fc.lu Fc.Rpos Fc.periodic Fc.smooth_speed Fc.positive_deriv hzero Fc.continuous_amplitude Fc.smooth_amplitude (B := fun _ => B) (fun _ => hB) hAB cut hΞ΄ hΞ΄' hXs hXc hXcompact hXzero hXbound hXW hQ have hsmall : 0 < Ξ΅/4 := by positivity have hCT i : βˆ€αΆ  L : ℝ in atTop, C i/L < Ξ΅/4 := (tendsto_const_nhds.div_atTop tendsto_id).eventually (gt_mem_nhds hsmall) have hCqT i : βˆ€αΆ  L : ℝ in atTop, Cq i/L < Ξ΅/4 := (tendsto_const_nhds.div_atTop tendsto_id).eventually (gt_mem_nhds hsmall) obtain ⟨L,hL,hCL,hCqL⟩ := ((eventually_gt_atTop (0:ℝ)).and (((Filter.eventually_all).mpr hCT).and ((Filter.eventually_all).mpr hCqT))).exists obtain ⟨hgeo,hgraph,hlimit,S,hSN,_hST,hTE,hgood⟩ := hrest L hL 0 have hTE' n (hn : 0 < n) i j : j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0 := by simpa only [X,exists_const] using hTE n hn i j have hSd n (hn : 0 < n) : Pairwise (fun i j => Disjoint (S n i) (S n j)) := by intro i j hij rw [Finset.disjoint_left] intro k hki hkj exact Set.disjoint_left.mp (hdisj hij) (subset_tsupport _ ((hTE' n hn i k).mp hki)) (subset_tsupport _ ((hTE' n hn j k).mp hkj)) refine ⟨hcp,Ξ΄,cut,L,Ο‡,Ξ”,H,hΞ΄,hΞ΄',hL,?_,hdisj,hΞ”,hΞ”t,hHc,?_,?_,?_,?_,S,hSd,hTE',?_⟩ Β· exact fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1,(hΟ‡ i).2.2.2.1,(hΟ‡ i).2.2.2.2.1⟩ Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hHe Β· exact hgeo Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hgraph Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hlimit filter_upwards [hgood (Ξ΅/4) hsmall] with n hn have hn0 := hn.1 refine ⟨hn0,?_,?_⟩ Β· intro i have hh := hn.2 i dsimp only at hh ⊒ have hPM := (Fc.density_marginal (F.carrier_spare (c:β„€) hmod) i).trans (F.density_carrier hmod (c:β„€) i) rw [hPM] at hh refine ⟨lt_trans hh.1 (by linarith), lt_trans hh.2.1 (by linarith [hCL i]), hh.2.2.2.1,lt_trans hh.2.2.2.2.2 (by linarith [hCqL i])⟩ Β· let Hl (n : β„•) (x : ℝ) := (n:ℝ)*((∫ t in 0..x, Fc.V t)+Ξ” n*x) have hHl n : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n) := contDiff_const.mul ((contDiff_real_primitive Fc.smooth_speed).add (contDiff_const.mul contDiff_id)) have hJs := neutralJitterReal_smooth cut L 0 have hJd x (hx : x ∈ Ioo Ξ΄ (1-Ξ΄)) : 0 < deriv (neutralJitterReal cut L 0) x := by rw [neutralJitterReal_deriv cut hΞ΄ L 0 hx] exact hL obtain ⟨G,hGm,hGA,_hGAβ‚€,hGV,_hGo,_hGl,_hGu,hGmod⟩ := literal_output_packets F.m F.A H Hl X (S n) (hSN n hn0) F.continuous_amplitude F.smooth_amplitude hXs hXc hHc hHl hHe cut hΞ΄ hΞ΄' (neutralJitterReal_periodic cut L 0) hJs hJd hn0 have heψ : βˆ€ x ∈ Ioc (0:ℝ) (0+1), neutralCircleCutoff cut (x:UnitAddCircle) = cut.ψ x := by intro x hx rw [neutralCircleCutoff_coe] exact periodize_eq_on_unit ((subset_tsupport cut.ψ).trans (cut.ψ_support.trans (by intro z hz; constructor <;> linarith [hz.1,hz.2]))) ⟨hx.1.le,by simpa using hx.2⟩ have hsψ : tsupport cut.ψ βŠ† Ioc (0:ℝ) (0+1) ∩ Ioo Ξ΄ (1-Ξ΄) := by intro x hx have hh := cut.ψ_support hx exact ⟨⟨by linarith [hh.1],by linarith [hh.2]⟩,hh⟩ have hJinj : InjOn (neutralJitterReal cut L 0) (Ioo Ξ΄ (1-Ξ΄)) := by intro x hx y hy he rw [neutralJitterReal_affine cut hΞ΄ L 0 ⟨hx.1.le,hx.2.le⟩, neutralJitterReal_affine cut hΞ΄ L 0 ⟨hy.1.le,hy.2.le⟩] at he nlinarith have hGden (i : PassageOutputIndex (S n)) : G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal cut L 0) (neutralCircleCutoff cut) (X i.1) (F.m i.1) H (F.A i.1) {i.2.val} n := by apply literal_packet_canonical_density G hGmod i (hGm i) (hGA i) ?_ (continuous_neutralJitter cut L 0) hJs (fun _ _ => rfl) isOpen_Ioo hJinj (fun x hx => (hJd x hx).ne') (continuous_neutralCircleCutoff cut) cut.ψ_smooth cut.ψ_compact heψ hsψ (hXc i.1) (hXs i.1) hHc hHl hHe (F.continuous_amplitude i.1) (F.smooth_amplitude i.1) hn0 intro a obtain ⟨x,rfl⟩ := Quotient.mk_surjective a change (G.V x:UnitAddCircle) = _ rw [hGV] rfl refine ⟨G,?_,hGmod,hGV,hGm,hGA,hGden,?_⟩ Β· have he : G.m = fun i : PassageOutputIndex (S n) => i.2.val := funext hGm rw [he] exact output_index_injective (hSd n hn0) Β· intro i E inst simp_rw [hGden] exact exactRetainedPacketDensity_filtered_singletons hJs isOpen_Ioo hJinj (fun x hx => (hJd x hx).ne') cut.ψ_smooth cut.ψ_compact heψ hsψ (hXs i) hHl hHe (F.smooth_amplitude i) hn0 (hSN n hn0 i) E end ThreeTorus end end section /-! The anchor carrier can be fixed BEFORE all accuracy parameters and the signal law. The source's order of choices is implemented literally. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus lemma tracked_cutoffs_fixed_carrier {ΞΉ : Type*} [Finite ΞΉ] (F : PassagePackets ΞΉ) (hi : Injective F.m) (hmod : F.SpareIndependent) {c : β„•} (hc : 0 < c ∧ (βˆ€ i x, (F.m i:ℝ)*((c:ℝ)+F.periodic.lift x) β‰  0) ∧ βˆ€ i j x y, (F.m i:ℝ)*((c:ℝ)+F.periodic.lift x) = (F.m j:ℝ)*((c:ℝ)+F.periodic.lift y) β†’ F.m i = F.m j) {Ξ· : ℝ} (hΞ· : 0 < Ξ·) : 0 < c ∧ βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ (βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ξ·) ∧ βˆ€ (C : Set ℝ) a s, stationaryWeight C (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s = 1) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) := by have hzero i : 0 βˆ‰ (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i := by rintro ⟨x,_hx,he⟩ exact hc.2.1 i (x:UnitAddCircle) he have hsep : Pairwise (fun i j => Disjoint ((fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i) ((fun x => (F.m j:ℝ)*((c:ℝ)+F.V x)) '' F.core j)) := by intro i j hij rw [Set.disjoint_left] rintro s ⟨x,_hx,rfl⟩ ⟨y,_hy,he⟩ exact hij (hi (hc.2.2 i j (x:UnitAddCircle) (y:UnitAddCircle) he.symm)) obtain βŸ¨Ο‡,hΟ‡,hd⟩ := tracked_frequency_cutoffs F.m (fun x => (c:ℝ)+F.V x) F.core (continuous_const.add F.smooth_speed.continuous) F.core_compact hzero hsep hΞ· exact ⟨hc.1,Ο‡,fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1, (hΟ‡ i).2.2.2.1,(hΟ‡ i).2.2.2.2.2.1,fun C a s => (hΟ‡ i).2.2.2.2.2.2 C (F.Aβ‚€ i a) (F.support_subset_core hmod i a) s⟩,hd⟩ theorem eventually_neutral_anchor_family {ΞΉ : Type*} [Fintype ΞΉ] (F : PassagePackets ΞΉ) (hi : Injective F.m) (hmod : F.SpareIndependent) : βˆ€αΆ  c : β„• in atTop, βˆ€ Q : β„•, 0 < Q β†’ βˆ€ Ξ΅ Ο„ ΞΊ : ℝ, 0 < Ξ΅ β†’ 0 < Ο„ β†’ 0 < ΞΊ β†’ 0 < c ∧ βˆƒ Ξ΄ : ℝ, βˆƒ cut : LawCutoffs Ξ΄, βˆƒ L : ℝ, βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, βˆƒ Ξ” : β„• β†’ ℝ, βˆƒ H : β„• β†’ UnitAddCircle β†’ UnitAddCircle, 0 < Ξ΄ ∧ Ξ΄ < 1/8 ∧ Ξ΄ < ΞΊ ∧ 0 < L ∧ (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ο„) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) ∧ (βˆ€ n, 0 < n β†’ |Ξ” n| ≀ (n:ℝ)⁻¹) ∧ Tendsto Ξ” atTop (𝓝 0) ∧ (βˆ€ n, Continuous (H n)) ∧ (βˆ€ n (x : ℝ), H n (x:UnitAddCircle) = ((n:ℝ)*((∫ t in 0..x, (c:ℝ)+F.V t)+Ξ” n*x):UnitAddCircle)) ∧ let ψ := neutralCircleCutoff cut let J := neutralJitter cut L 0 let Jβ‚€ := neutralJitterReal cut L 0 let Οƒ := fun (n : β„•) a => (((1+J a/n)/n:ℝ):UnitAddCircle) (βˆ€ n, Smooth (torusPassage (H n) (Οƒ n)) ∧ Smooth (torusPassage (H n) (Οƒ n)).symm ∧ MeasurePreserving (torusPassage (H n) (Οƒ n)) ΞΌ ΞΌ) ∧ (βˆ€ n, 0 < n β†’ βˆ€ x : Cover, torusPassage (H n) (Οƒ n) (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ 1 ((n:ℝ)⁻¹,Ξ” n) x) ∧ (torusPassage (H n) (Οƒ n)).symm (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ (-1) ((n:ℝ)⁻¹,Ξ” n) x)) ∧ (βˆ€ r : ℝ, βˆ€ K : Set Cover, IsCompact K β†’ βˆ€ d : β„•, TendstoUniformlyOn (fun (n : β„•) x => iteratedFDeriv ℝ d (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ r ((n:ℝ)⁻¹,Ξ” n)) x) (fun x => iteratedFDeriv ℝ d (fun y : Cover => ![y 0+r*((c:ℝ)+F.V (y 1)),y 1,y 2]) x) atTop K) ∧ βˆƒ S : β„• β†’ ΞΉ β†’ Finset β„€, (βˆ€ n, 0 < n β†’ Pairwise (fun i j => Disjoint (S n i) (S n j))) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0) ∧ βˆ€αΆ  n : β„• in atTop, 0 < n ∧ (βˆ€ i, let f := retainedPassage (F.m i) (H n) (F.A i) (S n i) (fun j _ => Ο‡ i ((j:ℝ)/n)) ψ let p := exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) (S n i) n (∫ x : TripleTorus, β€–packet (F.m i) (F.A i) x-f (passageChart (H n) x)β€–^2 βˆ‚tripleVolume) < Ξ΅ ∧ (∫ z, |p z-F.density i z| βˆ‚AddCircle.haarAddCircle) < Ξ΅ ∧ (βˆ€ k : β„€, (∫ x : TripleTorus, starRingEnd β„‚ (f x)*f (twistIter (Οƒ n) k x) βˆ‚tripleVolume) = ∫ z, (p z:β„‚)*fourier k z βˆ‚AddCircle.haarAddCircle) ∧ (βˆ‘ h : Fin Q, ∫ z, |exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) ((S n i).filter (fun j => j % (Q:β„€) = (h.val:β„€) % (Q:β„€))) n z- (Q:ℝ)⁻¹*F.density i z| βˆ‚AddCircle.haarAddCircle) < Ξ΅) ∧ βˆƒ G : PassagePackets (PassageOutputIndex (S n)), Injective G.m ∧ G.SpareIndependent ∧ G.V = (fun x => (1+Jβ‚€ x/n)/n) ∧ (βˆ€ i, G.m i = i.2.val) ∧ (βˆ€ i, G.A i = retainedAmplitude ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) n i.2.val) ∧ (βˆ€ i, G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) {i.2.val} n) ∧ (βˆ€ i (E : β„€ β†’ Prop) [DecidablePred E], exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) ((S n i).filter E) n = fun z => βˆ‘ j : β†₯(S n i), if E j.val then G.density ⟨i,j⟩ z else 0) := by classical filter_upwards [eventually_integral_speed_separation F.m F.periodic.lift F.nonzero F.speed_continuous] with c hsep intro Q hQ Ξ΅ Ο„ ΞΊ hΞ΅ hΟ„ hΞΊ obtain ⟨B,hB,hAB⟩ := F.amplitude_bound have hden : 0 < 32*(B+1) := by positivity obtain ⟨δ,hΞ΄,hΞ΄all⟩ := exists_between (lt_min (lt_min (by norm_num : (0:ℝ)<1/8) (div_pos hΞ΅ hden)) hΞΊ) have hΞ΄hi := hΞ΄all.trans_le (min_le_left _ _) have hδκ := hΞ΄all.trans_le (min_le_right _ _) have hΞ΄' : Ξ΄ < 1/8 := hΞ΄hi.trans_le (min_le_left _ _) have hΞ΄B : 8*Ξ΄*B < Ξ΅/4 := by have hh := (lt_div_iffβ‚€ hden).mp (hΞ΄hi.trans_le (min_le_right _ _)) nlinarith let cut := lawCutoffs Ξ΄ hΞ΄ hΞ΄' obtain ⟨hcp,Ο‡,hΟ‡,hdisj⟩ := tracked_cutoffs_fixed_carrier F hi hmod hsep hΟ„ let Fc := F.carrier (c:β„€) let X : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ := fun i s _ => Ο‡ i s have hXs i : CylinderSmooth (X i).uncurry := by change ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Ο‡ i p.1) exact (hΟ‡ i).1.comp contDiff_fst have hXc i : Continuous (X i).uncurry := (hΟ‡ i).1.continuous.comp continuous_fst have hXcompact i : HasCompactSupport (X i).uncurry := compactSupport_frequency_cylinder (hΟ‡ i).2.1 have hXzero i (a : UnitAddCircle) : X i 0 a = 0 := (hΟ‡ i).2.2.1 have hXbound i s (a : UnitAddCircle) : 0 ≀ X i s a ∧ X i s a ≀ 1 := (hΟ‡ i).2.2.2.1 s have hXW i s a : stationaryWeight (Icc (Fc.l-Fc.R) (Fc.u+Fc.R)) (fun x => (Fc.m i:ℝ)*Fc.V x) (Fc.Aβ‚€ i a) s β‰  0 β†’ X i s a = 1 := by simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using (hΟ‡ i).2.2.2.2.2 (Icc (F.l-F.R) (F.u+F.R)) a s have hzero i : 0 βˆ‰ (fun x => (Fc.m i:ℝ)*Fc.V x) '' Icc Fc.l Fc.u := by rintro ⟨x,_hx,he⟩ apply hsep.2.1 i (x:UnitAddCircle) change (F.m i:ℝ)*((c:ℝ)+F.V x) = 0 simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using he obtain βŸ¨Ξ”,H,hΞ”,hΞ”t,hHc,hHe,C,Cq,_hC,_hCq,hrest⟩ := exists_simultaneous_neutral_residue_passage Fc.nonzero Fc.lift_matches Fc.two Fc.continuous_lift Fc.continuous_deriv Fc.smooth_lift Fc.support_lift Fc.lo Fc.uo Fc.lu Fc.Rpos Fc.periodic Fc.smooth_speed Fc.positive_deriv hzero Fc.continuous_amplitude Fc.smooth_amplitude (B := fun _ => B) (fun _ => hB) hAB cut hΞ΄ hΞ΄' hXs hXc hXcompact hXzero hXbound hXW hQ have hsmall : 0 < Ξ΅/4 := by positivity have hCT i : βˆ€αΆ  L : ℝ in atTop, C i/L < Ξ΅/4 := (tendsto_const_nhds.div_atTop tendsto_id).eventually (gt_mem_nhds hsmall) have hCqT i : βˆ€αΆ  L : ℝ in atTop, Cq i/L < Ξ΅/4 := (tendsto_const_nhds.div_atTop tendsto_id).eventually (gt_mem_nhds hsmall) obtain ⟨L,hL,hCL,hCqL⟩ := ((eventually_gt_atTop (0:ℝ)).and (((Filter.eventually_all).mpr hCT).and ((Filter.eventually_all).mpr hCqT))).exists obtain ⟨hgeo,hgraph,hlimit,S,hSN,_hST,hTE,hgood⟩ := hrest L hL 0 have hTE' n (hn : 0 < n) i j : j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0 := by simpa only [X,exists_const] using hTE n hn i j have hSd n (hn : 0 < n) : Pairwise (fun i j => Disjoint (S n i) (S n j)) := by intro i j hij rw [Finset.disjoint_left] intro k hki hkj exact Set.disjoint_left.mp (hdisj hij) (subset_tsupport _ ((hTE' n hn i k).mp hki)) (subset_tsupport _ ((hTE' n hn j k).mp hkj)) refine ⟨hcp,Ξ΄,cut,L,Ο‡,Ξ”,H,hΞ΄,hΞ΄',hδκ,hL,?_,hdisj,hΞ”,hΞ”t,hHc,?_,?_,?_,?_,S,hSd,hTE',?_⟩ Β· exact fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1,(hΟ‡ i).2.2.2.1,(hΟ‡ i).2.2.2.2.1⟩ Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hHe Β· exact hgeo Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hgraph Β· simpa only [Fc,PassagePackets.carrier,Int.cast_natCast] using hlimit filter_upwards [hgood (Ξ΅/4) hsmall] with n hn have hn0 := hn.1 refine ⟨hn0,?_,?_⟩ Β· intro i have hh := hn.2 i dsimp only at hh ⊒ have hPM := (Fc.density_marginal (F.carrier_spare (c:β„€) hmod) i).trans (F.density_carrier hmod (c:β„€) i) rw [hPM] at hh refine ⟨lt_trans hh.1 (by linarith), lt_trans hh.2.1 (by linarith [hCL i]), hh.2.2.2.1,lt_trans hh.2.2.2.2.2 (by linarith [hCqL i])⟩ Β· let Hl (n : β„•) (x : ℝ) := (n:ℝ)*((∫ t in 0..x, Fc.V t)+Ξ” n*x) have hHl n : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n) := contDiff_const.mul ((contDiff_real_primitive Fc.smooth_speed).add (contDiff_const.mul contDiff_id)) have hJs := neutralJitterReal_smooth cut L 0 have hJd x (hx : x ∈ Ioo Ξ΄ (1-Ξ΄)) : 0 < deriv (neutralJitterReal cut L 0) x := by rw [neutralJitterReal_deriv cut hΞ΄ L 0 hx] exact hL obtain ⟨G,hGm,hGA,_hGAβ‚€,hGV,_hGo,_hGl,_hGu,hGmod⟩ := literal_output_packets F.m F.A H Hl X (S n) (hSN n hn0) F.continuous_amplitude F.smooth_amplitude hXs hXc hHc hHl hHe cut hΞ΄ hΞ΄' (neutralJitterReal_periodic cut L 0) hJs hJd hn0 have heψ : βˆ€ x ∈ Ioc (0:ℝ) (0+1), neutralCircleCutoff cut (x:UnitAddCircle) = cut.ψ x := by intro x hx rw [neutralCircleCutoff_coe] exact periodize_eq_on_unit ((subset_tsupport cut.ψ).trans (cut.ψ_support.trans (by intro z hz; constructor <;> linarith [hz.1,hz.2]))) ⟨hx.1.le,by simpa using hx.2⟩ have hsψ : tsupport cut.ψ βŠ† Ioc (0:ℝ) (0+1) ∩ Ioo Ξ΄ (1-Ξ΄) := by intro x hx have hh := cut.ψ_support hx exact ⟨⟨by linarith [hh.1],by linarith [hh.2]⟩,hh⟩ have hJinj : InjOn (neutralJitterReal cut L 0) (Ioo Ξ΄ (1-Ξ΄)) := by intro x hx y hy he rw [neutralJitterReal_affine cut hΞ΄ L 0 ⟨hx.1.le,hx.2.le⟩, neutralJitterReal_affine cut hΞ΄ L 0 ⟨hy.1.le,hy.2.le⟩] at he nlinarith have hGden (i : PassageOutputIndex (S n)) : G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (neutralJitterReal cut L 0) (neutralCircleCutoff cut) (X i.1) (F.m i.1) H (F.A i.1) {i.2.val} n := by apply literal_packet_canonical_density G hGmod i (hGm i) (hGA i) ?_ (continuous_neutralJitter cut L 0) hJs (fun _ _ => rfl) isOpen_Ioo hJinj (fun x hx => (hJd x hx).ne') (continuous_neutralCircleCutoff cut) cut.ψ_smooth cut.ψ_compact heψ hsψ (hXc i.1) (hXs i.1) hHc hHl hHe (F.continuous_amplitude i.1) (F.smooth_amplitude i.1) hn0 intro a obtain ⟨x,rfl⟩ := Quotient.mk_surjective a change (G.V x:UnitAddCircle) = _ rw [hGV] rfl refine ⟨G,?_,hGmod,hGV,hGm,hGA,hGden,?_⟩ Β· have he : G.m = fun i : PassageOutputIndex (S n) => i.2.val := funext hGm rw [he] exact output_index_injective (hSd n hn0) Β· intro i E inst simp_rw [hGden] exact exactRetainedPacketDensity_filtered_singletons hJs isOpen_Ioo hJinj (fun x hx => (hJd x hx).ne') cut.ψ_smooth cut.ψ_compact heψ hsψ (hXs i) hHl hHe (F.smooth_amplitude i) hn0 (hSN n hn0 i) E end ThreeTorus end end section /-! Conjugation symmetry survives the literal retained coefficients. Smooth cutoffs can be made reflection-compatible by a product, without losing the already constructed exact disjointness of their supports. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators ComplexConjugate namespace ThreeTorus def pairedCylinderCutoff {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) (Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ) (i : ΞΉ) (s : ℝ) (a : UnitAddCircle) : ℝ := Ο‡ i s a * Ο‡ (Ο„ i) (-s) a lemma pairedCylinderCutoff_reflect {ΞΉ : Type*} {Ο„ : ΞΉ β†’ ΞΉ} (hΟ„ : Involutive Ο„) (Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ) (i : ΞΉ) (s : ℝ) (a : UnitAddCircle) : pairedCylinderCutoff Ο„ Ο‡ (Ο„ i) s a = pairedCylinderCutoff Ο„ Ο‡ i (-s) a := by simp only [pairedCylinderCutoff,hΟ„ i,neg_neg,mul_comm] lemma pairedCylinderCutoff_smooth {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hΟ‡ : βˆ€ i, CylinderSmooth (Ο‡ i).uncurry) (i : ΞΉ) : CylinderSmooth (pairedCylinderCutoff Ο„ Ο‡ i).uncurry := by change ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Ο‡ i p.1 (p.2:UnitAddCircle) * Ο‡ (Ο„ i) (-p.1) (p.2:UnitAddCircle)) exact (hΟ‡ i).mul ((hΟ‡ (Ο„ i)).comp (contDiff_fst.neg.prodMk contDiff_snd)) lemma pairedCylinderCutoff_tsupport {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) (Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ) (i : ΞΉ) : tsupport (pairedCylinderCutoff Ο„ Ο‡ i).uncurry βŠ† tsupport (Ο‡ i).uncurry := tsupport_mul_subset_left lemma pairedCylinderCutoff_compact {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hΟ‡ : βˆ€ i, HasCompactSupport (Ο‡ i).uncurry) (i : ΞΉ) : HasCompactSupport (pairedCylinderCutoff Ο„ Ο‡ i).uncurry := (hΟ‡ i).mul_right lemma pairedCylinderCutoff_disjoint {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hd : Pairwise (fun i j => Disjoint (tsupport (Ο‡ i).uncurry) (tsupport (Ο‡ j).uncurry))) : Pairwise (fun i j => Disjoint (tsupport (pairedCylinderCutoff Ο„ Ο‡ i).uncurry) (tsupport (pairedCylinderCutoff Ο„ Ο‡ j).uncurry)) := by intro i j hij exact (hd hij).mono (pairedCylinderCutoff_tsupport Ο„ Ο‡ i) (pairedCylinderCutoff_tsupport Ο„ Ο‡ j) lemma pairedCylinderCutoff_bounds {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hΟ‡ : βˆ€ i s a, 0 ≀ Ο‡ i s a ∧ Ο‡ i s a ≀ 1) (i : ΞΉ) (s : ℝ) (a : UnitAddCircle) : 0 ≀ pairedCylinderCutoff Ο„ Ο‡ i s a ∧ pairedCylinderCutoff Ο„ Ο‡ i s a ≀ 1 := by refine ⟨mul_nonneg (hΟ‡ i s a).1 (hΟ‡ (Ο„ i) (-s) a).1,?_⟩ exact (mul_le_mul (hΟ‡ i s a).2 (hΟ‡ (Ο„ i) (-s) a).2 (hΟ‡ (Ο„ i) (-s) a).1 zero_le_one).trans (by norm_num) lemma pairedCylinderCutoff_one {ΞΉ : Type*} (Ο„ : ΞΉ β†’ ΞΉ) {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} {K : ΞΉ β†’ Set (ℝ Γ— UnitAddCircle)} (hK : βˆ€ i p, p ∈ K i β†’ (-p.1,p.2) ∈ K (Ο„ i)) (hΟ‡ : βˆ€ i p, p ∈ K i β†’ (Ο‡ i).uncurry =αΆ [𝓝 p] 1) (i : ΞΉ) (p : ℝ Γ— UnitAddCircle) (hp : p ∈ K i) : (pairedCylinderCutoff Ο„ Ο‡ i).uncurry =αΆ [𝓝 p] 1 := by have he₁ := hΟ‡ i p hp have heβ‚‚ := (hΟ‡ (Ο„ i) (-p.1,p.2) (hK i p hp)).comp_tendsto ((continuous_fst.neg.prodMk continuous_snd).tendsto p) filter_upwards [he₁,heβ‚‚] with q hq₁ hqβ‚‚ change Ο‡ i q.1 q.2 * Ο‡ (Ο„ i) (-q.1) q.2 = 1 change Ο‡ i q.1 q.2 = 1 at hq₁ change Ο‡ (Ο„ i) (-q.1) q.2 = 1 at hqβ‚‚ rw [hq₁,hqβ‚‚,one_mul] lemma symmetric_exact_indices {ΞΉ : Type*} {Ο„ : ΞΉ β†’ ΞΉ} {Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ} (hc : βˆ€ i, HasCompactSupport (Ο‡ i).uncurry) (hz : βˆ€ i a, Ο‡ i 0 a = 0) (hsym : βˆ€ i s a, Ο‡ (Ο„ i) s a = Ο‡ i (-s) a) : βˆƒ S : β„• β†’ ΞΉ β†’ Finset β„€, (βˆ€ n i j, j ∈ S n i β†’ j β‰  0) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i ↔ βˆƒ a, Ο‡ i ((j:ℝ)/n) a β‰  0) ∧ βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n (Ο„ i) ↔ -j ∈ S n i := by obtain ⟨S,hS0,hS⟩ := cylinder_cutoff_exact_indices Ο‡ hc hz refine ⟨S,hS0,hS,?_⟩ intro n hn i j rw [hS n hn (Ο„ i) j,hS n hn i (-j)] simp only [hsym,Int.cast_neg,neg_div] lemma retainedAmplitude_reflect (ψ : UnitAddCircle β†’ ℝ) (Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ) (m : β„€) (H : β„• β†’ UnitAddCircle β†’ UnitAddCircle) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (n : β„•) (j : β„€) (p : UnitAddCircle Γ— UnitAddCircle) : retainedAmplitude ψ (fun s a => Ο‡ (-s) a) (-m) H (fun x => conj (A x)) n j p = conj (retainedAmplitude ψ Ο‡ m H A n (-j) p) := by simp only [retainedAmplitude,exactPassageCoeff_neg,Int.cast_neg,neg_div,map_mul, Complex.conj_ofReal,fourier_neg] lemma packet_reflect (m : β„€) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (x : TripleTorus) : packet (-m) (fun p => conj (A p)) x = conj (packet m A x) := by simp only [packet,map_mul,fourier_neg] lemma retainedPassage_reflect (ψ : UnitAddCircle β†’ ℝ) (Ο‡ : ℝ β†’ UnitAddCircle β†’ ℝ) (m : β„€) (H : β„• β†’ UnitAddCircle β†’ UnitAddCircle) (A : UnitAddCircle Γ— UnitAddCircle β†’ β„‚) (S : Finset β„€) (n : β„•) (x : TripleTorus) : retainedPassage (-m) (H n) (fun p => conj (A p)) (S.image Neg.neg) (fun j a => Ο‡ (-(j:ℝ)/n) a) ψ x = conj (retainedPassage m (H n) A S (fun j => Ο‡ ((j:ℝ)/n)) ψ x) := by classical have he : (fun (j : β„€) a => Ο‡ (-(j:ℝ)/n) a) = (fun (j : β„€) a => (fun s a => Ο‡ (-s) a) ((j:ℝ)/n) a) := by funext j a rw [neg_div] rw [he] change (βˆ‘ j ∈ S.image Neg.neg, packet j (retainedAmplitude ψ (fun s a => Ο‡ (-s) a) (-m) H (fun p => conj (A p)) n j) x) = conj (βˆ‘ j ∈ S, packet j (retainedAmplitude ψ Ο‡ m H A n j) x) rw [Finset.sum_image (fun _ _ _ _ h => neg_injective h),map_sum] apply Finset.sum_congr rfl intro j _hj have ha : retainedAmplitude ψ (fun s a => Ο‡ (-s) a) (-m) H (fun p => conj (A p)) n (-j) = fun p => conj (retainedAmplitude ψ Ο‡ m H A n j p) := by funext p simpa only [neg_neg] using retainedAmplitude_reflect ψ Ο‡ m H A n (-j) p rw [ha,packet_reflect] end ThreeTorus end end section /-! Actual conjugation data, invariant cutoff choices, and canonical spectral reflection. No symmetry of an approximate model is substituted for reality of the packets. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators ComplexConjugate namespace ThreeTorus namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) /-- The entire increasing good arc, including its relation to the lifted support interval. The excluded length is exactly `2*Ξ΄`. -/ def GoodArc (Ξ΄ : ℝ) : Prop := F.o = 0 ∧ Ξ΄ < F.l ∧ F.u < 1-Ξ΄ ∧ βˆ€ x ∈ Ioo Ξ΄ (1-Ξ΄), 0 < deriv F.V x structure Reflection (Ο„ : ΞΉ β†’ ΞΉ) : Prop where index : βˆ€ i, F.m (Ο„ i) = -F.m i amplitude : βˆ€ i p, F.A (Ο„ i) p = conj (F.A i p) lift : βˆ€ i a x, F.Aβ‚€ (Ο„ i) a x = conj (F.Aβ‚€ i a x) variable {F} lemma Reflection.involutive {Ο„ : ΞΉ β†’ ΞΉ} (h : F.Reflection Ο„) (hi : Injective F.m) : Involutive Ο„ := fun i => hi (by rw [h.index,h.index,neg_neg]) lemma Reflection.core {Ο„ : ΞΉ β†’ ΞΉ} (h : F.Reflection Ο„) (i : ΞΉ) : F.core (Ο„ i) = F.core i := by unfold PassagePackets.core tsupport congr 1 ext x simp only [mem_support,h.lift,map_ne_zero] lemma Reflection.weight {Ο„ : ΞΉ β†’ ΞΉ} (h : F.Reflection Ο„) (i : ΞΉ) (s : ℝ) : F.weight (Ο„ i) s = F.weight i (-s) := by have hinj := (scaled_speed_good_branch (F.nonzero i) F.Rpos F.smooth_speed F.positive_deriv).1 have ha : F.Aβ‚€ (Ο„ i) 0 = fun x => conj (F.Aβ‚€ i 0 x) := funext (h.lift i 0) simp only [PassagePackets.weight,h.index,ha,Int.cast_neg,neg_mul] exact stationaryWeight_reflect hinj _ s end PassagePackets lemma foldCircleDensity_reflect (q : ℝ β†’ ℝ) (z : UnitAddCircle) : foldCircleDensity (fun s => q (-s)) z = foldCircleDensity q (-z) := by obtain ⟨x,rfl⟩ := Quotient.mk_surjective z rw [← AddCircle.coe_neg,foldCircleDensity_coe_all,foldCircleDensity_coe_all] calc (βˆ‘' k : β„€, q (-(x+k))) = βˆ‘' k : β„€, q (-x+(-k:β„€)) := by apply tsum_congr intro k congr 1 simp only [Int.cast_neg] ring _ = βˆ‘' k : β„€, q (-x+k) := (Equiv.neg β„€).tsum_eq (fun k => q (-x+k)) lemma PassagePackets.Reflection.density {ΞΉ : Type*} {F : PassagePackets ΞΉ} {Ο„ : ΞΉ β†’ ΞΉ} (h : F.Reflection Ο„) (i : ΞΉ) (z : UnitAddCircle) : F.density (Ο„ i) z = F.density i (-z) := by unfold PassagePackets.density rw [show F.weight (Ο„ i) = (fun s => F.weight i (-s)) from funext (h.weight i)] exact foldCircleDensity_reflect _ z /-- Reflection-compatible, exactly disjoint cutoffs with the full tracking and stationary identity used by the actual neutral and signal producers. -/ theorem tracked_symmetric_cutoffs_fixed_carrier {ΞΉ : Type*} [Finite ΞΉ] (F : PassagePackets ΞΉ) (hi : Injective F.m) (hmod : F.SpareIndependent) {Ο„ : ΞΉ β†’ ΞΉ} (hr : F.Reflection Ο„) {c : β„•} (hc : 0 < c ∧ (βˆ€ i x, (F.m i:ℝ)*((c:ℝ)+F.periodic.lift x) β‰  0) ∧ βˆ€ i j x y, (F.m i:ℝ)*((c:ℝ)+F.periodic.lift x) = (F.m j:ℝ)*((c:ℝ)+F.periodic.lift y) β†’ F.m i = F.m j) {Ξ· : ℝ} (hΞ· : 0 < Ξ·) : 0 < c ∧ βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ (βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ξ·) ∧ βˆ€ (C : Set ℝ) a s, stationaryWeight C (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s = 1) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) ∧ (βˆ€ i s, Ο‡ (Ο„ i) s = Ο‡ i (-s)) := by have hzero i : 0 βˆ‰ (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i := by rintro ⟨x,_hx,he⟩ exact hc.2.1 i (x:UnitAddCircle) he have hsep : Pairwise (fun i j => Disjoint ((fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i) ((fun x => (F.m j:ℝ)*((c:ℝ)+F.V x)) '' F.core j)) := by intro i j hij rw [Set.disjoint_left] rintro s ⟨x,_hx,rfl⟩ ⟨y,_hy,he⟩ exact hij (hi (hc.2.2 i j (x:UnitAddCircle) (y:UnitAddCircle) he.symm)) obtain βŸ¨Ο‡,hΟ‡,hd⟩ := tracked_frequency_cutoffs F.m (fun x => (c:ℝ)+F.V x) F.core (continuous_const.add F.smooth_speed.continuous) F.core_compact hzero hsep hΞ· let ψ : ΞΉ β†’ ℝ β†’ ℝ := fun i s => Ο‡ i s*Ο‡ (Ο„ i) (-s) have hsub i : tsupport (ψ i) βŠ† tsupport (Ο‡ i) := tsupport_mul_subset_left refine ⟨hc.1,ψ,fun i => ⟨(hΟ‡ i).1.mul ((hΟ‡ (Ο„ i)).1.comp contDiff_neg), (hΟ‡ i).2.1.mul_right,?_,?_,?_,?_⟩,?_,?_⟩ Β· simp only [ψ,(hΟ‡ i).2.2.1,zero_mul] Β· intro s exact ⟨mul_nonneg ((hΟ‡ i).2.2.2.1 s).1 ((hΟ‡ (Ο„ i)).2.2.2.1 (-s)).1, (mul_le_mul ((hΟ‡ i).2.2.2.1 s).2 ((hΟ‡ (Ο„ i)).2.2.2.1 (-s)).2 ((hΟ‡ (Ο„ i)).2.2.2.1 (-s)).1 zero_le_one).trans (by norm_num)⟩ Β· intro s hs exact (hΟ‡ i).2.2.2.2.2.1 s (hsub i hs) Β· intro C a s hs have hsi := stationaryWeight_support_subset (F.support_subset_core hmod i a) hs obtain ⟨x,hx,hxs⟩ := hsi have hre : -s ∈ (fun x => (F.m (Ο„ i):ℝ)*((c:ℝ)+F.V x)) '' F.core (Ο„ i) := by refine ⟨x,(hr.core i).symm β–Έ hx,?_⟩ simp only [hr.index,Int.cast_neg,neg_mul,hxs] have hleft := (hΟ‡ i).2.2.2.2.2.2 C (F.Aβ‚€ i a) (F.support_subset_core hmod i a) s hs have hright := ((hΟ‡ (Ο„ i)).2.2.2.2.1 (-s) hre).self_of_nhds change Ο‡ (Ο„ i) (-s) = 1 at hright simp only [ψ,hleft,hright,one_mul] Β· intro i j hij exact (hd hij).mono (hsub i) (hsub j) Β· intro i s simp only [ψ,hr.involutive hi i,neg_neg,mul_comm] end ThreeTorus end end section noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators ComplexConjugate namespace ThreeTorus namespace PassagePackets variable {ΞΉ ΞΊ : Type*} (F : PassagePackets ΞΉ) def cylinderCore (i : ΞΉ) : Set (ℝ Γ— UnitAddCircle) := tsupport (fun p : ℝ Γ— UnitAddCircle => F.Aβ‚€ i p.2 p.1) lemma cylinderCore_subset (i : ΞΉ) : F.cylinderCore i βŠ† Icc F.l F.u Γ—Λ’ univ := by apply closure_minimal Β· intro p hp exact ⟨⟨(F.support_lift i p.2 hp).1.le,(F.support_lift i p.2 hp).2⟩,mem_univ _⟩ Β· exact isClosed_Icc.prod isClosed_univ lemma cylinderCore_compact (i : ΞΉ) : IsCompact (F.cylinderCore i) := (isCompact_Icc.prod isCompact_univ).of_isClosed_subset (isClosed_tsupport _) (F.cylinderCore_subset i) lemma support_subset_cylinderCore (i : ΞΉ) (a : UnitAddCircle) {x : ℝ} (hx : x ∈ support (F.Aβ‚€ i a)) : (x,a) ∈ F.cylinderCore i := subset_tsupport _ hx lemma reflection_cylinderCore {Ο„ : ΞΉ β†’ ΞΉ} (hr : F.Reflection Ο„) (i : ΞΉ) : F.cylinderCore (Ο„ i) = F.cylinderCore i := by unfold cylinderCore tsupport congr 1 ext p simp only [mem_support,hr.lift,map_ne_zero] /-- Multiply the literal torus amplitudes by smooth disjoint cylinder cutoffs and retain their actual lifts. All passage regularity is derived. -/ def clipped (q : ΞΊ β†’ ΞΉ) (Ο‡ : ΞΊ β†’ ℝ Γ— UnitAddCircle β†’ ℝ) (hΟ‡ : βˆ€ k, CylinderSmooth (Ο‡ k)) (hc : βˆ€ k, HasCompactSupport (Ο‡ k)) (hs : βˆ€ k, support (Ο‡ k) βŠ† Ioo F.o (F.o+1) Γ—Λ’ univ) : PassagePackets ΞΊ where m := fun k => F.m (q k) nonzero := fun k => F.nonzero (q k) A := fun k p => (cylinderTorusCutoff (Ο‡ k) p:β„‚)*F.A (q k) p Aβ‚€ := fun k a x => (Ο‡ k (x,a):β„‚)*F.Aβ‚€ (q k) a x o := F.o l := F.l u := F.u R := F.R lo := F.lo uo := F.uo lu := F.lu Rpos := F.Rpos lift_matches := by intro k a x hx rw [cylinderTorusCutoff_eq (hs k) hx,F.lift_matches (q k) a x hx] two := by intro k a have hh := (cylinder_smooth_regular (hΟ‡ k)).1 a exact ((Complex.ofRealCLM.contDiff.comp hh).of_le (WithTop.coe_le_coe.mpr (le_top : (2:β„•βˆž) ≀ ⊀))).mul (F.two (q k) a) continuous_lift := by intro k exact (Complex.continuous_ofReal.comp ((hΟ‡ k).continuous.comp continuous_swap)).mul (F.continuous_lift (q k)) continuous_deriv := by intro k have he (p : UnitAddCircle Γ— ℝ) : deriv (fun x => (Ο‡ k (x,p.1):β„‚)*F.Aβ‚€ (q k) p.1 x) p.2 = Complex.ofReal (deriv (fun x => Ο‡ k (x,p.1)) p.2)*F.Aβ‚€ (q k) p.1 p.2 + (Ο‡ k (p.2,p.1):β„‚)*deriv (F.Aβ‚€ (q k) p.1) p.2 := by have hΟ‡d := ((cylinder_smooth_regular (hΟ‡ k)).1 p.1).differentiable (by simp) p.2 have hFd := (F.two (q k) p.1).differentiable (by norm_num) p.2 have hx : HasDerivAt (fun x => (Ο‡ k (x,p.1):β„‚)) (Complex.ofReal (deriv (fun x => Ο‡ k (x,p.1)) p.2)) p.2 := Complex.ofRealCLM.hasFDerivAt.comp_hasDerivAt _ hΟ‡d.hasDerivAt exact (hx.mul hFd.hasDerivAt).deriv simp_rw [he] exact ((Complex.continuous_ofReal.comp ((cylinder_smooth_regular (hΟ‡ k)).2.2.comp continuous_swap)).mul (F.continuous_lift (q k))).add ((Complex.continuous_ofReal.comp ((hΟ‡ k).continuous.comp continuous_swap)).mul (F.continuous_deriv (q k))) smooth_lift := fun k => (Complex.ofRealCLM.contDiff.comp (hΟ‡ k)).mul (F.smooth_lift (q k)) support_lift := by intro k a x hx apply F.support_lift (q k) a intro hz exact hx (by simp [hz]) continuous_amplitude := fun k => (Complex.continuous_ofReal.comp (cylinderTorusCutoff_continuous (hΟ‡ k) (hc k))).mul (F.continuous_amplitude (q k)) smooth_amplitude := fun k => (Complex.ofRealCLM.contDiff.comp (cylinderTorusCutoff_smooth (hΟ‡ k) (hc k))).mul (F.smooth_amplitude (q k)) V := F.V periodic := F.periodic smooth_speed := F.smooth_speed positive_deriv := F.positive_deriv lemma clipped_core_subset (q : ΞΊ β†’ ΞΉ) (Ο‡ : ΞΊ β†’ ℝ Γ— UnitAddCircle β†’ ℝ) (hΟ‡ : βˆ€ k, CylinderSmooth (Ο‡ k)) (hc : βˆ€ k, HasCompactSupport (Ο‡ k)) (hs : βˆ€ k, support (Ο‡ k) βŠ† Ioo F.o (F.o+1) Γ—Λ’ univ) (k : ΞΊ) : (F.clipped q Ο‡ hΟ‡ hc hs).cylinderCore k βŠ† tsupport (Ο‡ k) := by apply closure_minimal Β· intro p hp apply subset_tsupport intro hz exact hp (by simp [clipped,hz]) Β· exact isClosed_tsupport _ end PassagePackets end ThreeTorus end end section noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators ComplexConjugate namespace ThreeTorus /-- First of the two neutral separations: equal angular modes are separated using the ACTUAL two-dimensional compact coefficient supports. In particular no spare-independence or injectivity of the old mode list is assumed. -/ theorem first_separation_cutoffs {ΞΉ : Type*} [Finite ΞΉ] (F : PassagePackets ΞΉ) (hd : βˆ€ i j, i β‰  j β†’ F.m i = F.m j β†’ Disjoint (F.cylinderCore i) (F.cylinderCore j)) (Ο„ : ΞΉ β†’ ΞΉ) (hΟ„ : Involutive Ο„) (hr : F.Reflection Ο„) : βˆƒ c : β„•, 0 < c ∧ (βˆ€ x : ℝ, (c:ℝ)+F.V x β‰  0) ∧ βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ, (βˆ€ i, CylinderSmooth (Ο‡ i).uncurry ∧ HasCompactSupport (Ο‡ i).uncurry ∧ (βˆ€ a, Ο‡ i 0 a = 0) ∧ (βˆ€ s a, 0 ≀ Ο‡ i s a ∧ Ο‡ i s a ≀ 1) ∧ βˆ€ (C : Set ℝ) a s, stationaryWeight C (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s a = 1) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i).uncurry) (tsupport (Ο‡ j).uncurry)) ∧ (βˆ€ i s a, Ο‡ (Ο„ i) s a = Ο‡ i (-s) a) := by classical let m : Option ΞΉ β†’ β„€ := fun i => i.elim 1 F.m have hm (i : Option ΞΉ) : m i β‰  0 := by cases i with | none => norm_num [m] | some i => exact F.nonzero i obtain ⟨c,hc,hc0,hsep⟩ := exists_integral_speed_separation m F.periodic.lift hm F.speed_continuous let V : ℝ β†’ ℝ := fun x => (c:ℝ)+F.V x have h0 (x : ℝ) : V x β‰  0 := by simpa [m,V] using hc0 none (x:UnitAddCircle) have hV : Continuous V := continuous_const.add F.smooth_speed.continuous have hi : InjOn V (Icc F.l F.u) := by apply StrictMonoOn.injOn apply strictMonoOn_of_deriv_pos (convex_Icc _ _) hV.continuousOn intro x hx have hx' := interior_subset hx dsimp [V] rw [deriv_const_add] exact F.positive_deriv x ⟨by linarith [hx'.1,F.Rpos],by linarith [hx'.2,F.Rpos]⟩ let E (i : ΞΉ) := stationaryImage (F.m i) V (F.cylinderCore i) have hEc i : IsCompact (E i) := stationaryImage_compact hV (F.cylinderCore_compact i) have hEd : Pairwise (Disjoint on E) := by intro i j hij by_cases he : F.m i = F.m j Β· change Disjoint (stationaryImage (F.m i) V (F.cylinderCore i)) (stationaryImage (F.m j) V (F.cylinderCore j)) rw [← he] exact stationaryImage_disjoint_same (F.nonzero i) hi (F.cylinderCore_subset i) (F.cylinderCore_subset j) (hd i j hij he) Β· apply stationaryImage_disjoint_distinct intro p hp q hq h exact he (hsep (some i) (some j) (p.1:UnitAddCircle) (q.1:UnitAddCircle) h) let U : Set (ℝ Γ— UnitAddCircle) := {p | p.1 β‰  0} have hU : IsOpen U := isOpen_ne_fun continuous_fst continuous_const have hEU i : E i βŠ† U := by rintro _ ⟨p,hp,rfl⟩ exact mul_ne_zero (by exact_mod_cast F.nonzero i) (h0 p.1) obtain ⟨ξ,hΞΎ,hΞΎd⟩ := finite_disjoint_cylinder_cutoffs E (fun _ => U) hEc (fun _ => hU) hEU hEd let Ο‡ : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ := fun i s a => ΞΎ i (s,a)*ΞΎ (Ο„ i) (-s,a) have hsub i : tsupport (Ο‡ i).uncurry βŠ† tsupport (ΞΎ i) := tsupport_mul_subset_left have hre i {s : ℝ} {a : UnitAddCircle} (hs : (s,a) ∈ E i) : (-s,a) ∈ E (Ο„ i) := by obtain ⟨p,hp,he⟩ := hs have he1 := congrArg Prod.fst he have he2 := congrArg Prod.snd he dsimp only at he1 he2 refine ⟨p,(F.reflection_cylinderCore hr i).symm β–Έ hp,?_⟩ apply Prod.ext Β· change (F.m (Ο„ i):ℝ)*V p.1 = -s rw [hr.index,Int.cast_neg,neg_mul,he1] Β· exact he2 have hsE (i : ΞΉ) (C : Set ℝ) (a : UnitAddCircle) (s : ℝ) (hs : stationaryWeight C (fun x => (F.m i:ℝ)*V x) (F.Aβ‚€ i a) s β‰  0) : (s,a) ∈ E i := by obtain ⟨x,hx,hxs⟩ := stationaryWeight_support_subset (show support (F.Aβ‚€ i a) βŠ† {x | (x,a) ∈ F.cylinderCore i} from fun x hx => F.support_subset_cylinderCore i a hx) hs exact ⟨(x,a),hx,Prod.ext hxs rfl⟩ refine ⟨c,hc,h0,Ο‡,fun i => ⟨?_,?_,?_,?_,?_⟩,?_,?_⟩ Β· exact (hΞΎ i).1.mul ((hΞΎ (Ο„ i)).1.comp (contDiff_fst.neg.prodMk contDiff_snd)) Β· exact (hΞΎ i).2.1.mul_right Β· intro a have hz : ΞΎ i (0,a) = 0 := by by_contra hh exact (hΞΎ i).2.2.1 (subset_tsupport _ hh) rfl simp [Ο‡,hz] Β· intro s a exact ⟨mul_nonneg ((hΞΎ i).2.2.2.1 (s,a)).1 ((hΞΎ (Ο„ i)).2.2.2.1 (-s,a)).1, (mul_le_mul ((hΞΎ i).2.2.2.1 (s,a)).2 ((hΞΎ (Ο„ i)).2.2.2.1 (-s,a)).2 ((hΞΎ (Ο„ i)).2.2.2.1 (-s,a)).1 zero_le_one).trans (by norm_num)⟩ Β· intro C a s hs have hs' := hsE i C a s hs have h1 := ((hΞΎ i).2.2.2.2 (s,a) hs').self_of_nhds have h2 := ((hΞΎ (Ο„ i)).2.2.2.2 (-s,a) (hre i hs')).self_of_nhds change ΞΎ i (s,a) = 1 at h1 change ΞΎ (Ο„ i) (-s,a) = 1 at h2 simp only [Ο‡,h1,h2,one_mul] Β· intro i j hij exact (hΞΎd hij).mono (hsub i) (hsub j) Β· intro i s a simp only [Ο‡,hΟ„ i,neg_neg,mul_comm] end ThreeTorus end end section noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) def marginalWeight (i : ΞΉ) (s : ℝ) : ℝ := ∫ a, stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i a) s βˆ‚AddCircle.haarAddCircle def marginalDensity (i : ΞΉ) : UnitAddCircle β†’ ℝ := foldCircleDensity (F.marginalWeight i) lemma marginalWeight_regular (i : ΞΉ) : Continuous (F.marginalWeight i) ∧ HasCompactSupport (F.marginalWeight i) := by let w : ℝ Γ— UnitAddCircle β†’ ℝ := fun p => stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i p.2) p.1 have hb := scaled_speed_good_branch (F.nonzero i) F.Rpos F.smooth_speed F.positive_deriv have hw := stationaryWeight_signed_compact_continuous (contDiff_const.mul F.smooth_speed) (F.continuous_lift i) (fun a => (F.support_lift i a).trans Ioc_subset_Icc_self) F.Rpos hb.1 hb.2 have hc : Continuous (F.marginalWeight i) := by have hh : Continuous (uncurry (fun (s : ℝ) (a : UnitAddCircle) => w (s,a))) := hw.1 change Continuous (fun s => ∫ a, w (s,a) βˆ‚AddCircle.haarAddCircle) simpa only [setIntegral_univ] using continuous_parametric_integral_of_continuous (X := ℝ) (Y := UnitAddCircle) (ΞΌ := AddCircle.haarAddCircle) hh isCompact_univ refine ⟨hc, (hw.2.image continuous_fst).of_isClosed_subset (isClosed_tsupport _) ?_⟩ apply closure_minimal ?_ (hw.2.image continuous_fst).isClosed intro s hs by_contra hn have hz (a : UnitAddCircle) : w (s,a) = 0 := by by_contra hh exact hn ⟨(s,a),subset_tsupport w hh,rfl⟩ apply hs simp only [marginalWeight,show βˆ€ a, stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i a) s = 0 from hz,integral_zero] lemma marginalDensity_nonneg (i : ΞΉ) (z : UnitAddCircle) : 0 ≀ F.marginalDensity i z := foldCircleDensity_nonneg (fun s => integral_nonneg (fun _a => branchDensity_nonneg (fun _ => sq_nonneg _) s)) z lemma marginalDensity_measurable (i : ΞΉ) : Measurable (F.marginalDensity i) := measurable_foldCircleDensity (F.marginalWeight_regular i).1.measurable lemma marginalDensity_integrable (i : ΞΉ) : Integrable (F.marginalDensity i) AddCircle.haarAddCircle := integrable_foldCircleDensity (F.marginalWeight_regular i).1.measurable ((F.marginalWeight_regular i).1.integrable_of_hasCompactSupport (F.marginalWeight_regular i).2) /-- The actual old packet spectrum, without spare independence. -/ theorem marginalDensity_spectral (i : ΞΉ) : packetSpectralMeasure (fun u => (F.periodic.lift u:UnitAddCircle)) (F.m i) (F.A i) = AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (F.marginalDensity i z)) := by have hb := scaled_speed_good_branch (F.nonzero i) F.Rpos F.smooth_speed F.positive_deriv have hs a : support (F.Aβ‚€ i a) βŠ† Ioo (F.l-F.R) (F.u+F.R) := by intro x hx have hh := F.support_lift i a hx constructor <;> linarith [F.Rpos,hh.1,hh.2] have he := oldPacket_spectralDensity (m := F.m i) (c := 0) (v := F.periodic.lift) (F.continuous_amplitude i) (F.continuous_lift i) (F.lift_matches i) (fun a => (F.support_lift i a).trans (by intro x hx; exact ⟨lt_of_le_of_lt F.lo hx.1,hx.2.trans F.uo⟩)) hs F.speed_continuous.measurable F.smooth_speed (fun _ _ => rfl) isOpen_Ioo Ioo_subset_Icc_self hb.1 hb.2 change _ = AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (foldCircleDensity (fun s => ∫ a, stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*F.V x) (F.Aβ‚€ i a) s βˆ‚AddCircle.haarAddCircle) z)) simpa only [Int.cast_zero,sub_zero] using he lemma marginalDensity_carrier (c : β„€) (i : ΞΉ) : (F.carrier c).marginalDensity i =ᡐ[AddCircle.haarAddCircle] F.marginalDensity i := by have he : AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal ((F.carrier c).marginalDensity i z)) = AddCircle.haarAddCircle.withDensity (fun z => ENNReal.ofReal (F.marginalDensity i z)) := by rw [← (F.carrier c).marginalDensity_spectral i,← F.marginalDensity_spectral i] congr 1 funext z obtain ⟨x,rfl⟩ := Quotient.mk_surjective z exact F.carrier_circle c x have h := (withDensity_eq_iff_of_sigmaFinite ((F.carrier c).marginalDensity_measurable i).ennreal_ofReal.aemeasurable (F.marginalDensity_measurable i).ennreal_ofReal.aemeasurable).mp he filter_upwards [h] with z hz have hh := congrArg ENNReal.toReal hz simpa only [ENNReal.toReal_ofReal ((F.carrier c).marginalDensity_nonneg i z), ENNReal.toReal_ofReal (F.marginalDensity_nonneg i z)] using hh lemma marginalDensity_eq (hmod : F.SpareIndependent) (i : ΞΉ) : F.marginalDensity i = F.density i := F.density_marginal hmod i end PassagePackets end ThreeTorus end end section noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) lemma weight_integrable (i : ΞΉ) : Integrable (F.weight i) := (F.weight_regular i).1.continuous.integrable_of_hasCompactSupport (F.weight_regular i).2 lemma density_mass (i : ΞΉ) : (∫ z, F.density i z βˆ‚AddCircle.haarAddCircle) = ∫ s, F.weight i s := integral_foldCircleDensity (F.weight_regular i).1.continuous.measurable (F.weight_integrable i) lemma weight_mass_carrier (hmod : F.SpareIndependent) (c : β„€) (i : ΞΉ) : (∫ s, (F.carrier c).weight i s) = ∫ s, F.weight i s := by rw [← (F.carrier c).density_mass i,F.density_carrier hmod c i,F.density_mass i] lemma weight_mass_bound [Finite ΞΉ] : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€ i, (∫ s, F.weight i s) ≀ B := by obtain ⟨B,hB⟩ := (Set.finite_range (fun i => ∫ s, F.weight i s)).isCompact.isBounded.exists_norm_le exact ⟨max B 0,le_max_right _ _,fun i => (le_abs_self _).trans ((hB _ (mem_range_self i)).trans (le_max_left _ _))⟩ end PassagePackets end ThreeTorus end end section /-! Signal transmission on actual iterable packet states. The common prime modulus and strength bound are fixed before every later finite index type, scale, state, cutoff, error budget and passage integer. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus universe u theorem exists_signal_state_family {b D : ℝ} (hb : 0 < b) (hbD : b < D) {d : ℝ β†’ β„‚} (hd : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) d) (hdc : HasCompactSupport d) (hdr : βˆ€ v, d (-v) = starRingEnd β„‚ (d v)) (hd0 : d 0 = 0) (hds : support d βŠ† Icc (-D) D) : βˆƒ Ξ± : ℝ, βˆƒ L : β„•, βˆƒ Ξ³β‚€ : ℝ, 0 < Ξ± ∧ Ξ± < b/2 ∧ 2 ≀ L ∧ D/b < L ∧ 0 < Ξ³β‚€ ∧ βˆ€ Ξ³ : ℝ, 0 < Ξ³ β†’ Ξ³ ≀ Ξ³β‚€ β†’ (βˆ€ v, 2*Ξ³*β€–d vβ€– ≀ 1/2) ∧ βˆ€ (ΞΉ : Type u) [Fintype ΞΉ], βˆ€ (F : PassagePackets ΞΉ), Injective F.m β†’ F.SpareIndependent β†’ βˆ€ B : ℝ, 0 < B β†’ (βˆ€ i, b ≀ |(F.m i:ℝ)/B|) β†’ βˆ€ Ξ΅ Ο„ : ℝ, 0 < Ξ΅ β†’ 0 < Ο„ β†’ βˆ€αΆ  c : β„• in atTop, 0 < c ∧ βˆƒ Ξ΄ : ℝ, βˆƒ cut : LawCutoffs Ξ΄, βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ, βˆƒ Ξ” : β„• β†’ ℝ, βˆƒ H : β„• β†’ UnitAddCircle β†’ UnitAddCircle, 0 < Ξ΄ ∧ Ξ΄ < 1/8 ∧ (βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧ Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧ βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ο„) ∧ Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) ∧ (βˆ€ n, 0 < n β†’ |Ξ” n| ≀ (n:ℝ)⁻¹) ∧ Tendsto Ξ” atTop (𝓝 0) ∧ (βˆ€ n, Continuous (H n)) ∧ (βˆ€ n (x : ℝ), H n (x:UnitAddCircle) = ((n:ℝ)*((∫ t in 0..x, (c:ℝ)+F.V t)+Ξ” n*x):UnitAddCircle)) ∧ let ρ := signalJitter Ξ± Ξ³ d (signalPrimeProduct L) B c let ψ := neutralCircleCutoff cut let J := quantileCircleJitter ρ cut let Jβ‚€ := lawJitter ρ cut let Οƒ := fun (n : β„•) a => (((1+J a/n)/n:ℝ):UnitAddCircle) ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) ρ ∧ Integrable ρ ∧ (βˆ€ y, 0 < ρ y) ∧ (∫ y, ρ y = 1) ∧ (βˆ€ n, Smooth (torusPassage (H n) (Οƒ n)) ∧ Smooth (torusPassage (H n) (Οƒ n)).symm ∧ MeasurePreserving (torusPassage (H n) (Οƒ n)) ΞΌ ΞΌ) ∧ (βˆ€ n, 0 < n β†’ βˆ€ x : Cover, torusPassage (H n) (Οƒ n) (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ 1 ((n:ℝ)⁻¹,Ξ” n) x) ∧ (torusPassage (H n) (Οƒ n)).symm (project x) = project (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ (-1) ((n:ℝ)⁻¹,Ξ” n) x)) ∧ (βˆ€ r : ℝ, βˆ€ K : Set Cover, IsCompact K β†’ βˆ€ e : β„•, TendstoUniformlyOn (fun (n : β„•) x => iteratedFDeriv ℝ e (passageFamily (fun t => (c:ℝ)+F.V t) Jβ‚€ r ((n:ℝ)⁻¹,Ξ” n)) x) (fun x => iteratedFDeriv ℝ e (fun y : Cover => ![y 0+r*((c:ℝ)+F.V (y 1)),y 1,y 2]) x) atTop K) ∧ βˆƒ S : β„• β†’ ΞΉ β†’ Finset β„€, (βˆ€ n, 0 < n β†’ Pairwise (fun i j => Disjoint (S n i) (S n j))) ∧ (βˆ€ n, 0 < n β†’ βˆ€ i j, j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0) ∧ βˆ€αΆ  n : β„• in atTop, 0 < n ∧ (βˆ€ i, let f := retainedPassage (F.m i) (H n) (F.A i) (S n i) (fun j _ => Ο‡ i ((j:ℝ)/n)) ψ let p := exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) (S n i) n (∫ x : TripleTorus, β€–packet (F.m i) (F.A i) x-f (passageChart (H n) x)β€–^2 βˆ‚tripleVolume) < Ξ΅ ∧ (∫ z, |p z-F.density i z*signalCircleModel (signalPrimeProduct L) Ξ³ B d (F.m i) ((n:β„€) β€’ z)| βˆ‚AddCircle.haarAddCircle) < Ξ΅ ∧ (βˆ€ k : β„€, (∫ x : TripleTorus, starRingEnd β„‚ (f x)*f (twistIter (Οƒ n) k x) βˆ‚tripleVolume) = ∫ z, (p z:β„‚)*fourier k z βˆ‚AddCircle.haarAddCircle)) ∧ βˆƒ G : PassagePackets (PassageOutputIndex (S n)), Injective G.m ∧ G.SpareIndependent ∧ G.V = (fun x => (1+Jβ‚€ x/n)/n) ∧ (βˆ€ i, G.m i = i.2.val) ∧ (βˆ€ i, G.A i = retainedAmplitude ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) n i.2.val) ∧ (βˆ€ i, G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i.1 s) (F.m i.1) H (F.A i.1) {i.2.val} n) ∧ (βˆ€ i (E : β„€ β†’ Prop) [DecidablePred E], exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) Jβ‚€ ψ (fun s _ => Ο‡ i s) (F.m i) H (F.A i) ((S n i).filter E) n = fun z => βˆ‘ j : β†₯(S n i), if E j.val then G.density ⟨i,j⟩ z else 0) := by classical obtain ⟨α,L,Ξ³β‚€,hΞ±,hΞ±b,hL,hLD,hΞ³β‚€,hγ⟩ := exists_actual_signal_family hb hbD hd hdc hdr hd0 hds refine ⟨α,L,Ξ³β‚€,hΞ±,hΞ±b,hL,hLD,hΞ³β‚€,?_⟩ intro Ξ³ hΞ³p hΞ³s obtain ⟨hdb,hsignal⟩ := hΞ³ Ξ³ hΞ³p hΞ³s refine ⟨hdb,?_⟩ intro ΞΉ inst F hi hmod B hB hm Ξ΅ Ο„ hΞ΅ hΟ„ obtain ⟨M,hM,hAM⟩ := F.amplitude_bound obtain ⟨W,hW,hWM⟩ := F.weight_mass_bound let K := M+W+1 have hK : 0 < K := by dsimp [K]; positivity have hMK : M ≀ K := by dsimp [K]; linarith have hWK : W ≀ K := by dsimp [K]; linarith let Ξ΅β‚€ := Ξ΅/(8*K) have hΞ΅β‚€ : 0 < Ξ΅β‚€ := div_pos hΞ΅ (by positivity) obtain ⟨δ,hΞ΄,hΞ΄hi⟩ := exists_between (lt_min (by norm_num : (0:ℝ)<1/8) (div_pos hΞ΅ (show 0 < 32*K by positivity))) have hΞ΄' : Ξ΄ < 1/8 := hΞ΄hi.trans_le (min_le_left _ _) have hΞ΄K : 32*Ξ΄*K < Ξ΅ := by have hh := (lt_div_iffβ‚€ (show 0 < 32*K by positivity)).mp (hΞ΄hi.trans_le (min_le_right _ _)) nlinarith have hΞ΄M : 8*Ξ΄*M < Ξ΅/4 := by nlinarith [mul_le_mul_of_nonneg_left hMK hΞ΄.le] have hΞ΅β‚€K : Ξ΅β‚€*K = Ξ΅/8 := by dsimp [Ξ΅β‚€]; field_simp have hcoef : 0 ≀ 4*Ξ΄+Ξ΅β‚€ := by positivity have hCK : K*(4*Ξ΄+Ξ΅β‚€) < Ξ΅/4 := by nlinarith let cut := lawCutoffs Ξ΄ hΞ΄ hΞ΄' have hsignal' := hsignal ΞΉ B hB F.m hm F.A F.Aβ‚€ F.V F.o F.l F.u F.R F.lift_matches F.two F.continuous_lift F.continuous_deriv F.smooth_lift F.support_lift F.lo F.uo F.lu F.Rpos F.periodic F.smooth_speed F.positive_deriv F.continuous_amplitude F.smooth_amplitude hmod.1 hmod.2 Ξ΅β‚€ hΞ΅β‚€ filter_upwards [F.tracked_cutoffs hi hmod hΟ„,hsignal'] with c hc hs obtain ⟨hcp,Ο‡,hΟ‡,hdisj⟩ := hc let Fc := F.carrier (c:β„€) let X : ΞΉ β†’ ℝ β†’ UnitAddCircle β†’ ℝ := fun i s _ => Ο‡ i s have hXs i : CylinderSmooth (X i).uncurry := by change ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (fun p : ℝ Γ— ℝ => Ο‡ i p.1) exact (hΟ‡ i).1.comp contDiff_fst have hXc i : Continuous (X i).uncurry := (hΟ‡ i).1.continuous.comp continuous_fst have hXcompact i : HasCompactSupport (X i).uncurry := compactSupport_frequency_cylinder (hΟ‡ i).2.1 have hXzero i (a : UnitAddCircle) : X i 0 a = 0 := (hΟ‡ i).2.2.1 have hXbound i s (a : UnitAddCircle) : 0 ≀ X i s a ∧ X i s a ≀ 1 := (hΟ‡ i).2.2.2.1 s have hXW i s a : stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ X i s a = 1 := (hΟ‡ i).2.2.2.2.2 _ a s obtain ⟨hρs,hρi,hρp,hρm,Ξ”,H,hΞ”,hΞ”t,hHc,hHe,hgeo,hgraph,hlimit,S,hSN,_hST,hTE,hgood⟩ := hs.2.2 Ξ΄ cut hΞ΄ hΞ΄' X hXs hXc hXcompact hXzero hXbound hXW have hTE' n (hn : 0 < n) i j : j ∈ S n i ↔ Ο‡ i ((j:ℝ)/n) β‰  0 := by simpa only [X,exists_const] using hTE n hn i j have hSd n (hn : 0 < n) : Pairwise (fun i j => Disjoint (S n i) (S n j)) := by intro i j hij rw [Finset.disjoint_left] intro k hki hkj exact Set.disjoint_left.mp (hdisj hij) (subset_tsupport _ ((hTE' n hn i k).mp hki)) (subset_tsupport _ ((hTE' n hn j k).mp hkj)) refine ⟨hcp,Ξ΄,cut,Ο‡,Ξ”,H,hΞ΄,hΞ΄',?_,hdisj,hΞ”,hΞ”t,hHc,hHe,hρs,hρi,hρp,hρm,hgeo,hgraph,hlimit,S,hSd,hTE',?_⟩ Β· exact fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1,(hΟ‡ i).2.2.2.1,(hΟ‡ i).2.2.2.2.1⟩ have hsmall : 0 < Ξ΅/4 := by positivity filter_upwards [hgood (Ξ΅/4) hsmall] with n hn have hn0 := hn.1 refine ⟨hn0,?_,?_⟩ Β· intro i have hh := hn.2 i dsimp only at hh ⊒ have hden : foldCircleDensity (stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i 0)) = F.density i := by simpa only [Fc,PassagePackets.carrier,Int.cast_natCast,PassagePackets.density, PassagePackets.weight] using F.density_carrier hmod (c:β„€) i have hmass : (∫ s, stationaryWeight (Icc (F.l-F.R) (F.u+F.R)) (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i 0) s)*(4*Ξ΄+Ξ΅β‚€) < Ξ΅/4 := by have he := F.weight_mass_carrier hmod (c:β„€) i dsimp only [PassagePackets.weight,PassagePackets.carrier] at he simp only [Int.cast_natCast] at he rw [he] exact (mul_le_mul_of_nonneg_right ((hWM i).trans hWK) hcoef).trans_lt hCK have hAint : Integrable (fun u : UnitAddCircle => β€–F.A i (u,0)β€–^2) AddCircle.haarAddCircle := (((F.continuous_amplitude i).comp (continuous_id.prodMk continuous_const)).norm.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) have hMint : (∫ u, β€–F.A i (u,0)β€–^2 βˆ‚AddCircle.haarAddCircle) ≀ M := by calc _ ≀ ∫ _u : UnitAddCircle, M βˆ‚AddCircle.haarAddCircle := integral_mono hAint (integrable_const _) (fun u => hAM i (u,0)) _ = M := by simp rw [hden] at hh refine ⟨lt_trans hh.1 ?_,lt_trans hh.2.1 (by linarith),hh.2.2.2.1⟩ have hhM := mul_le_mul_of_nonneg_left hMint (show 0 ≀ 8*Ξ΄ by positivity) linarith Β· let ρ := signalJitter Ξ± Ξ³ d (signalPrimeProduct L) B c let Hl (n : β„•) (x : ℝ) := (n:ℝ)*((∫ t in 0..x, (c:ℝ)+F.V t)+Ξ” n*x) have hHl n : ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Hl n) := contDiff_const.mul ((contDiff_real_primitive (contDiff_const.add F.smooth_speed)).add (contDiff_const.mul contDiff_id)) have hJs := lawJitter_smooth cut hρs hρi hρp hρm have hJd x (hx : x ∈ Ioo Ξ΄ (1-Ξ΄)) : 0 < deriv (lawJitter ρ cut) x := by obtain ⟨he,hp⟩ := lawJitter_deriv_pos cut hρs hρi hρp hρm hΞ΄ hx rwa [he.deriv] obtain ⟨G,hGm,hGA,_hGAβ‚€,hGV,_hGo,_hGl,_hGu,hGmod⟩ := literal_output_packets F.m F.A H Hl X (S n) (hSN n hn0) F.continuous_amplitude F.smooth_amplitude hXs hXc hHc hHl hHe cut hΞ΄ hΞ΄' (periodize_periodic _) hJs hJd hn0 have heψ : βˆ€ x ∈ Ioc (0:ℝ) (0+1), neutralCircleCutoff cut (x:UnitAddCircle) = cut.ψ x := by intro x hx rw [neutralCircleCutoff_coe] exact periodize_eq_on_unit ((subset_tsupport cut.ψ).trans (cut.ψ_support.trans (by intro z hz; constructor <;> linarith [hz.1,hz.2]))) ⟨hx.1.le,by simpa using hx.2⟩ have hsψ : tsupport cut.ψ βŠ† Ioc (0:ℝ) (0+1) ∩ Ioo Ξ΄ (1-Ξ΄) := by intro x hx have hh := cut.ψ_support hx exact ⟨⟨by linarith [hh.1],by linarith [hh.2]⟩,hh⟩ have hGden (i : PassageOutputIndex (S n)) : G.density i = exactRetainedPacketDensity (Ioo Ξ΄ (1-Ξ΄)) (lawJitter ρ cut) (neutralCircleCutoff cut) (X i.1) (F.m i.1) H (F.A i.1) {i.2.val} n := by apply literal_packet_canonical_density G hGmod i (hGm i) (hGA i) ?_ (continuous_quantileCircleJitter cut hρs hρi hρp hρm) hJs (fun _ _ => rfl) isOpen_Ioo (lawJitter_injOn cut hρs.continuous hρi hρp hρm hΞ΄) (fun x hx => (hJd x hx).ne') (continuous_neutralCircleCutoff cut) cut.ψ_smooth cut.ψ_compact heψ hsψ (hXc i.1) (hXs i.1) hHc hHl hHe (F.continuous_amplitude i.1) (F.smooth_amplitude i.1) hn0 intro a obtain ⟨x,rfl⟩ := Quotient.mk_surjective a change (G.V x:UnitAddCircle) = _ rw [hGV] rfl refine ⟨G,?_,hGmod,hGV,hGm,hGA,hGden,?_⟩ Β· have he : G.m = fun i : PassageOutputIndex (S n) => i.2.val := funext hGm rw [he] exact output_index_injective (hSd n hn0) Β· intro i E inst simp_rw [hGden] exact exactRetainedPacketDensity_filtered_singletons hJs isOpen_Ioo (lawJitter_injOn cut hρs.continuous hρi hρp hρm hΞ΄) (fun x hx => (hJd x hx).ne') cut.ψ_smooth cut.ψ_compact heψ hsψ (hXs i) hHl hHe (F.smooth_amplitude i) hn0 (hSN n hn0 i) E end ThreeTorus end end section /-! Support tracking for the actual next packets. Canonical density support is linked to a genuine old-amplitude point; the same point controls both normalized angular indices and temporal frequencies. -/ noncomputable section open Set Function Filter MeasureTheory open scoped Topology BigOperators namespace ThreeTorus namespace PassagePackets variable {ΞΉ : Type*} (F : PassagePackets ΞΉ) lemma speed_bound : βˆƒ P : ℝ, 0 ≀ P ∧ βˆ€ x, |F.V x| ≀ P := by obtain ⟨P,hP⟩ := (isCompact_range F.speed_continuous).isBounded.exists_norm_le exact ⟨max P 0,le_max_right _ _,fun x => (hP _ (mem_range_self (x:UnitAddCircle))).trans (le_max_left _ _)⟩ lemma angular_bound [Finite ΞΉ] : βˆƒ M : ℝ, 0 ≀ M ∧ βˆ€ i, |(F.m i:ℝ)| ≀ M := by obtain ⟨M,hM⟩ := (Set.finite_range (fun i => (F.m i:ℝ))).isCompact.isBounded.exists_norm_le exact ⟨max M 0,le_max_right _ _,fun i => (hM _ (mem_range_self i)).trans (le_max_left _ _)⟩ end PassagePackets lemma periodic_real_bound {J : ℝ β†’ ℝ} (hs : Continuous J) (hp : Periodic J 1) : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€ x, |J x| ≀ B := by have hc : Continuous hp.lift := by apply Continuous.quotient_lift exact hs obtain ⟨B,hB⟩ := (isCompact_range hc).isBounded.exists_norm_le exact ⟨max B 0,le_max_right _ _,fun x => (hB _ (mem_range_self (x:UnitAddCircle))).trans (le_max_left _ _)⟩ /-- The tracked frequency cutoff already controls every retained index, including zero-amplitude packets. The temporal inequality holds for every new speed point. -/ theorem literal_output_tracking {ΞΉ : Type*} {F : PassagePackets ΞΉ} {S : ΞΉ β†’ Finset β„€} {G : PassagePackets (PassageOutputIndex S)} {Ο‡ : ΞΉ β†’ ℝ β†’ ℝ} {c n : β„•} {B D P M Q Ο„ : ℝ} {J : ℝ β†’ ℝ} (hc : 0 < c) (hn : 0 < n) (hB : 0 < B) (hD : βˆ€ i, |(F.m i:ℝ)/B| ≀ D) (hP : βˆ€ x, |F.V x| ≀ P) (hM : βˆ€ i, |(F.m i:ℝ)| ≀ M) (hQ : βˆ€ x, |J x| ≀ Q) (hS : βˆ€ i j, j ∈ S i β†’ Ο‡ i ((j:ℝ)/n) β‰  0) (hΟ‡ : βˆ€ i s, s ∈ tsupport (Ο‡ i) β†’ βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ο„) (hm : βˆ€ i, G.m i = i.2.val) (hV : G.V = fun x => (1+J x/n)/n) : βˆ€ i, βˆƒ x ∈ F.core i.1, |(G.m i:ℝ)/((n:ℝ)*c*B)-(F.m i.1:ℝ)/B| ≀ D*P/c+Ο„/((c:ℝ)*B) ∧ βˆ€ y, dist ((G.m i:ℝ)*G.V y:UnitAddCircle) ((F.m i.1:ℝ)*F.V x:UnitAddCircle) ≀ Ο„+(M*((c:ℝ)+P)+Ο„)*Q/n := by intro i obtain ⟨x,hx,htrack⟩ := hΟ‡ i.1 _ (subset_tsupport _ (hS i.1 i.2.val i.2.property)) have hcR : 0 < (c:ℝ) := by exact_mod_cast hc have hnR : 0 < (n:ℝ) := by exact_mod_cast hn have hP0 : 0 ≀ P := (abs_nonneg _).trans (hP 0) have hs := passage_retained_size hcR.le (hP x) htrack.le have hsM : |(i.2.val:ℝ)/n| ≀ M*((c:ℝ)+P)+Ο„ := hs.trans (by gcongr exact hM i.1) refine ⟨x,hx,?_,?_⟩ Β· rw [hm i] have heq : (i.2.val:ℝ)/((n:ℝ)*c*B) = ((i.2.val:ℝ)/n)/((c:ℝ)*B) := by ring rw [heq] exact passage_index_drift hcR hB (hD i.1) (hP x) htrack.le Β· intro y rw [hm i,hV] have heq : (i.2.val:ℝ)*((1+J y/n)/n) = (i.2.val:ℝ)/n+((i.2.val:ℝ)/n)*J y/n := by ring rw [heq] have ht := passage_temporal_drift (J := J y) (c := (c:β„€)) hn (by simpa only [Int.cast_natCast] using htrack.le) apply ht.trans exact add_le_add le_rfl (div_le_div_of_nonneg_right (mul_le_mul hsM (hQ y) (abs_nonneg _) ((abs_nonneg _).trans hsM)) hnR.le) /-- Every nonzero output density is close to an OLD support point. This uses literal angular indices and speed, not weak convergence of the densities. -/ theorem canonical_output_tracking {ΞΉ : Type*} {F : PassagePackets ΞΉ} {S : ΞΉ β†’ Finset β„€} {G : PassagePackets (PassageOutputIndex S)} {Ο‡ : ΞΉ β†’ ℝ β†’ ℝ} {c n : β„•} {B D P M Q Ο„ : ℝ} {J : ℝ β†’ ℝ} (hc : 0 < c) (hn : 0 < n) (hB : 0 < B) (hD : βˆ€ i, |(F.m i:ℝ)/B| ≀ D) (hP : βˆ€ x, |F.V x| ≀ P) (hM : βˆ€ i, |(F.m i:ℝ)| ≀ M) (hQ : βˆ€ x, |J x| ≀ Q) (hS : βˆ€ i j, j ∈ S i β†’ Ο‡ i ((j:ℝ)/n) β‰  0) (hΟ‡ : βˆ€ i s, s ∈ tsupport (Ο‡ i) β†’ βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ο„) (hm : βˆ€ i, G.m i = i.2.val) (hV : G.V = fun x => (1+J x/n)/n) : βˆ€ i z, G.density i z β‰  0 β†’ βˆƒ x ∈ F.core i.1, |(G.m i:ℝ)/((n:ℝ)*c*B)-(F.m i.1:ℝ)/B| ≀ D*P/c+Ο„/((c:ℝ)*B) ∧ dist z ((F.m i.1:ℝ)*F.V x:UnitAddCircle) ≀ Ο„+(M*((c:ℝ)+P)+Ο„)*Q/n := by intro i z hz obtain ⟨x,hx,hidx,ht⟩ := literal_output_tracking hc hn hB hD hP hM hQ hS hΟ‡ hm hV i obtain ⟨y,_hy,he⟩ := G.density_support i hz exact ⟨x,hx,hidx,he β–Έ ht y⟩ /-- Large carrier first, small cutoff enlargement second, and final integer last. The bounded jitter only affects this LAST choice. -/ lemma support_drift_budgets {D P M B e : ℝ} (hB : 0 < B) (he : 0 < e) : βˆ€αΆ  c : β„• in atTop, 0 < c ∧ βˆ€ Ο„ : ℝ, 0 < Ο„ β†’ Ο„ < e/2 β†’ D*P/c+Ο„/((c:ℝ)*B) < e ∧ βˆ€ Q : ℝ, βˆ€αΆ  n : β„• in atTop, 0 < n ∧ Ο„+(M*((c:ℝ)+P)+Ο„)*Q/n < e := by have hlim : Tendsto (fun c : β„• => D*P/(c:ℝ)+(e/2)/((c:ℝ)*B)) atTop (𝓝 0) := by have hc := tendsto_natCast_atTop_atTop (R := ℝ) have h₁ : Tendsto (fun c : β„• => D*P/(c:ℝ)) atTop (𝓝 0) := tendsto_const_nhds.div_atTop hc have hβ‚‚ : Tendsto (fun c : β„• => (e/2)/((c:ℝ)*B)) atTop (𝓝 0) := tendsto_const_nhds.div_atTop (hc.atTop_mul_const hB) simpa using h₁.add hβ‚‚ filter_upwards [eventually_gt_atTop (0:β„•),hlim.eventually (gt_mem_nhds he)] with c hc hh refine ⟨hc,fun Ο„ _hΟ„ hΟ„e => ⟨?_,?_⟩⟩ Β· have hcR : 0 < (c:ℝ) := by exact_mod_cast hc exact (add_le_add_right (div_le_div_of_nonneg_right hΟ„e.le (mul_pos hcR hB).le) _).trans_lt hh Β· intro Q have hlimn : Tendsto (fun n : β„• => Ο„+(M*((c:ℝ)+P)+Ο„)*Q/(n:ℝ)) atTop (𝓝 Ο„) := by simpa using tendsto_const_nhds.add (tendsto_const_nhds.div_atTop (tendsto_natCast_atTop_atTop (R := ℝ)) : Tendsto (fun n : β„• => (M*((c:ℝ)+P)+Ο„)*Q/(n:ℝ)) atTop (𝓝 0)) exact (eventually_gt_atTop (0:β„•)).and (hlimn.eventually (gt_mem_nhds (by linarith))) end ThreeTorus end end end OAI
import OAI.Dynamics.ThreeTorus.PassageFamilies
namespace OAI
/-! Closed finite packet states, canonical densities, residue reindexing, anchors, reflection, clipping, and state tracking. -/
section
/-! Concrete finite-packet input data and the support bookkeeping used by
iteration. Field regularity is inherited from literal amplitudes. -/
noncomputable section
open Set Function Filter MeasureTheory
open scoped Topology BigOperators
namespace ThreeTorus
namespace PassagePackets
variable {ΞΉ : Type*} (F : PassagePackets ΞΉ)
def core (i : ΞΉ) : Set ℝ := tsupport (F.Aβ‚€ i 0)
lemma core_subset (i : ΞΉ) : F.core i βŠ† Icc F.l F.u :=
closure_minimal ((F.support_lift i 0).trans Ioc_subset_Icc_self) isClosed_Icc
lemma core_compact (i : ΞΉ) : IsCompact (F.core i) :=
isCompact_Icc.of_isClosed_subset (isClosed_tsupport _) (F.core_subset i)
lemma support_subset_core (hmod : F.SpareIndependent) (i : ΞΉ) (a : UnitAddCircle) :
support (F.Aβ‚€ i a) βŠ† F.core i := by
intro x hx
apply subset_tsupport _
intro hz
apply hx
apply norm_eq_zero.mp
rw [hmod.1 i a x,hz,norm_zero]
lemma amplitude_bound [Finite ΞΉ] : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€ i p, β€–F.A i pβ€–^2 ≀ B := by
classical
have hb i := (isCompact_range ((F.continuous_amplitude i).norm.pow 2)).isBounded.exists_norm_le
choose B hB using hb
obtain ⟨C,hC⟩ := (Set.finite_range B).isCompact.isBounded.exists_norm_le
refine ⟨max C 0,le_max_right _ _,fun i p => ?_⟩
have h₁ := hB i _ (mem_range_self p)
have hβ‚‚ := hC _ (mem_range_self i)
exact (le_abs_self _).trans (h₁.trans ((le_abs_self _).trans (hβ‚‚.trans (le_max_left _ _))))
/-- Adding an integral carrier changes no temporal eigenfrequency modulo one. -/
def carrier (c : β„€) : PassagePackets ΞΉ := { F with
V := fun x => (c:ℝ)+F.V x
periodic := fun x => by dsimp; rw [F.periodic x]
smooth_speed := contDiff_const.add F.smooth_speed
positive_deriv := fun x hx => by
simpa only [deriv_const_add] using F.positive_deriv x hx }
lemma carrier_spare (c : β„€) (hmod : F.SpareIndependent) :
(F.carrier c).SpareIndependent := hmod
lemma carrier_circle (c : β„€) (x : ℝ) :
((F.carrier c).V x:UnitAddCircle) = (F.V x:UnitAddCircle) := by
change (((c:ℝ)+F.V x:ℝ):UnitAddCircle) = _
rw [AddCircle.coe_add]
have hc : ((c:ℝ):UnitAddCircle) = 0 :=
(AddCircle.coe_eq_zero_iff 1).mpr ⟨c,by simp⟩
rw [hc,zero_add]
/-- Scalar cutoffs with arbitrarily small support tracking error exist for
EVERY sufficiently large carrier. Choosing the carrier is therefore still
compatible with the signal-law and normalized-index error bounds. -/
theorem tracked_cutoffs [Finite ΞΉ] (hi : Injective F.m)
(hmod : F.SpareIndependent) {Ξ· : ℝ} (hΞ· : 0 < Ξ·) :
βˆ€αΆ  c : β„• in atTop, 0 < c ∧ βˆƒ Ο‡ : ΞΉ β†’ ℝ β†’ ℝ,
(βˆ€ i, ContDiff ℝ ((⊀ : β„•βˆž) : WithTop β„•βˆž) (Ο‡ i) ∧ HasCompactSupport (Ο‡ i) ∧
Ο‡ i 0 = 0 ∧ (βˆ€ s, 0 ≀ Ο‡ i s ∧ Ο‡ i s ≀ 1) ∧
(βˆ€ s ∈ tsupport (Ο‡ i), βˆƒ x ∈ F.core i, |s-(F.m i:ℝ)*((c:ℝ)+F.V x)| < Ξ·) ∧
βˆ€ (C : Set ℝ) a s, stationaryWeight C
(fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) (F.Aβ‚€ i a) s β‰  0 β†’ Ο‡ i s = 1) ∧
Pairwise (fun i j => Disjoint (tsupport (Ο‡ i)) (tsupport (Ο‡ j))) := by
have hv : Continuous F.periodic.lift := by
apply Continuous.quotient_lift
exact F.smooth_speed.continuous
filter_upwards [eventually_integral_speed_separation F.m F.periodic.lift F.nonzero hv] with c hc
have hzero i : 0 βˆ‰ (fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i := by
rintro ⟨x,_hx,he⟩
exact hc.2.1 i (x:UnitAddCircle) he
have hsep : Pairwise (fun i j => Disjoint
((fun x => (F.m i:ℝ)*((c:ℝ)+F.V x)) '' F.core i)
((fun x => (F.m j:ℝ)*((c:ℝ)+F.V x)) '' F.core j)) := by
intro i j hij
rw [Set.disjoint_left]
rintro s ⟨x,_hx,rfl⟩ ⟨y,_hy,he⟩
exact hij (hi (hc.2.2 i j (x:UnitAddCircle) (y:UnitAddCircle) he.symm))
obtain βŸ¨Ο‡,hΟ‡,hd⟩ := tracked_frequency_cutoffs F.m (fun x => (c:ℝ)+F.V x) F.core
(continuous_const.add F.smooth_speed.continuous) F.core_compact hzero hsep hΞ·
exact ⟨hc.1,Ο‡,fun i => ⟨(hΟ‡ i).1,(hΟ‡ i).2.1,(hΟ‡ i).2.2.1,
(hχ i).2.2.2.1,(hχ i).2.2.2.2.2.1,fun C a s =>
(hΟ‡ i).2.2.2.2.2.2 C (F.Aβ‚€ i a) (F.support_subset_core hmod i a) s⟩,hd⟩
end PassagePackets
end ThreeTorus
end
end