Documentation

CslibFrontier.Computability.Circuit.Boolean.HardnessAmplification.GLSynthesis

De Morgan circuits for Goldreich–Levin candidates #

Let C be a predictor on a + w bits with a De Morgan circuit of at most s gates, and suppose its first a input bits are available as functions xb k. Fix K masks and a guess. One bit of the corrected-majority candidate for r ↦ C (xb, r) takes 2 ^ K - 1 copies of C, each with at most one negation, and a strict majority: glBitCost K s further gates once the two constants are available (Cslib.Circuits.Boolean.synthesis_candidate_apply). All w bits together, with the constants, take glCost w K s gates (Cslib.Circuits.Boolean.synthesis_candidate), and one bit as a circuit on the inputs takes 2 + glBitCost K s gates (Cslib.Circuits.Boolean.complexity_candidate_apply_le).

The statements fix no layout of the a bits. The Goldreich–Levin stage of worst-case reconstruction reads them as the bits of a point of a field (Cslib.Circuits.Boolean.bitSynthesis_glPredictor). The amplification reconstruction of Carmosino, Impagliazzo, Kabanets and Kolokolova reads them as k blocks of n bits (Cslib.Circuits.Boolean.complexity_glAmpCandidate_apply_le).

Main definitions #

Main results #

References #

The gate budget of one bit of a Goldreich–Levin candidate with K masks and a predictor of size s, given the two constants: 2 ^ K - 1 copies of the predictor, each with at most one negation, and a strict majority.

The gate budget of a Goldreich–Levin candidate with w output bits, K masks and a predictor of size s: two constants, and glBitCost K s gates for each output bit.

theorem Cslib.Circuits.Boolean.synthesis_candidate_apply {a w n : ℕ} {C : BooleanFunction (a + w)} {sC : ℕ} (hC : complexity interpretation (single C) ≤ sC) {K : ℕ} (masks : Fin K → BitString w) (guess : BitString K) {S : Set (BooleanFunction n)} (xb : Fin a → BooleanFunction n) (hxb : ∀ (k : Fin a), xb k ∈ S) (htrue : (fun (x : BitString n) => true) ∈ S) (hfalse : (fun (x : BitString n) => false) ∈ S) (j : Fin w) :
Synthesis interpretation S {fun (v : BitString n) => Crypto.GoldreichLevin.candidate (fun (r : BitString w) => C (Fin.append (fun (k : Fin a) => xb k v) r)) masks guess j} (glBitCost K sC)

One bit of a Goldreich–Levin candidate. If the predictor C has a De Morgan circuit with at most sC gates, and its first a input bits xb and the two constants are available, then bit j of the candidate with masks masks and guess guess can be made available with glBitCost K sC further gates.

theorem Cslib.Circuits.Boolean.synthesis_candidate {a w n : ℕ} {C : BooleanFunction (a + w)} {sC : ℕ} (hC : complexity interpretation (single C) ≤ sC) {K : ℕ} (masks : Fin K → BitString w) (guess : BitString K) {S : Set (BooleanFunction n)} (xb : Fin a → BooleanFunction n) (hxb : ∀ (k : Fin a), xb k ∈ S) :
Synthesis interpretation S (Set.range fun (j : Fin w) (v : Fin n → Bool) => Crypto.GoldreichLevin.candidate (fun (r : BitString w) => C (Fin.append (fun (k : Fin a) => xb k v) r)) masks guess j) (glCost w K sC)

All bits of a Goldreich–Levin candidate. If the predictor C has a De Morgan circuit with at most sC gates and its first a input bits xb are available, then the bits of the candidate with masks masks and guess guess can be made available with glCost w K sC further gates.

theorem Cslib.Circuits.Boolean.complexity_candidate_apply_le {a w : ℕ} {C : BooleanFunction (a + w)} {sC : ℕ} (hC : complexity interpretation (single C) ≤ sC) {K : ℕ} (masks : Fin K → BitString w) (guess : BitString K) (j : Fin w) :
complexity interpretation (single fun (x : BitString a) => Crypto.GoldreichLevin.candidate (fun (r : BitString w) => C (Fin.append x r)) masks guess j) ≤ 2 + glBitCost K sC

The circuit complexity of one bit of a Goldreich–Levin candidate, as a function of the first a input bits of the predictor: at most 2 + glBitCost K sC gates, the two constants and one bit.