Agreement test: a search solver gives decision advantage
ProvedCityLWE.agreement_test_advantageLet the prime modulus be unary polynomial-time computable and polynomially bounded, and fix any family of error laws on . Let be a unary polynomial-time sample count and let be a valid (uniform, polynomial-time) search adversary, with success probability of outputting the exact encoding of the secret on LWE samples in dimension . Write .
Then there are a unary polynomial-time sample count and a valid decision adversary such that for every
where is the decision advantage of between LWE samples and uniform samples (with read as when ).
This is the quantitative core of the reduction from decision LWE to search LWE: a search solver whose success beats the trivial guessing probability by a nonnegligible amount yields a distinguisher with nonnegligible advantage, using more samples sharing the same secret (the natural construction is a two-block masked agreement test with ). The hypotheses on match the mission's goal theorem; primality guarantees for .
import Definitions.Def_CityLWE_DecisionExperiment open QAlgorithms.Complexity PPSLattice
namespace CityLWE
theorem agreement_test_advantage (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)
(χ : (n : ℕ) → PMF (ZMod (q n)))
(m : ℕ → ℕ) (hm : PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (m n)))
(S : RestrictedDec.Adversary) (hS : S.Valid) :
∃ m' : ℕ → ℕ, PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (m' n)) ∧
∃ D : RestrictedDec.Adversary, D.Valid ∧
∀ n, (q n : ℝ) ^ n / ((q n : ℝ) ^ n - 1) *
(searchProb (q n) n (m n) n (χ n) S - 1 / (q n : ℝ) ^ n) ^ 2 - 1 / (2 : ℝ) ^ n ≤
decisionAdvantage (q n) n (m' n) n (χ n) D := by sorry
end CityLWE