Documentation

CslibFrontier.Crypto.Protocols.VOLE.HigherDegreeSoundness

Arbitrary-degree batched QuickSilver soundness over FAEST bit-matrix VOLE #

Lifts Cslib.Crypto.FAEST.convertExpandedRows and Cslib.Crypto.FAEST.verifierRows into any characteristic-2 finite field F via bit projections over a leaf-challenge basis beta : Fin d → F and block basis betaW : Fin wBits → F, proving honest completeness and unconditional VOLEITHSoundnessError (t / |F| + d_zk / |C_qs|) for scalar-power batched degree-≤ d_zk polynomial circuit checks (qsScalarBatchCheckRel).

Scope and model boundaries #

Main definitions #

Main results #

References #

def Cslib.Crypto.Protocols.VOLE.liftBitBlocks {F : Type} [CommSemiring F] {rowLen n wBits : ℕ} (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (bs : BitString rowLen) :
Fin n → F

Lift a binary bit-string bs : BitString rowLen via wBits-bit blocks and field basis betaW : Fin wBits → F into Fin n → F.

def Cslib.Crypto.Protocols.VOLE.faestMaskVec {F : Type} [CommSemiring F] {d rowLen n wBits : ℕ} (beta : Fin d → F) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (rows : Fin (2 ^ d) → BitString rowLen) :
Fin n → F

Reconstruct a prover's mask vector v : Fin n → F from expanded FAEST rows via bit-basis beta : Fin d → F and block-basis betaW : Fin wBits → F.

def Cslib.Crypto.Protocols.VOLE.faestAdjustedTags {F : Type} [CommSemiring F] {d rowLen n wBits : ℕ} (beta : Fin d → F) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (cols : Fin d → BitString rowLen) (dCorr : BitString rowLen) (deltaF : F) :
Fin n → F

Receiver-adjusted field tags computed strictly from verifier columns cols, correction bits dCorr, basis beta, and challenge field element deltaF.

def Cslib.Crypto.Protocols.VOLE.faestChallengeF {F : Type} [CommSemiring F] {d : ℕ} (beta : Fin d → F) (idx : Fin (2 ^ d)) :
F

Challenge field element encoded from idx : Fin (2 ^ d) and basis beta : Fin d → F.

When beta : Fin d → F is ZMod 2-linearly independent in a ZMod 2-module semiring F, the challenge map faestChallengeF beta : Fin (2 ^ d) → F is injective.

noncomputable def Cslib.Crypto.Protocols.VOLE.honestQSPreMsg {F Stmt : Type} [CommRing F] {d rowLen n wBits t : ℕ} (d_zk : ℕ) (beta : Fin d → F) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (constraints : Stmt → Fin t → MvPolynomial (Fin n) F) (stmt : Stmt) (rows : Fin (2 ^ d) → BitString rowLen) (dCorr : BitString rowLen) :
Fin t → Fin d_zk → F

Honest QuickSilver lower-degree coefficient matrix PreMsg : Fin t → Fin d_zk → F computed from expanded prover rows and correction vector dCorr.

noncomputable def Cslib.Crypto.Protocols.VOLE.qsScalarBatchCheckRel {F C_qs Stmt : Type} [Field F] [DecidableEq F] {d rowLen n wBits t : ℕ} (d_zk : ℕ) (idxOfC : C_qs → Fin (2 ^ d)) (beta : Fin d → F) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (constraints : Stmt → Fin t → MvPolynomial (Fin n) F) (stmt : Stmt) (cols : Fin d → BitString rowLen) (dCorr : BitString rowLen) (preMsg : Fin t → Fin d_zk → F) (delta : C_qs × F) :

Single-round scalar-power batched QuickSilver VOLEitH verifier predicate over [CharP F 2] and challenge space C_qs × F.

This models a simplified single-round batch check in which the unbatched per-constraint coefficient matrix preMsg : Fin t → Fin d_zk → F is committed prior to sampling the combined challenge delta = (c, χ) : C_qs × F (with Δ = faestChallengeF beta (idxOfC c) and no zero-knowledge mask), rather than a two-round batching flow in which χ is drawn before the batched polynomial response and before revealing Δ.

theorem Cslib.Crypto.Protocols.VOLE.qsScalarBatchCheckRel_complete {F C_qs Stmt : Type} [Field F] [DecidableEq F] [CharP F 2] {d rowLen n wBits t : ℕ} (d_zk : ℕ) (idxOfC : C_qs → Fin (2 ^ d)) (beta : Fin d → F) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (constraints : Stmt → Fin t → MvPolynomial (Fin n) F) (hdeg : ∀ (stmt : Stmt) (j : Fin t), (constraints stmt j).totalDegree ≤ d_zk) (stmt : Stmt) (rows : Fin (2 ^ d) → BitString rowLen) (dCorr : BitString rowLen) (hvanish : ∀ (j : Fin t), (MvPolynomial.eval (liftBitBlocks betaW wirePos (dCorr + (FAEST.convertExpandedRows d rows).u))) (constraints stmt j) = 0) (delta : C_qs × F) :
qsScalarBatchCheckRel d_zk idxOfC beta betaW wirePos constraints stmt (FAEST.convertExpandedRows d (FAEST.verifierRows rows (idxOfC delta.1))).columns dCorr (honestQSPreMsg d_zk beta betaW wirePos constraints stmt rows dCorr) delta = true

Honest QuickSilver completeness for qsScalarBatchCheckRel: when every constraint in constraints stmt vanishes on the lifted witness vector, honestQSPreMsg passes on every challenge delta : C_qs × F.

theorem Cslib.Crypto.Protocols.VOLE.qsScalarBatchCheckRel_voleithSoundnessError {F C_qs Stmt Wit : Type} [Field F] [Fintype F] [DecidableEq F] [CharP F 2] [Fintype C_qs] [Nonempty C_qs] {d rowLen n wBits t : ℕ} (d_zk : ℕ) (decWit : BitString rowLen → Wit) (Rel : Stmt → Wit → Bool) (idxOfC : C_qs → Fin (2 ^ d)) (beta : Fin d → F) (hinj : Function.Injective fun (c : C_qs) => faestChallengeF beta (idxOfC c)) (betaW : Fin wBits → F) (wirePos : Fin n → Fin wBits → Fin rowLen) (constraints : Stmt → Fin t → MvPolynomial (Fin n) F) (hdeg : ∀ (stmt : Stmt) (j : Fin t), (constraints stmt j).totalDegree ≤ d_zk) (hEncode : ∀ (stmt : Stmt) (raw : BitString rowLen), Rel stmt (decWit raw) = false → ∃ (j : Fin t), (MvPolynomial.eval (liftBitBlocks betaW wirePos raw)) (constraints stmt j) ≠ 0) :
VOLEITHSoundnessError decWit (fun (delta : C_qs × F) => idxOfC delta.1) Rel (qsScalarBatchCheckRel d_zk idxOfC beta betaW wirePos constraints) (↑t / ↑(Fintype.card F) + ↑d_zk / ↑(Fintype.card C_qs))

Proves VOLEITHSoundnessError for qsScalarBatchCheckRel from HigherDegreeCheck.toOuterMeasure_qsHomogScalarBatch_le over any finite [CharP F 2] field F, injective leaf-challenge embedding faestChallengeF beta ∘ idxOfC (which requires |C_qs| ≤ 2^d), and arbitrary caller-supplied degree-≤ d_zk constraint system encoding Rel (hEncode).