Download data/lean/OAI/NumberTheory/TwoPoint/Bounds/ActiveStateComparison.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.92 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/Bounds/ActiveStateComparison.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/TwoPoint/Bounds/ActiveStateComparison.lean
-
curl -L -o ActiveStateComparison.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/Bounds/ActiveStateComparison.lean
2.92 kB
| 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 | |