-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/higher arity fri #464
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
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bb7044c
feat(fri): add fri_log_arity and fri_log_final_poly_len to ProofOptions
diegokingston e09b254
feat(fri): generalize proof structures for variable-arity FRI
diegokingston 3c03f1e
feat(fri): implement higher-arity FRI commit and query
diegokingston 8d01695
feat(fri): implement verifier FRI fold for variable arity
diegokingston c56a1ae
test(fri): add arity-4/8 prove/verify roundtrip tests
diegokingston 6b0cf26
perf(fri): set default FRI arity to 4
diegokingston 4bfe593
Merge branch 'main' into feat/higher-arity-fri
jotabulacios 1c4798b
fix lint
jotabulacios 8e99180
Merge branch 'main' into feat/higher-arity-fri
diegokingston 10c9d8f
Merge branch 'main' into feat/higher-arity-fri
diegokingston f37526c
Merge branch 'main' into feat/higher-arity-fri
diegokingston e411987
Merge branch 'main' into feat/higher-arity-fri
diegokingston d7318ad
Merge branch 'main' into feat/higher-arity-fri
diegokingston b88b3d2
Merge branch 'main' into feat/higher-arity-fri
diegokingston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
High: Division by zero when
fri_log_arity = 0If
ProofOptions::fri_log_arityis set to0,log_arity = 0here and this line panics (integer division by zero). There is also a second division at line 73 ((total_folds - 1) / log_arity) with the same problem. Additionally, if somehow execution reached thewhileloop withlog_arity = 0, all rounds after the first would havefolds_this_round = 0, makingfolds_donenever increase — an infinite loop.fri_log_arityshould be validated to be>= 1inProofOptions, or guarded here: