Unconditional 2n - 2 B₂-circuit size lower bound for pseudorandom functions #
For every Boolean-output PRF ensemble, at all sufficiently large input lengths n, some
function in its support requires at least 2 * n - 2 gates. This gives the worst-case bound
of [FanLiYang2022, Theorem 7.5, p. 41] over the complete two-input Boolean basis B₂.
Definition 4.9 (p. 28) takes the maximum of the minimum gate counts over the collection Fₙ
supporting the distribution. A witness in the support belongs to every such collection.
The proof establishes the stronger distributional bound that the probability of sampling a function below the threshold is negligible. The keyed corollaries apply this bound to the first output bit of a word-valued PRF and then to circuits computing all its output bits.
Proof architecture and design notes #
- Boolean PRF ensemble (
BooleanPRF) and bridge fromPseudorandomFunction: Fan, Li, and Yang (Definitions 4.4–4.5) model a PRF as a sequence of distributionsD : ∀ n, PMF (BooleanFunction n)on1-bit-output Boolean functions indistinguishable fromPMF.uniformOfFintype (BooleanFunction n)by uniform oracle-PPT distinguishers. We define this model (booleanOracle,booleanPRFRealGame,booleanPRFIdealGame,BooleanPRF) and prove that projectingCslib.Crypto.PseudorandomFunction({0, 1}^n × {0, 1}^n → {0, 1}^n) to its first output bit yields aBooleanPRF(PseudorandomFunction.booleanPRF). Because designating output wires is gate-free inCslib.Circuits.Circuit, the2 * n - 2lower bound transfers immediately both to the first-output-bit ensemble and ton-outputB₂circuits computing the full keyed function. - Deterministic distinct restrictions via
BitString.lowBits: Instead of sampling random restrictions and bounding repeat-collision probabilities, both oracle distinguishers evaluatendeterministic distinct restrictions encoded byBitString.lowBits (n - 1) t(injective ont < nfor2 ≤ n) andBitString.lowBits (n - 2) t(injective ont < nfor5 ≤ n), issued in one batch throughKabanetsCai.queryTable. For a uniformly randomf : BooleanFunction n, surjectiveGF(2)linear projections (PMF.uniformOfFintype_map_addHom) show thenrestricted subfunctions for any fixed variable or variable pair are i.i.d. uniform. - Isolated-variable distinguisher (Lemma 7.3):
Note that Lemma 7.3's brief prose ("all
nsampled restrictions give the same output") refers to each(n - 1)-bit restriction onFin n \ {x}yielding a constant1-bit functionf (ρ[x := false]) = f (ρ[x := true])(matching the isolated-variable collision pairsI_nin the proof of Theorem 7.6 in Section 7.2 of [FLY22]), which occurs with probability(1 / 2) ^ nper coordinatexagainst a random function and probability1whenxis isolated. - Critical-path intersection distinguisher (Lemma 7.2):
For each
x < yinFin n,criticalPathDistinguishertests whether none of thenrestricted2-bit functions on(x, y)is AND-type (8 / 16 = 1 / 2ofB₂gates) or none is XOR-type (2 / 16 = 1 / 8ofB₂gates, so14 / 16 = 7 / 8are non-XOR-type). Bynot_isAndType_or_not_isXorType_of_not_disjoint_criticalPath, intersecting critical paths force acceptance with probability1, whereas a uniform random function is accepted with probability at mostn ^ 2 * ((1 / 2) ^ n + (7 / 8) ^ n).
Main definitions #
Cslib.Crypto.booleanOracle,Cslib.Crypto.evalBooleanOracle,Cslib.Crypto.booleanPRFRealGame,Cslib.Crypto.booleanPRFIdealGame,Cslib.Crypto.BooleanPRF: Boolean-output PRF ensembles ([FLY22], Definitions 4.4–4.5).Cslib.Crypto.prfFirstBitEnsemble,Cslib.Crypto.firstBitDistinguisher: first-output-bit ensemble and distinguisher adapter for a word-valued family.Cslib.Crypto.isolatedVarDistinguisher: oracle-PPT distinguisher for functions with an isolated coordinate ([FLY22], Lemma 7.3).Cslib.Crypto.criticalPathDistinguisher: oracle-PPT distinguisher for functions whoseNoDeadGatesB₂circuit has intersecting critical paths ([FLY22], Lemma 7.2).
Main results #
Cslib.Crypto.isOraclePPT_firstBitDistinguisher,Cslib.Crypto.booleanPRFRealGame_prfFirstBitEnsemble_eq,Cslib.Crypto.booleanPRFIdealGame_eq_prfIdealGame,Cslib.Crypto.PseudorandomFunction.booleanPRF: a word-valuedPseudorandomFunctioninduces aBooleanPRFon its first output bit.Cslib.Crypto.isOraclePPT_isolatedVarDistinguisher,Cslib.Crypto.succProbability_isolatedVarDistinguisher_of_hasIsolatedVar,Cslib.Crypto.succProbability_booleanPRFIdealGame_isolatedVarDistinguisher_le,Cslib.Crypto.negligible_booleanPRFIdealGame_isolatedVarDistinguisher: Lemma 7.3.Cslib.Crypto.isOraclePPT_criticalPathDistinguisher,Cslib.Crypto.succProbability_criticalPathDistinguisher_of_not_disjoint_criticalPath,Cslib.Crypto.succProbability_booleanPRFIdealGame_criticalPathDistinguisher_le,Cslib.Crypto.negligible_booleanPRFIdealGame_criticalPathDistinguisher: Lemma 7.2.Cslib.Crypto.BooleanPRF.eventually_exists_mem_support_two_mul_sub_two_le_complexity: the eventual worst-case gate lower bound of [FanLiYang2022, Theorem 7.5].Cslib.Crypto.BooleanPRF.negligible_complexity_lt_two_mul_sub_two: the probability of sampling a function below this bound is negligible.Cslib.Crypto.PseudorandomFunction.negligible_complexity_restriction_lt_two_mul_sub_two,Cslib.Crypto.PseudorandomFunction.negligible_complexity_lt_two_mul_sub_two,Cslib.Crypto.PseudorandomFunction.eventually_exists_key_two_mul_sub_two_le_complexity: keyed corollaries for the first output bit and the full word-valued function.
References #
- Z. Fan, J. Li, and T. Yang, The Exact Complexity of Pseudorandom Functions and the Black-Box Natural Proof Barrier for Bootstrapping Results in Computational Complexity, ECCC TR21-125, Revision 1, §§4.1–4.2, 4.4 and 7.1.
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Chapter 4.
Boolean-output PRF ensembles and first-bit reduction #
A deterministic word-channel oracle exposing f : BooleanFunction n on n-bit queries and
returning [] on malformed queries.
Run an OracleDistinguisher against a fixed f : BooleanFunction n at parameter n.
Real security game for a Boolean PRF ensemble D : ∀ n, PMF (BooleanFunction n).
Ideal security game for a Boolean PRF: sample f uniformly from BooleanFunction n.
A Boolean-output PRF ensemble [FanLiYang2022, Definitions 4.4–4.5, pp. 26–27]. Every uniform
strict oracle-PPT adversary on unary parameter n has negligible distinguishing advantage between
a single function drawn from D n and a uniform Boolean function on n bits. The source takes
n ≥ 1. Here n = 0 is immaterial to negligibility, and both word oracles return [] on queries
of other lengths. The distribution and its functions may be inefficient to sample and evaluate.
In particular, the uniform function ensemble satisfies this condition.
Convert an adversary expecting 1-bit oracle replies into an adversary against an n-bit PRF
oracle by truncating every oracle reply to its first bit.
Truncating every oracle reply to 1 bit preserves uniform strict oracle-PPT admissibility.
For 0 < n, the real BooleanPRF game on prfFirstBitEnsemble family agrees with the real
PseudorandomFunction game of firstBitDistinguisher adversary.
For 0 < n, the ideal BooleanPRF game agrees with the ideal PseudorandomFunction game of
firstBitDistinguisher adversary.
First-bit projection of a PRF is a BooleanPRF: any PseudorandomFunction induces a
BooleanPRF via its first output bit on n-bit inputs.
Bit-splicing and deterministic distinct restrictions #
Polynomial-time certificates and uniform finite-probability helpers #
Lemma 7.3: Distinguishing isolated variables #
Fan–Li–Yang Lemma 7.3 distinguisher: query 2 * n ^ 2 deterministic restrictions via
KabanetsCai.queryTable and accept if some coordinate x is insensitive on all n
restrictions.
isolatedVarDistinguisher is a uniform strict oracle-PPT adversary.
Fan–Li–Yang Lemma 7.3 (completeness): if C computes single f (1 ≤ n) and has an
isolated variable, isolatedVarDistinguisher accepts f with probability 1.
Fan–Li–Yang Lemma 7.3 (soundness against random functions): for 2 ≤ n,
isolatedVarDistinguisher accepts a uniformly random Boolean function with probability at most
n * (1 / 2) ^ n.
The ideal-game acceptance probability of isolatedVarDistinguisher is negligible.
Lemma 7.2: Distinguishing intersecting critical paths #
Fan–Li–Yang Lemma 7.2 distinguisher: query 4 * n ^ 3 deterministic restrictions via
KabanetsCai.queryTable and accept if some coordinate pair x < y either never induces an
AND-type 2-bit subfunction or never induces an XOR-type 2-bit subfunction.
criticalPathDistinguisher is a uniform strict oracle-PPT adversary.
Fan–Li–Yang Lemma 7.2 (completeness): if C is a single-output B₂ circuit with
NoDeadGates (normalized in [FLY22]) computing single f (2 ≤ n) whose critical paths
are not pairwise disjoint, then criticalPathDistinguisher accepts f with probability 1.
Fan–Li–Yang Lemma 7.2 (soundness against random functions): for 5 ≤ n,
criticalPathDistinguisher accepts a uniformly random Boolean function with probability at most
n ^ 2 * ((1 / 2) ^ n + (7 / 8) ^ n).
The ideal-game acceptance probability of criticalPathDistinguisher is negligible.
Theorem 7.5: 2n - 2 B₂-circuit lower bound for PRFs #
Distributional strengthening of [FanLiYang2022, Theorem 7.5]. For every Boolean PRF
ensemble, the probability of sampling a function with B₂-circuit complexity strictly below
2 * n - 2 is negligible in n.
The worst-case lower bound of [FanLiYang2022, §7.1, Theorem 7.5, p. 41]. For every
BooleanPRF D and all sufficiently large n, a function in the support of D n needs at least
2 * n - 2 gates. Inputs and output wires are free. Each binary Boolean gate and each nullary
constant costs one gate. For n ≥ 2, a constant binary gate on two input wires realizes the same
constant at the same cost in the source’s B₂ basis.
For a uniform key of a word-valued PRF, the probability that its first output bit is
computable with fewer than 2 * n - 2 gates is negligible.
Under a uniform n-bit PRF key, the probability that the full n-output function has
B₂-circuit complexity below 2 * n - 2 is negligible. A circuit for all outputs also computes
the first bit by selecting that output wire.
For every PseudorandomFunction family and all sufficiently large n, there exists an n-bit
key whose first-output-bit function has B₂-circuit complexity at least 2 * n - 2.