Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
umadayal committed Jan 29, 2025
1 parent afa1fcd commit b9d55ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/stark/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl<SC: StarkGenericConfig, A: MachineAir<Val<SC>> + Air<SymbolicAirBuilder<Val
data,
chip_ordering: chip_ordering.clone(),
local_only,
constraints_map: constraints_map.clone(),
constraints_map,
},
StarkVerifyingKey {
commit,
Expand Down
6 changes: 3 additions & 3 deletions crates/stark/src/permutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ pub fn eval_permutation_constraints<'a, F, AB>(

/// Counts the number of permutation constraints for the given chip.
///
/// IMPORTANT: This function must be manually updated if any changes are made to the constraint system in
/// IMPORTANT: This function must be manually updated if any changes are made to
/// `eval_permutation_constraints`. The current count includes:
/// - For local permutations: (width-1) batch sum constraints + 3 cumulative sum constraints
/// - For global scope: 14 additional constraints for the global cumulative sum
/// - For local interactions: `local_permutation_trace_width(sends.len() + receives.len(), batch_size)` + 3 local cumulative sum constraints.
/// - For global scope: 14 additional constraints for the global cumulative sum.
pub fn count_permutation_constraints<F: Field>(
sends: &[Interaction<F>],
receives: &[Interaction<F>],
Expand Down

0 comments on commit b9d55ca

Please sign in to comment.