Struct o1vm::legacy::folding::FoldingWitness
source · pub struct FoldingWitness<const N: usize, F: FftField> {
pub witness: GenericWitness<N, Evaluations<F, Radix2EvaluationDomain<F>>>,
}
Expand description
Includes the data witness columns and also the dynamic selector columns
Fields§
§witness: GenericWitness<N, Evaluations<F, Radix2EvaluationDomain<F>>>
Trait Implementations§
source§impl<const N: usize, F: Clone + FftField> Clone for FoldingWitness<N, F>
impl<const N: usize, F: Clone + FftField> Clone for FoldingWitness<N, F>
source§fn clone(&self) -> FoldingWitness<N, F>
fn clone(&self) -> FoldingWitness<N, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<const N: usize, F: FftField> Foldable<F> for FoldingWitness<N, F>
impl<const N: usize, F: FftField> Foldable<F> for FoldingWitness<N, F>
source§impl<const N: usize, const N_REL: usize, const N_SEL: usize, C: FoldingConfig, Structure: Clone> FoldingEnv<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, FoldingInstance<N, <C as FoldingConfig>::Curve>, FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>, <C as FoldingConfig>::Column, Challenge, <C as FoldingConfig>::Selector> for DecomposedFoldingEnvironment<N, N_REL, N_SEL, C, Structure>where
FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Column, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>,
FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Selector, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>,
impl<const N: usize, const N_REL: usize, const N_SEL: usize, C: FoldingConfig, Structure: Clone> FoldingEnv<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, FoldingInstance<N, <C as FoldingConfig>::Curve>, FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>, <C as FoldingConfig>::Column, Challenge, <C as FoldingConfig>::Selector> for DecomposedFoldingEnvironment<N, N_REL, N_SEL, C, Structure>where FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Column, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>, FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Selector, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>,
source§fn new(
structure: &Self::Structure,
instances: [&FoldingInstance<N, C::Curve>; 2],
witnesses: [&FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>; 2]
) -> Self
fn new( structure: &Self::Structure, instances: [&FoldingInstance<N, C::Curve>; 2], witnesses: [&FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>; 2] ) -> Self
Creates a new environment storing the structure, instances and
witnesses.
source§fn col(
&self,
col: C::Column,
curr_or_next: CurrOrNext,
side: Side
) -> &[<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField]
fn col( &self, col: C::Column, curr_or_next: CurrOrNext, side: Side ) -> &[<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField]
Returns the evaluations of a given column witness at omega or zeta*omega.
source§impl<const N: usize, C: FoldingConfig, Structure: Clone> FoldingEnv<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, FoldingInstance<N, <C as FoldingConfig>::Curve>, FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>, <C as FoldingConfig>::Column, Challenge, ()> for FoldingEnvironment<N, C, Structure>where
FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Column, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>,
impl<const N: usize, C: FoldingConfig, Structure: Clone> FoldingEnv<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, FoldingInstance<N, <C as FoldingConfig>::Curve>, FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>, <C as FoldingConfig>::Column, Challenge, ()> for FoldingEnvironment<N, C, Structure>where FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>: Index<C::Column, Output = Evaluations<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField, Radix2EvaluationDomain<<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>>>,
source§fn new(
structure: &Self::Structure,
instances: [&FoldingInstance<N, C::Curve>; 2],
witnesses: [&FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>; 2]
) -> Self
fn new( structure: &Self::Structure, instances: [&FoldingInstance<N, C::Curve>; 2], witnesses: [&FoldingWitness<N, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField>; 2] ) -> Self
Creates a new environment storing the structure, instances and
witnesses.
source§fn col(
&self,
col: C::Column,
curr_or_next: CurrOrNext,
side: Side
) -> &[<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField]
fn col( &self, col: C::Column, curr_or_next: CurrOrNext, side: Side ) -> &[<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField]
Returns the evaluations of a given column witness at omega or zeta*omega.
source§impl Index<Column> for FoldingWitness<N_MIPS_REL_COLS, Fp>
impl Index<Column> for FoldingWitness<N_MIPS_REL_COLS, Fp>
source§impl<const N: usize, F: PartialEq + FftField> PartialEq<FoldingWitness<N, F>> for FoldingWitness<N, F>
impl<const N: usize, F: PartialEq + FftField> PartialEq<FoldingWitness<N, F>> for FoldingWitness<N, F>
source§fn eq(&self, other: &FoldingWitness<N, F>) -> bool
fn eq(&self, other: &FoldingWitness<N, F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<const N: usize, F: Eq + FftField> Eq for FoldingWitness<N, F>
impl<const N: usize, F: FftField> StructuralEq for FoldingWitness<N, F>
impl<const N: usize, F: FftField> StructuralPartialEq for FoldingWitness<N, F>
impl<const N: usize, G: CommitmentCurve> Witness<G> for FoldingWitness<N, G::ScalarField>
Auto Trait Implementations§
impl<const N: usize, F> RefUnwindSafe for FoldingWitness<N, F>where F: RefUnwindSafe,
impl<const N: usize, F> Send for FoldingWitness<N, F>
impl<const N: usize, F> Sync for FoldingWitness<N, F>
impl<const N: usize, F> Unpin for FoldingWitness<N, F>
impl<const N: usize, F> UnwindSafe for FoldingWitness<N, F>where F: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<G, W> RelaxableWitness<G, W> for Wwhere
G: CommitmentCurve,
W: Witness<G>,
impl<G, W> RelaxableWitness<G, W> for Wwhere G: CommitmentCurve, W: Witness<G>,
§fn relax(
self,
zero_poly: &Evaluations<<G as AffineRepr>::ScalarField, Radix2EvaluationDomain<<G as AffineRepr>::ScalarField>>
) -> RelaxedWitness<G, W>
fn relax( self, zero_poly: &Evaluations<<G as AffineRepr>::ScalarField, Radix2EvaluationDomain<<G as AffineRepr>::ScalarField>> ) -> RelaxedWitness<G, W>
This method takes a witness and a vector of evaluations to the zero polynomial, returning a relaxed witness which is composed by the extended witness and the error vector that is set to the zero polynomial.