File size: 2,923 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | import OAI.NumberTheory.TwoPoint.Bounds.ActiveStateVectors
import OAI.NumberTheory.TwoPoint.Bounds.EventualResidueComparison
namespace OAI
/-! Arbitrary functions of the bounded active sets at the trace vertices
are compared at every finite interval, using their exact state expansion. -/
namespace TwoPointCorrelations
open Finset Filter
theorem BravermanDepth22Input.eventually_active_state_comparison (hBr : BravermanDepth22Input) :
β A : β, 1000 β€ A β§ βαΆ L : β in atTop,
β (m : β) (s : Fin m β β) [β i, NeZero (s i)],
0 < m β (m : β) β€ Real.exp L + 1 β
Pairwise (fun i j => (s i).Coprime (s j)) β
(β i, (s i : β) β€ Real.exp L) β
β (R n Ninput M : β), (n : β) β€ Real.exp L β
(M : β) β€ 400 * Real.log L β (R : β) β€ 4 * L β
β (coord : Fin Ninput β Fin m)
(test : β i, ZMod (s (coord i)) β Bool)
(index : Fin R β Fin n β Fin Ninput)
(f : (Fin R β Finset (Fin n)) β β),
(β b : Fin R β boundedActiveStates n M,
|f (fun r => (b r).val)| β€ Real.exp (L ^ 4)) β
β a N : β, Real.exp (L ^ A / 2) β€ (N : β) β
let F := fun z : β j, ZMod (s j) =>
let bits := residueCircuitInputs s coord test z
if β r, (activeState (fun i => bits (index r i))).card β€ M
then f (fun r => activeState (fun i => bits (index r i))) else 0
|uniformAverage (fun x : Fin N => F (fun j => (a + x.val : ZMod (s j)))) -
uniformAverage F| β€ Real.exp (-(L ^ 9)) := by
obtain β¨A, hA, hscalarβ© := hBr.eventually_scalar_residue_comparison 1 (by norm_num)
refine β¨A, hA, ?_β©
filter_upwards [hscalar, eventually_ge_atTop (4800 : β)] with L hscalar hL
intro m s _ hm hmexp hcop hs R n Ninput M hn hM hR coord test index f hf a N hN
let c := fun b : Fin R β boundedActiveStates n M =>
activeStateVectorCircuit index (fun r => (b r).val)
let coeff := fun b : Fin R β boundedActiveStates n M => f (fun r => (b r).val)
have hb := hscalar m s hm hmexp hcop hs _ Ninput coord test c coeff
(fun b => (activeStateVectorCircuit_depth index _).trans (by norm_num))
(fun b => activeStateVector_size_budget L index _ (by linarith) hn hR)
(by simpa only [one_mul] using activeStateVector_coefficient_budget L f hL hn hM hR hf)
a N hN
have hexpand (z : β j, ZMod (s j)) :
(if β r, (activeState (fun i => residueCircuitInputs s coord test z (index r i))).card β€ M
then f (fun r => activeState (fun i => residueCircuitInputs s coord test z (index r i))) else 0) =
β b : Fin R β boundedActiveStates n M, coeff b *
eventIndicator (residueCircuitEvent s coord test (c b)) z :=
activeStateVector_scalar_expansion M index f (residueCircuitInputs s coord test z)
dsimp only
simpa only [β hexpand] using hb
end TwoPointCorrelations
end OAI
|