-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
use alloc::vec::Vec; | ||
use winter_air::TransitionConstraintDegree; | ||
use vm_core::{Felt, FieldElement}; | ||
use winter_air::{Assertion, TransitionConstraintDegree}; | ||
|
||
use crate::{gkr_proof::inner_product, trace::logup::S_COL_IDX}; | ||
|
||
/// The number of auxiliary assertions. | ||
pub const NUM_AUX_ASSERTIONS: usize = 2; | ||
|
||
pub fn get_aux_transition_constraint_degrees() -> Vec<TransitionConstraintDegree> { | ||
todo!() | ||
} | ||
|
||
pub fn get_aux_assertions_last_step<E>( | ||
result: &mut Vec<Assertion<E>>, | ||
openings_combining_randomness: &[E], | ||
openings: &[E], | ||
step: usize, | ||
) where | ||
E: FieldElement<BaseField = Felt>, | ||
{ | ||
let value = inner_product(openings_combining_randomness, openings); | ||
|
||
result.push(Assertion::single(S_COL_IDX, step, value)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters