Repository navigation
feat(realizability): prove admissibility of scoped term interpretations - #510
Merged
Merged
Conversation
This was referenced Nov 21, 2026
feat(frontier): sync PolyFun and realize one-time pad and ElGamal security
Verified-zkEVM/VCVio#1206
Draft
Prove the result under admissible assignments to bound and free variables. For binary operations, derive admissibility of a whole fixed term on a represented pair, including nested uses of either variable. Co-Authored-By: Codex <noreply@openai.com>
dtumad
force-pushed
the
dtumad/review-scoped-admissibility
branch
from
November 24, 2026 21:14
31d85f2 to
42fa858
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssibility Make the sort of Env.Admissible strict-implicit, so that Env.Admissible.empty elaborates at its stated type, and build the empty and pair environments from empty and cons. Remove Binary.denote_term_admissible, which is Binary.denote_admissible at one term and has no use. State in the docstring which assignments a constructor's premise covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re needed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ayering State the hypotheses of Binary.denote_admissible, and add the edge from scoped syntax to realizability. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The theorem asks for every variable of the context, not only the free variables of the term. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtumad
added a commit
that referenced
this pull request
Nov 26, 2026
#487 landed on main as squash e688823, which carries the same tree as its head b46e02c merged above. The conflicts in PolyFun.lean, cost.md, repo-map.md and the documentation consumer were both sides adding #487's text; keep this branch's text and add #510's lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 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.
A scoped program can reuse a variable or bind a fresh one before interpreting an argument.
Term.denote_admissibleproves that a fixed term denotes an admissible map whenever thevariables of its context are admissible and its constructors preserve admissibility under
fresh bindings computed from the same input. In a class with products,
Binary.denote_admissibleapplies this to terms in two variables whose operations areadmissible on a represented pair.
A test interprets the same binding under subtraction and addition and gets 5 and 13 on
inputs 9 and 4. Negative tests give an operation, a free variable and a binder for which the
hypotheses fail.
Downstream, the one-time pad in Verified-zkEVM/VCVio#1206 uses the binary theorem through
wordTerm_polyTimeof #511, forkey xor msg, forkey xor (key xor msg)and for themachine that computes a single XOR. Beyond the projections and pairing of the step class,
the bound on such a term needs only the machine bound of the primitive word operation.
Pad terms
./scripts/validate.sh --lint --test --axiomspassed atf1aaeda1, which includesmainat6c9cf976. The language tracker is #374.