Agreement test is a valid polynomial-time adversary
ProvedCityLWE.agreement_machinecryptographylattice-cryptographylearning-with-errors
Let the prime modulus be unary polynomial-time computable and polynomially bounded, let be a unary polynomial-time sample count, and let be a valid search adversary. Then is a unary polynomial-time sample count, and there are a mask length with and a valid (uniform, polynomial-time) decision adversary whose acceptance probability on every law of transcripts with samples equals that of the two-block masked agreement test built from , with coins:
This is the implementation half of the reduction from decision LWE to search LWE: the agreement test is realized by one uniform polynomial-time machine that calls the solver's step function twice.
Preamble
import Definitions.Def_CityLWE_AgreementTest open QAlgorithms.Complexity PPSLattice
Formal statement
namespace CityLWE
theorem agreement_machine (q : ℕ → ℕ)
(hq_time : PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (q n)))
(hq_prime : ∀ n, (q n).Prime)
(hq_poly : ∃ c k : ℕ, ∀ n, q n ≤ c * (n + 1) ^ k)
(m : ℕ → ℕ) (hm : PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (m n)))
(S : RestrictedDec.Adversary) (hS : S.Valid) :
PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (m n + m n)) ∧
∃ L : ℕ → ℕ, (∀ n, q n ^ n * 2 ^ n ≤ 2 ^ L n) ∧
∃ D : RestrictedDec.Adversary, D.Valid ∧
∀ n (views : PMF (Transcript (q n) n (m n + m n))),
decisionAccept (q n) n (m n + m n) n D views =
agreeAccept (q n) n (m n) (S.p.eval n) (L n) S.f views := by sorry
end CityLWESource
Oded Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, JACM 56(6), 2009, Section 4. https://cims.nyu.edu/~regev/papers/qcrypto.pdf Child of CityLWE.agreement_test_advantage (mission Cryptology City I).