Documentation

CslibFrontier.Crypto.Game.FourHop

Symmetric four-game hops #

Many indistinguishability proofs compare two real experiments G0 and G1 through intermediate games M0 and M1: each real game is close to its intermediate game by the same bound c, and the two intermediate games are compared directly. The endpoint advantage is then at most c + advantage M0 M1 + c.

Main results #

theorem Cslib.Crypto.Game.advantage_four_hop_le {G0 M0 M1 G1 : Game} {c : NNReal} (h0 : G0.advantage M0 ≤ c) (h1 : G1.advantage M1 ≤ c) :
G0.advantage G1 ≤ c + M0.advantage M1 + c

Symmetric four-game hop: if G0 is within c of M0 and G1 is within c of M1, then G0 and G1 differ by at most c + advantage M0 M1 + c.