Documentation

CslibFrontier.Crypto.Protocols.VOLE.HigherDegreeCheck

Arbitrary-degree QuickSilver VOLE checks and ACT V1 challenge-dependent batching #

This module formalizes QuickSilver / VOLE-IT-MAC polynomial constraint checks of arbitrary degree d ≥ 1 over a finite field or commutative ring, exact ideal-world full-view simulation via (d - 1) VOLE masks, independent-weight and scalar-power batching soundness over arbitrary challenge embeddings (including single-shot FAEST grinding subsets), and the ACT V1 domain-separated random linear combination (l = H(chal2 || domain)) check in the random oracle model.

For a multivariate constraint F_poly of total degree at most d evaluated on VOLE-authenticated wires ρ_i(X) = v_i + w_i * X, homogenizing every monomial of total degree deg ≤ d by X ^ (d - deg) yields a univariate polynomial qsHomogPoly d F_poly w v of degree at most d whose degree-d coefficient is MvPolynomial.eval w F_poly. Adding (d - 1) fresh VOLE mask correlations (u_m, v_m, q_m) blinds the lower d coefficients via the telescoping QuickSilver mask coefficients qsMaskCoeff so the entire honest receiver view is perfectly simulatable for all d ≥ 1 over arbitrary finite commutative rings. Completeness and exact full-view simulation for honest receivers (qsMaskedCheckView_eq_simulate) and arbitrary role-local adaptive receiver strategies (qsMaskedCheckReceiverView_eq_simulate) are proved for qsMaskedCheck. Each simulation result is an exact view equality for one execution in the cached ideal correlation world with trusted uniform setup and fresh masks, using a straight-line witness-free simulator whose efficiency is not certified; it introduces no new ZK predicate and makes no reset, concurrent-session, VOLE-in-the-head, plain-model, or malicious-verifier ZK claim (matching VOLE.MaskedMulCheck and VOLE.AdaptiveMulCheck). Single-shot independent-weight soundness (1 / |F| + (1 - 1 / |F|) * (d / |C|)) is proved at the value level for qsMaskedCheckValue (toOuterMeasure_qsMaskedCheckValue_le, via toOuterMeasure_qsHomogLinearBatch_le); unmasked challenge-embedding soundness (d / |C|) and scalar-power batching (t / |F| + d / |C|) are proved in toOuterMeasure_qsCheck_le_of_embedding and toOuterMeasure_qsHomogScalarBatch_le.

For any fixed polynomial P of degree at most d with nonzero degree-d coefficient and any challenge embedding ι : C ↪ F, univariate Schwartz–Zippel bounds the acceptance probability over c ← uniformOfFintype C by d / |C|. Combining FAEST.Challenge grinding-bit filtering gives single-shot bounds d / 2 ^ λ (raw uniform λ-bit challenge with rejection) and d / 2 ^ (λ - w_grind) (uniform over accepted challenges); these single-shot bounds do not model Fiat–Shamir grinding amplification or state-restoration soundness.

For VOLE-ACT's Spending relation (m_uov = 45 in [ZPS26], Instantiations / VOLE-ACT-KP800 Table vole-act-kp800-parameters) as realized in vole-mole ([PZ26], commit 87af6871f: d_zk = 9, ℓ' = 6784, C' = 12283, and "rata\x00l0" RLC), suffixing the trailing domain byte 0x30 onto fixed-length byte messages ByteMsg n := Fin n → Fin 256 separates ACT's RLC trailing byte from the FAEST v3 H_i trailing bytes (0, 1, 3..5, 8..11) plus vole-mole's H_2^4 = 12 in faestTrailingDomainBytes, splitting a single uniform finite random oracle H_all : ByteMsg (n + 1) → Fin m → F into independent uniform tables (vole-mole's own 7-byte ACT_*_DST / IHAT / PoMFRIT tags mostly end in '0' = 0x30, separated by their penultimate purpose byte such as 'l' in "rata\x00l0", and are outside this single-trailing-byte model). This gives the conditional single-shot Round-2+3 interactive QuickSilver steps toOuterMeasure_actV1_qs_of_zkBinding_le (single oracle) and toOuterMeasure_actV1_domainSeparated_qs_of_zkBinding_le (single-RO domain-separated) with error q * δ_K + (1 / |F| + (1 - 1 / |F|) * (ε_zk + d / |C|)), together with the specialization toOuterMeasure_actV1_foldedQS_le on foldedConstraint. Note that FAEST v3.0 Lemmas 4.6 (ℓ' ≤ 2^12), 4.7 (C' ≤ 2^13), and 10.40 (d_zk ∈ {7, 14}) are stated under hypotheses that exclude ACT's d_zk = 9, ℓ' = 6784, C' = 12283; concrete VOLEHash / ZKHash constructions and Fiat–Shamir multi-round soundness are not formalized here.

Source correspondence and gaps #

Main definitions #

Main results #

References #

Arbitrary-Degree QuickSilver Homogenized Checks and VOLE Masking #

noncomputable def Cslib.Crypto.Protocols.VOLE.qsWirePoly {R : Type} [CommRing R] {n : ℕ} (w v : Fin n → R) (i : Fin n) :

The degree-1 authenticated wire polynomial v i + w i * X whose evaluation at Δ equals the adjusted receiver tag w i * Δ + v i.

def Cslib.Crypto.Protocols.VOLE.qsPolySum {R : Type} [CommRing R] (d : ℕ) (a : Fin d → R) (delta : R) :
R

Verifier evaluation of a degree-< d QuickSilver reply vector a : Fin d → R at Δ: ∑ k : Fin d, a k * Δ ^ k.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsHomogPoly {R : Type} [CommRing R] {n : ℕ} (d : ℕ) (F_poly : MvPolynomial (Fin n) R) (w v : Fin n → R) :

Homogenizing a multivariate polynomial F_poly of total degree at most d over Fin n on authenticated wire polynomials v i + w i * X multiplies each monomial m of degree deg ≤ d by X ^ (d - deg).

noncomputable def Cslib.Crypto.Protocols.VOLE.qsHomogVerifierValue {R : Type} [CommRing R] {n : ℕ} (d : ℕ) (F_poly : MvPolynomial (Fin n) R) (delta : R) (q' : Fin n → R) :
R

Receiver/verifier evaluation of a homogenized degree-d polynomial constraint from adjusted wire tags q' : Fin n → R and global key delta : R.

theorem Cslib.Crypto.Protocols.VOLE.eval_qsHomogPoly {R : Type} [CommRing R] {n : ℕ} (d : ℕ) (F_poly : MvPolynomial (Fin n) R) (w v : Fin n → R) (delta : R) :
Polynomial.eval delta (qsHomogPoly d F_poly w v) = qsHomogVerifierValue d F_poly delta fun (i : Fin n) => w i * delta + v i

Evaluating qsHomogPoly d F_poly w v at delta agrees with qsHomogVerifierValue on fun i => w i * delta + v i, unconditionally over any commutative ring.

theorem Cslib.Crypto.Protocols.VOLE.natDegree_qsHomogPoly_le {R : Type} [CommRing R] {n d : ℕ} {F_poly : MvPolynomial (Fin n) R} (hdeg : F_poly.totalDegree ≤ d) (w v : Fin n → R) :
(qsHomogPoly d F_poly w v).natDegree ≤ d

When F_poly.totalDegree ≤ d, the homogenized polynomial qsHomogPoly d F_poly w v has natDegree ≤ d.

theorem Cslib.Crypto.Protocols.VOLE.coeff_qsHomogPoly_eq_eval {R : Type} [CommRing R] {n d : ℕ} {F_poly : MvPolynomial (Fin n) R} (hdeg : F_poly.totalDegree ≤ d) (w v : Fin n → R) :
(qsHomogPoly d F_poly w v).coeff d = (MvPolynomial.eval w) F_poly

When F_poly.totalDegree ≤ d, the coefficient of X ^ d in qsHomogPoly d F_poly w v equals MvPolynomial.eval w F_poly.

theorem Cslib.Crypto.Protocols.VOLE.qsHomogVerifierValue_eq_eval {R : Type} [CommRing R] {n d : ℕ} {F_poly : MvPolynomial (Fin n) R} (hdeg : F_poly.totalDegree ≤ d) (w : Fin n → R) (c : VOLECorrelation R n) (hc : c.Valid) :
qsHomogVerifierValue d F_poly c.delta (voleAdjustReceiver c.w (voleCommitWitness w c.u) c.delta) = (MvPolynomial.eval w) F_poly * c.delta ^ d + qsPolySum d (fun (k : Fin d) => (qsHomogPoly d F_poly w c.v).coeff ↑k) c.delta

With a valid VOLE correlation c, the receiver's adjusted check value for F_poly equals MvPolynomial.eval w F_poly * c.delta ^ d plus the verifier evaluation of the d lower coefficients of qsHomogPoly d F_poly w c.v.

theorem Cslib.Crypto.Protocols.VOLE.qsHomogVerifierValue_complete {R : Type} [CommRing R] {n d : ℕ} {F_poly : MvPolynomial (Fin n) R} (hdeg : F_poly.totalDegree ≤ d) (w : Fin n → R) (c : VOLECorrelation R n) (hc : c.Valid) (hzero : (MvPolynomial.eval w) F_poly = 0) :
qsHomogVerifierValue d F_poly c.delta (voleAdjustReceiver c.w (voleCommitWitness w c.u) c.delta) = qsPolySum d (fun (k : Fin d) => (qsHomogPoly d F_poly w c.v).coeff ↑k) c.delta

Algebraic completeness for a vanishing degree-≤ d constraint: the adjusted receiver value equals qsPolySum on the lower d coefficients.

def Cslib.Crypto.Protocols.VOLE.qsMaskCoeff {R : Type} [CommRing R] (d : ℕ) (u v : Fin (d - 1) → R) (j : Fin d) :
R

QuickSilver telescoping mask coefficients from (d - 1) extra VOLE mask pairs (u, v) ([BBB+26c], Section 2.2 "Adding Zero-Knowledge" and ZK.OWFProve Figure 7.19): p_0 = v_0, p_j = v_j + u_{j-1}, p_{d-1} = u_{d-2}.

def Cslib.Crypto.Protocols.VOLE.qsMaskValue {R : Type} [CommRing R] (d : ℕ) (q_m : Fin (d - 1) → R) (delta : R) :
R

The receiver's scalar combination of the (d - 1) mask tags: ∑ k, q_m k * delta ^ k.

theorem Cslib.Crypto.Protocols.VOLE.qsPolySum_qsMaskCoeff {R : Type} [CommRing R] (d : ℕ) (u v : Fin (d - 1) → R) (delta : R) :
qsPolySum d (qsMaskCoeff d u v) delta = ∑ k : Fin (d - 1), (u k * delta + v k) * delta ^ ↑k

Evaluating the telescoping mask coefficients qsMaskCoeff d u v at delta produces ∑ k : Fin (d - 1), (u k * delta + v k) * delta ^ k for all d : ℕ.

theorem Cslib.Crypto.Protocols.VOLE.qsPolySum_qsMaskCoeff_eq_qsMaskValue {R : Type} [CommRing R] (d : ℕ) (u v q_m : Fin (d - 1) → R) (delta : R) (hvalid : ∀ (k : Fin (d - 1)), q_m k = u k * delta + v k) :
qsPolySum d (qsMaskCoeff d u v) delta = qsMaskValue d q_m delta

When q_m k = u k * delta + v k for all k : Fin (d - 1), qsPolySum on qsMaskCoeff equals qsMaskValue d q_m delta.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMulGatePoly {R : Type} [CommRing R] {n : ℕ} (a b c : Fin n) :

Degree-2 multivariate multiplication-gate constraint X a * X b - X c over any commutative ring (supporting shared wire indices).

Every multiplication-gate constraint qsMulGatePoly a b c has total degree at most 2.

theorem Cslib.Crypto.Protocols.VOLE.qsHomogPoly_qsMulGatePoly {R : Type} [CommRing R] {n : ℕ} (a b c : Fin n) (w v : Fin n → R) :
qsHomogPoly 2 (qsMulGatePoly a b c) w v = Polynomial.C (w a * w b - w c) * Polynomial.X ^ 2 + Polynomial.C (voleMulCrossTerm (w a) (v a) (w b) (v b) (v c)) * Polynomial.X + Polynomial.C (voleMulConstTerm (v a) (v b))

Homogenizing qsMulGatePoly a b c at d = 2 reproduces the quadratic VOLE multiplication polynomial whose lower coefficients are voleMulCrossTerm and voleMulConstTerm.

theorem Cslib.Crypto.Protocols.VOLE.qsHomogVerifierValue_qsMulGatePoly {R : Type} [CommRing R] {n : ℕ} (a b c : Fin n) (delta : R) (q' : Fin n → R) :
qsHomogVerifierValue 2 (qsMulGatePoly a b c) delta q' = q' a * q' b - q' c * delta

The degree-2 verifier evaluation of qsMulGatePoly a b c is q' a * q' b - q' c * delta.

Honest- and Adaptive-Receiver View Simulation for Masked Degree-d QuickSilver #

@[reducible, inline]

Three-move interaction specification for masked degree-d QuickSilver checks: wire corrections, public batch weights, then the d masked lower coefficients.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReply {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (w : Fin n → F) (u v : Fin (n + (d - 1)) → F) (r : ι → F) :
Fin d → F

Honest reply coefficients 0 .. d - 1 of the masked batched degree-d constraint polynomial. Setup wires 0 .. n - 1 commit the witness, while setup coordinates n .. n + (d - 1) - 1 provide the (d - 1) VOLE masks.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckValue {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (delta : F) (q : Fin (n + (d - 1)) → F) (d_corr : Fin n → F) (r : ι → F) :
F

Receiver's scalar evaluation of the batched homogenized constraints plus the (d - 1) mask tags.

@[reducible, inline]
abbrev Cslib.Crypto.Protocols.VOLE.QSMaskedCheckAccepts {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) :
F × (Fin (n + (d - 1)) → F) → (qsMaskedCheckSpec F ι n d).Transcript → Prop

Verification predicate for a masked degree-d QuickSilver transcript.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReply_correct {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) (w : Fin n → F) (c : VOLECorrelation F (n + (d - 1))) (hc : c.Valid) (r : ι → F) (hzero : ∀ (i : ι), (MvPolynomial.eval w) (constraints i) = 0) :
qsMaskedCheckValue d constraints c.delta c.w (voleCommitWitness w fun (i : Fin n) => c.u (Fin.castAdd (d - 1) i)) r = qsPolySum d (qsMaskedCheckReply d constraints w c.u c.v r) c.delta

Algebraic completeness of qsMaskedCheckReply under any valid VOLECorrelation of length n + (d - 1) for any degree-≤ d constraint family vanishing on w.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheck {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) :
Interactive.Reduction (voleSenderSpec F (n + (d - 1))) (voleReceiverSpec F (n + (d - 1))) (qsMaskedCheckSpec F ι n d) Unit (Fin n → F) Unit Unit

Public-coin role-local reduction for masked degree-d QuickSilver checks in voleWorld.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheck_output {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (t : (qsMaskedCheckSpec F ι n d).Transcript) :
(qsMaskedCheck d constraints).verifier.output () t = do let __x ← ProbOracleComp.query (Sum.inr ()) match __x with | (delta, q) => pure (if QSMaskedCheckAccepts d constraints (delta, q) t then some () else none)

The reduction's verifier reads its cached receiver share and checks QSMaskedCheckAccepts on the transcript.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckView {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (w : Fin n → F) :
PMF ((F × (Fin (n + (d - 1)) → F)) × (qsMaskedCheckSpec F ι n d).Transcript)

Full honest receiver view (receiverShare, transcript) in voleWorld F (n + (d - 1)).

def Cslib.Crypto.Protocols.VOLE.qsConsReply {F : Type} (d : ℕ) (c0 : F) (hi : Fin (d - 1) → F) :
Fin d → F

Assemble the full Fin d reply from its constant coefficient and d - 1 higher coefficients when 1 ≤ d.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckSimulate {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) :
ProbComp ((F × (Fin (n + (d - 1)) → F)) × (qsMaskedCheckSpec F ι n d).Transcript)

Witness-free simulator for the complete honest receiver share and public transcript, for every constraint degree d ≥ 1.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckSimulate_accepts {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq ι] {d : ℕ} (hd : 1 ≤ d) (constraints : ι → MvPolynomial (Fin n) F) {view : (F × (Fin (n + (d - 1)) → F)) × (qsMaskedCheckSpec F ι n d).Transcript} (hv : view ∈ (qsMaskedCheckSimulate d constraints).eval.support) :
QSMaskedCheckAccepts d constraints view.1 view.2

Every simulated view satisfies QSMaskedCheckAccepts when 1 ≤ d.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheck_complete {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) :
Interactive.Reduction.Complete (voleWorld F (n + (d - 1))) (qsMaskedCheck d constraints) (fun (x : Unit) (w : Fin n → F) => ∀ (i : ι), (MvPolynomial.eval w) (constraints i) = 0) Interactive.Accept 0

Perfect completeness of qsMaskedCheck d constraints in voleWorld F (n + (d - 1)) for any degree-≤ d constraint family.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckView_eq {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (w : Fin n → F) :
qsMaskedCheckView d constraints w = do let c ← voleIdealDist F (n + (d - 1)) let r ← Probability.PMF.uniformOfFintype (ι → F) pure (c.receiverView, voleCommitWitness w fun (i : Fin n) => c.u (Fin.castAdd (d - 1) i), r, qsMaskedCheckReply d constraints w c.u c.v r, ())
theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckView_eq_simulate {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] {d : ℕ} (hd : 1 ≤ d) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) (w : Fin n → F) (hzero : ∀ (i : ι), (MvPolynomial.eval w) (constraints i) = 0) :
qsMaskedCheckView d constraints w = (qsMaskedCheckSimulate d constraints).eval

Exact simulation of the entire honest receiver view in voleWorld F (n + (d - 1)) for any degree d ≥ 1 and any degree-≤ d constraint family over a finite commutative ring. The view includes the receiver's private key and tags, all witness corrections, the public batch weights, and all d masked reply coefficients.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReceiverView {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] {Aux View : Type} (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (V : Aux → ProbOracleComp (voleReceiverSpec F (n + (d - 1))) (Interactive.VerifierStrategy (ProbOracleComp (voleReceiverSpec F (n + (d - 1)))) (qsMaskedCheckSpec F ι n d) View)) (w : Fin n → F) (z : Aux) :
PMF ((F × (Fin (n + (d - 1)) → F)) × (qsMaskedCheckSpec F ι n d).Transcript × View)

Full adaptive receiver view in voleWorld F (n + (d - 1)) against an arbitrary role-local receiver strategy V. The receiver may read its private setup share, sample private coins, choose weights depending on its share, corrections, coins, and auxiliary input z, retain state, and re-read its cached share after the reply and during termination.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReceiverSimulate {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] {Aux View : Type} (d : ℕ) (constraints : ι → MvPolynomial (Fin n) F) (V : Aux → ProbOracleComp (voleReceiverSpec F (n + (d - 1))) (Interactive.VerifierStrategy (ProbOracleComp (voleReceiverSpec F (n + (d - 1)))) (qsMaskedCheckSpec F ι n d) View)) (z : Aux) :
ProbComp ((F × (Fin (n + (d - 1)) → F)) × (qsMaskedCheckSpec F ι n d).Transcript × View)

Witness-free adaptive-receiver simulator for degree-d masked QuickSilver checks (d ≥ 1), running the receiver's own initialization and captured continuations against a cached uniform share. Corrections are delivered before the receiver chooses weights, and the d - 1 higher reply coefficients are sampled uniformly only after the weights and continuation are fixed.

Evaluating a role-local voleReceiverSpec program with every setup query answered by a fixed cached share maps private coin draws to ProbComp.unifOracle and setup queries to PMF.pure share.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReceiverView_eq_simulate {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] [DecidableEq F] [DecidableEq ι] {Aux View : Type} {d : ℕ} (hd : 1 ≤ d) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) (V : Aux → ProbOracleComp (voleReceiverSpec F (n + (d - 1))) (Interactive.VerifierStrategy (ProbOracleComp (voleReceiverSpec F (n + (d - 1)))) (qsMaskedCheckSpec F ι n d) View)) (w : Fin n → F) (z : Aux) (hzero : ∀ (i : ι), (MvPolynomial.eval w) (constraints i) = 0) :
qsMaskedCheckReceiverView d constraints V w z = (qsMaskedCheckReceiverSimulate d constraints V z).eval

Exact simulation of the full adaptive receiver view in voleWorld F (n + (d - 1)) for any degree d ≥ 1 and any degree-≤ d constraint family over a finite commutative ring, against any role-local receiver strategy V. The equality preserves the receiver's private setup share, full public transcript, and arbitrary terminal view, including pre-challenge state and post-reply cached-share reads.

theorem Cslib.Crypto.Protocols.VOLE.qsMaskedCheckReceiverSimulate_accepts {F ι : Type} {n : ℕ} [CommRing F] [Fintype ι] [Fintype F] {Aux View : Type} {d : ℕ} (hd : 1 ≤ d) (constraints : ι → MvPolynomial (Fin n) F) (V : Aux → ProbOracleComp (voleReceiverSpec F (n + (d - 1))) (Interactive.VerifierStrategy (ProbOracleComp (voleReceiverSpec F (n + (d - 1)))) (qsMaskedCheckSpec F ι n d) View)) (z : Aux) {share : F × (Fin (n + (d - 1)) → F)} {transcript : (qsMaskedCheckSpec F ι n d).Transcript} {view : View} (hv : (share, transcript, view) ∈ (qsMaskedCheckReceiverSimulate d constraints V z).eval.support) :
QSMaskedCheckAccepts d constraints share transcript

Every adaptively simulated transcript satisfies QSMaskedCheckAccepts when 1 ≤ d, even when the weights were chosen adaptively from the share, corrections, and private coins.

Soundness over Challenge Embeddings, Scalar Batching, and FAEST Grinding #

theorem Cslib.Crypto.Protocols.VOLE.card_filter_qsCheck_le {F : Type} [Field F] {C : Type} [Fintype C] [DecidableEq F] {d : ℕ} (ι : C ↪ F) {P : Polynomial F} (hdeg : P.natDegree ≤ d) (hne : P.coeff d ≠ 0) (a : Fin d → F) :
{c : C | Polynomial.eval (ι c) P = qsPolySum d a (ι c)}.card ≤ d

For any injective challenge map ι : C ↪ F and any polynomial P of degree at most d with nonzero degree-d coefficient, at most d challenges satisfy P.eval (ι c) = qsPolySum d a (ι c).

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_qsCheck_le_of_embedding {F : Type} [Field F] {C : Type} [Fintype C] [Nonempty C] {d : ℕ} (ι : C ↪ F) {P : Polynomial F} (hdeg : P.natDegree ≤ d) (hne : P.coeff d ≠ 0) (a : Fin d → F) :

Degree-d QuickSilver soundness over an arbitrary challenge embedding ι : C ↪ F: a fixed degree-≤ d polynomial with nonzero degree-d coefficient passes against an arbitrary reply a for a uniform challenge in C with probability at most d / |C|.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_qsCheck_le {F : Type} [Field F] [Fintype F] {d : ℕ} {P : Polynomial F} (hdeg : P.natDegree ≤ d) (hne : P.coeff d ≠ 0) (a : Fin d → F) :

Full-field specialization (ι = Function.Embedding.refl F) giving error at most d / |F|.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_qsHomogScalarBatch_le {F : Type} [Field F] [Fintype F] [DecidableEq F] {C : Type} [Fintype C] [Nonempty C] {n t d : ℕ} (ι : C ↪ F) (constraints : Fin t → MvPolynomial (Fin n) F) (hdeg : ∀ (i : Fin t), (constraints i).totalDegree ≤ d) (w v : Fin n → F) (hfalse : ∃ (i : Fin t), (MvPolynomial.eval w) (constraints i) ≠ 0) (a : F → PMF (Fin d → F)) :
(do let chi ← Probability.PMF.uniformOfFintype F let reply ← a chi let c ← Probability.PMF.uniformOfFintype C have P_batch : Polynomial F := ∑ i : Fin t, Polynomial.C (quickSilverWeight chi i) * qsHomogPoly d (constraints i) w v pure (decide (Polynomial.eval (ι c) P_batch = qsPolySum d reply (ι c)))).toOuterMeasure {true} ≤ ↑t / ↑(Fintype.card F) + ↑d / ↑(Fintype.card C)

Scalar-batched arbitrary-degree QuickSilver soundness: given t degree-≤ d multivariate constraints constraints, scalar challenge chi ← uniformOfFintype F, adaptive reply a chi, and hidden key c ← uniformOfFintype C via ι : C ↪ F, any false witness passes with probability at most t / |F| + d / |C|, generalizing ScalarMulCheck from d = 2 to any d.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_qsHomogLinearBatch_le {F : Type} [Field F] [Fintype F] [DecidableEq F] {C ι : Type} [Fintype C] [Nonempty C] [Fintype ι] [DecidableEq ι] {n d : ℕ} (ι_C : C ↪ F) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) (w v : Fin n → F) (hfalse : ∃ (i : ι), (MvPolynomial.eval w) (constraints i) ≠ 0) (a : (ι → F) → PMF (Fin d → F)) :
(do let r ← Probability.PMF.uniformOfFintype (ι → F) let reply ← a r let c ← Probability.PMF.uniformOfFintype C have P_batch : Polynomial F := ∑ i : ι, Polynomial.C (r i) * qsHomogPoly d (constraints i) w v pure (decide (Polynomial.eval (ι_C c) P_batch = qsPolySum d reply (ι_C c)))).toOuterMeasure {true} ≤ (↑(Fintype.card F))⁻¹ + (1 - (↑(Fintype.card F))⁻¹) * (↑d / ↑(Fintype.card C))

Independent-weight arbitrary-degree QuickSilver soundness: given fixed degree-≤ d constraints, witness/mask vectors (w, v) violating at least one constraint, uniform independent weights r ← uniformOfFintype (ι → F), adaptive reply a r, and hidden key c ← uniformOfFintype C via ι_C : C ↪ F, any false witness passes with probability at most 1 / |F| + (1 - 1 / |F|) * (d / |C|).

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_qsMaskedCheckValue_le {F : Type} [Field F] [Fintype F] [DecidableEq F] {C ι : Type} [Fintype C] [Nonempty C] [Fintype ι] [DecidableEq ι] {n d : ℕ} (ι_C : C ↪ F) (constraints : ι → MvPolynomial (Fin n) F) (hdeg : ∀ (i : ι), (constraints i).totalDegree ≤ d) (u v : Fin (n + (d - 1)) → F) (d_corr : Fin n → F) (hfalse : ∃ (i : ι), (MvPolynomial.eval fun (j : Fin n) => u (Fin.castAdd (d - 1) j) + d_corr j) (constraints i) ≠ 0) (a : (ι → F) → PMF (Fin d → F)) :
(do let r ← Probability.PMF.uniformOfFintype (ι → F) let reply ← a r let c ← Probability.PMF.uniformOfFintype C have q : Fin (n + (d - 1)) → F := fun (j : Fin (n + (d - 1))) => u j * ι_C c + v j pure (decide (qsMaskedCheckValue d constraints (ι_C c) q d_corr r = qsPolySum d reply (ι_C c)))).toOuterMeasure {true} ≤ (↑(Fintype.card F))⁻¹ + (1 - (↑(Fintype.card F))⁻¹) * (↑d / ↑(Fintype.card C))

Single-shot independent-weight soundness of qsMaskedCheckValue: for any fixed sender VOLE vectors (u, v) and correction d_corr : Fin n → F whose effective committed witness w' i := u (Fin.castAdd (d - 1) i) + d_corr i violates at least one constraint, an adaptive prover receiving uniform weights r ← uniformOfFintype (ι → F) and verified against an independent hidden key c ← uniformOfFintype C via ι_C : C ↪ F (where q := fun j => u j * ι_C c + v j) passes with probability at most 1 / |F| + (1 - 1 / |F|) * (d / |C|).

Exact bijection between grinding-accepted λ-bit challenges (FAEST.Challenge.grindingAccepted) and BitString (λ - w_grind).

The subset of grinding-accepted λ-bit FAEST challenges is nonempty (witnessed by 0).

Single-shot soundness conditioned on uniform accepted FAEST grinding challenges: for any embedding ι : BitString (λ - w_grind) ↪ F, acceptance over uniform accepted challenges has probability at most d / 2 ^ (λ - w_grind). This is a single-shot uniform-challenge bound, not Fiat–Shamir grinding amplification.

Single-shot soundness over raw uniform λ-bit FAEST challenges (including the trailing w_grind zero-bit check): acceptance has probability at most d / 2 ^ λ ([BBB+26c], Section 5.5, Figure 5.7; cf. Lemma 10.40 for RBR soundness under FAEST parameters). This models single-shot verifier rejection, not Fiat–Shamir grinding amplification.

ACT V1 Domain-Separated Random Linear Combination and Conditional Round-2+3 Composition #

Trailing byte '0' = 0x30 of vole-mole's ACT Spend RLC domain separator "rata\x00l0" ([PZ26], src/dst.hpp:44, ACT_SPEND_COMBINE_DST = make_dst("rata", act::VERSION, 'l', '0'), appended after chal2 in src/act/spend.hpp:383 and hashed in src/uov/circuit.hpp:63–64).

Trailing domain-separator bytes reserved by FAEST v3 ([BBB+26c], Section 3.3: 0 for H_0 BAVC commitment key derivation, 1 for H_1, 3..5 for H_3..H_5, 8..11 for H_2^0..H_2^3) together with 12 (H_2^4 in [PZ26], src/voleith.hpp:126).

ACT's RLC trailing byte 0x30 does not collide with the FAEST v3 H_i bytes or vole-mole's H_2^4 = 12 in faestTrailingDomainBytes (vole-mole's own 7-byte tags share 0x30 via a separate penultimate purpose byte and are outside this single-trailing-byte model).

@[reducible, inline]

Fixed-length n-byte message (Fin n → Fin 256), forming a finite key domain for uniform random oracle tables.

@[reducible, inline]

Fixed-length n-byte message paired with a trailing FAEST v3 H_i / vole-mole H_2^4 byte in faestTrailingDomainBytes.

Append trailing domain-separator byte b to a fixed-length message msg : ByteMsg n, producing an (n + 1)-byte message in ByteMsg (n + 1).

Embed a (msg, b) : FaestTaggedMsg n pair into ByteMsg (n + 1) by appending its trailing FAEST v3 H_i / H_2^4 separator byte b.1.

ACT's trailing byte actRLCDomainByte (0x30) separates ByteMsg n RLC queries from all FaestTaggedMsg n queries (FAEST v3 H_i bytes plus vole-mole's H_2^4 = 12) inside the shared finite domain ByteMsg (n + 1).

theorem Cslib.Crypto.Protocols.VOLE.uniform_split_of_disjoint_range {K_all : Type u_1} {K₁ : Type u_2} {K₂ : Type u_3} {V : Type u_4} [Fintype K_all] [DecidableEq K_all] [Fintype K₁] [DecidableEq K₁] [Fintype K₂] [DecidableEq K₂] [Fintype V] [Nonempty V] (ι₁ : K₁ ↪ K_all) (ι₂ : K₂ ↪ K_all) (hdisj : Disjoint (Set.range ⇑ι₁) (Set.range ⇑ι₂)) :
PMF.map (fun (H : K_all → V) => (fun (k₁ : K₁) => H (ι₁ k₁), fun (k₂ : K₂) => H (ι₂ k₂))) (Probability.PMF.uniformOfFintype (K_all → V)) = (Probability.PMF.uniformOfFintype (K₁ → V)).bind fun (H₁ : K₁ → V) => PMF.map (fun (H₂ : K₂ → V) => (H₁, H₂)) (Probability.PMF.uniformOfFintype (K₂ → V))

Restricting a single uniform random oracle table H : K_all → V along embeddings ι₁, ι₂ with disjoint ranges produces two independent uniform random oracle tables.

noncomputable def Cslib.Crypto.Protocols.VOLE.foldedConstraint {F : Type} [CommRing F] {m : ℕ} (P : Fin m → Polynomial F) (l : Fin m → F) :

Folded degree-≤ d constraint polynomial ∑ j, C (l j) * P j produced by Round-2 RLC coefficients l : Fin m → F.

theorem Cslib.Crypto.Protocols.VOLE.natDegree_foldedConstraint_le {F : Type} [CommRing F] {m d : ℕ} {P : Fin m → Polynomial F} (hdeg : ∀ (j : Fin m), (P j).natDegree ≤ d) (l : Fin m → F) :
theorem Cslib.Crypto.Protocols.VOLE.coeff_foldedConstraint {F : Type} [CommRing F] {m : ℕ} (P : Fin m → Polynomial F) (l : Fin m → F) (d : ℕ) :
(foldedConstraint P l).coeff d = ∑ j : Fin m, l j * (P j).coeff d
theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_actV1_qs_of_zkBinding_le {F K S : Type} [Field F] [Fintype F] {C : Type} [Fintype K] [DecidableEq K] [DecidableEq F] [Fintype C] [Nonempty C] {m q d : ℕ} (ι : C ↪ F) (M : ProbOracleComp (fun (x : K) => Fin m → F) S) (hbound : M.IsQueryBounded q) (distK : PMF K) {δ_K : ENNReal} (hdist : ∀ (k₀ : K), distK k₀ ≤ δ_K) (P : S → Fin m → Polynomial F) (Q : S → K → (Fin m → F) → Polynomial F) (hdegQ : ∀ (s : S) (k : K) (l : Fin m → F), (Q s k l).natDegree ≤ d) (a : S → K → (Fin m → F) → Fin d → F) (ZKAccepts : S → K → (Fin m → F) → Prop) [(s : S) → (k : K) → (l : Fin m → F) → Decidable (ZKAccepts s k l)] {ε_zk : ENNReal} (hzk : ∀ (s : S) (l : Fin m → F), (foldedConstraint (P s) l).coeff d ≠ 0 → distK.toOuterMeasure {k : K | ZKAccepts s k l ∧ (Q s k l).coeff d = 0} ≤ ε_zk) :
(do let H ← Probability.PMF.uniformOfFintype (K → Fin m → F) let s ← OracleComp.interpret (OracleComp.sumHandler ProbComp.unifOracle fun (k : K) => PMF.pure (H k)) M let k ← distK have l : Fin m → F := H k let c ← Probability.PMF.uniformOfFintype C pure (decide ((∃ (j : Fin m), (P s j).coeff d ≠ 0) ∧ ZKAccepts s k l ∧ Polynomial.eval (ι c) (Q s k l) = qsPolySum d (a s k l) (ι c)))).toOuterMeasure {true} ≤ ↑q * δ_K + ((↑(Fintype.card F))⁻¹ + (1 - (↑(Fintype.card F))⁻¹) * (ε_zk + ↑d / ↑(Fintype.card C)))

Conditional step (Round-2 + Round-3 interactive QuickSilver): given an adaptive q-query adversary M outputting degree-≤ d constraint polynomials P s : Fin m → Polynomial F, and an auxiliary Round-2 polynomial Q s k l of degree ≤ d and acceptance predicate ZKAccepts s k l whose cheating event ZKAccepts s k l ∧ (Q s k l).coeff d = 0 has distK-probability at most ε_zk whenever (foldedConstraint (P s) l).coeff d ≠ 0, joint Round-2+3 verification succeeds with probability at most q * δ_K + (1 / |F| + (1 - 1 / |F|) * (ε_zk + d / |C|)). This models a single-shot interactive step conditional on hzk and hdegQ; it does not verify how Round 2 binds Q to P and l, nor does it model Fiat–Shamir soundness.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_actV1_domainSeparated_qs_of_zkBinding_le {F S : Type} [Field F] [Fintype F] {K_all K₁ K₂ C : Type} [Fintype K_all] [DecidableEq K_all] [DecidableEq F] [Fintype C] [Nonempty C] {m q d : ℕ} (ι₁ : K₁ ↪ K_all) (ι₂ : K₂ ↪ K_all) (hdisj : Disjoint (Set.range ⇑ι₁) (Set.range ⇑ι₂)) (ι : C ↪ F) (M : ProbOracleComp (OracleSpec.sum (fun (x : K₁) => Fin m → F) fun (x : K₂) => Fin m → F) S) (hbound : OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : K₁) => 1) fun (x : K₂) => 0)) M q) (distK : PMF K₁) {δ_K : ENNReal} (hdist : ∀ (k₀ : K₁), distK k₀ ≤ δ_K) (P : S → Fin m → Polynomial F) (Q : S → K₁ → (Fin m → F) → Polynomial F) (hdegQ : ∀ (s : S) (k : K₁) (l : Fin m → F), (Q s k l).natDegree ≤ d) (a : S → K₁ → (Fin m → F) → Fin d → F) (ZKAccepts : S → K₁ → (Fin m → F) → Prop) [(s : S) → (k : K₁) → (l : Fin m → F) → Decidable (ZKAccepts s k l)] {ε_zk : ENNReal} (hzk : ∀ (s : S) (l : Fin m → F), (foldedConstraint (P s) l).coeff d ≠ 0 → distK.toOuterMeasure {k : K₁ | ZKAccepts s k l ∧ (Q s k l).coeff d = 0} ≤ ε_zk) :
(do let H ← Probability.PMF.uniformOfFintype (K_all → Fin m → F) let s ← OracleComp.interpret (OracleComp.sumHandler ProbComp.unifOracle (OracleComp.sumHandler (fun (k₁ : K₁) => PMF.pure (H (ι₁ k₁))) fun (k₂ : K₂) => PMF.pure (H (ι₂ k₂)))) M let k ← distK have l : Fin m → F := H (ι₁ k) let c ← Probability.PMF.uniformOfFintype C pure (decide ((∃ (j : Fin m), (P s j).coeff d ≠ 0) ∧ ZKAccepts s k l ∧ Polynomial.eval (ι c) (Q s k l) = qsPolySum d (a s k l) (ι c)))).toOuterMeasure {true} ≤ ↑q * δ_K + ((↑(Fintype.card F))⁻¹ + (1 - (↑(Fintype.card F))⁻¹) * (ε_zk + ↑d / ↑(Fintype.card C)))

Conditional step (domain-separated single-RO Round-2 + Round-3 interactive QuickSilver): against a single shared random oracle H : K_all → Fin m → F accessed through disjoint embeddings ι₁ : K₁ ↪ K_all (the ACT RLC slice, queried at most q times) and ι₂ : K₂ ↪ K_all (other protocol slices, queried arbitrarily many times), any adversary M outputting (P s) with Round-2 polynomial Q s k l and acceptance ZKAccepts s k l satisfies the same conditional bound q * δ_K + (1 / |F| + (1 - 1 / |F|) * (ε_zk + d / |C|)) under hzk and hdegQ. Models a single-shot interactive step, not Fiat–Shamir soundness.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_actV1_foldedQS_le {F K S : Type} [Field F] [Fintype F] {C : Type} [Fintype K] [DecidableEq K] [DecidableEq F] [Fintype C] [Nonempty C] {m q d : ℕ} (ι : C ↪ F) (M : ProbOracleComp (fun (x : K) => Fin m → F) S) (hbound : M.IsQueryBounded q) (distK : PMF K) {δ_K : ENNReal} (hdist : ∀ (k₀ : K), distK k₀ ≤ δ_K) (P : S → Fin m → Polynomial F) (hdegP : ∀ (s : S) (j : Fin m), (P s j).natDegree ≤ d) (a : S → K → (Fin m → F) → Fin d → F) :
(do let H ← Probability.PMF.uniformOfFintype (K → Fin m → F) let s ← OracleComp.interpret (OracleComp.sumHandler ProbComp.unifOracle fun (k : K) => PMF.pure (H k)) M let k ← distK have l : Fin m → F := H k let c ← Probability.PMF.uniformOfFintype C pure (decide ((∃ (j : Fin m), (P s j).coeff d ≠ 0) ∧ Polynomial.eval (ι c) (foldedConstraint (P s) l) = qsPolySum d (a s k l) (ι c)))).toOuterMeasure {true} ≤ ↑q * δ_K + ((↑(Fintype.card F))⁻¹ + (1 - (↑(Fintype.card F))⁻¹) * (↑d / ↑(Fintype.card C)))

Single-shot interactive folded-polynomial ACT V1 Round-2 + Round-3 QuickSilver check: instantiating Round 2's check directly with Q := foldedConstraint (P s) l eliminates ZKAccepts and ε_zk = 0, bounding false-instance acceptance against an adaptive q-query adversary M by q * δ_K + (1 / |F| + (1 - 1 / |F|) * (d / |C|)). Like toOuterMeasure_actV1_qs_of_zkBinding_le, this models a single-shot interactive Round-2+3 step, not Fiat–Shamir soundness.