Skip to content

Commit 7571b3f

Browse files
committed
fix: add boolean is_n_max_greater_than_n_logup constraint to be safe
1 parent 5471ab7 commit 7571b3f

File tree

1 file changed

+6
-0
lines changed
  • crates/recursion/src/gkr/input

1 file changed

+6
-0
lines changed

crates/recursion/src/gkr/input/air.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ impl<AB: AirBuilder + InteractionBuilder> Air<AB> for GkrInputAir {
9898
let local: &GkrInputCols<AB::Var> = (*local).borrow();
9999
let next: &GkrInputCols<AB::Var> = (*next).borrow();
100100

101+
///////////////////////////////////////////////////////////////////////
102+
// Boolean Constraints
103+
///////////////////////////////////////////////////////////////////////
104+
105+
builder.assert_bool(local.is_n_max_greater_than_n_logup);
106+
101107
///////////////////////////////////////////////////////////////////////
102108
// Proof Index Constraints
103109
///////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)