pub struct ConstraintSystem<P: PackedField<Scalar: TowerField>, PBase: PackedField = P> {
pub oracles: MultilinearOracleSet<P::Scalar>,
pub table_constraints: Vec<ConstraintSet<P>>,
pub table_constraints_base: Vec<ConstraintSet<PBase>>,
pub non_zero_oracle_ids: Vec<OracleId>,
pub flushes: Vec<Flush>,
pub max_channel_id: ChannelId,
}
Expand description
Contains the 3 things that place constraints on witness data in Binius
- virtual oracles
- polynomial constraints
- channel flushes
As a result, a ConstraintSystem allows us to validate all of these constraints against a witness, as well as enabling generic prove/verify
Fields§
§oracles: MultilinearOracleSet<P::Scalar>
§table_constraints: Vec<ConstraintSet<P>>
§table_constraints_base: Vec<ConstraintSet<PBase>>
§non_zero_oracle_ids: Vec<OracleId>
§flushes: Vec<Flush>
§max_channel_id: ChannelId
Implementations§
source§impl<P: PackedField<Scalar: TowerField>, PBase: PackedField> ConstraintSystem<P, PBase>
impl<P: PackedField<Scalar: TowerField>, PBase: PackedField> ConstraintSystem<P, PBase>
pub fn no_base_constraints(self) -> ConstraintSystem<P>
Trait Implementations§
source§impl<P: Clone + PackedField<Scalar: TowerField>, PBase: Clone + PackedField> Clone for ConstraintSystem<P, PBase>
impl<P: Clone + PackedField<Scalar: TowerField>, PBase: Clone + PackedField> Clone for ConstraintSystem<P, PBase>
source§fn clone(&self) -> ConstraintSystem<P, PBase>
fn clone(&self) -> ConstraintSystem<P, PBase>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P: Debug + PackedField<Scalar: TowerField>, PBase: Debug + PackedField> Debug for ConstraintSystem<P, PBase>
impl<P: Debug + PackedField<Scalar: TowerField>, PBase: Debug + PackedField> Debug for ConstraintSystem<P, PBase>
Auto Trait Implementations§
impl<P, PBase> Freeze for ConstraintSystem<P, PBase>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P, PBase = P> !RefUnwindSafe for ConstraintSystem<P, PBase>
impl<P, PBase> Send for ConstraintSystem<P, PBase>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P, PBase> Sync for ConstraintSystem<P, PBase>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P, PBase> Unpin for ConstraintSystem<P, PBase>where
<P as PackedField>::Scalar: Sized + Unpin,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
<PBase as PackedField>::Scalar: Unpin,
impl<P, PBase = P> !UnwindSafe for ConstraintSystem<P, PBase>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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