Documentation

CslibFrontier.Crypto.Computational.OneWay.Repeated

Repeated one-way functions #

A RevealInverter receives the unary security parameter n and the framed bit list of t n images of uniform n-bit inputs under f, may submit reveal requests whose slot indices are read as request bit lengths (requestSlot), and wins repeatedInversionGameOn f valid when it outputs, for a slot it never revealed, a preimage x with valid n x. With valid n w = decide (w.length = n) this is Attack Game 13.3 on X = {0,1}ⁿ.

The word-level reduction repeatedInverter samples a dyadic index g < dyadicSize (t n) and, when g < t n, runs slotInverter with d = 1 (isPPT_repeatedInverter), incurring the dyadic-range factor dyadicSize (t n) in succProbability_repeatedInversionGameOn_le. It forwards the adversary's claimed preimage unchanged, so the domain check of the repeated game becomes the domain check of inversionGameOn. For every function that is one-way on a domain containing the n-bit words and every unary polynomial-time repetition schedule t, every uniform strict oracle PPT adversary succeeds with negligible probability (OneWayOn.repeatedInversion_negligible).

Main definitions #

Main results #

References #

@[reducible, inline]

An adversary of the repeated games on words: it receives the unary parameter and the encoded list of images, sends reveal requests, and returns a request word naming a slot together with a claimed preimage. The same shape as a signature Forger.

@[reducible, inline]

A request names the slot given by its length (a unary index; the bits are ignored).

The typed adversary played by a word adversary at parameter n.

noncomputable def Cslib.Crypto.repeatedInversionGameOn (f : List Bool → List Bool) (valid : ℕ → List Bool → Bool) (t : ℕ → ℕ) (adversary : RevealInverter) (n : ℕ) :

Attack Game 13.3 ([BS23], p. 539) on words, on a declared domain: the challenger draws t n uniform n-bit inputs x_j and sends their images y_j = f x_j; a reveal request for slot j is answered with x_j; the adversary wins with a claim (ν, x) when it never revealed slot ν, valid n x, and f x = y_ν. With valid n w = decide (w.length = n) the domain is the book's X = {0,1}ⁿ. Slots are 0-based and named by the length of a request word (requestSlot); a reveal outside the range is answered with [], and a claim outside it loses.

noncomputable def Cslib.Crypto.repeatedInverter (f : List Bool → List Bool) (t : ℕ → ℕ) (adversary : RevealInverter) :

The inverter of Lemma 13.5 on words: plant the challenge at a dyadic-uniform index.

theorem Cslib.Crypto.succProbability_repeatedInversionGameOn_le (f : List Bool → List Bool) {valid : ℕ → List Bool → Bool} (t : ℕ → ℕ) (adversary : RevealInverter) {n : ℕ} (hvalid : ∀ (x : List Bool), x.length = n → valid n x = true) :

The concrete bound behind the asymptotic statement, on a domain containing the n-bit words: rOWadv[A, f, t] ≤ dyadicSize (t n) · OWadv[B, f] for the efficient reduction B = repeatedInverter f t A, the inequality (13.6) of [BS23], Lemma 13.5, with the dyadic range dyadicSize (t n) in place of t.

Lemma 13.5 ([BS23], p. 539), asymptotic form: a function that is one-way on a domain containing the n-bit words (Definition 8.6, p. 336) is repeatedly one-way on that domain (Attack Game 13.3) for every number of instances t n that is computable in polynomial time from unary n. With valid n w = decide (w.length = n) both games are the book's on X = {0,1}ⁿ. The book's t is a parameter of the game; its computability is this formal setting's addition, needed because the uniform reduction repeatedInverter computes t n to draw its guess.