pub struct SymbolicConstraints<F> {
pub constraints: Vec<SymbolicExpression<F>>,
pub interactions: Vec<SymbolicInteraction<F>>,
}Expand description
Symbolic constraints for a single AIR with interactions.
Fields§
§constraints: Vec<SymbolicExpression<F>>All plain AIR constraints. These do not include interaction constraints that are proven via LogUp-GKR.
interactions: Vec<SymbolicInteraction<F>>Symbolic representation of interactions. These are converted into a LogUp fractional sum which must be proven using GKR.
Implementations§
Source§impl<F: Field> SymbolicConstraints<F>
impl<F: Field> SymbolicConstraints<F>
pub fn max_constraint_degree(&self) -> usize
Sourcepub fn max_interaction_degrees(&self) -> (usize, usize)
pub fn max_interaction_degrees(&self) -> (usize, usize)
Returns the maximum field degree and count degree across all interactions
Trait Implementations§
Source§impl<F: Clone> Clone for SymbolicConstraints<F>
impl<F: Clone> Clone for SymbolicConstraints<F>
Source§fn clone(&self) -> SymbolicConstraints<F>
fn clone(&self) -> SymbolicConstraints<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for SymbolicConstraints<F>
impl<F: Debug> Debug for SymbolicConstraints<F>
Source§impl<'a, F: Field> From<&'a SymbolicConstraintsDag<F>> for SymbolicConstraints<F>
impl<'a, F: Field> From<&'a SymbolicConstraintsDag<F>> for SymbolicConstraints<F>
Source§fn from(dag: &'a SymbolicConstraintsDag<F>) -> Self
fn from(dag: &'a SymbolicConstraintsDag<F>) -> Self
Converts to this type from the input type.
Source§impl<F: Field> From<SymbolicConstraints<F>> for SymbolicConstraintsDag<F>
impl<F: Field> From<SymbolicConstraints<F>> for SymbolicConstraintsDag<F>
Source§fn from(sc: SymbolicConstraints<F>) -> Self
fn from(sc: SymbolicConstraints<F>) -> Self
Converts to this type from the input type.
Source§impl<F: Field> From<SymbolicConstraintsDag<F>> for SymbolicConstraints<F>
impl<F: Field> From<SymbolicConstraintsDag<F>> for SymbolicConstraints<F>
Source§fn from(dag: SymbolicConstraintsDag<F>) -> Self
fn from(dag: SymbolicConstraintsDag<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> Freeze for SymbolicConstraints<F>
impl<F> RefUnwindSafe for SymbolicConstraints<F>where
F: RefUnwindSafe,
impl<F> Send for SymbolicConstraints<F>
impl<F> Sync for SymbolicConstraints<F>
impl<F> Unpin for SymbolicConstraints<F>where
F: Unpin,
impl<F> UnsafeUnpin for SymbolicConstraints<F>
impl<F> UnwindSafe for SymbolicConstraints<F>where
F: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more