Documentation

CslibFrontier.Crypto.Computational.DiffieHellman.ListCDHFamily

The list form of the Computational Diffie–Hellman problem over a group family #

Over a PrimeOrderGroupFamily, this module states the list form of CDH as a game, with a polynomial bound Q on the number of entries that count. It gives the guessing reduction of [BS23], Section 21.11.4 (p. 908) and the proof of Theorem 11.4 (pp. 446–448), which turns a list adversary into a CDH adversary, with a PPT certificate, and proves that under the CDH assumption every PPT list adversary wins with negligible probability. The fixed-group experiment, the reduction for a given index sampler and its analysis are in CslibFrontier/Crypto/Computational/DiffieHellman/ListCDH.lean, whose module docstring lists the differences from the book and the behaviour at Q = 0, for short lists and for repeated entries.

A list adversary's efficiency is stated on encodings, as for CDHAdversary.IsPPT: one uniform strict PPT machine reads encCDHInput and writes the framed list of the words of its entries.

A machine with fair coins cannot draw an exactly uniform position below every Q n, so the reduction draws its position with Cslib.ProbComp.sampleModIndex (width n) (Q n): the residue modulo Q n of a number written with width n fair coins, capped at Q n (which matters only at Q n = 0). The coin count width is a parameter of the reduction. Each position below Q n is drawn with probability at least 1 / Q n - 1 / 2 ^ width n, so the reduction keeps the book's factor Q n and adds the term Q n / 2 ^ width n. With width n = n that term is negligible when Q is polynomially bounded, which gives the conclusion under the CDH assumption.

Main definitions #

Main results #

References #

@[reducible, inline]

A list adversary for CDH over the family: given the security parameter, the group parameters and two elements, it returns a list of elements of the group.

A list adversary is PPT when one uniform strict PPT machine reads encCDHInput and writes the framed list of the words of the adversary's entries.

noncomputable def Cslib.Crypto.PrimeOrderGroupFamily.listCDHGame (F : PrimeOrderGroupFamily) (setup : ℕ → PMF F.Desc) (Q : ℕ → ℕ) (adversary : F.ListCDHAdversary) (n : ℕ) :

The list form of CDH with bound Q: choose group parameters with the setup law, then run Cslib.Crypto.listCDHExperiment with bound Q n in that group.

The guessing reduction of [BS23], Section 21.11.4 (p. 908), as a CDH adversary: run the list adversary, draw a position with Cslib.ProbComp.sampleModIndex (width n) (Q n) from width n fair coins, and return the entry there, or the generator past the end of the list (Cslib.Crypto.listCDHToCDH).

The guessing reduction is efficient: it is uniform strict PPT whenever the list adversary is and the coin count width and the bound Q are computable in polynomial time in unary.

theorem Cslib.Crypto.PrimeOrderGroupFamily.succProbability_listCDHGame_le (F : PrimeOrderGroupFamily) (setup : ℕ → PMF F.Desc) (width Q : ℕ → ℕ) (adversary : F.ListCDHAdversary) (n : ℕ) :
(F.listCDHGame setup Q adversary n).succProbability ≤ ↑(Q n) * (F.cdhGame setup (F.listCDHToCDHAdversary width Q adversary) n).succProbability + ↑(Q n) / 2 ^ width n

Loss of the guessing reduction: the list form of CDH with bound Q is won with probability at most Q n times the success probability of the reduction in the CDH game, plus Q n / 2 ^ width n. The factor is the book's Q ([BS23], Section 21.11.4, p. 908, and equation (11.12), p. 448); the additive term, which the book does not have, is the cost of drawing the position from width n fair coins. It holds for every setup law, every width, every Q, including Q n = 0, and every adversary.

theorem Cslib.Crypto.PrimeOrderGroupFamily.succProbability_listCDHGame_mono (F : PrimeOrderGroupFamily) (setup : ℕ → PMF F.Desc) {Q Q' : ℕ → ℕ} {n : ℕ} (hle : Q n ≤ Q' n) (adversary : F.ListCDHAdversary) :
(F.listCDHGame setup Q adversary n).succProbability ≤ (F.listCDHGame setup Q' adversary n).succProbability

More entries that count cannot hurt the adversary: if Q n ≤ Q' n, the list form of CDH with bound Q' is won at n with probability at least that with bound Q, since the first Q n entries of a list are among its first Q' n (Cslib.Crypto.eval_listCDHExperiment_mono in each group).

The list form of CDH is hard under CDH ([BS23], Section 21.11.4, p. 908): under the CDH assumption, every PPT list adversary wins the list form of CDH with negligible probability, for every bound Q computable in polynomial time in unary.