Statistical indistinguishability of ensembles #
StatisticallyIndistinguishable X Y formalizes [BS23], Definition 3.6 (p. 85), in the
asymptotic reading of Section 3.11.1 (p. 87): two ensembles X Y : ∀ n, PMF (α n) have
statistical distance bounded by a single negligible function ε : ℕ → ℝ≥0 at every n.
This development differs from the book's presentation as follows:
- Asymptotic ensembles on arbitrary types. The types
α nare arbitraryTypes, not required to be finite or bit strings of polynomial length. Distance is measured byCslib.Probability.CloseToso it applies withoutFintype, and agrees withNegligible fun n => nndist (X n) (Y n)on finite types (statisticallyIndistinguishable_iff_negligible_nndist). - Characterization by unbounded tests.
statisticallyIndistinguishable_iff_indistinguishableequates statistical indistinguishability withGame.Indistinguishablewith admissibilityfun _ => True, proved viaGame.closeTo_advantage_map_decide_ltwithout finiteness. - Scope. Theorem 3.10 in
max = Δform, Remark 3.1, and Exercises 3.10–3.14 are omitted. Game-specific statistical notions such asCommitmentScheme.StatisticalHidingare not instances and are not changed.
Main definitions #
Cslib.Crypto.StatisticallyIndistinguishable: negligibleCloseTodistance between two ensembles on arbitrary types.
Main results #
Cslib.Crypto.StatisticallyIndistinguishable.refl,Cslib.Crypto.StatisticallyIndistinguishable.symm,Cslib.Crypto.StatisticallyIndistinguishable.trans: equivalence relation on ensembles.Cslib.Crypto.StatisticallyIndistinguishable.map: closure under arbitrary deterministic postprocessing ([BS23], Theorem 3.13, p. 85, extended beyond finite types).Cslib.Crypto.StatisticallyIndistinguishable.bind: Markov-kernel postprocessing under arbitrary randomized maps, viaCloseTo.bind_left.Cslib.Crypto.StatisticallyIndistinguishable.indistinguishable: negligible advantage against every family of randomized tests ([BS23], Theorem 3.11, p. 84).Cslib.Crypto.StatisticallyIndistinguishable.of_dist_le: finite-type entry point from a negligible bound ondist.Cslib.Crypto.statisticallyIndistinguishable_iff_indistinguishable: equivalence withGame.Indistinguishableagainst all randomized tests.Cslib.Crypto.statisticallyIndistinguishable_iff_negligible_nndist: equivalence with negligiblenndiston finite types.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 3.11 (Theorem 3.10, p. 83; Theorem 3.11, p. 84; Definition 3.6 and Theorem 3.13, p. 85) and Section 3.11.1 (p. 87).
Statistical indistinguishability ([BS23], Definition 3.6, p. 85, read
asymptotically as in Section 3.11.1, p. 87): the statistical distance between X n and Y n is
bounded by a negligible function of the security parameter n.
An ensemble is statistically indistinguishable from itself.
Statistical indistinguishability is symmetric.
Statistical indistinguishability is transitive: the two negligible bounds add.
Applying a function to both ensembles preserves statistical indistinguishability ([BS23], Theorem 3.13, p. 85, for ensembles). The function need not be efficient.
Randomized postprocessing of both ensembles preserves statistical indistinguishability.
Every family of randomized tests, efficient or not, has negligible advantage between statistically indistinguishable ensembles ([BS23], Theorem 3.11, p. 84, in the asymptotic reading of Section 3.11.1, p. 87).
On finite types, a negligible bound on the statistical distance dist (X n) (Y n) gives
statistical indistinguishability. With upstream PMF.StatisticallyClose (X n) (Y n) (ε n), which
unfolds to this bound, this is the entry point from the finite metric.
Statistical indistinguishability is indistinguishability by every family of randomized tests, with no efficiency condition: the distance is negligible exactly when every test family has negligible advantage.
On finite types, statistical indistinguishability says that the statistical distance
dist (X n) (Y n) of [BS23], Definition 3.5, is negligible: Definition 3.6 as printed.