Repository navigation
Bounds in ℝ≥0 - #25
Merged
Merged
Conversation
Security bounds are stated in ℝ≥0 and read in ℝ≥0∞ through the coercion, which is additive and order-preserving, instead of through `ENNReal.ofReal`, which clamps negatives and is additive only on non-negative arguments. `ofReal` stays only where the distances are defined from real probabilities and in two bridging lemmas: `RandomSystem.transcriptDistance_le` (a bound on the transcript laws under every environment) and `transcriptDistance_le_of_advantage_le` (a bound on every advantage). Restated with ε : ℝ≥0: `transcriptDistance_visible_le_of_unsetProbability`, `dist_visible_le`, `game_dist_le`, `game_dist_ofSingleFunction_le`, and the authenticated-encryption bounds, now `≤ (q_e² / |M| : ℝ≥0)`. AGENTS.md records the convention. Closes #16. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E7GPy1oUx164NSZsxJT3N9
This was referenced Oct 12, 2026
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.
Bottom of the proof-technique stack (see the list below). Closes #16.
Security bounds are stated in
ℝ≥0and read inℝ≥0∞through the coercion, which is additive and order-preserving, instead of throughENNReal.ofReal, which clamps negatives and is additive only on non-negative arguments.ofRealstays only where the distances are defined from real probabilities (transcriptDistance, the advantages,advantageDistance) and in two bridging lemmas:RandomSystem.transcriptDistance_le: a bound on the transcript laws under every environment bounds the transcript distance;RandomSystem.transcriptDistance_le_of_advantage_le: a bound on every advantage does.ε : ℝ≥0:transcriptDistance_visible_le_of_unsetProbability,dist_visible_le,game_dist_le,game_dist_ofSingleFunction_le, and the authenticated-encryption bounds, now≤ (q_e² / |M| : ℝ≥0).Every later PR in the stack states its bounds this way.
Checks: build with
--wfail, source check, whole-library axiom audit (10,363 declarations), Mathlib linter set on the changed files (two pre-existingopen Classicallines in files this PR touches are left for the linter cleanup), THEORY.md anchors and math rendering.The stack
Proof techniques for the HCTR2 port, one technique per PR, ordered by abstraction (merge bottom-up):
🤖 Generated with Claude Code
https://claude.ai/code/session_01E7GPy1oUx164NSZsxJT3N9