Skip to content

Commit 7bbf43d

Browse files
committed
fix: remove unnecessary constraint in is_less_than_array chip
1 parent 75383e5 commit 7bbf43d

File tree

1 file changed

+1
-1
lines changed
  • crates/circuits/primitives/src/is_less_than_array

1 file changed

+1
-1
lines changed

crates/circuits/primitives/src/is_less_than_array/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<const NUM: usize> IsLtArraySubAir<NUM> {
134134
.assert_zero(not::<AB::Expr>(prefix_sum.clone()) * diff.clone());
135135
builder.when(marker).assert_one(diff * diff_inv);
136136
}
137-
builder.assert_bool(prefix_sum.clone());
137+
138138
// When condition != 0,
139139
// - If `x != y`, then `prefix_sum = 1` so marker[i] must be nonzero iff i is the first
140140
// index where `x[i] != y[i]`. Constrains that `diff_inv * (y[i] - x[i]) = 1` (`diff_val`

0 commit comments

Comments
 (0)