Skip to content

Spec: delete FFDH generate_key_cached's Api and contract - #4876

Merged
alex merged 1 commit into
mainfrom
claude/vg-ffdh-cached-spec
Nov 9, 2026
Merged

alex merged 1 commit into
mainfrom
claude/vg-ffdh-cached-spec

Conversation

@alex

@alex alex commented Nov 9, 2026

Copy link
Copy Markdown
Member

Follows #4875, which made vg_ffdh_generate_key_cached an internal function of the cached key search. Its registrations are gone, and its signature and contract are now in Proof/Ffdh/CachedGenerateKeyContract.lean.

Trust change (Spec/)

This only deletes; no remaining definition changes. From Spec/Ffdh/CachedKeyGenerationContract.lean it removes:

  • cachedGenerateKeySig
  • cachedGenerateKeyContract
  • cachedGenerateKeyApi

Two doc comments that mentioned the attempt are reworded:

  • The module doc: the context is "reused for rejection searches".
  • cachedKeySearchSig's comment: it no longer says "also".

generationContextAt and generationContextSafety stay, since the search's contract and Api use them.

Nothing else names the deleted definitions: the proofs use the Proof.Ffdh copies. The generated crates don't change.

Checks


Generated by Claude Code

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
alex enabled auto-merge November 9, 2026 23:40
@alex
alex added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 72aebe3 Nov 9, 2026
20 checks passed
@alex
alex deleted the claude/vg-ffdh-cached-spec branch November 9, 2026 23:48
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants