pub struct BivariateMLEcheckProver<'a, F: Field, Hal: ComputeLayer<F>, HostAllocatorType, DeviceAllocatorType>where
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,{ /* private fields */ }
Expand description
MLEcheck prover implementation for the special case of bivariate product compositions over large-field multilinears.
This implements the SumcheckProver
interface. The implementation uses a ComputeLayer
instance for expensive operations and the input multilinears are provided as device memory
slices.
Implementations§
Source§impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
pub fn new( hal: &'a Hal, dev_alloc: &'a DeviceAllocatorType, host_alloc: &'a HostAllocatorType, claim: &EqIndSumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, multilins: Vec<FSlice<'a, F, Hal>>, eq_ind_partial_evals: FSlice<'a, F, Hal>, eq_ind_challenges: Vec<F>, ) -> Result<Self, Error>
Sourcepub fn required_host_memory(
claim: &EqIndSumcheckClaim<F, IndexComposition<BivariateProduct, 2>>,
) -> usize
pub fn required_host_memory( claim: &EqIndSumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, ) -> usize
Returns the amount of host memory this sumcheck requires.
Sourcepub fn required_device_memory(
claim: &EqIndSumcheckClaim<F, IndexComposition<BivariateProduct, 2>>,
with_eq_ind_partial_evals: bool,
) -> usize
pub fn required_device_memory( claim: &EqIndSumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, with_eq_ind_partial_evals: bool, ) -> usize
Returns the amount of device memory this sumcheck requires.
pub fn fold_multilinears(&mut self, challenge: F) -> Result<(), Error>
pub fn fold_eq_ind(&mut self) -> Result<(), Error>
Trait Implementations§
Source§impl<F, Hal, HostAllocatorType, DeviceAllocatorType> SumcheckProver<F> for BivariateMLEcheckProver<'_, F, Hal, HostAllocatorType, DeviceAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
impl<F, Hal, HostAllocatorType, DeviceAllocatorType> SumcheckProver<F> for BivariateMLEcheckProver<'_, F, Hal, HostAllocatorType, DeviceAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
Source§fn n_vars(&self) -> usize
fn n_vars(&self) -> usize
The number of variables remaining in the multivariate polynomial. Read more
Source§fn evaluation_order(&self) -> EvaluationOrder
fn evaluation_order(&self) -> EvaluationOrder
Sumcheck evaluation order assumed by this specific prover.
Source§fn execute(&mut self, batch_coeff: F) -> Result<RoundCoeffs<F>, Error>
fn execute(&mut self, batch_coeff: F) -> Result<RoundCoeffs<F>, Error>
Computes the prover message for this round as a univariate polynomial. Read more
Auto Trait Implementations§
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> Freeze for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
F: Freeze,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'a>: Freeze,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'a>: Freeze,
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> RefUnwindSafe for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
F: RefUnwindSafe,
Hal: RefUnwindSafe,
DeviceAllocatorType: RefUnwindSafe,
HostAllocatorType: RefUnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'a>: RefUnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'a>: RefUnwindSafe,
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> Send for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> Sync for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
Hal: Sync,
DeviceAllocatorType: Sync,
HostAllocatorType: Sync,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'a>: Sync,
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> Unpin for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
F: Unpin,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'a>: Unpin,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'a>: Unpin,
impl<'a, F, Hal, HostAllocatorType, DeviceAllocatorType> UnwindSafe for BivariateMLEcheckProver<'a, F, Hal, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
F: UnwindSafe,
Hal: RefUnwindSafe,
DeviceAllocatorType: RefUnwindSafe,
HostAllocatorType: RefUnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'a>: UnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'a>: 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<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