Documentation

CslibFrontier.Crypto.Game.RepeatedInversion.SlotBound

Repeated one-way inversion: the guessing step #

A win of the repeated chain game repeatedIterateExperiment names a chain and, on it, a slot below every revealed one. Planting an inversion challenge above slot g (slotInverter) therefore inverts f on the law of that slot, and summing over the n * d slots bounds the repeated game (succProbability_repeatedIterateExperiment_le_sum). At d = 1, with the slot drawn exactly uniformly below t as by the adversary B in the proof of [BS23], Lemma 13.5, pp. 539–540 (plantInverter), this gives that lemma's inequality (13.6) for the typed game, rOWadv[A, f, t] ≤ t · OWadv[B, f] (succProbability_repeatedInversionExperiment_le).

The statements are about typed games and say nothing about running time. slotInverter is certified inside the word-level reduction repeatedInverter (CslibFrontier/Crypto/Computational/OneWay/Repeated.lean), which draws a dyadic index and, when it is below t n, runs slotInverter at it. plantInverter has no efficiency certificate: a strict PPT sampler draws an exactly uniform index below t only when t is a power of two. So (13.6) here is not Lemma 13.5 itself, whose B is efficient. The efficient form is OneWayOn.repeatedInversion_negligible, through succProbability_repeatedInversionGameOn_le, which loses the dyadic range dyadicSize (t n) in place of t.

Main definitions #

Main results #

References #

The reduction: plant the challenge above one slot #

def Cslib.Crypto.slotInverter {Q X : Type} [Inhabited X] (idx : Q → ℕ) (sample : ProbComp X) (f : X → X) (n d g : ℕ) (A : List X → ProbOracleComp (fun (x : Q) => X) (Q × X)) (c : X) :

Invert f at c by planting c above slot g: chain g / d is simulated from c at the positions above g % d, the other chains are sampled, and the slots at or below g on that chain, which the reduction does not know, are answered with default. A claim for a slot at or below g on that chain is pushed up to position g % d.

Proof of the plug-and-pray step #

theorem Cslib.Crypto.succProbability_repeatedIterateExperiment_le_sum {Q X : Type} [Inhabited X] [DecidableEq X] (idx : Q → ℕ) (sample : ProbComp X) (f : X → X) (n : ℕ) {d : ℕ} (hd : 0 < d) (A : List X → ProbOracleComp (fun (x : Q) => X) (Q × X)) :
(repeatedIterateExperiment idx sample f n d A).succProbability ≤ ∑ g ∈ Finset.range (n * d), Experiment.succProbability (inversionExperiment (f^[g % d] <$> sample) f (slotInverter idx sample f n d g A))

The plug-and-pray step. A win of the repeated game names a chain and, on it, the highest slot below everything revealed; planting the challenge above that slot inverts f on the law of that slot.

theorem Cslib.Crypto.succProbability_repeatedInversionExperiment_le_sum {Q X : Type} [Inhabited X] [DecidableEq X] (idx : Q → ℕ) (sample : ProbComp X) (f : X → X) (t : ℕ) (A : List X → ProbOracleComp (fun (x : Q) => X) (Q × X)) :

The slot sum behind (13.6): the d = 1 case.

def Cslib.Crypto.plantInverter {Q X : Type} [Inhabited X] (idx : Q → ℕ) (sample : ProbComp X) (f : X → X) (t : ℕ) (A : List X → ProbOracleComp (fun (x : Q) => X) (Q × X)) (c : X) :

The adversary B in the proof of [BS23], Lemma 13.5, on the typed game: plant the challenge at an exactly uniform index below t. It has no efficiency certificate, since a strict PPT sampler draws an exactly uniform index below t only when t is a power of two; the certified word-level reduction repeatedInverter draws a dyadic index instead.

The factor-t inequality (13.6) #

theorem Cslib.Crypto.succProbability_repeatedInversionExperiment_le {Q X : Type} [Inhabited X] [DecidableEq X] (idx : Q → ℕ) (sample : ProbComp X) (f : X → X) (t : ℕ) (A : List X → ProbOracleComp (fun (x : Q) => X) (Q × X)) :

The inequality (13.6) of [BS23], Lemma 13.5, p. 539, for the typed game and every typed adversary A: rOWadv[A, f, t] ≤ t · OWadv[B, f] with B = plantInverter. This is not Lemma 13.5 itself, whose B is efficient: plantInverter has no efficiency certificate. The efficient form is OneWayOn.repeatedInversion_negligible, with the factor dyadicSize (t n) in place of t.