The recovery algorithm is one polynomial-time adversary activation
ProvedCityLWE.recovery_machinecryptographylattice-cryptographylearning-with-errors
Let be unary polynomial-time computable, with prime and for constants . Let be a unary polynomial-time sample schedule, let be a valid (uniform polynomial-time) distinguisher, and let . Then there exist and a valid search adversary with the following properties.
- The schedule is unary polynomial-time.
- For every :
- ;
- ;
- ;
- .
- For every and every error law on :
In words, the coordinate-guessing recovery algorithm with weight is implemented by a single activation of a uniform polynomial-time adversary, with polynomially many samples and coins. This is the machine half of the search-to-decision reduction.
Preamble
import Definitions.Def_CityLWE_RecoveryTest open QAlgorithms.Complexity PPSLattice
Formal statement
namespace CityLWE
theorem recovery_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)))
(D : RestrictedDec.Adversary) (hD : D.Valid) (a : ℕ) :
∃ T Lb Qs Ptot : ℕ → ℕ,
PolyTimeOn (fun n : ℕ => encNat n) (fun n => encNat (T n * m n)) ∧
(∀ n, q n ≤ Qs n ∧ 16 * n ^ a * m n * q n ≤ 2 ^ Lb n ∧
128 * (n * q n + 1) * (n ^ a) ^ 2 ≤ T n ∧
(n * Qs n + 1) * T n * (m n * Lb n + D.p.eval n) ≤ Ptot n) ∧
∃ S : RestrictedDec.Adversary, S.Valid ∧
∀ n (χ : PMF (ZMod (q n))),
searchProb (q n) n (T n * m n) n χ S =
recoverProb (q n) n (m n) (T n) (Lb n) (Qs n) (n ^ a) D (Ptot n) χ := by sorry
end CityLWESource
Oded Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, JACM 56(6), 2009, Lemma 4.2. https://cims.nyu.edu/~regev/papers/qcrypto.pdf Child of CityLWE.searchHard_implies_decisionHard (mission Cryptology City I).