feat(realizability): add cslib-backed P/poly certificates - #179
Open
quangvdao wants to merge 6 commits into
Open
feat(realizability): add cslib-backed P/poly certificates#179quangvdao wants to merge 6 commits into
quangvdao wants to merge 6 commits into
Conversation
quangvdao
force-pushed
the
codex/cslib-ppoly-backend
branch
from
August 29, 2026 05:30
a878834 to
6e9fa3e
Compare
quangvdao
force-pushed
the
codex/cslib-ppoly-backend
branch
from
August 29, 2026 06:15
d63f40e to
3c5da8d
Compare
quangvdao
force-pushed
the
codex/cslib-ppoly-backend
branch
from
August 29, 2026 06:23
3c5da8d to
7c5d5f4
Compare
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.
Summary
Adds the optional
PolyFunCslibadapter for boundary-pinned, non-uniform P/poly realizability, stacked on #178.PolyFunumbrella backend-neutral; the adapter is a separate Lake libraryBoundary,QuantitativeRealization, execution traces, and execution costsToCslibmachine familiesRealizableLEclassBitVec n → Boolfamily is in the pinned P/poly classFiles
PolyFunCslib/Backend.lean: cslib-backed qualitative and quantitative PolyFun step classes plus the generic trace-work lemma.PolyFunCslib/PPoly.lean: family boundaries, generic-boundary translation, realizations, progress, witnesses, and closure.PolyFunCslib/Nontriviality.lean: canonical coin boundary, counting bridge, and diagonal theorem.PolyFunCslib.lean: optional umbrella.PolyFunTest/Realizability/CslibPPoly.lean: producer canaries covering a real query, both answer branches, mismatched indices, trace accounting, precomposition, result mapping, and rejection of an empty-answer stuck program.Validation
./scripts/validate.sh --lint --test --axiomsgit diff --checkAll pass locally on Lean 4.33.1, with zero sorry/axiom debt under
PolyFun,ToCslib, andPolyFunCslib.