Skip to main content

TestUairFqLargePrime

Struct TestUairFqLargePrime 

Source
pub struct TestUairFqLargePrime<R, P>(/* private fields */);
Expand description

A UAIR exercising the Flavor-1 $F_{q}[X]$-constraint surface for multiple large primes.

Single arbitrary-poly witness column a. Two $F_{q_i}[X]$- constraints, one per declared prime $q_i$:

$$ \phi_{q_0}(a) \in (X - 0) \quad \text{in } F_{q_0}[X], \qquad \phi_{q_1}(a) \in (X - 0) \quad \text{in } F_{q_1}[X], $$

i.e. the constant term of a is zero modulo each of $q_0$ and $q_1$. The trace generator builds a with its $X^0$ coefficient set to integer zero, so both constraints hold simultaneously regardless of the chosen primes.

Used to exercise the per-prime $F_{q_i}[X]$ ideal-check family of the Zinc$+$ protocol end-to-end with multiple primes, including the lockstep multi-family sumcheck/MP-eval driver.

Trait Implementations§

Source§

impl<R: Clone, P: Clone> Clone for TestUairFqLargePrime<R, P>

Source§

fn clone(&self) -> TestUairFqLargePrime<R, P>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R: Debug, P: Debug> Debug for TestUairFqLargePrime<R, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R, P> GenerateRandomTrace<32> for TestUairFqLargePrime<R, P>
where R: ConstSemiring + From<i32> + 'static, P: Semiring + From<u64> + 'static,

Source§

type PolyCoeff = R

Source§

type Int = R

Source§

fn generate_random_trace<G: Rng + ?Sized>( num_vars: usize, rng: &mut G, ) -> UairTrace<'static, R, R, 32, 32>

Source§

impl<R, P> Uair for TestUairFqLargePrime<R, P>
where R: ConstSemiring + From<i32> + 'static, P: Semiring + From<u64> + 'static,

Source§

type Ideal = ImpossibleIdeal

The ideal type the AIR operates with. Since a ConstraintBuilder is “opaque” for a Uair a Uair has to have a means to create ideals so ideals are fixed by this associated types. At the constrain* methods a Uair is given a way to convert its own ideals into builder’s ideals via the FromRef trait.
Source§

type FqIdeal = RotationIdeal<R, 1>

The ideal type for $F_{q_i}[X]$-constraints emitted via [ConstraintBuilder::assert_in_fq_ideal]. UAIRs that do not declare any primes should set this to [ideal::ImpossibleIdeal].
Source§

type Scalar = DensePolynomial<R, 32>

The type of scalars of the UAIR. For now, we assume they are of the type “arbitrary polynomials”.
Source§

type Prime = P

Type of primes defined in signature. Must be compatible with the field type we’re using.
Source§

fn signature() -> UairSignature<Self::Prime>

Signature of the UAIR. Read more
Source§

fn constrain_general<C, B, FromR, MulByScalar, IFromR, IFqFromR>( b: &mut B, _expr_cfg: &C, up: TraceRow<'_, C::Element>, _down: TraceRow<'_, C::Element>, _from_ref: FromR, _mbs: MulByScalar, _ideal_from_ref: IFromR, fq_ideal_from_ref: IFqFromR, )
where C: SemiringConfig, B: ConstraintBuilder<Expr = C::Element>, FromR: Fn(&Self::Scalar) -> C::Element, MulByScalar: Fn(&C::Element, &Self::Scalar) -> Option<C::Element>, IFqFromR: Fn(&Self::FqIdeal) -> B::FqIdeal,

A general method for describing constraints. Read more

Auto Trait Implementations§

§

impl<R, P> Freeze for TestUairFqLargePrime<R, P>

§

impl<R, P> RefUnwindSafe for TestUairFqLargePrime<R, P>

§

impl<R, P> Send for TestUairFqLargePrime<R, P>
where R: Send, P: Send,

§

impl<R, P> Sync for TestUairFqLargePrime<R, P>
where R: Sync, P: Sync,

§

impl<R, P> Unpin for TestUairFqLargePrime<R, P>
where R: Unpin, P: Unpin,

§

impl<R, P> UnsafeUnpin for TestUairFqLargePrime<R, P>

§

impl<R, P> UnwindSafe for TestUairFqLargePrime<R, P>
where R: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.