feat(Crypto): prove hybrid arguments with polynomially many hops - #1070
Open
SamuelSchlesinger wants to merge 2 commits into
Open
SamuelSchlesinger wants to merge 2 commits into
SamuelSchlesinger wants to merge 2 commits into
Conversation
SamuelSchlesinger
requested review from
arademaker,
chenson2018,
crei,
fmontesi and
sorrachai
as code owners
October 4, 2026 22:25
SamuelSchlesinger
added this pull request to stack #1064
October 4, 2026 22:31
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-08-hybrid-arguments
branch
from
October 4, 2026 23:03
923d75b to
6120d7b
Compare
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-08-hybrid-arguments
branch
from
October 4, 2026 23:33
6120d7b to
34a1635
Compare
SamuelSchlesinger
removed this pull request from stack #1064
October 5, 2026 20:06
SamuelSchlesinger
added this pull request to stack #1077
October 5, 2026 20:07
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-08-hybrid-arguments
branch
from
October 5, 2026 20:19
34a1635 to
e0d0820
Compare
SamuelSchlesinger
removed this pull request from stack #1077
October 5, 2026 20:20
SamuelSchlesinger
added this pull request to stack #1080
October 5, 2026 20:20
SamuelSchlesinger
removed this pull request from stack #1080
October 5, 2026 20:43
SamuelSchlesinger
added this pull request to stack #1082
October 5, 2026 20:43
Adds `Cslib.Crypto.Game.Hybrid`. The advantage between the endpoints of a chain of games is at most the sum of the adjacent advantages, so polynomially many hops with one common negligible bound per adversary give negligible total advantage (`Secure.hybrid`). Choosing the hop uniformly at random telescopes the signed gaps (`advantage_hybrid_average`). This gives one reduction for every security parameter, whose loss is the number of hops, without selecting a length-dependent best hop ([AroraBarak09] §9.3). `Secure.of_reduction_with_loss` lets a reduction lose a polynomial factor and incur a negligible error.
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-08-hybrid-arguments
branch
from
October 5, 2026 20:56
e0d0820 to
a0e897d
Compare
SamuelSchlesinger
removed this pull request from stack #1082
October 5, 2026 20:57
SamuelSchlesinger
added this pull request to stack #1084
October 5, 2026 20:57
SamuelSchlesinger
removed this pull request from stack #1084
October 5, 2026 21:02
SamuelSchlesinger
changed the base branch from
samschles/crypto-pr-07-security-games
to
main
October 5, 2026 21:02
SamuelSchlesinger
changed the base branch from
main
to
samschles/crypto-pr-07-security-games
October 5, 2026 21:02
SamuelSchlesinger
added this pull request to stack #1085
October 5, 2026 21:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
Cslib.Crypto.Game.Hybrid. Bounds endpoint advantage by the sum of adjacent advantages and proves negligible total advantage for polynomially many hops sharing one negligible bound per adversary (Secure.hybrid).Proves exact signed-gap and advantage identities for uniformly sampled adjacent hybrids, with unused indices rejecting. The averaging loss is the sampling capacity, which may exceed the number of hops.
Secure.of_reduction_with_losstransfers security through an admissibility-preserving reduction with polynomial loss and negligible additive error; both bounds may depend on the adversary.Reference: Arora and Barak, Computational Complexity: A Modern Approach, §9.3.
Depends on #1069.
Composed with Claude Code; reviewed and restacked with Codex.