Skip to content

feat(Crypto): relate security games to statistical distance - #1072

Open
SamuelSchlesinger wants to merge 2 commits into
samschles/crypto-pr-09-prg-distributionsfrom
samschles/crypto-pr-10-statistical-games
Open

SamuelSchlesinger wants to merge 2 commits into
samschles/crypto-pr-09-prg-distributionsfrom
samschles/crypto-pr-10-statistical-games

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Connects Boolean security games to statistical distance: Game.advantage_eq_dist identifies the two quantities, and the existing PMF contraction lemmas bound every randomized test’s advantage.

StatisticallyIndistinguishable expresses negligible statistical distance between parameter-indexed ensembles, following Boneh and Shoup, §3.11. It is reflexive, symmetric, and transitive, and is preserved by applying the same randomized or deterministic postprocessing to both ensembles. The statements do not require finite ambient types or finite supports.

Cslib.Crypto.Primitives.PRG.Statistical derives concrete and asymptotic PRG security from statistical-distance bounds, for explicit seed and ideal distributions and any chosen class of adversaries.

Depends on #1071.

Composed with Claude Code; reviewed and restacked with Codex.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1064 October 4, 2026 23:07
@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschles/crypto-pr-10-statistical-games branch from d5f4ebc to 0ff3c8b Compare October 4, 2026 23:33
@SamuelSchlesinger
SamuelSchlesinger removed this pull request from stack #1064 October 5, 2026 20:06
@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1077 October 5, 2026 20:07
@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschles/crypto-pr-10-statistical-games branch from 0ff3c8b to 190e4bc Compare October 5, 2026 20:19
@SamuelSchlesinger
SamuelSchlesinger removed this pull request from stack #1077 October 5, 2026 20:20
@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1080 October 5, 2026 20:20
@SamuelSchlesinger
SamuelSchlesinger removed this pull request from stack #1080 October 5, 2026 20:43
@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1082 October 5, 2026 20:43
Adds `Cslib.Crypto.Game.Statistical`. For Boolean experiments, advantage equals statistical distance, so no randomized test distinguishes two distributions better than their statistical distance, on finite or infinite sample types. `StatisticallyIndistinguishable` says that two ensembles have negligible statistical distance; it is an equivalence, is closed under `bind` and `map`, and implies security against any class of tests.

`Cslib.Crypto.Primitives.PRG.Statistical` applies this to the PRG games: a generator whose output is statistically close to the ideal distribution is secure, concretely and asymptotically.
@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschles/crypto-pr-10-statistical-games branch from 190e4bc to 3aed551 Compare October 5, 2026 20:56
@SamuelSchlesinger
SamuelSchlesinger removed this pull request from stack #1082 October 5, 2026 20:57
@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1084 October 5, 2026 20:57
@SamuelSchlesinger
SamuelSchlesinger removed this pull request from stack #1084 October 5, 2026 21:02
@SamuelSchlesinger
SamuelSchlesinger changed the base branch from samschles/crypto-pr-09-prg-distributions to main October 5, 2026 21:03
@SamuelSchlesinger
SamuelSchlesinger changed the base branch from main to samschles/crypto-pr-09-prg-distributions October 5, 2026 21:03
@SamuelSchlesinger
SamuelSchlesinger added this pull request to stack #1085 October 5, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant