-
Notifications
You must be signed in to change notification settings - Fork 145
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
Refactor AIR #937
Refactor AIR #937
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #937 +/- ##
==========================================
- Coverage 72.37% 70.99% -1.39%
==========================================
Files 153 153
Lines 33423 32770 -653
==========================================
- Hits 24191 23264 -927
- Misses 9232 9506 +274 ☔ View full report in Codecov by Sentry. |
provers/stark/src/prover.rs
Outdated
// FieldElement<A::FieldExtension>: AsBytes + Sync + Send, | ||
// E: IsSubFieldOf<A::FieldExtension>, | ||
// A::Field: IsSubFieldOf<E>, |
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.
this can be removed
provers/stark/src/prover.rs
Outdated
// E: IsSubFieldOf<A::FieldExtension>, | ||
// A::Field: IsSubFieldOf<E>, |
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.
ditto
provers/stark/src/prover.rs
Outdated
// let (lde_trace_merkle_tree, lde_trace_merkle_root) = | ||
// Self::batch_commit_main(&lde_trace_permuted_rows); |
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.
ditto
provers/stark/src/prover.rs
Outdated
)> | ||
where | ||
FieldElement<A::Field>: AsBytes + Send + Sync, | ||
// FieldElement<E>: AsBytes + Send + Sync, |
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.
ditto
provers/stark/src/prover.rs
Outdated
FieldElement<A::Field>: AsBytes + Send + Sync, | ||
// FieldElement<E>: AsBytes + Send + Sync, | ||
FieldElement<A::FieldExtension>: AsBytes + Send + Sync, | ||
// E: IsSubFieldOf<A::FieldExtension> + IsFFTField, |
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.
ditto
provers/stark/src/prover.rs
Outdated
E: IsSubFieldOf<A::FieldExtension>, | ||
A::Field: IsSubFieldOf<E>, | ||
// F: IsFFTField, |
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.
ditto
provers/stark/src/prover.rs
Outdated
// let trace_poly_coeffients: Vec<_> = deep_composition_coefficients | ||
// .drain(..num_terms_trace) | ||
// .collect(); |
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.
ditto
provers/stark/src/table.rs
Outdated
// /// Given a row index, returns a mutable reference to that row as a slice of field elements. | ||
// pub fn get_row_mut(&mut self, row_idx: usize) -> &mut [FieldElement<F>] { | ||
// let n_cols = self.width; | ||
// let row_offset = row_idx * n_cols; | ||
// &mut self.data[row_offset..row_offset + n_cols] | ||
// } |
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.
ditto
provers/stark/src/trace.rs
Outdated
// #[cfg(test)] | ||
// mod test { | ||
// use super::TraceTable; | ||
// use lambdaworks_math::field::{element::FieldElement, fields::u64_prime_field::F17}; | ||
// type FE = FieldElement<F17>; | ||
|
||
#[test] | ||
fn test_cols() { | ||
let col_1 = vec![FE::from(1), FE::from(2), FE::from(5), FE::from(13)]; | ||
let col_2 = vec![FE::from(1), FE::from(3), FE::from(8), FE::from(21)]; | ||
// #[test] | ||
// fn test_cols() { | ||
// let col_1 = vec![FE::from(1), FE::from(2), FE::from(5), FE::from(13)]; | ||
// let col_2 = vec![FE::from(1), FE::from(3), FE::from(8), FE::from(21)]; | ||
|
||
let trace_table = TraceTable::from_columns(vec![col_1.clone(), col_2.clone()], 2, 1); | ||
let res_cols = trace_table.columns(); | ||
// let trace_table = TraceTable::from_columns(vec![col_1.clone(), col_2.clone()], 2, 1); | ||
// let res_cols = trace_table.columns(); | ||
|
||
assert_eq!(res_cols, vec![col_1, col_2]); | ||
} | ||
} | ||
// assert_eq!(res_cols, vec![col_1, col_2]); | ||
// } | ||
// } |
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.
ditto
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.
lgtm, just remove the commented unused code :)
Refactor AIR
This PR resumes the changes made for AIR in the following PRs: 834 and 697.
Description of the pull request changes and motivation.
Type of change
Please delete options that are not relevant.
Checklist