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>
impl<'a, F, P, Backend> EqIndSumcheckProverBuilder<'a, P, MLEDirectAdapter<P, Vec<P>>, Backend>
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,
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,
pub fn with_switchover( multilinears: Vec<M>, switchover_fn: impl Fn(usize) -> usize, backend: &'a Backend, ) -> Result<Self, Error>
Sourcepub fn with_eq_ind_partial_evals(
self,
eq_ind_partial_evals: Backend::Vec<P>,
) -> Self
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.
Sourcepub fn with_first_round_eval_1s(self, first_round_eval_1s: &[F]) -> Self
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.
Sourcepub fn with_const_suffixes(
self,
const_suffixes: &[(F, usize)],
) -> Result<Self, Error>
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.
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>
impl<'a, P, M, Backend> RefUnwindSafe for EqIndSumcheckProverBuilder<'a, P, M, Backend>where
<Backend as ComputationBackend>::Vec<P>: RefUnwindSafe,
Backend: RefUnwindSafe,
<P as PackedField>::Scalar: RefUnwindSafe,
M: RefUnwindSafe,
P: RefUnwindSafe,
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> 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
§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> ⓘ
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> ⓘ
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