Repository navigation
Conversation
🤖 PR Summary
This is a consumer test for PRs #1241 (VCVio) and #534 (PolyFun), which change Statistics
Lean Declarations ✏️ Affected: 75 declaration(s) (line number changed)
Lean Quality Signals
📋 **Additional Analysis**This pull request performs a systematic migration from Last updated: 2026-11-26 02:23 UTC. |
Pin VCVio to the branch that tracks PolyFun main. The removed `X^` notation becomes `y^`, and the public-coin sampler follows PolyFun's pure replay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ba2bd47 to
27bf6a2
Compare
Pin VCVio and PolyFun to the commits in which `QueryImpl` and `PFunctor.Handler` are one-field structures. Handlers are built with `where toFun …` or `⟨fun q => …⟩`, equalities of handlers use `ext`, and handlers that proofs use by their equation are tagged `@[simps]`. Challenge draws stay raw functions and are wrapped where a handler is expected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27bf6a2 to
3587c0d
Compare
Build Timing Report
CPU work is Rebuilt ModulesRebuilt 787 modules (0 without an earlier time). The 787 with an earlier time took 2853s here against 3143s when Estimated clean-build compile time, summed over all 1621 modules: 5923s before, 5634s after (-290s (-4.9%)). Per-module times are wall-clock under whatever parallel load the run had, so treat small differences as noise; a large change on one module is the signal. Showing 20 slowest of 787 rebuilt modules.
|
Summary
Moves ArkLib onto VCVio and PolyFun versions in which a handler (
QueryImpl,PFunctor.Handler) is a one-field structure instead of a reducible function type. It is a consumer test of the two parent PRs, VCVio Verified-zkEVM/VCVio#1241 and PolyFun Verified-zkEVM/PolyFun#534. The pins are to commits on a fork, so this PR cannot merge as it stands.mainwith its PolyFun pin moved to PolyFunmain(a fork commit), without the handler change. Two files needed fixing: theX^notation becamey^, and the public-coin sampler follows PolyFun's pure replay.where toFun …or⟨fun q => …⟩, equalities of handlers useext, and 24 library handlers (2 with-isSimp) and one test handler are tagged@[simps]so that proofs use their equations. Challenge draws (combineDraw,prefixDraw,suffixDraw,transportDraw,sampler) stay raw functions and are wrapped with⟨…⟩where a handler is expected.The second commit changes 69 library files, 55 test files and the four runtime executables in
scripts/. Of 539 diff hunks, 514 are mechanical: 216 build a handler withwhere toFun, 243 wrap a function or draw as⟨…⟩, 28 replacefunextwithext, and 27 add@[simps], name an_applylemma or usetoHandler. The other 25 are type ascriptions, named arguments where higher-order unification no longer sees through the coercion, and one proof about oracle interfaces that needed one morecongr 1. Noerw, option or suppression is added. None of the roughly 270change,showandrflsteps across handlers that looked at risk broke.Porting ArkLib found one gap in VCVio's change, now fixed there:
QueryImpl.liftTarget_selfhad lost the simp attribute that PolyFun'sHandler.liftTarget_selfgives. A local timing of 1164 of the 1277 modules, one run each, gave 0.976× of the first commit; CI's timing is the better measure.Formalized statements
None added. Statements change only in how handlers are written: a raw lambda or draw becomes
⟨…⟩. Two spell it differently:projectedInput_eqequates handlers instead of functions, andOracleVerifier.prefixDraw_ofNodesView_casttransports a handler. In commit 1,replay_publicCoinSamplerandreplay_publicCoinOracleSamplerconclude= PUnit.unitbecause PolyFun's replay no longer returns a monadic value; the content that replay runs no draw is now part of its type.Admissions and axioms
No
sorryis added or closed, andaxiomsweep --checkpasses.Validation
Based on
4c9a2bd3b, which already pins a newer VCVio (#1596); the first commit moves that pin to the fork.3587c0da2),./scripts/validate.sh --axiomspassed: build,lake test, both warning budgets, the native-probability retirement sweep,lint-styleand its plugin tests, the toy-problem, Hachi, sum-check and FRI-extractor runtime executables, umbrella imports, docs integrity, the PR-script tests, the knowledge-base lint, andaxiomsweep --check.mainneeded only the same field rewrite in the reworked KZG files (feat(KZG)!: KZG over a generic field with computable reductions to t-SDH and ARSDH #1593).0c70dea5d),lake build ArkLib ArkLibTestcompletes without warnings.VCVio.Lint.HandlerApplyimported,queryImplApplyandhandlerApplyreport nothing onArkLibat the head.Breaking changes
Code that defines a handler as a function must build the structure:
where toFun q := …or⟨fun q => …⟩. Code that uses a handler as a function is unchanged.Known gaps
replay_publicCoinSamplerandreplay_publicCoinOracleSamplerhold byrflafter commit 1 and could be removed.queryImplApplyis not enforced here. WithVCVio.Lint.HandlerApplyimported, both linters report nothing.Related work
Stacked on VCVio Verified-zkEVM/VCVio#1241 and PolyFun Verified-zkEVM/PolyFun#534. Open PRs that touch the same interaction, oracle-bundle and challenge-draw code: #1578, #1582, #1583, #1590, #1591, #1592.
Checklist