Documentation

CslibFrontier.Computability.MCSP.PartialHardness.Seeded

Seeding the CMMSA construction with random tables #

The library's randomized reductions from GapCMMSA to partial MCSP (issue #4362, route B) and to MINKT* (issue #4447) read the functions of the variables of a CMMSA instance I from a random string. This module provides the part they share. The reductions and their analysis are the library's own; [Hir22] fixes only the shape of the problems.

rpReducible_of_seeded and exists_hard_params are library results, with no counterpart in [Hir22].

Main definitions #

Main results #

References #

The scale and the seed #

The scale λ₀ (|I| + 1)², for the length |I| of the encoding of I.

The scale is at least λ₀ (N + 1)² for every N at most the length of the encoding.

theorem Cslib.PartialMCSP.FromCMMSA.one_le_lamOf {lam₀ : ℕ} (h : 1 ≤ lam₀) (I : Complexity.CMMSAInstance) :
1 ≤ lamOf lam₀ I

The scale is positive when λ₀ is.

The length of the random string: 2 (λ₀ + 1) (N + 1) ^ 4 for an encoding of length N.

theorem Cslib.PartialMCSP.FromCMMSA.seedLen_eval (lam₀ N : ℕ) :
Polynomial.eval N (seedLen lam₀) = 2 * (lam₀ + 1) * (N + 1) ^ 4

The length of the random string for an encoding of length N.

The functions of the variables read from a random string r: variable v reads its table, in the order of BitString.equivFin, from the bits of r starting at v 2 ^ W.

Every block holds the table of its variable.

The explicit tables #

The explicit tables of the seeded functions, read from the random string: entry y of variable v is bit v 2 ^ W + y.

theorem Cslib.PartialMCSP.FromCMMSA.isVarTable_seededTables (lam₀ : ℕ) (I : Complexity.CMMSAInstance) (r : List Bool) (v : ℕ) :
IsVarTable I (lamOf lam₀ I) (seededFunctions lam₀ I r) (seededTables lam₀ I r) v

The explicit tables are the tables of the seeded functions.

The randomized reduction #

A seeded map is a randomized reduction. Let out I f be computed from a CMMSA instance and the functions of its variables at the scale lamOf λ₀ I. Suppose it is polynomial-time under the seeded functions, lies in Y.yes for every f when I ∈ X.yes, and lies outside Y.no for at most a third of the functions f when I ∈ X.no. Then X reduces to Y by a randomized reduction with one-sided error. This is a library result (issue #4362, route B).

The parameters #

theorem Cslib.PartialMCSP.FromCMMSA.exists_hard_params :
∃ (Δ : ℕ) (k : ℕ) (δ₀ : ℝ) (g : ℝ), Odd k ∧ 0 ≤ δ₀ ∧ δ₀ ≤ 1 / 2 ∧ (1 - 2 * δ₀) ^ k ≤ 1 / (2 * ↑Δ ^ 2) ∧ 24 * Real.log 2 < g * (Real.log 2 - Real.binEntropy δ₀) ∧ Complexity.PromiseProblem.NPHard Complexity.CMMSAInstance.encoding (Complexity.GapCMMSA Δ g 1)

Parameters for the reductions. There are a bound Δ, an odd k, a bias δ₀ and a gap g satisfying the hypotheses of the soundness count for P = 1, with room to spare (24 log 2 < g (log 2 - H(δ₀))), such that GapCMMSA Δ g 1 is NP-hard. Clients get only these facts (the proof takes δ₀ = 1/4). This is a library result (issue #4362, route B).