Documentation

CslibFrontier.Crypto.Game.Multiplicative

Distinguishing under multiplicative game comparisons #

A bound on the success probability of one test need not bound distinguishing advantage. Applying the same comparison to both outcomes gives an additive bound, even when an ideal experiment can abort and cannot accept after the test is negated.

Main results #

theorem Cslib.Crypto.Game.advantage_le_of_output_comparisons (real ideal : Game) {ρ ε : ℝ} (hρ : 1 ≤ ρ) (hYes : ↑real.succProbability ≤ ρ * ↑ideal.succProbability + ε) (hNo : ↑real.failProbability ≤ ρ * ↑ideal.failProbability + ε) :
↑(real.advantage ideal) ≤ ρ - 1 + ε

If both Boolean outcomes obey a one-sided multiplicative and additive comparison, the distinguishing advantage is at most the multiplier's excess over one plus the error.

theorem Cslib.Crypto.Game.advantage_le_of_multiplicative_comparisons (real : Game) (ideal : PMF (Option Bool)) {ρ ε : ℝ} (hρ : 1 ≤ ρ) (hYes : ↑real.succProbability ≤ ρ * ↑(succProbability (PMF.map (fun (x : Option Bool) => x == some true) ideal)) + ε) (hNo : ↑real.failProbability ≤ ρ * ↑(succProbability (PMF.map (fun (x : Option Bool) => x == some false) ideal)) + ε) :
↑(real.advantage (PMF.map (fun (x : Option Bool) => x == some true) ideal)) ≤ ρ - 1 + ε

When the ideal experiment can abort, compare the real acceptance and rejection probabilities against some true and some false respectively, excluding none from both tests. The bound compares the real game with the ideal one after mapping aborts to rejection.