-
Notifications
You must be signed in to change notification settings - Fork 271
Continuing feat/col-major-sparse-matrix #1127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
quangvdao
wants to merge
43
commits into
a16z:main
Choose a base branch
from
quangvdao:quang/feat-col-major-sparse-matrix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Continuing feat/col-major-sparse-matrix #1127
quangvdao
wants to merge
43
commits into
a16z:main
from
quangvdao:quang/feat-col-major-sparse-matrix
Conversation
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
…om/quangvdao/jolt into quang/feat-col-major-sparse-matrix
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.
NOTE
Does NOT support arbitrary phase1 and phase2 num rounds. However, we do support the cases we care about:
Added TODO for the future to make things work for all parameters
PR Summary: RAM Read/Write Checking Refactoring with RA Reduction Sumcheck & Advice Opening Optimization
Overview
This PR introduces several major changes to the RAM subsystem:
AddressMajorandCycleMajormatrix representationsOpens advice at TWO pointsConditionally opens at ONE or TWO points based on phase configurationKey Changes by File
1.
opening_proof.rs(+81 lines)OpeningIdenum refactored: Advice variants now takeSumcheckIdparameterSumcheckId::RamRaReductionvariant addedSumcheckIdparameter2.
proof_serialization.rs(+106 lines)Nonewhen single opening is used):3.
ram/mod.rs(+224 lines)prover_accumulate_advice: Conditionally opens at ONE or TWO points:verifier_accumulate_advice: Same conditional pattern4.
prover.rs(+127 lines)prove_trusted_advice/prove_untrusted_advice:(Some(proof), None)whenneeds_single_advice_opening(T)is true(Some(proof), Some(proof))otherwise5.
verifier.rs(+98 lines)verify_trusted_advice_opening_proofs/verify_untrusted_advice_opening_proofs:needs_single_advice_opening(T)is true6.
ram/read_write_checking.rs(+497 lines)needs_single_advice_opening(T: usize) -> boolfunction:(T.log_2(), any)- All cycle vars bound in phase 1 → single advice opening(0, any)- Skip phase 1 → two advice openings needed7.
ram/output_check.rs(+22 lines)SumcheckIdbased onneeds_single_advice_opening:8.
ram/ra_reduction.rs(NEW +868 lines)RamRaReductionSumcheckProver: Consolidates four RA claims into oneRamRaReductionSumcheckVerifier: Verifies the reduced claim9.
ram/val_evaluation.rs(+16 lines)LT(j, r_cycle)(bitstring j < r_cycle)Why Two Advice Opening Points?→ Advice Opening OptimizationPrevious behavior: Always open advice at TWO points.
New behavior: Conditionally open at ONE or TWO points:
needs_single_advice_openingphase1 = T.log_2()(all cycle vars)truephase1 = 0(all address vars first)falseSavings when
single_opening = true:Required Invariants (from
ram/mod.rsdocumentation)For the RA reduction to work correctly:
r_addressfromRamReadWriteChecking's openingr_addressfromOutputCheck's opening (orRamReadWriteCheckingif single_opening)