Expected advantage of two-stage games #
Game.advantage_bind_le and Game.advantage_bind_le_of_support bound the advantage between two
games with a common first stage by a uniform bound on the advantages of the second stages. This
module gives the bound by the expectation of these advantages over the first stage, as an extended
non-negative real, and the resulting step of a hybrid argument for two-stage games whose first
stages differ as well.
Main results #
Cslib.Crypto.Game.coe_advantage_bind_le_tsum: the advantage between two games with a common first stage is at most the expected advantage of the second stages.Cslib.Crypto.Game.coe_advantage_bind_bind_le: replacing both stages costs at most the advantage of replacing the first stage plus the expected advantage of replacing the second.
Expected advantage. The advantage between two games with a common first stage d is at
most the expectation over d of the advantage between the second stages.
One step of a hybrid argument for two-stage games. Replacing the first stage p by q and
the second stage game1 by game2 costs at most the advantage of replacing the first stage in
front of game1, plus the expectation over q of the advantage between the second stages.