Struct EqIndSumcheckProverBuilder

Source
pub struct EqIndSumcheckProverBuilder<'a, P, M, Backend>{ /* private fields */ }
Expand description

An “eq-ind” sumcheck prover.

The main difference of this prover from the RegularSumcheckProver is that it computes round evaluations of a much simpler “prime” polynomial multiplied by an already substituted portion of the equality indicator. This “prime” polynomial has the same degree as the underlying composition, reducing the number of would-be evaluation points by one, and avoids interpolating the tensor expansion of the equality indicator. Round evaluations for the “full” assumed composition are computed in monomial form, out of hot loop. See Gruen24 Section 3.2 for details.

The rationale behind builder interface is the need to specify the pre-expanded equality indicator and potentially known evaluations at one in first round.

Implementations§

Source§

impl<'a, F, P, Backend> EqIndSumcheckProverBuilder<'a, P, MLEDirectAdapter<P, Vec<P>>, Backend>
where F: TowerField, P: PackedField<Scalar = F>, Backend: ComputationBackend,

Source

pub fn without_switchover( n_vars: usize, multilinears: Vec<Vec<P>>, backend: &'a Backend, ) -> Self

Source§

impl<'a, F, P, M, Backend> EqIndSumcheckProverBuilder<'a, P, M, Backend>
where F: TowerField, P: PackedField<Scalar = F>, M: MultilinearPoly<P> + Send + Sync, Backend: ComputationBackend,

Source

pub fn with_switchover( multilinears: Vec<M>, switchover_fn: impl Fn(usize) -> usize, backend: &'a Backend, ) -> Result<Self, Error>

Source

pub fn with_eq_ind_partial_evals( self, eq_ind_partial_evals: Backend::Vec<P>, ) -> Self

Specify an existing tensor expansion for eq_ind_challenges in Self::build. Avoids duplicate work.

Source

pub fn with_first_round_eval_1s(self, first_round_eval_1s: &[F]) -> Self

Specify the value of round polynomial at 1 in the first round if it is available beforehand.

Prime example of this is GPA (grand product argument), where the value of the previous GKR layer may be used as an advice to compute the round polynomial at 1 directly with less effort compared to direct composite evaluation.

Source

pub fn with_const_suffixes( self, const_suffixes: &[(F, usize)], ) -> Result<Self, Error>

Specify the const suffixes for multilinears.

The provided array specifies the const suffixes at the end of each multilinear. Prover is able to reduce multilinear storage and compute using this information.

Source

pub fn build<FDomain, Composition>( self, evaluation_order: EvaluationOrder, eq_ind_challenges: &[F], composite_claims: impl IntoIterator<Item = CompositeSumClaim<F, Composition>>, domain_factory: impl EvaluationDomainFactory<FDomain>, ) -> Result<EqIndSumcheckProver<'a, FDomain, P, Composition, M, Backend>, Error>
where F: ExtensionField<FDomain>, P: PackedExtension<FDomain>, FDomain: Field, Composition: CompositionPoly<P>,

Auto Trait Implementations§

§

impl<'a, P, M, Backend> Freeze for EqIndSumcheckProverBuilder<'a, P, M, Backend>
where <Backend as ComputationBackend>::Vec<P>: Freeze,

§

impl<'a, P, M, Backend> RefUnwindSafe for EqIndSumcheckProverBuilder<'a, P, M, Backend>

§

impl<'a, P, M, Backend> Send for EqIndSumcheckProverBuilder<'a, P, M, Backend>
where M: Send,

§

impl<'a, P, M, Backend> Sync for EqIndSumcheckProverBuilder<'a, P, M, Backend>
where M: Sync,

§

impl<'a, P, M, Backend> Unpin for EqIndSumcheckProverBuilder<'a, P, M, Backend>
where <Backend as ComputationBackend>::Vec<P>: Unpin, <P as PackedField>::Scalar: Unpin, M: Unpin, P: Unpin,

§

impl<'a, P, M, Backend> UnwindSafe for EqIndSumcheckProverBuilder<'a, P, M, Backend>
where <Backend as ComputationBackend>::Vec<P>: UnwindSafe, Backend: RefUnwindSafe, <P as PackedField>::Scalar: UnwindSafe, M: UnwindSafe, P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more