Skip to main content

Proof

Struct Proof 

Source
pub struct Proof<F> {
Show 15 fields pub commitments: (ZipPlusCommitment, ZipPlusCommitment, ZipPlusCommitment), pub zip: Vec<u8>, pub ideal_check: Proof<F>, pub cpr_proof: Proof<F>, pub combined_sumcheck: MultiDegreeSumcheckProof<F>, pub multipoint_eval: Proof<F>, pub witness_lifted_evals: Vec<Vec<DynamicPolynomial<F>>>, pub lookup_proof: Option<BatchedLookupProof<F>>, pub booleanity_proof: Option<BooleanityProof<F>>, pub affine_booleanity_proof: Option<BooleanityProof<F>>, pub ideal_checks_fq: Vec<Proof<F>>, pub cpr_proofs_fq: Vec<Proof<F>>, pub combined_sumchecks_fq: Vec<MultiDegreeSumcheckProof<F>>, pub multipoint_evals_fq: Vec<Proof<F>>, pub witness_lifted_evals_pp: Option<Vec<DynamicPolynomial<F>>>,
}
Expand description

Full proof produced by the Zinc+ PIOP for UCS.

§Lifted-eval families

Witness lifted evals are sent per family: for each of the $n + 2$ families (Q[X] / $q_0$, the declared $q_1, \dots, q_n$, and the PCS-only $q’’$), the prover sends a vector of DynamicPolynomial<F> carrying the per-family coefficient lift of each witness column. The verifier reads each family’s lifts under that family’s field cfg, no per-coefficient cfg.project projection is needed.

Fields§

§commitments: (ZipPlusCommitment, ZipPlusCommitment, ZipPlusCommitment)

Zip+ commitments to the witness columns.

§zip: Vec<u8>

Serialized PCS proof data (Zip+ proving transcripts).

§ideal_check: Proof<F>

Randomized ideal check proof (Q[X] family).

§cpr_proof: Proof<F>

Combined polynomial resolver proof (up_evals + down_evals).

§combined_sumcheck: MultiDegreeSumcheckProof<F>

Multi-degree sumcheck proof (CPR group + lookup groups).

§multipoint_eval: Proof<F>

Multi-point evaluation sumcheck proof (combines up_evals and down_evals at r* into a single evaluation point r_0).

§witness_lifted_evals: Vec<Vec<DynamicPolynomial<F>>>

Witness-only polynomial MLE evaluations at $r_0$, per constraint family.

Indexing follows the standard family convention used throughout the protocol:

  • witness_lifted_evals[0] — Q[X] family under $q_0$, $\bar u_j^{(0)}(X) = \sum_b \mathrm{eq}(b, r_0^{(0)}) \cdot u_j(b) \in F_{q_0}[X]$.
  • witness_lifted_evals[i] for $i \in 1..=n$ — the $i$-th declared prime family from zinc_uair::UairSignature::primes, lifted into $F_{q_i}[X]$ at $r_0$ projected mod $q_i$.

Length is n + 1 where n = primes().len(). Each inner Vec orders columns as [wit_bin..., wit_arb..., wit_int...].

The verifier recomputes per-family public lifted-evals from public data, interleaves them with these, evaluates at projecting_elements[family_idx] for the per-family MP-eval consistency check.

§lookup_proof: Option<BatchedLookupProof<F>>

Lookup argument proof. None when the UAIR has no lookup specs.

§booleanity_proof: Option<BooleanityProof<F>>

Binary-polynomial booleanity argument proof. None when the UAIR has no witness binary-poly columns (the argument is omitted from the multi-degree sumcheck in that case).

§affine_booleanity_proof: Option<BooleanityProof<F>>

Affine-virtual booleanity argument proof. None when the UAIR has no affine virtual specs.

§ideal_checks_fq: Vec<Proof<F>>

Per-prime $F_{q_i}[X]$ ideal-check proofs, one per declared prime in zinc_uair::UairSignature::primes, in the same order. Empty for UAIRs with $Q[X]$-only constraints.

§cpr_proofs_fq: Vec<Proof<F>>

Per-prime CPR proofs, one per declared prime, produced by the lockstep sumcheck in step 5. Empty for UAIRs with $Q[X]$ only constraints.

§combined_sumchecks_fq: Vec<MultiDegreeSumcheckProof<F>>

Per-prime multi-degree sumcheck proofs, one per declared prime, produced by the lockstep sumcheck driver in step 5. Empty for UAIRs with $Q[X]$ only constraints.

§multipoint_evals_fq: Vec<Proof<F>>

Per-prime multipoint-eval proofs, one per declared prime, produced by the lockstep multipoint-eval in step 6. Empty for UAIRs with $Q[X]$ only constraints.

§witness_lifted_evals_pp: Option<Vec<DynamicPolynomial<F>>>

Witness-only lifted MLE evaluations under the PCS-only prime $q’‘$, sampled fresh at step 7 start. Length equals the number of witness columns. The verifier uses these directly for the PCS evaluation check at $r^\star = r_0 \bmod q’‘$ — no per-coefficient $\phi_{q’’}$ projection needed.

Kept separate from witness_lifted_evals because $q’‘$ plays a distinct role (PCS-only; no MP-eval / constraint check happens under $q’’$).

If no $F_q[X]$ constraints are present, this will be None to indicate $q’’ := q_0$ and this is identical to witness_lifted_evals.

Trait Implementations§

Source§

impl<F: Clone> Clone for Proof<F>

Source§

fn clone(&self) -> Proof<F>

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<F: Debug> Debug for Proof<F>

Source§

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

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

impl<F> GenTranscribable for Proof<F>

Source§

fn read_transcription_bytes_exact(bytes: &[u8]) -> Self

Creates a new instance from a byte buffer. The buffer must be exactly the expected length.
Source§

fn write_transcription_bytes_exact(&self, buf: &mut [u8])

Transcribes the current instance into a byte buffer. The buffer must be exactly the expected length.
Source§

impl<F: PartialEq> PartialEq for Proof<F>

Source§

fn eq(&self, other: &Proof<F>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<F> Transcribable for Proof<F>

Source§

fn get_num_bytes(&self) -> usize

Returns the number of bytes required to represent this type. The buffer passed to write_transcription_bytes should be exactly the length returned by this function.
Source§

const LENGTH_NUM_BYTES: usize = u32::NUM_BYTES

Number of bytes required to represent length of this type, could be zero if known in advance.
Source§

fn read_num_bytes(bytes: &[u8]) -> usize

Read number of bytes required to represent this type. The buffer must be exactly LENGTH_NUM_BYTES long. The buffer passed to read_transcription_bytes should be exactly the length returned by this function.
Source§

fn read_transcription_bytes_subset(bytes: &[u8]) -> (Self, &[u8])

Reads an instance of this type from the beginning of the byte slice, and returns the instance along with the remaining byte slice.
Source§

fn write_transcription_bytes_subset<'a>( &self, buf: &'a mut [u8], ) -> &'a mut [u8]

Writes this instance, prefixed by length, into the beginning of the byte buffer, and returns the remaining byte buffer.
Source§

impl<F: Eq> Eq for Proof<F>

Source§

impl<F> StructuralPartialEq for Proof<F>

Auto Trait Implementations§

§

impl<F> Freeze for Proof<F>

§

impl<F> RefUnwindSafe for Proof<F>
where F: RefUnwindSafe,

§

impl<F> Send for Proof<F>
where F: Send,

§

impl<F> Sync for Proof<F>
where F: Sync,

§

impl<F> Unpin for Proof<F>
where F: Unpin,

§

impl<F> UnsafeUnpin for Proof<F>

§

impl<F> UnwindSafe for Proof<F>
where F: 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
§

impl<T> AsMaybeUninit for T

§

type Uninit = MaybeUninit<T>

This type in its maybe-uninitialized form.
§

type SizedPart = T

The largest Sized element in Self, used to check for the absence of drop glue via a Copy bound. Read more
§

fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit

Converts a &self to its maybe-initialized equivalent.
§

unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit

Converts a &mut T to its maybe-initialized equivalent. Read more
§

unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit

Converts a raw pointer to a reference to maybe-uninit. Read more
§

unsafe fn raw_mut_as_uninit<'a>( raw: *mut T, ) -> &'a mut <T as AsMaybeUninit>::Uninit

Converts a raw mutable pointer to a mutable reference to maybe-uninit. 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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> ManuallyDropMut for T

§

type Ret = ManuallyDrop<T>

§

fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>

§

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> 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.
§

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

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SetElement for T
where T: Debug + Clone + Eq + Send + Sync + 'static,