Repository navigation
Spec: delete FFDH generate_key_cached's Api and contract - #4876
Merged
Merged
Conversation
vg_ffdh_generate_key_cached is an internal function of the cached key search (its contract is in Proof/Ffdh/CachedGenerateKeyContract.lean): Rust never calls it. Spec.Ffdh keeps generationContextAt and generationContextSafety, which the search's contract and Api use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TKUFHFjAR7Byf513R4zuFy
alex
enabled auto-merge
November 9, 2026 23:40
alex
pushed a commit
that referenced
this pull request
Nov 15, 2026
`vg_ffdh_generate_key_cached` is internal on main (#4875, #4876): the registration drops its artifact and its proofs name `Proof.Ffdh.cachedGenerateKeyContract`. Generic callers are ordinary registrations (#4654), so the sieved parameter search is registered in `Artifacts/Ffdh/RISCV64.lean` over `Proof.Variants.MillerRabin.RISCV64`, as on PPC64LE. `Shape.lean` uses the shared `RsaKeyGen.wv_half` that replaced FFDH's `WordHalf` (#5059). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TKUFHHEKNw8eCDhgbwoFBL
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.
Follows #4875, which made
vg_ffdh_generate_key_cachedan internal function of the cached key search. Its registrations are gone, and its signature and contract are now inProof/Ffdh/CachedGenerateKeyContract.lean.Trust change (
Spec/)This only deletes; no remaining definition changes. From
Spec/Ffdh/CachedKeyGenerationContract.leanit removes:cachedGenerateKeySigcachedGenerateKeyContractcachedGenerateKeyApiTwo doc comments that mentioned the attempt are reworded:
cachedKeySearchSig's comment: it no longer says "also".generationContextAtandgenerationContextSafetystay, since the search's contract and Api use them.Nothing else names the deleted definitions: the proofs use the
Proof.Ffdhcopies. The generated crates don't change.Checks
lake build(all modules) andEmit.lean --check, run before restacking ontomain. Restacking changes nothing in this diff: the base it was built on is FFDH generate_key_cached is internal: no Api, contract in Proof #4875, whichmainnow has.Generated by Claude Code