Documentation

CslibFrontier.Crypto.Computational.AuxiliaryInput

Auxiliary-Input and Infinitely-Often Cryptographic Primitives #

This module defines auxiliary-input cryptographic primitives (AuxInputFamily, IsAIOWF, IsDistAIOWF, IsAIPRG, ExistsAIPRG, AuxInputPRFFamily, IsAIPRF) and infinitely-often cryptographic primitives (IsIoOWF, IsIoPRG, IsIoPRF), built directly on CslibFrontier's ComputableInPolyTime, IsPPTOn, IsOraclePPTOn, Game, and CloseTo infrastructure.

Quantifier convention and provenance #

All eight hardness/security predicates in this module are novel to this library in their exact quantifier order: inspired by the auxiliary-input and infinitely-often primitives of Ostrovsky–Wigderson (1993) and Vadhan (2006), they use the adversary-dependent quantifier order ∀ d A N, ∃ z (for auxiliary-input primitives, and ∃ c, ∀ A N, ∃ z for IsDistAIOWF) and ∀ d A N, ∃ n (for infinitely-often primitives), rather than fixing a single adversary-independent infinite index set I ⊆ {0, 1}^* or I ⊆ ℕ before quantifying over adversaries. For IsDistAIOWF in particular, equivalence with an adversary-independent infinite index set is non-obvious because distributional inversion cannot be efficiently verified to combine arbitrary adversaries.

Main definitions #

Main results #

A polynomial-time computable auxiliary-input function family f = {f_z : {0,1}^{inputLen |z|} → {0,1}^{outputLen |z|}}. Both length maps are computable in polynomial time from unary |z|, ruling out superpolynomial length loopholes.

theorem Cslib.Crypto.AuxInputFamily.ext {x y : AuxInputFamily} (inputLen : x.inputLen = y.inputLen) (outputLen : x.outputLen = y.outputLen) (eval : x.eval = y.eval) :
x = y

Inversion game for an auxiliary-input family f against adversary A on auxiliary string z. The adversary wins when it outputs a preimage x' of exact length f.inputLen z.length.

Auxiliary-input one-way function (AIOWF): for every inverse polynomial (|z| + 1)^{-d} and every uniform PPT inverter A, there exist arbitrarily long auxiliary strings z on which A inverts f_z with probability strictly less than (|z| + 1)^{-d}.

This definition is novel to this library: inspired by the auxiliary-input one-way functions of Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order ∀ d A N, ∃ z (where z may depend on d, A, and N) rather than a single adversary-independent infinite index set I ⊆ {0, 1}^*. It is implied by IsIoOWF (with an exact output-length schedule) via IsIoOWF.exists_aiOWF, hence by standard OneWay functions (OneWay.isIoOWF), and implies IsDistAIOWF (IsAIOWF.isDistAIOWF).

True joint distribution (x, f_z(x)) for x ~ U_{f.inputLen |z|}.

Distributional-inverter joint distribution (A(z, f_z(x)), f_z(x)) for x ~ U_{f.inputLen |z|}.

Distributional auxiliary-input one-way function (distAIOWF): there exists an inverse polynomial (|z| + 1)^{-c} such that for every uniform PPT A, there exist arbitrarily long auxiliary strings z on which (A(z, f_z(x)), f_z(x)) and (x, f_z(x)) have total variation distance strictly exceeding (|z| + 1)^{-c}.

This definition is novel to this library: inspired by Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order ∃ c, ∀ A N, ∃ z rather than an adversary-independent infinite index set I ⊆ {0, 1}^*. Note that equivalence with an adversary-independent infinite index set is non-obvious for distributional one-wayness because distributional inversion cannot be efficiently verified to combine arbitrary adversaries. It is implied by IsAIOWF (IsAIOWF.isDistAIOWF), hence by standard OneWay functions.

Real distinguishing game for an auxiliary-input PRG G on auxiliary string z.

Ideal (uniform) distinguishing game for an auxiliary-input PRG G on auxiliary string z.

Auxiliary-input pseudorandom generator (AIPRG): strictly stretches its seed and fools every uniform PPT distinguisher up to every inverse polynomial on arbitrarily long z.

This definition is novel to this library: inspired by auxiliary-input PRGs in Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order ∀ d A N, ∃ z rather than a single adversary-independent infinite index set I ⊆ {0, 1}^*. It is implied by IsIoPRG (IsIoPRG.exists_aiPRG), hence by standard PseudorandomGenerator (PseudorandomGenerator.isIoPRG), and quadratic stretch implies IsAIOWF (IsAIPRG.isAIOWF_of_sq_lt).

Existence of polynomial-stretch auxiliary-input PRGs: for every polynomial stretch degree d, there exists an IsAIPRG G with (G.inputLen k) ^ d < G.outputLen k for all k.

This definition is novel to this library: it packages polynomial-stretch existence for the adversary-dependent IsAIPRG notion above. It implies the existence of an IsAIOWF (ExistsAIPRG.exists_aiOWF), and is plausible whenever standard polynomial-stretch PRGs exist.

A polynomial-time computable auxiliary-input PRF family F = {F_z : {0,1}^{n(|z|)} × {0,1}^{n(|z|)} → Bool}.

theorem Cslib.Crypto.AuxInputPRFFamily.ext {x y : AuxInputPRFFamily} (inputLen : x.inputLen = y.inputLen) (eval : x.eval = y.eval) :
x = y

Real oracle game for an auxiliary-input PRF family F against oracle adversary A.

Ideal random-function oracle game for an auxiliary-input PRF family F.

Auxiliary-input pseudorandom function (AIPRF): for every inverse polynomial and every uniform oracle PPT distinguisher A, there exist arbitrarily long z where A distinguishes F_z(u, ·) from a uniform random function with advantage strictly below (|z| + 1)^{-d}.

This definition is novel to this library: inspired by auxiliary-input primitives in Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order ∀ d A N, ∃ z rather than a single adversary-independent infinite index set I ⊆ {0, 1}^*. It is implied by IsIoPRF (IsIoPRF.exists_aiPRF), and is plausible whenever standard uniform PRFs exist.

Infinitely-often one-way function (ioOWF): polynomial-time computable function f such that every uniform PPT inverter fails (below (n + 1)^{-d}) on arbitrarily large input lengths n when restricted to length-n preimages.

This definition is novel to this library: it uses the adversary-dependent quantifier order ∀ d A N, ∃ n (where n may depend on d, A, and N) rather than a single adversary-independent infinite set of input lengths I ⊆ ℕ. It is strictly weaker than OneWay (OneWay.isIoOWF) and yields an IsAIOWF when equipped with an exact output-length schedule (IsIoOWF.exists_aiOWF).

def Cslib.Crypto.IsIoPRG (G : List Bool → List Bool) (len : ℕ → ℕ) :

Infinitely-often pseudorandom generator (ioPRG): polynomial-time length-stretching generator fooling every uniform PPT distinguisher on arbitrarily large seed lengths n.

This definition is novel to this library: it uses the adversary-dependent quantifier order ∀ d A N, ∃ n rather than a single adversary-independent infinite set of seed lengths I ⊆ ℕ. It is strictly weaker than PseudorandomGenerator (PseudorandomGenerator.isIoPRG) and yields an IsAIPRG (IsIoPRG.exists_aiPRG).

Infinitely-often pseudorandom function (ioPRF): polynomial-time keyed Boolean family f(u, x) fooling every uniform oracle PPT distinguisher on arbitrarily large key lengths n.

This definition is novel to this library: it uses the adversary-dependent quantifier order ∀ d A N, ∃ n rather than a single adversary-independent infinite set of key lengths I ⊆ ℕ. It is weaker than standard uniform Boolean-output PRF security and yields an IsAIPRF (IsIoPRF.exists_aiPRF).

Every auxiliary-input one-way function is distributionally one-way.

theorem Cslib.Crypto.IsAIPRG.isAIOWF_of_sq_lt {G : AuxInputFamily} (hG : IsAIPRG G) (hsq : ∀ (k : ℕ), G.inputLen k ^ 2 < G.outputLen k) :

Every auxiliary-input PRG with quadratic stretch (G.inputLen k) ^ 2 < G.outputLen k is an auxiliary-input one-way function.

Existence of polynomial-stretch auxiliary-input PRGs implies the existence of an auxiliary-input one-way function.

Every standard uniform one-way function is infinitely-often one-way.

Every standard uniform pseudorandom generator is infinitely-often pseudorandom.

theorem Cslib.Crypto.IsIoOWF.exists_aiOWF {f : List Bool → List Bool} {len : ℕ → ℕ} (hf : IsIoOWF f) (hlen : ∀ (x : List Bool), (f x).length = len x.length) :
∃ (F : AuxInputFamily), IsAIOWF F

Every infinitely-often one-way function with an exact output-length schedule yields an auxiliary-input one-way function (by ignoring the auxiliary string z except for its length).

theorem Cslib.Crypto.IsIoPRG.exists_aiPRG {G : List Bool → List Bool} {len : ℕ → ℕ} (hG : IsIoPRG G len) :
∃ (F : AuxInputFamily), IsAIPRG F

Every infinitely-often pseudorandom generator yields an auxiliary-input pseudorandom generator (by ignoring the auxiliary string z except for its length).

Every infinitely-often pseudorandom function yields an auxiliary-input pseudorandom function (by ignoring the auxiliary string z except for its length).