Download data/lean/OAI/Dynamics/ThreeTorus/PacketStates.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 111 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/ThreeTorus/PacketStates.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Dynamics/ThreeTorus/PacketStates.lean
-
curl -L -o PacketStates.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/ThreeTorus/PacketStates.lean
111 kB
Lean 4 Β· 86
declarations statementsfull
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
Outline
- def
core19 - lemma
core_subset21 - lemma
core_compact24 - lemma
support_subset_core27 - lemma
amplitude_bound36 - def
carrier47 - lemma
carrier_spare54 - lemma
carrier_circle57 - theorem
tracked_cutoffs68 - lemma
continuous_density_unique111 - lemma
fold_density_nonzero122 - lemma
foldCircleDensity_finsetSum_eq136 - def
weight157 - def
density160 - lemma
weight_nonneg162 - lemma
density_nonneg165 - lemma
smooth_zero_lift168 - lemma
weight_regular173 - lemma
density_smooth198 - lemma
density_continuous202 - lemma
speed_continuous205 - theorem
density_spectral210 - lemma
density_marginal226 - lemma
density_carrier233 - lemma
density_support245 - lemma
exactRetainedPacketDensity_nonneg274 - lemma
exactRetainedPacketDensity_singleton285 - lemma
exactRetainedPacketDensity_sum_singletons294 - lemma
exactRetainedPacketDensity_filtered_singletons325 - theorem
literal_packet_canonical_density353 - lemma
sum_residue_rename403 - lemma
exactRetainedPacketDensity_residue_rename433 - lemma
foldCircleDensity_const_mul475 - theorem
exact_neutral_residue_refresh481 - theorem
exists_simultaneous_neutral_residue_passage658 - theorem
eventually_neutral_state_family791 - lemma
tracked_cutoffs_fixed_carrier979 - theorem
eventually_neutral_anchor_family1009 - def
pairedCylinderCutoff1202 - lemma
pairedCylinderCutoff_reflect1206 - lemma
pairedCylinderCutoff_smooth1211 - lemma
pairedCylinderCutoff_tsupport1218 - lemma
pairedCylinderCutoff_compact1223 - lemma
pairedCylinderCutoff_disjoint1228 - lemma
pairedCylinderCutoff_bounds1236 - lemma
pairedCylinderCutoff_one1244 - lemma
symmetric_exact_indices1259 - lemma
retainedAmplitude_reflect1273 - lemma
packet_reflect1281 - lemma
retainedPassage_reflect1285 - def
GoodArc1328 - structure
Reflection1332 - lemma
Reflection.involutive1339 - lemma
Reflection.core1342 - lemma
Reflection.weight1349 - lemma
foldCircleDensity_reflect1358 - lemma
PassagePackets.Reflection.density1371 - theorem
tracked_symmetric_cutoffs_fixed_carrier1380 - def
cylinderCore1446 - lemma
cylinderCore_subset1449 - lemma
cylinderCore_compact1455 - lemma
support_subset_cylinderCore1458 - lemma
reflection_cylinderCore1461 - def
clipped1470 - lemma
clipped_core_subset1528 - theorem
first_separation_cutoffs1554 - def
marginalWeight1659 - def
marginalDensity1663 - lemma
marginalWeight_regular1665 - lemma
marginalDensity_nonneg1689 - lemma
marginalDensity_measurable1693 - lemma
marginalDensity_integrable1696 - theorem
marginalDensity_spectral1701 - lemma
marginalDensity_carrier1719 - lemma
marginalDensity_eq1736 - lemma
weight_integrable1753 - lemma
density_mass1756 - lemma
weight_mass_carrier1760 - lemma
weight_mass_bound1764 - theorem
exists_signal_state_family1785 - lemma
speed_bound2003 - lemma
angular_bound2008 - lemma
periodic_real_bound2014 - theorem
literal_output_tracking2025 - theorem
canonical_output_tracking2065 - lemma
support_drift_budgets2085