feat(Probability): add PMF lemmas for maps, products, and failure bounds - #1063
Closed
SamuelSchlesinger wants to merge 3 commits into
Closed
SamuelSchlesinger wants to merge 3 commits into
SamuelSchlesinger wants to merge 3 commits into
Conversation
SamuelSchlesinger
requested review from
arademaker,
chenson2018,
crei,
fmontesi and
sorrachai
as code owners
October 4, 2026 21:14
SamuelSchlesinger
added this pull request to stack #1064
October 4, 2026 21:15
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-02-pmf-maps-products
branch
from
October 4, 2026 23:03
2af9f9b to
d833306
Compare
Adds further general lemmas to `Cslib.Probability.PMF`: point masses under injective maps and equivalences, lower bounds by a single preimage or execution path, congruence of `bind` and `map` on the support, dependent pairing and the marginals of a pairing bind, point masses of images of a uniform input, and `uniformOfFintype_prod`, which identifies a uniform pair with two independent uniform samples. `toOuterMeasure_bind_failure_le` bounds the failure probability of a randomized continuation: if every possible input satisfying a precondition leads to failure with probability at most `error`, the composite fails with probability at most `P(precondition fails) + error`. It needs no independence or finiteness assumption. `toOuterMeasure_rate_ge` derives the averaging consequence: if a test beats a threshold on average, the excess mass consists of inputs whose conditional acceptance probability reaches the threshold.
SamuelSchlesinger
force-pushed
the
samschles/crypto-pr-02-pmf-maps-products
branch
from
October 4, 2026 23:33
d833306 to
4b3ff93
Compare
SamuelSchlesinger
removed this pull request from stack #1064
October 5, 2026 20:06
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.
Deferred from the CSLib crypto stack. These general PMF lemmas belong in Mathlib, and the remaining proposed stack does not require them.
The implementation is preserved on this branch for later upstreaming. It includes map and support-congruence lemmas, dependent pairing, uniform products, and failure-probability bounds.
Originally composed with Claude Code.