Running and relabelling generic group programs #
runLabeled L A runs a program A with private coins against the group oracle of the labeling
L ([BS23], Section 16.3, p. 693): fresh coins are uniform, and group queries are
answered by answer L.
relabel j A turns a program for labels in S into one for labels in ZMod q, through an
injection j : ZMod q ↪ S: it answers each query of A with at most one query of its own and
translates labels by j. Against a permutation σ of ZMod q, the relabelled program behaves as
A against the labeling j ∘ σ (runLabeled_relabel), and it makes no more queries than A
(isQueryBounded_relabel). Since a uniform injection ZMod q ↪ S is a uniform injection after a
uniform permutation (Cslib.Probability.PMF.uniformOfFintype_embedding_bind_perm_trans), a
statement about generic groups with labels in
S reduces to one with labels in ZMod q and a uniform permutation as labeling, in which no group
operation is ever rejected. This replaces the set S′ and the resampling of the book's Game 1 in
the proof of Theorem 16.3. The names in this file are this library's.
Main definitions #
Cslib.Crypto.GenericGroup.runLabeled: run a program with private coins againstanswer L.Cslib.Crypto.GenericGroup.relabel: the program for labels inZMod qobtained throughj.
Main results #
Cslib.Crypto.GenericGroup.runLabeled_relabel: relabelling againstσis running againstj ∘ σ.Cslib.Crypto.GenericGroup.isQueryBounded_relabel: relabelling preserves a query bound.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 16.3, pp. 693–695.
Run a program with private coins against the group oracle of the labeling L: coins are
uniform and group queries are answered by answer L.
The program for labels in ZMod q that runs A and answers its queries through j, with at
most one query for each query of A.
Against a permutation σ of ZMod q, the relabelled program has the law of A against the
labeling j ∘ σ.
Relabelling makes at most as many queries as the program: this is the query-count certificate of the reduction.