lemmaSplitSieve.pointEntropy_exact_start (s : SplitSieve) (K : ForwardKernel)
(z : ℕ→GaussianInt) (a b : ℕ) :
s.pointEntropy ((TimeLaw.at a).advance K).law (fun t => z t.val) b=
s.pointEntropy (K.law a) (fun t => z (a+t.val)) b :=by
proof · 5
lines
rw [TimeLaw.at_advance]
change s.pointEntropy ((K.law a).map
(fun t => (⟨a+t.val,by omega⟩ : Fin (a+K.bound+1)))) (fun t => z t.val) b = _
rw [s.pointEntropy_map]
rfl
theoremTimeLaw.advance_entropy_succ (P : TimeLaw) (K : ForwardKernel) (s : SplitSieve)
(z : ℕ→GaussianInt) {D : ℝ} (hD : 1≤D)
(hs : ∀ t, dist (z t:ℂ) (z (t+1):ℂ)≤D) (b : ℕ) :
s.pointEntropy P.law (fun a => z a.val) b-
(Real.log 36+2*Real.log (D*(K.bound+1))) ≤
s.pointEntropy (P.advance K).law (fun a => z a.val) b :=by
proof · 21
lines
letQ:=P.law.joint (fun a =>K.law a.val)
have hh := s.pointEntropy_shift Q (fun v => z v.1.val)
(fun v => z (v.1.val+v.2.val)) b
have hf := s.pointEntropy_joint_fst P.law (fun a =>K.law a.val) (fun a => z a.val) b
change s.pointEntropy Q (fun v => z v.1.val) b=_ at hf
rw [hf] at hh
havehe : s.pointEntropy (P.advance K).law (fun a => z a.val) b=
s.pointEntropy Q (fun v => z (v.1.val+v.2.val)) b :=by
unfold TimeLaw.advance
rw [s.pointEntropy_map]
rfl
havehc : Q.Hf (fun v => z (v.1.val+v.2.val)-z v.1.val) ≤Real.log 36+2*Real.log (D*(K.bound+1)) :=by
apply displacement_entropy_le
· exact one_le_mul_of_one_le_of_one_le hD (by exact_mod_cast Nat.le_add_left 1K.bound)
· intro v
have hd := walk_pair_displacement z (by linarith only [hD]) hs
v.1.val (K.bound+1) v.2.val 0 (by omega) (by omega)
simpa only [Nat.add_zero,Nat.cast_add,Nat.cast_one] using hd
rw [he]
linarith only [hh,hc]
theoremcommonSchedule_subband_entropy (s : SplitSieve) (hne : s.primes.Nonempty)
(z : ℕ→GaussianInt) (hinj : Function.Injective z)
(pre post : Listℕ) (a N : ℕ) {DTUg e : ℝ} {l : ℕ}
(hD : 1≤D) (hT : 5≤T) (hs : ∀ t, dist (z t:ℂ) (z (t+1):ℂ)≤D)
(hpT : ∀ p∈s.primes, T≤(p:ℝ) ∧ (p:ℝ)≤2*T)
(hg : 0<g) (hg1 : g≤1/200) (hL : 1≤ s.meanLog) (hU : 0<U)
(hlog : 2*(1+Real.log 18)≤g*bandScale g U l)
(hlarge : 640*s.meanLog≤g^5*bandScale g U l)
(hsize : Real.log 16+Real.log (max D ((latticeBall (4*D)).card:ℝ))≤g^2*bandScale g U l)
(hdisp : 4*Real.log D+2*Real.log 36≤4*g*bandScale g U l)
(hgeom : 2*Real.log 16+4*Real.log D≤bandScale g U l/4)
(hcap : ⌊U/s.meanLog⌋₊≤ s.primes.card)
(hcost : Real.log 36+2*Real.log (D*((post.sum+N:ℕ)+1)) ≤
e*(bandSize s g Ul:ℝ)*s.meanLog) :
(1-(1/2:ℝ)^l-80*g-e)*(bandSize s g Ul:ℝ)*s.meanLog ≤
s.pointEntropy ((commonSchedule z
(pre++List.ofFn (funi : Fin l => bandLength g U i.val)++post) N).law a)
(fun t => z (a+t.val)) (bandSize s g U l) :=by
proof · 13
lines
rw [← s.pointEntropy_exact_start]
rw [List.append_assoc,TimeLaw.advance_common_append,TimeLaw.advance_common_append,
TimeLaw.foldl_ofFn]
letP:= pre.foldl (funQ k =>Q.step z k) (TimeLaw.at a)
have h1 :=P.geometric_band_entropy s hne z hinj hD hT hs hpT hg hg1 hL hU
hlog hlarge hsize hdisp hgeom hcap
have h2 := (P.run z (bandLength g U) l).advance_entropy_succ
(commonSchedule z post N) s z hD hs (bandSize s g U l)
rw [commonSchedule_bound] at h2
change _ ≤ s.pointEntropy ((P.run z (bandLength g U) l).advance (commonSchedule z post N)).law
(fun a => z a.val) (bandSize s g U l)
simp only [Nat.cast_add] at hcost h2
nlinarith only [h1,h2,hcost]
lemmaForwardKernel.ext_observe (KR : ForwardKernel) (hb : K.bound=R.bound)
(h : ∀ (a : ℕ) {α : Type} [Fintype α] (f : ℕ→ α),
(K.law a).map (fun t => f (a+t.val))=(R.law a).map (fun t => f (a+t.val))) : K=R:=by
proof · 14
lines
cases Kwith | mk n p =>
cases Rwith | mk m q =>
dsimp only at hb
subst m
congr 1
funext a
letf : ℕ→Fin (n+1) :=fun t => ⟨min (t-a) n,by omega⟩
have hh := h a f
havehe : (funt : Fin (n+1) => f (a+t.val))=id :=by
funext t
apply Fin.ext
dsimp only [f,id_eq]
omega
simpa only [he,FinLaw.map_id] using hh
lemmacommonSchedule_append (z : ℕ→GaussianInt) (ns ms : Listℕ) (N : ℕ) :
commonSchedule z (ns++ms) N=(commonSchedule z ns 0).then (commonSchedule z ms N) :=by
proof · 4
lines
induction ns with
| nil => exact (ForwardKernel.zero_then _).symm
| cons n ns ih =>
rw [List.cons_append,commonSchedule_cons,commonSchedule_cons,ih,ForwardKernel.then_assoc]