Resource-indexed concrete security of Boolean experiments #
Cslib.Crypto.Game.Indistinguishable quantifies asymptotically over admissible adversaries.
Concrete security theorems instead bound distinguishing advantage or success probability as an
explicit function ε n r of the security parameter n and adversary resource budget r (such as
query count q, halting machine steps t, or the pair (t, q)), and compose reductions by
mapping target resource budgets r to source resource budgets mapRes n r.
This module provides:
Game.IndistinguishableWithinand one-sidedGame.SuccWithin, parameterized by a resource predicateWithin : ℕ → Resource → Adversary → Propand error surfaceε : ℕ → Resource → ℝ≥0;- algebra and game-hopping combinators (
.refl,.symm,.trans,.mono,.of_within,.hybrid,.hybrid_const) and concrete reduction transfer (IndistinguishableWithin.of_reduction,SuccWithin.of_reduction); - standard resource predicates
WithinQueries,WithinTime,WithinTimeUpTo,WithinOracleTime, andWithinTimeAndQueriesbuilt on plain haltingComputesInTimeandComputesOracleInTime, together with exact equivalences against global step schedules; - concrete-to-asymptotic bridges (
IndistinguishableWithin.indistinguishable,Game.Indistinguishable.of_queryBounded,of_queryBounded_real,of_queryBounded_reduction,of_timeBounded, andof_timeAndQueryBounded) eliminating manual polynomial schedule unpacking.
Main definitions #
Cslib.Crypto.Game.IndistinguishableWithin: resource-indexed concrete advantage bound.Cslib.Crypto.Game.SuccWithin: resource-indexed concrete success-probability bound.Cslib.Crypto.Game.WithinQueries,Cslib.Crypto.Game.WithinTime,Cslib.Crypto.Game.WithinTimeUpTo,Cslib.Crypto.Game.WithinOracleTime,Cslib.Crypto.Game.WithinTimeAndQueries: concrete query, halting-time, and(t, q)adversary predicates.
Main results #
Cslib.Probability.IsOraclePPT.exists_computable_queryBound: extract a unary polynomial-time computable, polynomially bounded query schedule fromIsOraclePPT.Cslib.Crypto.Game.IndistinguishableWithin.of_reduction,Cslib.Crypto.Game.SuccWithin.of_reduction: transfer concrete security across resource-mapping reductions.Cslib.Crypto.Game.IndistinguishableWithin.hybrid,.hybrid_const: concrete multi-hop triangle inequalities.Cslib.Crypto.Game.IndistinguishableWithin.indistinguishable: general concrete-to-asymptotic bridge along polynomial resource schedules.Cslib.Crypto.Game.Indistinguishable.of_queryBounded,.of_queryBounded_real,.of_birthday_queryBounded_real,.of_queryBounded_reduction,.of_succProbability_queryBounded,.of_costBounded: concrete query/cost-bounded security impliesIsOraclePPTasymptotic security.Cslib.Crypto.Game.Indistinguishable.of_timeBounded,.of_timeBounded_upTo,.of_timeAndQueryBounded: concrete(t, ε)and(t, q, ε)security implyIsPPTandIsOraclePPTasymptotic security.
References #
- M. Bellare, P. Rogaway, The Security of Triple Encryption and a Framework for Code-Based Game-Playing Proofs (see Boneh–Shoup Sections 3.1, 3.11, 4.1).
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Sections 3.1, 3.11, 4.1.
Extract an explicit unary polynomial-time computable, polynomially bounded schedule Q : ℕ → ℕ
bounding both external query counts and request lengths of an IsOraclePPT program at
n + aux.length.
Concrete advantage and success predicates #
Two families of games are concretely (Within, ε)-indistinguishable when at every security
parameter n and resource budget r, every adversary satisfying Within n r adversary has
distinguishing advantage at most ε n r.
A family of one-sided search or forgery games is concretely (Within, ε)-secure when at every
security parameter n and resource budget r, every adversary satisfying Within n r adversary
succeeds with probability at most ε n r.
Concrete indistinguishability from PMF.pure false is concrete one-sided SuccWithin
security.
Concrete indistinguishability with PMF.pure false on the left is concrete SuccWithin
security.
Algebra, hopping, and reductions for IndistinguishableWithin and SuccWithin #
Every family of games is within zero error of itself.
Swapping the two games preserves any concrete error bound.
Concrete error bounds add across an intermediate game hop.
Enlarging the concrete error surface preserves the bound.
Contravariantly refine the resource type and admissibility predicate through mapRes.
Sum concrete errors across hops n adjacent hybrids hyb 0, …, hyb (hops n).
Concrete hops n-step hybrid argument with a uniform per-hop error δ n r.
Concrete security reduction. If reduce maps every target adversary within budget r at
parameter n to a source adversary within budget mapRes n r, and bounds target advantage by
loss n r times source advantage plus err n r, then source (SourceWithin, ε)-security implies
target (TargetWithin, fun n r => loss n r * ε n (mapRes n r) + err n r)-security.
General concrete-to-asymptotic bridge. If every Admissible adversary admits a resource
schedule r : ℕ → Resource in PolyResource, and ε is negligible along every schedule in
PolyResource, then IndistinguishableWithin implies asymptotic Game.Indistinguishable.
Enlarging the concrete success bound preserves SuccWithin.
Contravariantly refine the resource type and admissibility predicate of a SuccWithin bound.
One-sided concrete security reduction. Transfer SuccWithin across a resource-mapping
reduction with multiplicative loss and additive err.
Bridge SuccWithin to asymptotic indistinguishability from PMF.pure false along polynomial
resource schedules.
Standard query, time, and (t, q) concrete resource predicates #
At parameter n, the empty-auxiliary execution adversary n [] makes at most q external
queries on every path.
WithinTime unpacks to T n 0 ≤ t for a uniform halting schedule T.
At parameter n, adversary is realized by a uniform halting oracle machine taking at most t
steps on all auxiliary inputs of length at most auxLen n.
At parameter n on empty auxiliary input [], adversary is realized by a uniform halting
oracle machine taking at most t steps.
WithinOracleTime unpacks to T n 0 ≤ t for a uniform halting oracle schedule T.
Joint (t, q) concrete adversary predicate at parameter n: adversary is realized by a
uniform halting oracle machine within t steps on (n, []) and makes at most q external queries
on (n, []).
Because ComputesInTime.mono holds unconditionally without computability of the padded
schedule, concrete (WithinTime, ε)-security is equivalent to bounding advantage at T n 0 for
every ComputesInTime schedule T.
Concrete (WithinTimeAndQueries, ε)-security is equivalent to bounding advantage at
(T n 0, Q n) for every ComputesOracleInTime schedule T and query schedule Q.
Direct concrete-to-asymptotic bridges for IsOraclePPT and IsPPT #
Query-bounded concrete-to-asymptotic bridge. If every Q-query execution adversary n []
has advantage at most ε n Q and n ↦ ε n (Q n) is negligible along every polynomially bounded
schedule Q, then game1 and game2 are asymptotically indistinguishable against
IsOraclePPT.
Real-valued variant of Game.Indistinguishable.of_queryBounded, directly accepting switching
and collision lemmas stated as (Game.advantage … : ℝ) ≤ ε n Q.
Birthday-collision specialization of Game.Indistinguishable.of_queryBounded_real for concrete
switching bounds of the form k * (Q.choose 2 : ℝ≥0) * base n with Negligible base (for
example PRP–PRF switching with k = 1 and Luby–Rackoff with k = 3 or 4).
General auxiliary-input variant of Game.Indistinguishable.of_queryBounded for games invoking
adversary n (aux n) along a polynomially bounded auxiliary word length.
One-sided search/forgery variant of Game.Indistinguishable.of_queryBounded against
PMF.pure false.
Cost-bounded variant of Game.Indistinguishable.of_queryBounded for any per-request cost bound
cost op ≤ B (for instance charging 1 on signing calls and 0 on hash calls).
Query-schedule-parameterized reduction to asymptotic security. Covers hybrid and tree
reductions (such as GGM) whose reduction algorithm reduce adversary Q takes an explicit unary
polynomial-time computable query bound Q : ℕ → ℕ for adversary.
Concrete (t, ε) security implies asymptotic IsPPT security on bounded-length auxiliary
inputs (auxLen : ℕ → ℕ polynomially bounded).
Concrete (t, ε) security implies asymptotic IsPPT security on empty auxiliary input.
Concrete (t, q, ε) security implies asymptotic IsOraclePPT security.