Documentation

CslibFrontier.Computability.MCSP.MultiNPHard.WindowCount

Window templates: the soundness count #

If no set of at most ℓ + 1 windows comes close to covering the inputs, then for most tables T the template followed by T costs more than the template's distinct non-input gate functions plus ℓ. This is the soundness half of the reduction of Ilango, Loff and Oliveira [IlangoLoffOliveira2020, §4.2, pp. 22:20–22:21].

Library route. The source proves soundness by compression [IlangoLoffOliveira2020, Lemma 16 and its proof, pp. 22:22–22:23], using that the sets have bounded size. This file proves it instead with a union bound over small circuits, which needs no bound on the sets but asks for 2^p large compared with the windows' number. If the cost were at most the count plus ℓ, then by inputization (card_nonInputComponents_add_ecomplexityGiven_le) some function F of the input and the gate values, computed with at most ℓ gates, recovers T. Such a circuit reads at most ℓ + 1 input wires (Circuit.card_inputSupport_le_cost), hence at most ℓ + 1 windows; some set P of at least d inputs avoids those windows, and by locality (Window.value_congr) F and the entries of T outside P determine T. So at most 2^(2^p - d) tables are consistent with each F, and there are few F (card_computableFunctions_mul_factorial_le_of_arity_le). The arithmetic is uniform over De Morgan bases through their bound of five operations.

lift supplies the windows of the reduction: a set of residues modulo N, lifted to the inputs 0, …, 2^p - 1. Covers of the residues lift to covers of the inputs, and a residue outside some sets gives about 2^p / N inputs outside their lifts.

Main definitions #

Main results #

References #

theorem Cslib.MultiMCSP.Window.three_mul_card_cheap_le {p t : ℕ} {σ : Circuits.Signature} {I : Circuits.Interpretation σ Bool} [Circuits.Boolean.DeMorganBasis I] (A : Fin t → Finset (Fin (2 ^ p))) (ℓ d : ℕ) (hcover : ∀ (B : Finset (Fin t)), B.card ≤ ℓ + 1 → ∃ (P : Finset (Fin (2 ^ p))), d ≤ P.card ∧ ∀ i ∈ B, Disjoint (A i) P) (ht : t ≤ 2 ^ p) (hℓ : ℓ ≤ t) (hX : 64 ≤ 2 ^ p) (hd : p * (5 * ℓ + 5) ≤ d) :
3 * {T : Fin (2 ^ p) → Bool | (Circuits.ecomplexity I fun (x : Fin p → Bool) => Fin.append (template A T x) (Circuits.single (tableFun T) x)) ≤ ↑((Circuits.nonInputComponents (template A T)).card + ℓ)}.card ≤ 2 ^ 2 ^ p

Soundness, as a count (library route). Suppose every set of at most ℓ + 1 windows misses a common set of at least d inputs, with d ≥ p (5ℓ + 5), ℓ ≤ t ≤ 2^p and 2^p ≥ 64. Then for at most a third of the tables T does the template followed by T cost at most the template's distinct non-input gate functions plus ℓ, over any De Morgan basis. This replaces the compression argument of [IlangoLoffOliveira2020, Lemma 16, pp. 22:22–22:23] by a union bound over small circuits.

Lifted windows #

def Cslib.MultiMCSP.Window.lift (p N : ℕ) (S : Finset ℕ) :
Finset (Fin (2 ^ p))

The inputs y < 2^p whose residue modulo N lies in S.

@[simp]
theorem Cslib.MultiMCSP.Window.mem_lift {p N : ℕ} {S : Finset ℕ} {y : Fin (2 ^ p)} :
y ∈ lift p N S ↔ ↑y % N ∈ S
theorem Cslib.MultiMCSP.Window.lift_cover {p t N : ℕ} (hN : 0 < N) (S : Fin t → Finset ℕ) (C : Finset (Fin t)) (hC : ∀ u < N, ∃ i ∈ C, u ∈ S i) (y : Fin (2 ^ p)) :
∃ i ∈ C, y ∈ lift p N (S i)

Covers lift. Sets covering the residues 0, …, N - 1 lift to sets covering the inputs.

theorem Cslib.MultiMCSP.Window.three_mul_card_cheap_lift_le {p t : ℕ} {σ : Circuits.Signature} {I : Circuits.Interpretation σ Bool} [Circuits.Boolean.DeMorganBasis I] {N : ℕ} (hN : 0 < N) (S : Fin t → Finset ℕ) (ℓ : ℕ) (hmiss : ∀ (B : Finset (Fin t)), B.card ≤ ℓ + 1 → ∃ u < N, ∀ i ∈ B, u ∉ S i) (ht : t ≤ 2 ^ p) (hℓ : ℓ ≤ t) (hX : 64 ≤ 2 ^ p) (hd : p * (5 * ℓ + 5) ≤ 2 ^ p / N) :
3 * {T : Fin (2 ^ p) → Bool | (Circuits.ecomplexity I fun (x : Fin p → Bool) => Fin.append (template (fun (i : Fin t) => lift p N (S i)) T x) (Circuits.single (tableFun T) x)) ≤ ↑((Circuits.nonInputComponents (template (fun (i : Fin t) => lift p N (S i)) T)).card + ℓ)}.card ≤ 2 ^ 2 ^ p

Soundness for lifted windows (library route). Suppose every set of at most ℓ + 1 of the sets S i misses some common residue u < N, with ℓ ≤ t ≤ 2^p, 2^p ≥ 64 and p (5ℓ + 5) ≤ 2^p / N. Then for at most a third of the tables T does the template of the lifted windows followed by T cost at most its distinct non-input gate functions plus ℓ, over any De Morgan basis.