Batched Multi-Round Smooth and 2-to-1 FRI as a Public-Coin Interactive Oracle Proof #
This module instantiates the batched Fast Reed–Solomon Interactive Oracle Proof of Proximity (FRI)
of [BSCI+23] (accepted Journal of the ACM 2023 manuscript, Section
8.2, printed pp. 36–38: affine batching Eq. (8.3) on p. 37 and batched QUERY steps (1)–(4) on
p. 38) for arbitrary per-round strict 2-smooth folding schedules l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2
(FRISmoothParams, friSmoothBatchIOP) together with the fixed 2-to-1 specialization (FRIParams,
friBatchIOP) directly as a (params.m + 2)-round Cslib.Crypto.Protocols.BCS.PublicCoinIOP
delegating its folding and query phases to friSmoothIOP / friIOP
([BSBHR18]; [BSCS16]), proves perfect IOP / BCS /
random-oracle completeness together with exact committed-opening counts and direct-read schedule
locality, and defines the tuple correlated-agreement languages and real-to-integer threshold
bridges used in the setting of Lemma 8.2 and Theorem 8.3 (printed pp. 38–39).
Protocol layout and causal delegation #
Given params : FRISmoothParams F (or params : FRIParams F, embedded via FRIParams.toSmooth
with friBatchIOP_eq_friSmoothBatchIOP), batch size t : ℕ, and an affine batch statement
stmt : FRIBatchStmt F params.d t representing (t + 1) initial words
f₀⁽⁰⁾ = stmt.base and f₁⁽⁰⁾, …, f_t⁽⁰⁾ = stmt.terms on the coset of size 2 ^ d (with
homogeneous linear batching f₀⁽⁰⁾ = 0 given by FRIBatchStmt.linear):
- Causal
(m + 2)-round schedule. InPublicCoinIOP,proveRound 0executes prior to samplingchals 0, whereas the honest batched oraclestmt.eval x = stmt.base + ∑ j : Fin t, x j • stmt.terms j(Eq. (8.3), p. 37) depends on the verifier's random batching vectorx : Fin t → Fand must be committed before the first folding scalarz⁽⁰⁾. Accordingly,friSmoothBatchIOP params truns forparams.m + 2rounds overFRIBatchChal F params.d params.q t:- Round
0: the honest prover outputs the zero announcement table (0openings inPublicCoinIOP.queries), and the verifier samples(chals 0).batchCoeffs : Fin t → F. - Rounds
1, …, m + 1: the protocol delegatesproveRound,queries(shifted byFin.succ), anddecidedirectly tofriSmoothIOP paramsevaluated on the combined wordstmt.eval (chals 0).batchCoeffsand challenge tailfriTailChals chals.
- Round
- Batched query check, committed-opening count, and direct-read schedule. By
iopVerify_friSmoothBatchIOP_eq_iopVerify_friSmoothIOPandiopVerify_friSmoothBatchIOP_eq_true_iff,friSmoothBatchSingleAcceptsdelegates directly tofriSmoothSingleAcceptson the evaluated batchstmt.eval (chals 0).batchCoeffs, challenge tailfriTailChals chals, and shifted oracle familyfun j => oracles j.succ(checking the round-1batching equation, allml⁽ⁱ⁾-to-1 folding steps, and final codeword consistency; Section 8.2, p. 38, steps (2)–(4)). The committed-proof-oracle opening list exposed viaPublicCoinIOP.querieshas exact lengthparams.proofOracleQueries = kFinal + q * (aritySum + m + 2)(specializing tokFinal + q * (3 * m + 2)for binary folding, with zero openings against round0). OutsidePublicCoinIOP.queries,friSmoothBatchInputQuerieslistsqscheduled input positions, with multiplicity, at whicht + 1input symbols suffice (friSmoothBatchDecide_congr_inputQueriesproves that agreement at these scheduled positions determinesfriSmoothBatchDecide). BecausefriSmoothBatchDecidecan reject on an unexpected answer-list length before accessingstmt, repetitions short-circuit on earlier failures, and query challenges may repeat indices,params.batchInputWordReads t = (t + 1) * qrecords the full direct-read schedule / budget, giving the combined word-query budgetparams.batchTotalWordQueries t = kFinal + q * (aritySum + m + t + 3). - Tuple correlated-agreement languages and real-to-integer threshold bridges.
The shared code-parameterized definitions
friBatchCompletenessRel,friBatchProximityLang, andfriBatchCorrAgreeLang(instantiated atparams.initialCodefor bothFRISmoothParamsandFRIParams) express honest tuple membership, simultaneous correlated agreement of(stmt.base, stmt.terms)on at least2 ^ d - ecoordinates (matchingCslibFrontier/Foundations/Data/Code/ProximityGap/Curve.lean), and real-density correlated agreementα ≤ (#D' : ℝ) / 2 ^ d(matching Theorem 8.3, p. 39). One shared set of threshold bridges covers both smooth and binary parameters: forα ≤ 1, the ceiling thresholde = 2 ^ d - ⌈α * 2 ^ d⌉₊yields exact set equalityfriBatchCorrAgreeLang_eq_proximityLang, with strict single-query ratio< αfor0 < α ≤ 1(friBatchCeilThreshold_bounds); for0 ≤ α < 1, the floor thresholdB = ⌊α * 2 ^ d⌋₊,e = 2 ^ d - 1 - Bcharacterizes maximal correlated-agreement density≤ αwith strict Johnson slack(e : ℝ) / 2 ^ d < 1 - αeven whenα * 2 ^ d ∈ ℤ(friBatchFloorThreshold_bounds).
Main definitions #
Cslib.Crypto.Protocols.FRI.FRIBatchStmt,Cslib.Crypto.Protocols.FRI.FRIBatchStmt.linear,Cslib.Crypto.Protocols.FRI.FRIBatchStmt.eval: affine(t + 1)-word batch statement, homogeneous linear constructor, and affine combination evaluator.Cslib.Crypto.Protocols.FRI.FRIBatchChal,Cslib.Crypto.Protocols.FRI.FRIBatchChal.toFRIChal,Cslib.Crypto.Protocols.FRI.friTailChals: per-round public-coin challenge for batched FRI and challenge-tail projection toFRIChal.Cslib.Crypto.Protocols.FRI.friBatchCompletenessRel,Cslib.Crypto.Protocols.FRI.friBatchProximityLang,Cslib.Crypto.Protocols.FRI.friBatchCorrAgreeLang,Cslib.Crypto.Protocols.FRI.FRISmoothParams.batchCompletenessRel,Cslib.Crypto.Protocols.FRI.FRISmoothParams.batchProximityLang,Cslib.Crypto.Protocols.FRI.FRISmoothParams.batchCorrAgreeLang,Cslib.Crypto.Protocols.FRI.FRISmoothParams.batchInputWordReads,Cslib.Crypto.Protocols.FRI.FRISmoothParams.batchTotalWordQueries,Cslib.Crypto.Protocols.FRI.FRIParams.batchCompletenessRel,Cslib.Crypto.Protocols.FRI.FRIParams.batchProximityLang,Cslib.Crypto.Protocols.FRI.FRIParams.batchCorrAgreeLang,Cslib.Crypto.Protocols.FRI.FRIParams.batchInputWordReads,Cslib.Crypto.Protocols.FRI.FRIParams.batchTotalWordQueries: shared code-parameterized batched completeness relation and integer / real-density tuple correlated-agreement languages, together with smooth and binary parameter specializations and direct-read / combined word-query budget abbreviations.Cslib.Crypto.Protocols.FRI.friSmoothBatchQueries,Cslib.Crypto.Protocols.FRI.friSmoothBatchInputQueries,Cslib.Crypto.Protocols.FRI.friSmoothBatchDecide,Cslib.Crypto.Protocols.FRI.friSmoothBatchSingleAccepts,Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP,Cslib.Crypto.Protocols.FRI.friBatchQueries,Cslib.Crypto.Protocols.FRI.friBatchInputQueries,Cslib.Crypto.Protocols.FRI.friBatchDecide,Cslib.Crypto.Protocols.FRI.friBatchSingleAccepts,Cslib.Crypto.Protocols.FRI.friBatchIOP: committed-oracle query lists, scheduled input-word positions, verifier decision procedures, single-repetition acceptance predicates, and(m + 2)-roundPublicCoinIOPinstantiations of smooth and binary batched FRI.
Main results #
Cslib.Crypto.Protocols.FRI.card_friBatchChal: exact challenge-space cardinality|F| ^ (t + 1) * (2 ^ d) ^ q.Cslib.Crypto.Protocols.FRI.eval_mem_of_friBatchCompletenessRel,Cslib.Crypto.Protocols.FRI.mem_friBatchProximityLang_of_completenessRel,Cslib.Crypto.Protocols.FRI.lt_two_pow_of_not_mem_friBatchProximityLang,Cslib.Crypto.Protocols.FRI.mem_friBatchProximityLang_zero_iff,Cslib.Crypto.Protocols.FRI.friBatchCorrAgreeLang_eq_proximityLang,Cslib.Crypto.Protocols.FRI.friBatchCeilThreshold_bounds,Cslib.Crypto.Protocols.FRI.friBatchFloorThreshold_bounds,Cslib.Crypto.Protocols.FRI.mem_batchProximityLang_zero_iff,Cslib.Crypto.Protocols.FRI.batchCorrAgreeLang_eq_batchProximityLang,Cslib.Crypto.Protocols.FRI.batchCeilThreshold_bounds,Cslib.Crypto.Protocols.FRI.batchFloorThreshold_bounds: shared code-parameterized completeness,t = 0single-word equivalence, exact ceilingSetequality, and zero-loss ceiling/floor real-to-integer threshold bridges (together with binaryFRIParamsspecializations).Cslib.Crypto.Protocols.FRI.friBatchIOP_eq_friSmoothBatchIOP: exact equality between binaryfriBatchIOPandfriSmoothBatchIOP params.toSmooth.Cslib.Crypto.Protocols.FRI.round_ne_zero_of_mem_friSmoothBatchQueries,Cslib.Crypto.Protocols.FRI.length_friSmoothBatchIOP_queries,Cslib.Crypto.Protocols.FRI.friSmoothBatchDecide_congr_inputQueries,Cslib.Crypto.Protocols.FRI.round_ne_zero_of_mem_friBatchQueries,Cslib.Crypto.Protocols.FRI.length_friBatchIOP_queries,Cslib.Crypto.Protocols.FRI.friBatchDecide_congr_inputQueries: round-0non-opening guarantees, exact committed-proof-oracle opening counts, and input-query locality.Cslib.Crypto.Protocols.FRI.iopVerify_friSmoothBatchIOP_eq_iopVerify_friSmoothIOP,Cslib.Crypto.Protocols.FRI.iopVerify_friSmoothBatchIOP_eq_true_iff,Cslib.Crypto.Protocols.FRI.iopVerify_friBatchIOP_eq_iopVerify_friIOP,Cslib.Crypto.Protocols.FRI.iopVerify_friBatchIOP_eq_true_iff: exact verification reductions to single-word FRI and pointwise characterizations.Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_complete,Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_verify_prove_eq_true,Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_honestROMGame_eq_pure_true,Cslib.Crypto.Protocols.FRI.isCostBounded_bcsMTCost_friSmoothBatchVerifyROM,Cslib.Crypto.Protocols.FRI.friBatchIOP_complete,Cslib.Crypto.Protocols.FRI.friBatchBCS_verify_prove_eq_true,Cslib.Crypto.Protocols.FRI.friBatchBCS_honestROMGame_eq_pure_true,Cslib.Crypto.Protocols.FRI.isCostBounded_bcsMTCost_friBatchVerifyROM: perfect completeness of smooth and binary batched FRI as IOPs, under deterministic BCS, and in the two-channel BCS random-oracle model, together with verifier Merkle hash query cost bounds.
References #
(t + 1)-word affine batch statement f₀⁽⁰⁾, f₁⁽⁰⁾, …, f_t⁽⁰⁾ : Fin (2 ^ d) → F for batched
FRI ([BSCI+23], Section 8.2, Eq. (8.3) on printed p. 37).
- base : BCS.OracleTable d F
Affine base word
f₀⁽⁰⁾(set to0for homogeneous linear batching viaFRIBatchStmt.linear). - terms : Fin t → BCS.OracleTable d F
tgenerator wordsf₁⁽⁰⁾, …, f_t⁽⁰⁾combined with verifier scalarsx : Fin t → F.
Instances For
Homogeneous linear batching statement (f₀⁽⁰⁾ = 0, [BSCI+23],
Section 8.2, printed p. 37).
Affine combination word f₀⁽⁰⁾ + ∑ j : Fin t, x j • f_{j+1}⁽⁰⁾ evaluated at batching challenge
x : Fin t → F ([BSCI+23], Eq. (8.3)).
Equivalence between FRIBatchStmt F d t and OracleTable d F × (Fin t → OracleTable d F).
Public-coin verifier challenge per round of (params.m + 2)-round friBatchIOP:
batchCoeffs : Fin t → Fis consumed in round0to formstmt.eval batchCoeffs,foldScalar : Fis consumed in folding rounds1, …, m, andqueryIdxs : Fin q → Fin (2 ^ d)is consumed in the final query roundm + 1.
- batchCoeffs : Fin t → F
Batching challenge scalars
(x₁, …, x_t) ∈ F^tused in round0. - foldScalar : F
Folding challenge scalar
z⁽ⁱ⁾ ∈ Fused in folding rounds1, …, m. Batch of
qquery starting indices used in the final roundm + 1.
Instances For
Project a batched FRI challenge to the underlying single-word FRIChal F d q.
Equivalence between FRIBatchChal F d q t and (Fin t → F) × FRIChal F d q, with first
projection batchCoeffs and second projection toFRIChal definitionally.
Exact cardinality of FRIBatchChal F d q t: |F| ^ (t + 1) * (2 ^ d) ^ q.
Honest completeness relation for batched FRI relative to an initial linear code
C : Submodule F (OracleTable d F): both stmt.base and all t generator words stmt.terms j
belong to C.
Every affine combination stmt.eval x of an honest batch statement lies in C.
Integer-threshold tuple correlated-agreement language for (t + 1)-word batched FRI relative to
an initial linear code C: stmt.base and all t words stmt.terms j simultaneously agree with
codewords in C on a common subset D' ⊆ Fin (2 ^ d) of cardinality at least 2 ^ d - e
([BSCI+23], Theorem 1.6 and Section 8.2).
Real-density tuple correlated-agreement language for (t + 1)-word batched FRI relative to an
initial linear code C: stmt.base and all t words stmt.terms j simultaneously agree with
codewords in C on a common domain D' ⊆ Fin (2 ^ d) of relative density
α ≤ (#D' : ℝ) / 2 ^ d ([BSCI+23], Theorem 8.3 on printed p. 39).
Any statement satisfying friBatchCompletenessRel C t belongs to friBatchProximityLang C t e
for every e : ℕ (witnessed on D' = Finset.univ).
Contrapositively, stmt ∉ friBatchProximityLang C t e implies e < 2 ^ d.
At batch size t = 0, tuple correlated agreement friBatchProximityLang C 0 e coincides with
single-word Hamming proximity ∃ c ∈ C, hammingDist stmt.base c ≤ e.
Exact ceiling Set equality (α ≤ 1): for e = 2 ^ d - ⌈α * 2 ^ d⌉₊,
friBatchCorrAgreeLang C t α = friBatchProximityLang C t e.
Floor threshold bounds (0 ≤ α < 1) relative to an initial linear code C
([BSCI+23], Lemma 8.2, printed pp. 38–39, Eq. (8.5)).
Honest completeness relation for smooth batched FRI (friBatchCompletenessRel on
params.initialCode).
Integer-threshold tuple correlated-agreement language for (t + 1)-word smooth batched FRI
(friBatchProximityLang on params.initialCode).
Real-density tuple correlated-agreement language for (t + 1)-word smooth batched FRI
(friBatchCorrAgreeLang on params.initialCode).
Full direct-read schedule / input-symbol budget (t + 1) * q across stmt.base and
stmt.terms: friSmoothBatchInputQueries lists q scheduled input positions, with multiplicity,
with t + 1 input symbols sufficient at each (friSmoothBatchDecide_congr_inputQueries). Because
friSmoothBatchDecide can reject on answer-list length before accessing stmt, repetitions
short-circuit on earlier failures, and query challenges may repeat indices, (t + 1) * q is a
schedule / upper-bound budget.
Combined word-query budget batchInputWordReads t + proofOracleQueries = kFinal + q * (aritySum + m + t + 3).
Honest completeness relation for batched FRI (friBatchCompletenessRel on
params.initialCode).
Every affine combination stmt.eval x of an honest batch statement lies in
params.initialCode.
Integer-threshold tuple correlated-agreement language for (t + 1)-word batched FRI
(friBatchProximityLang on params.initialCode).
Real-density tuple correlated-agreement language for (t + 1)-word batched FRI
(friBatchCorrAgreeLang on params.initialCode).
Full direct-read schedule / input-symbol budget (t + 1) * q across stmt.base and
stmt.terms 0, …, stmt.terms (t - 1): friBatchInputQueries lists q scheduled input positions,
with multiplicity, with t + 1 input symbols sufficient at each
(friBatchDecide_congr_inputQueries). Because friBatchDecide can reject on answer-list length
before accessing stmt, repetitions short-circuit on earlier failures, and query challenges may
repeat indices, (t + 1) * q is a schedule / upper-bound budget.
Combined word-query budget batchInputWordReads t + proofOracleQueries = kFinal + q * (3 * m + t + 3), pairing the full (t + 1) * q direct-read schedule with the exact
committed-proof-oracle opening list length proofOracleQueries.
Any statement satisfying batchCompletenessRel belongs to batchProximityLang t e for every
e : ℕ (specialization of mem_friBatchProximityLang_of_completenessRel).
Contrapositively, stmt ∉ params.batchProximityLang t e implies e < 2 ^ params.d
(specialization of lt_two_pow_of_not_mem_friBatchProximityLang).
At batch size t = 0, tuple correlated agreement batchProximityLang 0 e coincides with the
single-word proximityLang e on stmt.base (specialization of
mem_friBatchProximityLang_zero_iff).
Exact ceiling Set equality (α ≤ 1) (specialization of
friBatchCorrAgreeLang_eq_proximityLang).
Ceiling threshold bounds (0 < α ≤ 1) (specialization of friBatchCeilThreshold_bounds).
Floor threshold bounds (0 ≤ α < 1) (specialization of friBatchFloorThreshold_bounds).
Project an (r + 1)-round batched challenge vector to its r-round single-word FRIChal tail
(rounds 1, …, r).
Committed-proof-oracle opening list of the smooth batched FRI verifier: shifts every query
(j, idx) of friSmoothQueries params (friTailChals chals) to (j.succ, idx) in
Fin (params.m + 2).
No query in friSmoothBatchQueries ever opens the round-0 announcement table.
Schedule of q scheduled input positions, with multiplicity, at which agreement of the
t + 1 input words (stmt.base, stmt.terms) suffices to determine friSmoothBatchDecide.
Smooth batched FRI verifier decision procedure: delegates directly to friSmoothDecide on
stmt.eval (chals 0).batchCoeffs and friTailChals chals.
Input-query locality for smooth batched FRI: agreement of (stmt.base, stmt.terms) at the q
scheduled positions in friSmoothBatchInputQueries guarantees the same decision.
Batched multi-round smooth 2^{sᵢ}-to-1 FRI as a (params.m + 2)-round PublicCoinIOP
([BSCI+23], Section 8.2, printed pp. 37–38).
Exact committed-proof-oracle opening count of friSmoothBatchIOP:
params.proofOracleQueries = kFinal + q * (aritySum + m + 2).
Exact verification reduction from friSmoothBatchIOP to single-word friSmoothIOP.
Pointwise acceptance predicate for a single smooth batched FRI query repetition starting at
s : Fin (2 ^ d).
Exact characterization of smooth batched FRI IOP verification.
Perfect completeness of the smooth batched FRI IOP.
Perfect deterministic BCS completeness for smooth batched FRI.
Perfect BCS ROM completeness for smooth batched FRI.
Succinct verifier Merkle query cost bound for BCS-compiled smooth batched FRI.
Committed-proof-oracle opening list of the batched FRI verifier (derived directly from
friSmoothBatchQueries params.toSmooth). Round 0 is never opened; all
params.proofOracleQueries = kFinal + q * (3 * m + 2) openings target the committed prover tables
f⁽⁰⁾, …, f⁽ᵐ⁾ in rounds 1, …, m + 1.
No query in friBatchQueries ever opens the round-0 announcement table (corollary of
round_ne_zero_of_mem_friSmoothBatchQueries).
Schedule of q scheduled input positions, with multiplicity, at which agreement of the
t + 1 input words (stmt.base, stmt.terms 0, …, stmt.terms (t - 1)) suffices to determine
friBatchDecide outside PublicCoinIOP.queries (derived directly from
friSmoothBatchInputQueries params.toSmooth).
Batched FRI verifier decision procedure (derived directly from
friSmoothBatchDecide params.toSmooth).
Input-query locality (corollary of friSmoothBatchDecide_congr_inputQueries).
Batched multi-round 2-to-1 FRI as a (params.m + 2)-round PublicCoinIOP
([BSCI+23], Section 8.2, printed pp. 37–38).
Exact batched IOP equality: binary 2-to-1 friBatchIOP params t coincides identically with
friSmoothBatchIOP params.toSmooth t.
Exact committed-proof-oracle opening count of friBatchIOP (corollary of
length_friSmoothBatchIOP_queries).
Exact verification reduction from friBatchIOP to single-word friIOP (corollary of
iopVerify_friSmoothBatchIOP_eq_iopVerify_friSmoothIOP).
Pointwise acceptance predicate for a single batched FRI query repetition starting at
s : Fin (2 ^ d).
Exact equivalence between binary friBatchSingleAccepts and smooth
friSmoothBatchSingleAccepts params.toSmooth.
Exact characterization of batched FRI IOP verification (corollary of
iopVerify_friSmoothBatchIOP_eq_true_iff).
Perfect completeness of the batched FRI IOP (corollary of friSmoothBatchIOP_complete).
Perfect deterministic BCS completeness for batched FRI (corollary of
friSmoothBatchBCS_verify_prove_eq_true).
Perfect BCS ROM completeness for batched FRI (corollary of
friSmoothBatchBCS_honestROMGame_eq_pure_true).
Succinct verifier Merkle query cost bound for BCS-compiled batched FRI (corollary of
isCostBounded_bcsMTCost_friSmoothBatchVerifyROM).