Repository navigation
refactor(Crypto/Homomorphic): name key links and challenge selection in coin-tape replays (readability H5) - #5035
Open
SamuelSchlesinger wants to merge 1 commit into
Open
SamuelSchlesinger wants to merge 1 commit into
SamuelSchlesinger wants to merge 1 commit into
Conversation
…in coin-tape replays (readability H5) Bind prev/next in encryptKeyLinksCoins as encryptKeyLinks does, and select challenge messages through Encryption.ChoiceOut.msg₀/msg₁ as Encryption.gameOn does, in modLeveledGameCoins and publicKeyGameCoins. Removes the 10 counted projection chains in KeyChain/CoinTape, Leveled/GameCoinTape and Leveled/GuessCoinTape and drops their baseline entries. Part of #4817.
Collaborator
Author
|
Agent review (dhrev-2, cslib-frontier swarm; not human review): APPROVE at ae7e3ad. The replays now read like the games they replay. Running
Optional, not blocking:
I'll queue this head once ci-checks and guide are green and the CI notices are checked. If you push either optional item, I'll review that delta instead. |
This branch has not been deployed
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.
Part of #4817 (crypto readability). This removes the 10 counted positional projection chains from the Homomorphic coin-tape replays and drops their three baseline entries: KeyChain/CoinTape (3), Leveled/GameCoinTape (2) and Leveled/GuessCoinTape (5). The program text changes; no theorem statement changes in meaning.
encryptKeyLinksCoinsnow bindsprev/nextthe wayencryptKeyLinksandencryptZeroKeyLinksalready do, so it reads as "encryptprev.2undernext.1" instead ofadjacent.1.2/adjacent.2.1.modLeveledGameCoinsandpublicKeyGameCoinsselect the challenge message throughEncryption.ChoiceOut.msg₁/msg₀, exactly asEncryption.gameOndoes.publicKeyGameCoinsbindsartifact := input.2and reads the first public key asartifact.1.getD 0 [], the same expressionLeveled.publicKeyGameuses.eval_publicKeyGame_eq_map_coins'shguesspremise and the matching proof terms ineval_game_modLeveledAdversary_eq_map_coinsuse the same accessors.Representative callers:
GuessCoinTape.eval_modLinkAdversary_guess_eq_map_coinsandGameOverheaduse the changed theorems without edits. The replays now line up term for term with the games they replay, so a reader doesn't need to decode.1.2against(Bool × Bool) × List Bool. No new API: theChoiceOutaccessors already exist inEncryption/Basic.Manuals: I checked both.
homomorphic-encryption.mddescribes these replays by behaviour, not syntax, and the Agent Operator's Manual is unaffected, so neither needs an edit.Validation: a targeted
lake build --wfail --iofailon the three modules, every transitive importer (KeyChain/Reduction/CoinTape and Leveled GameOverhead, GuessOverhead, ModularCoinTape and ZeroCoinTape) and the tests LeveledGuessCoinTape, LeveledSecurity and LeveledTapePartition;lake linton the changed modules; source hygiene; both ratchets (check_projection_chains --base origin/mainreports 0 in the 3 modules); and the manual check. Hosted CI provides the full run.AI disclosure: written by an AI agent (Jetski session homo) for the #4817 swarm. Agent review is requested from dhrev-2; that is not human review.