Batched Reed–Solomon proximity IOPs, curve-batched Ligero reductions, and BCS/ROM soundness #
CslibFrontier.Crypto.Protocols.PolynomialCommitment.LigeroProximity formalizes full-vector
(r : Fin m → F) Ligero proximity testing in Cslib.Interactive.Reduction up to d / 3 for
general linear codes and up to unique decoding (2 * e + k ≤ n) for Reed–Solomon codes, together
with column-query soundness of ligeroEvalCheck assuming M is already e-close to U * G.
This module advances #5968 and #643 in three steps (after
[AHIV17], [BSCI+23], and
[BSCS16]; locator for [AHIV17] not re-verified
against primary PDF):
- Weight-parameterized Ligero proximity reductions, single-scalar curve batching, and
Johnson-bound (
1 - √ρ) soundness (ligeroBatchProximityReduction,ligeroCurveProximityReduction): one reduction parameterized byweights : BatchChal → (Fin m → F)specializes atligeroPowWeights m(z ↦ (1, z, …, z ^ (m - 1))) to single-scalar curve batching. Combining these reductions withCslibFrontier.Foundations.Data.Code.InterleavedCurveyields round-by-round and plain-model soundness:- for full-vector
ligeroBatchProximityReduction m id(Fin m → F) up to the Johnson bound1 - √ρwith row-count-independent batching error (explicit(m_GS, D)Guruswami–Sudan bound and closed-form1 - √ρ - ηSiegel bound); - for
ligeroCurveProximityReduction(z : F, compressing randomness frommfield elements to one scalar) in both the unique-decoding regime (2 * e + k ≤ n, error((m - 1) * n) / |F| + ((n - (e + 1)) / n) ^ q) and the Johnson regime (1 - √ρ).
- for full-vector
- Combined proximity-and-evaluation interactive reduction (
LigeroEvalClaim,ligeroBatchEvalReduction): discharges both interleavede-proximity and a bilinear evaluation claim(b ᵥ* U) ⬝ᵥ c = wover the sameqqueried columns ofMagainst arbitrary matrices and arbitrary cheating provers without extra query-round error, and characterizes the accepted unique-decoding languageligeroEvalProximityLangconstructively viaCslib.Code.berlekampWelchInterleaved(mem_ligeroEvalProximityLang_reedSolomon_iff). - Direct batched Reed–Solomon proximity
PublicCoinIOPand two-channel BCS/ROM compilation (rsBatchProximityIOP,rsAffineBatchProximityIOP,rsCurveBatchProximityIOP): compiles the 2-round batched Reed–Solomon proximity test overFin (2 ^ d)(k ≤ 2 ^ d) as aCslib.Crypto.Protocols.BCS.PublicCoinIOPissuing exactkcommitted message openings andqscheduled column reads, proving perfect IOP and two-channel ROM completeness (rsBatchProximityBCS_honestROMGame_eq_pure_true),IOPRoundByRoundSoundness, interactive soundness (rsBatchProximityIOP_interactive_le), and adaptive two-channel random-oracle soundness (rsBatchProximityBCS_romSoundness_bound) across both the unique-decoding and Johnson regimes.
Main definitions #
Cslib.Crypto.Protocols.ligeroPowWeights: Vandermonde power weightsi ↦ z ^ (i : ℕ)compressingm-row batching to a single scalarz : F.Cslib.Crypto.Protocols.ligeroBatchProximityReduction,Cslib.Crypto.Protocols.ligeroCurveProximityReduction: weight-parameterized and single-scalar curve-batched Ligero proximity reductions.Cslib.Crypto.Protocols.LigeroEvalClaim,Cslib.Crypto.Protocols.LigeroEvalReply,Cslib.Crypto.Protocols.ligeroEvalCodewordRel,Cslib.Crypto.Protocols.ligeroEvalProximityLang,Cslib.Crypto.Protocols.ligeroBatchEvalReduction: combined proximity-and-evaluation claim, prover reply, relations/language, andq-column public-coin reduction.Cslib.Crypto.Protocols.LigeroIOPChal,Cslib.Crypto.Protocols.rsBatchProximityIOP,Cslib.Crypto.Protocols.rsAffineBatchProximityIOP,Cslib.Crypto.Protocols.rsCurveBatchProximityIOP: challenge record and 2-roundPublicCoinIOPinstantiations of batched Reed–Solomon proximity testing.
Main results #
Cslib.Crypto.Protocols.ligeroBatchProximityReduction_outputOn_congr,Cslib.Crypto.Protocols.ligeroBatchProximityReduction_complete:q-column query locality and perfect completeness for any batching weight family.Cslib.Crypto.Protocols.ligeroAffineProximityReduction_reedSolomon_rbrSound_johnson_exact,Cslib.Crypto.Protocols.ligeroAffineProximityReduction_reedSolomon_rbrSound_johnson_of_eta,Cslib.Crypto.Protocols.ligeroAffineProximityReduction_reedSolomon_sound_johnson_of_eta: row-count-independent Johnson-bound soundness of full-vectorligeroBatchProximityReduction.Cslib.Crypto.Protocols.ligeroCurveProximityReduction_reedSolomon_rbrSound,Cslib.Crypto.Protocols.ligeroCurveProximityReduction_reedSolomon_sound,Cslib.Crypto.Protocols.ligeroCurveProximityReduction_reedSolomon_rbrSound_johnson_exact,Cslib.Crypto.Protocols.ligeroCurveProximityReduction_reedSolomon_rbrSound_johnson_of_eta,Cslib.Crypto.Protocols.ligeroCurveProximityReduction_reedSolomon_sound_johnson_of_eta: unique-decoding and Johnson-bound soundness of single-scalarligeroCurveProximityReduction.Cslib.Crypto.Protocols.mem_ligeroEvalProximityLang_reedSolomon_iff,Cslib.Crypto.Protocols.ligeroBatchEvalReduction_complete,Cslib.Crypto.Protocols.ligeroAffineEvalReduction_reedSolomon_rbrSound,Cslib.Crypto.Protocols.ligeroAffineEvalReduction_reedSolomon_sound,Cslib.Crypto.Protocols.ligeroCurveEvalReduction_reedSolomon_rbrSound,Cslib.Crypto.Protocols.ligeroCurveEvalReduction_reedSolomon_sound: Berlekamp–Welch characterization, completeness, and unique-decoding soundness of combined proximity-and-evaluation testing.Cslib.Crypto.Protocols.rsBatchProximityIOP_complete,Cslib.Crypto.Protocols.rsBatchProximityBCS_honestROMGame_eq_pure_true,Cslib.Crypto.Protocols.isCostBounded_bcsMTCost_rsBatchProximityVerifyROM,Cslib.Crypto.Protocols.rsAffineBatchProximityBCS_romSoundness_unique,Cslib.Crypto.Protocols.rsAffineBatchProximityBCS_romSoundness_johnson_of_eta,Cslib.Crypto.Protocols.rsCurveBatchProximityBCS_romSoundness_unique,Cslib.Crypto.Protocols.rsCurveBatchProximityBCS_romSoundness_johnson_of_eta: completeness, verifier Merkle query budgetk * (L_path + 1), and adaptive two-channel BCS random-oracle soundness of batched Reed–Solomon proximity testing.
References #
- S. Ames, C. Hazay, Y. Ishai, M. Venkitasubramaniam, Ligero: Lightweight Sublinear Arguments Without a Trusted Setup
- E. Ben-Sasson, D. Carmon, Y. Ishai, S. Kopparty, S. Saraf, Proximity Gaps for Reed–Solomon Codes
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions
Part 1: Weight-parameterized and curve-batched Ligero proximity reductions #
Round specification of a weight-parameterized batched proximity reduction with batching
challenge space BatchChal, message length l, codeword length n, and q column queries.
Weight-parameterized Ligero interleaved proximity reduction: samples a uniform challenge
chal : BatchChal, forms row weights weights chal : Fin m → F, receives a purported message
combination v : Fin l → F, and checks ligeroColumnCheck G M (weights chal) v (Q t) at q
independent uniform column indices Q : Fin q → Fin n.
Single-scalar curve-batched Ligero proximity reduction: tests proximity to
interleavedLinear (Fin m) (codeOfGenerator G) using powers 1, z, …, z ^ (m - 1) of a single
uniform scalar z : F and q uniform column queries.
Query locality: ligeroBatchProximityReduction reads M only at the q queried columns
Q t (t : Fin q).
Completeness of ligeroBatchProximityReduction: every honestly encoded matrix M = U * G
is accepted with error 0.
Explicit-parameter Guruswami–Sudan round-by-round soundness of full-vector
ligeroBatchProximityReduction up to the Johnson bound (in the setting of
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.2 and 1.6]): the affine-vector batching round
has escape probability at most johnsonCurveBound n m_GS (k - 1) D 1 n / |F|, with zero
dependence on the row count m.
Round-by-round soundness of full-vector ligeroBatchProximityReduction up to 1 - √ρ - η
(original explicit-constant variant) (in the setting of
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.2 and 1.6]): for 1 ≤ k ≤ n, η > 0, and
(e : ℝ) / n ≤ 1 - √(k / n) - η, the row-batching round has m-independent escape probability at
most 115200 * n ^ 2 / ((k / n) * η ^ 6 * |F|) (using this library's explicit Siegel constant) and
the q-column query round has escape probability at most ((n - (e + 1)) / n) ^ q.
Plain-model soundness of full-vector ligeroBatchProximityReduction up to 1 - √ρ - η
(original explicit-constant variant) against every adaptive prover strategy.
Round-by-round soundness of single-scalar ligeroCurveProximityReduction in the
unique-decoding regime (2 * e + k ≤ n, derived via
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.5 and 6.1]): the single-scalar challenge round
has escape probability at most ((m - 1) * n) / |F| and the q-column query round has escape
probability at most ((n - (e + 1)) / n) ^ q.
Plain-model soundness of single-scalar ligeroCurveProximityReduction in the
unique-decoding regime (2 * e + k ≤ n) against every adaptive prover strategy.
Explicit-parameter Guruswami–Sudan round-by-round soundness of single-scalar
ligeroCurveProximityReduction up to the Johnson bound (in the setting of
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.5 and 6.2]).
Round-by-round soundness of single-scalar ligeroCurveProximityReduction up to 1 - √ρ - η
(original explicit-constant variant) (in the setting of
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.5 and 6.2]).
Plain-model soundness of single-scalar ligeroCurveProximityReduction up to 1 - √ρ - η
(original explicit-constant variant) against every adaptive prover strategy.
Part 2: Combined Ligero proximity-and-evaluation reduction #
A Ligero bilinear evaluation claim on an m × n purported codeword matrix matrix: asserts
that matrix encodes an m × l witness matrix U satisfying
ligeroEval U rowWeights colWeights = value ((rowWeights ᵥ* U) ⬝ᵥ colWeights = value).
Prover's message in ligeroBatchEvalReduction: the pre-encoded proximity row combination
proxComb and the pre-encoded evaluation row combination evalComb.
- proxComb : Fin l → F
Purported pre-encoded combination
weights chal ᵥ* Ufor the proximity check. - evalComb : Fin l → F
Purported pre-encoded combination
claim.rowWeights ᵥ* Ufor the linear evaluation check.
Honest completeness relation for LigeroEvalClaim: claim.matrix = U * G and
ligeroEval U claim.rowWeights claim.colWeights = claim.value.
Proximity-and-evaluation language for G at radius e: claims whose matrix lies within
column-Hamming distance e of U * G for some m × l witness matrix U satisfying
ligeroEval U claim.rowWeights claim.colWeights = claim.value.
Every honest claim satisfying ligeroEvalCodewordRel G belongs to
ligeroEvalProximityLang G e for all e : ℕ.
Berlekamp–Welch characterization of ligeroEvalProximityLang in the unique-decoding regime
(2 * e + k ≤ n): with distinct evaluation points α : Fin n → F, a claim belongs to
ligeroEvalProximityLang (reedSolomonGenerator α k) e if and only if
berlekampWelchInterleaved α e k (Function.swap claim.matrix) returns a polynomial family P
whose coefficient matrix evaluates to claim.value.
Round specification of ligeroBatchEvalReduction.
Boolean verification predicate for ligeroBatchEvalReduction: checks the claimed dot product
upfront and verifies both ligeroColumnCheck (proximity) and ligeroEvalCheck (linear evaluation)
at all q queried columns.
Combined Ligero proximity-and-evaluation interactive reduction: tests both interleaved
e-proximity of claim.matrix and ligeroEval U claim.rowWeights claim.colWeights = claim.value
using a single q-column query batch.
Query locality of ligeroBatchEvalReduction: the verifier accesses claim.matrix only at
the q queried columns Q t (t : Fin q).
Completeness of ligeroBatchEvalReduction: every honest claim claim.matrix = U * G with
ligeroEval U claim.rowWeights claim.colWeights = claim.value is accepted with error 0.
Round-by-round soundness of full-vector ligeroBatchEvalReduction across the Reed–Solomon
unique-decoding radius (2 * e + k ≤ n): rejects every claim outside
ligeroEvalProximityLang (reedSolomonGenerator α k) e with per-round errors n / |F| and
((n - (e + 1)) / n) ^ q.
Plain-model soundness of full-vector ligeroBatchEvalReduction across the Reed–Solomon
unique-decoding radius (2 * e + k ≤ n).
Round-by-round soundness of single-scalar ligeroBatchEvalReduction across the Reed–Solomon
unique-decoding radius (2 * e + k ≤ n): rejects every claim outside
ligeroEvalProximityLang (reedSolomonGenerator α k) e with per-round errors
((m - 1) * n) / |F| and ((n - (e + 1)) / n) ^ q.
Plain-model soundness of single-scalar ligeroBatchEvalReduction across the Reed–Solomon
unique-decoding radius (2 * e + k ≤ n).
Part 3: Direct Batched Reed–Solomon Proximity PublicCoinIOP & Two-Channel BCS/ROM #
Per-round public-coin challenge record for rsBatchProximityIOP: carries a row-batching
challenge batchChal : BatchChal (consumed after round 0) and q column query indices
queryIdxs : Fin q → Fin (2 ^ d) (consumed at verification after round 1).
- batchChal : BatchChal
Row-combination batching challenge sampled after round
0. qcolumn query indices sampled in the final round.
Instances For
Equivalence between LigeroIOPChal BatchChal d q and BatchChal × (Fin q → Fin (2 ^ d)).
Exact cardinality of LigeroIOPChal BatchChal d q.
Verifier decision function of rsBatchProximityIOP: checks that answers has length k and
verifies ligeroColumnCheck at all q queried columns (chals 1).queryIdxs s.
Query locality of rsBatchProximityDecide: the decision depends on M only at the q
queried columns (chals 1).queryIdxs s (s : Fin q).
2-round batched Reed–Solomon proximity PublicCoinIOP (k ≤ 2 ^ d over domain
Fin (2 ^ d)):
- Round
0: zero announcement table (0openings), followed by batching challenge(chals 0).batchChal. - Round
1: honest prover commits the combined messageligeroRowComb r U : Fin k → Fin the firstkpositions ofOracleTable d F; verifier opens thosekpositions (queries.length = k) and checksligeroColumnCheckat theqcolumns(chals 1).queryIdxs.
Full-vector (Fin m → F) specialization of rsBatchProximityIOP.
Single-scalar power (z : F) specialization of rsBatchProximityIOP.
Pointwise characterization of iopVerify for rsBatchProximityIOP.
Perfect IOP completeness of rsBatchProximityIOP.
Two-channel BCS random-oracle completeness of rsBatchProximityIOP.
BCS random-oracle verifier Merkle hash query bound for rsBatchProximityIOP: when all
opened authentication paths have length at most L_path, bcsVerifyROM makes at most
k * (L_path + 1) Merkle hash queries.
Non-escaping round step predicate for rsBatchProximityIOP.
Unconditional IOPRoundByRoundSoundness of rsBatchProximityIOP at any proximity radius
e : ℕ.
Interactive IOP soundness of rsBatchProximityIOP against any adaptive (possibly
randomized) cheating IOP prover P given row-batching escape bound ε_row.
General adaptive two-channel BCS random-oracle soundness bound for rsBatchProximityIOP
given any row-batching escape bound ε_row.
Two-channel BCS/ROM soundness of rsAffineBatchProximityIOP across the unique-decoding
radius (2 * e + k ≤ 2 ^ d).
Two-channel BCS/ROM soundness of rsAffineBatchProximityIOP up to 1 - √ρ - η (original
explicit-constant variant) (1 ≤ k ≤ 2 ^ d, m-independent proximity escape error).
Two-channel BCS/ROM soundness of single-scalar rsCurveBatchProximityIOP across the
unique-decoding radius (2 * e + k ≤ 2 ^ d).
Two-channel BCS/ROM soundness of single-scalar rsCurveBatchProximityIOP up to 1 - √ρ - η
(original explicit-constant variant).