pub struct BivariateSumcheckProver<'a, 'b, F: Field, Hal: ComputeLayer<F>, DeviceAllocatorType, HostAllocatorType>where
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
'a: 'b,{ /* private fields */ }
Expand description
Sumcheck 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, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
pub fn new( hal: &'a Hal, dev_alloc: &'a DeviceAllocatorType, host_alloc: &'a HostAllocatorType, claim: &SumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, multilins: Vec<FSlice<'b, F, Hal>>, ) -> Result<Self, Error>
Sourcepub fn required_host_memory(
claim: &SumcheckClaim<F, IndexComposition<BivariateProduct, 2>>,
) -> usize
pub fn required_host_memory( claim: &SumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, ) -> usize
Returns the amount of host memory this sumcheck requires.
Sourcepub fn required_device_memory(
claim: &SumcheckClaim<F, IndexComposition<BivariateProduct, 2>>,
) -> usize
pub fn required_device_memory( claim: &SumcheckClaim<F, IndexComposition<BivariateProduct, 2>>, ) -> usize
Returns the amount of device memory this sumcheck requires.
Trait Implementations§
Source§impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> SumcheckProver<F> for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> SumcheckProver<F> for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
F: TowerField,
Hal: ComputeLayer<F>,
DeviceAllocatorType: ComputeAllocator<F, Hal::DevMem>,
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
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, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> Freeze for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> RefUnwindSafe for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
Hal: RefUnwindSafe,
DeviceAllocatorType: RefUnwindSafe,
HostAllocatorType: RefUnwindSafe,
F: RefUnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'b>: RefUnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'b>: RefUnwindSafe,
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> Send for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> Sync for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
Hal: Sync,
DeviceAllocatorType: Sync,
HostAllocatorType: Sync,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'b>: Sync,
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> Unpin for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
F: Unpin,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'b>: Unpin,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'b>: Unpin,
impl<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType> UnwindSafe for BivariateSumcheckProver<'a, 'b, F, Hal, DeviceAllocatorType, HostAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
Hal: RefUnwindSafe,
DeviceAllocatorType: RefUnwindSafe,
HostAllocatorType: RefUnwindSafe,
F: UnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSlice<'b>: UnwindSafe,
<<Hal as ComputeLayer<F>>::DevMem as ComputeMemory<F>>::FSliceMut<'b>: 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