Many constructions in public-key cryptography are proved secure from one of three assumptions about a cyclic group: the discrete-logarithm (DLOG), computational Diffie–Hellman (CDH) and decisional Diffie–Hellman (DDH) assumptions. Variants such as the one-more discrete logarithm (OMDL) assumption are used for blind and multi-signatures (Bellare–Namprempre–Pointcheval–Semanko 2003). These assumptions are ordered by reductions: DDH implies CDH, CDH implies DLOG, and OMDL implies DLOG in prime-order groups. A security proof that rests on one assumption therefore also rests on every assumption above it. Cryptology City records these reductions, together with the loss in advantage each one incurs (Cryptology City: CDH ⇒ DLOG, DDH ⇒ CDH, OMDL ⇒ Prime-order DLOG). This mission machine-checks those reductions with their exact concrete bounds.
Fix a group , an element and a natural number such that has order and every element of is a power of (IsCyclicGroupOfOrder g p). Exponents are elements of (ZMod p), and for the group element is raised to the representative of in (g ^ x.val).
An adversary is an arbitrary randomized function of its inputs: a function into probability mass functions (PMF). The group description is fixed, so it is not passed as an input. A game is a probability distribution on , and means the adversary wins. All samples below are uniform and independent.
false. The adversary wins if it outputs , and .QueryTree), and the game counts the queries made along the executed path.For every CDH adversary , let run and output (real) if returns , and otherwise. Then
For every DLOG adversary , let run to get and output . Then
Let be prime. For every and every DLOG adversary , let query the discrete-logarithm oracle on , run on , and output the oracle's answers followed by 's answer. Then
The three statements are the concrete forms of the implications DDH ⇒ CDH ⇒ DLOG and OMDL ⇒ DLOG that cryptography papers use without proof. Each statement names the reduction explicitly. That records the reduction's cost, one call to the given adversary plus one exponentiation or comparison, and its exact loss: none for CDH ⇒ DLOG and OMDL ⇒ DLOG, and an additive for DDH ⇒ CDH. Averaging over the coins of a group generator turns the per-group bounds into the asymptotic implications, with becoming .
All three results are folklore and their proofs are short. As far as a search of prove2.me shows (November 2026), none is formalized on the platform. The value here is a checked, reusable statement of the games and of the bounds, against which the losses recorded on Cryptology City can be compared.
The arguments are elementary. The work lies in stating the games so that the reductions are neither vacuous nor weaker than the folklore ones. In the DDH reduction, the comparison can succeed in the random world by chance. The bound must charge exactly the probability , which uses that is injective on . In the OMDL game, the query count must be the number of oracle calls the adversary actually makes, not a declared bound.
PMFs. Search advantages are in ℝ≥0∞, and the DDH advantage is a real number.CryptologyCity_DLogGames contains the group predicate, the four games and their advantages, the query-tree model of oracle algorithms, and the OMDL reduction. It is reused by later Cryptology City missions on Pedersen commitments and Schnorr identification.namespace CryptologyCity
theorem ddh_to_cdh {G : Type*} [Group G] [DecidableEq G] (g : G) (p : ℕ) [NeZero p]
(hg : IsCyclicGroupOfOrder g p) (A : CDHAdversary G) :
(cdhAdv g p A).toReal - 1 / (p : ℝ) ≤
ddhAdv g p (fun X Y Z => (A X Y).map fun Z' => decide (Z' ≠ Z)) := by sorry
end CryptologyCityLet generate a group of order . For every CDH adversary , define the DDH adversary : run and output ("real") if its answer equals , and ("random") otherwise. Then
where and is the probability of outputting .
No open leaves. Every sub-goal is proved or awaiting decomposition.