refactor: add precommitted polynomial reductions#17
Conversation
|
Warning This PR has more than 500 changed lines and does not include a spec. Large features and architectural changes benefit from a spec-driven workflow. If this PR is a bug fix, refactor, or doesn't warrant a spec, feel free to ignore this message. |
d2b422b to
b561ac0
Compare
5386e59 to
4b2423f
Compare
b561ac0 to
e528eda
Compare
4b2423f to
3de7f26
Compare
3de7f26 to
5217190
Compare
e528eda to
be768fc
Compare
5217190 to
9e4300e
Compare
be768fc to
4624ea6
Compare
9e4300e to
e2c9276
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e2c9276. Configure here.
| match DoryGlobals::get_layout() { | ||
| DoryLayout::AddressMajor => OpeningPoint::<BIG_ENDIAN, F>::new( | ||
| [r_cycle_stage6.as_slice(), r_address_stage7.as_slice()].concat(), | ||
| ), |
There was a problem hiding this comment.
AddressMajor opening order mismatch
High Severity
AddressMajor Stage-8 now constructs opening_point as [r_cycle || r_address], while earlier reduction claims (for RA polynomials) are still cached at [r_address || r_cycle]. With reorder_opening_point_for_layout removed from DoryCommitmentScheme, those claims are combined against a different point, so batched opening claims no longer correspond to committed polynomial evaluations.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit e2c9276. Configure here.
| }; | ||
|
|
||
| pub type JoltFieldWrapper = ArkFr; | ||
| type DenseTier1Setup = ( |
There was a problem hiding this comment.
I don't think we need to name this type
| candidates | ||
| } | ||
|
|
||
| fn stage8_opening_point(&self) -> Result<OpeningPoint<BIG_ENDIAN, F>, ProofVerifyError> { |
There was a problem hiding this comment.
this is almost identical to the stage8_opening_point in prover.rs. We should DRY into one function
d340832 to
6c29ef5
Compare
0eddf1c to
3e44c13
Compare
a5ed82a to
a6bfc73
Compare
3e44c13 to
4175c7a
Compare
0f357e1 to
5ca9b21
Compare
…rifier Adopt embedded-main Dory scheduling with shared precommitted claim-reduction plumbing so stage 6/8 can handle dominant precommitted contexts consistently in both zk and non-zk flows. Made-with: Cursor (cherry picked from commit d7b160b) Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the precommitted scale when rebuilding advice claim-reduction state from bound coefficients so GPU cycle-phase handoff remains consistent across dummy rounds. (cherry picked from commit e58c0df)
Compute the verifier advice equality evaluation in the same precommitted opening order used by the prover, while keeping the cycle-phase skip scale separate from the full address-phase scale. Avoid reading Dory main_t when the precommitted schedule does not need it, so unit tests that do not initialize Dory globals can still construct the schedule. (cherry picked from commit f19c179)
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…tack Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Use the cycle/address ordering expected by the active Dory layout when the main trace domain anchors Stage 8, so precommitted advice openings verify in AddressMajor mode. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the PR 02 Stage 8 verifier fix byte-for-byte aligned with the final merged branch while preserving the AddressMajor advice proof fix. Co-authored-by: Cursor <cursoragent@cursor.com>
Use local type inference for the dense AddressMajor setup tuple to avoid carrying an intermediate-only alias. Made-with: Cursor Co-authored-by: Cursor <cursoragent@cursor.com>
Move the common Stage 8 Dory opening-point selection into the commitment scheme module so prover and verifier use the same layout logic. Made-with: Cursor Co-authored-by: Cursor <cursoragent@cursor.com>
Cache real cycle-phase opening points for precommitted advice reductions so verifier phase transitions reconstruct the address phase from accumulator state. Made-with: Cursor Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
e0ed5d6 to
c41f679
Compare


Generated stack PR from
amir/bytecode-commitment-merged.Depends on spec PR: a16z#1565
Stack position:
02Base branch:
amir/bytecode-stack/01-stage6-splitOwned paths:
This PR is expected to be updated manually when
amir/bytecode-commitment-mergedis resliced.