Skip to content

Commit

Permalink
feat: make degree check into a degree bound check
Browse files Browse the repository at this point in the history
feat: make degree check into a degree bound check

feat: make degree check into a degree bound check

feat: make degree check into a degree bound check
  • Loading branch information
Al-Kindi-0 committed Aug 28, 2024
1 parent 18af6f5 commit a0a597e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions prover/src/constraints/evaluation_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,14 @@ impl<'a, E: FieldElement> ConstraintEvaluationTable<'a, E> {
max_degree = core::cmp::max(max_degree, degree);
}

//// make sure expected and actual degrees are equal
//assert_eq!(
//self.expected_transition_degrees, actual_degrees,
//"transition constraint degrees didn't match\nexpected: {:>3?}\nactual: {:>3?}",
//self.expected_transition_degrees, actual_degrees
//);
// make sure the actual degrees are less than or equal to the expected degree bounds
assert!(
self.expected_transition_degrees >= actual_degrees,
"transition constraint degrees do not satisfy the expected degree bounds
\nexpected degree bounds: {:>3?}\nactual degrees: {:>3?}",
self.expected_transition_degrees,
actual_degrees
);

// make sure evaluation domain size does not exceed the size required by max degree
let expected_domain_size =
Expand Down

0 comments on commit a0a597e

Please sign in to comment.