Multi-Round Smooth and 2-to-1 FRI as a Public-Coin Interactive Oracle Proof #
This module instantiates multi-round Fast Reed–Solomon Interactive Oracle Proofs of Proximity
(FRI) with arbitrary per-round strict 2-smooth folding arities l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2
(FRISmoothParams, friSmoothIOP) together with the fixed 2-to-1 specialization (FRIParams,
friIOP) ([BSBHR18], with fixed localization parameter in the full
version ECCC TR17-134, Remark 3.1, p. 13; [BSCI+23], Section 8.2 on
printed pp. 36–38 for round-dependent arities, with the fibers of Eq. (8.1), the interpolation map
defined right after it, and its evaluation in Eq. (8.2) on printed p. 37, and the first-entries
final anchor convention on printed p. 38) directly as a Cslib.Crypto.Protocols.BCS.PublicCoinIOP
compatible with the Ben-Sasson–Chiesa–Spooner (BCS) random-oracle compiler
([BSCS16]).
Protocol layout #
Given params : FRISmoothParams F with initial coset size 2 ^ d, m folding rounds with
per-round log-arities stepLog : Fin m → ℕ (1 ≤ stepLog i, cumulative log-reduction
totalLog = ∑ i, stepLog i ≤ d), final Reed–Solomon dimension
1 ≤ kFinal ≤ 2 ^ (d - totalLog), and q independent query repetitions (and specializing to
2-to-1 FRIParams via FRIParams.toSmooth with stepLog := fun _ => 1 and
friIOP_eq_friSmoothIOP):
- Rounds & tables. The IOP runs for
m + 1rounds over depth-doracle tablesOracleTable d F = Fin (2 ^ d) → F. The active domain of roundjhas size2 ^ (d - cumLog j)and sits in the prefix< 2 ^ (d - cumLog j)of the table (padded by0outside), with invariant Reed–Solomon ratedim j / domainSize j = dim 0 / 2 ^ d. - Challenges. Each round draws a uniform challenge
FRIChal F d qcarrying both a folding scalarfoldScalar : Fand a batch ofqquery starting positionsqueryIdxs : Fin q → Fin (2 ^ d). Commit rounds0, ..., m - 1use onlyfoldScalar, while the final roundmusesqueryIdxs. Bundling allqindependent query positions into the single final round preserves exponential(1 - δ) ^ qquery-phase soundness under the uniform per-round escape bound ofCslib.Crypto.Protocols.BCS.bcsROMSoundness_bound. - Round-0 binding, final anchor convention, and query accounting. Rather than sending explicit
final polynomial coefficients, the verifier reads the first
kFinalentries of the final oracleπ_mas interpolation anchors to define a degree-< kFinalReed–Solomon codeword by Lagrange interpolation (the convention described on printed p. 38 of [BSCI+23]), and for each of theqqueried starting positionss : Fin (2 ^ d)checks:- explicit round-0 binding
π_0(s) = stmt(s)against the input wordstmt, - all
mlocall⁽ⁱ⁾-to-1 coset folding equations (foldFiber) along the powering chain ofs(opening alll⁽ⁱ⁾fiber points inπ_iand1folded point inπ_{i + 1}), and - agreement of
π_m(s % 2 ^ (d - totalLog))with the interpolated final codeword. The committed-proof-oracle opening list exposed throughPublicCoinIOP.querieshas exact lengthparams.proofOracleQueries = kFinal + q * (aritySum + m + 2)(specializing tokFinal + q * (3 * m + 2)for 2-to-1 folding, which governs BCS Merkle verification cost). Separately, outsidePublicCoinIOP.queries,friSmoothInputQueries(andfriInputQueries) listsqscheduled input positions, with multiplicity (params.inputWordReads = q, certified sufficient byfriSmoothDecide_congr_inputQueries/friDecide_congr_inputQueries). BecausefriSmoothDecidecan reject on an unexpected answer-list length before accessingstmt, repetitions short-circuit on earlier failures (&&), and query challenges may repeat indices,params.inputWordReads = qis a direct-read schedule / upper-bound budget rather than a count of distinct reads performed on every execution. Pairing this input-read budget with the exact committed-opening count gives the combined word-query budgetparams.totalWordQueries = kFinal + q * (aritySum + m + 3)(kFinal + q * (3 * m + 3)for 2-to-1 folding, aligned with counting both input-word and prover-table queries in [BSBHR18], pp. 14:3–14:4), independent of2 ^ d.
- explicit round-0 binding
Main definitions #
Cslib.Crypto.Protocols.FRI.friCumLog,Cslib.Crypto.Protocols.FRI.FRISmoothParams,Cslib.Crypto.Protocols.FRI.FRIParams,Cslib.Crypto.Protocols.FRI.FRIParams.toSmooth,Cslib.Crypto.Protocols.FRI.FRIChal: per-round smooth folding schedule, smooth and binary parameter bundles, embedding of binary parameters into smooth parameters, and public-coin challenge structure.Cslib.Crypto.Protocols.FRI.evalLagrange: computable Lagrange interpolation evaluator bridged to Mathlib'sLagrange.interpolateviaLagrange.eval_basis.Cslib.Crypto.Protocols.FRI.padOracle,Cslib.Crypto.Protocols.FRI.restrictOracle,Cslib.Crypto.Protocols.FRI.friSmoothHonestWord,Cslib.Crypto.Protocols.FRI.friHonestWord: active-domain oracle padding and iterated smooth / 2-to-1 honest prover folding.Cslib.Crypto.Protocols.FRI.friSmoothQueries,Cslib.Crypto.Protocols.FRI.friSmoothInputQueries,Cslib.Crypto.Protocols.FRI.friQueries,Cslib.Crypto.Protocols.FRI.friInputQueries: committed-proof-oracle openings and direct input-word read positions.Cslib.Crypto.Protocols.FRI.friSmoothFinalCodeword,Cslib.Crypto.Protocols.FRI.friSmoothSingleAccepts,Cslib.Crypto.Protocols.FRI.friFinalCodeword,Cslib.Crypto.Protocols.FRI.friSingleAccepts: interpolated final-round codeword and single-query verifier acceptance predicates.Cslib.Crypto.Protocols.FRI.friSmoothIOP,Cslib.Crypto.Protocols.FRI.friIOP: the(m + 1)-roundPublicCoinIOPinstantiations of smooth and 2-to-1 FRI.
Main results #
Cslib.Crypto.Protocols.FRI.FRISmoothParams.sum_arity_sub_one_mul_domainSize,Cslib.Crypto.Protocols.FRI.FRISmoothParams.arity_sub_one_mul_domainSize_le_first: exact smooth curve-degree telescoping identity∑ (l⁽ⁱ⁾ - 1) * n_{i+1} = 2 ^ d - 2 ^ (d - totalLog)and round-0maximality bound.Cslib.Crypto.Protocols.FRI.evalLagrange_eq_eval_interpolate,Cslib.Crypto.Protocols.FRI.evalLagrange_mem_reedSolomon,Cslib.Crypto.Protocols.FRI.evalLagrange_eq_of_mem_reedSolomon: bridge toLagrange.interpolate, Reed–Solomon membership, and exact recovery of the final Lagrange interpolant.Cslib.Crypto.Protocols.FRI.friSmoothHonestWord_mem_rsCode,Cslib.Crypto.Protocols.FRI.friHonestWord_mem_rsCode: iterated honest folding preserves Reed–Solomon membership across allmrounds.Cslib.Crypto.Protocols.FRI.friIOP_eq_friSmoothIOP: exact equality between binaryfriIOPandfriSmoothIOP params.toSmoothacrossproveRound,queries, anddecide.Cslib.Crypto.Protocols.FRI.length_friSmoothIOP_queries,Cslib.Crypto.Protocols.FRI.length_friSmoothInputQueries,Cslib.Crypto.Protocols.FRI.friSmoothDecide_congr_inputQueries,Cslib.Crypto.Protocols.FRI.iopVerify_friSmoothIOP_eq_true_iff,Cslib.Crypto.Protocols.FRI.length_friIOP_queries,Cslib.Crypto.Protocols.FRI.length_friInputQueries,Cslib.Crypto.Protocols.FRI.friDecide_congr_inputQueries,Cslib.Crypto.Protocols.FRI.iopVerify_friIOP_eq_true_iff: exact committed-proof-oracle opening counts, input-word read locality, and exact characterizations ofiopVerifyacceptance.Cslib.Crypto.Protocols.FRI.friSmoothIOP_complete,Cslib.Crypto.Protocols.FRI.friSmoothBCS_verify_prove_eq_true,Cslib.Crypto.Protocols.FRI.friSmoothBCS_honestROMGame_eq_pure_true,Cslib.Crypto.Protocols.FRI.friIOP_complete,Cslib.Crypto.Protocols.FRI.friBCS_verify_prove_eq_true,Cslib.Crypto.Protocols.FRI.friBCS_honestROMGame_eq_pure_true: perfect completeness of smooth and binary FRI as IOPs, under deterministic BCS, and in the two-channel BCS random-oracle model.Cslib.Crypto.Protocols.FRI.isCostBounded_bcsMTCost_friSmoothVerifyROM,Cslib.Crypto.Protocols.FRI.isCostBounded_bcsMTCost_friVerifyROM: verifier Merkle hash query cost bounds for BCS-compiled smooth and binary FRI.
References #
Public parameters for an (m + 1)-round 2-to-1 FRI protocol over a field F:
initial multiplicative coset g * ⟨ω⟩ of size 2 ^ d, m ≤ d folding rounds, final Reed–Solomon
dimension 1 ≤ kFinal ≤ 2 ^ (d - m), and q batched query repetitions.
- d : ℕ
Log-size of the initial multiplicative coset (
|L_0| = 2 ^ d). - m : ℕ
- kFinal : ℕ
- q : ℕ
Number of independent query starting indices sampled in the final round.
- g : F
Nonzero multiplicative coset offset.
- ω : F
Primitive
2 ^ d-th root of unity generating the initial evaluation subgroup. Folding rounds do not exceed the initial domain log-size.
The final Reed–Solomon dimension is at least
1.The final Reed–Solomon dimension fits within the final domain
2 ^ (d - m).The coset offset is nonzero.
- h2 : 2 ≠ 0
The field does not have characteristic
2.
Initial Reed–Solomon code on OracleTable params.d F.
Proximity language of input words at Hamming distance at most e from initialCode.
Honest completeness relation: input word f₀ lies in initialCode.
Exact length of the committed-proof-oracle opening list issued by the FRI verifier via
PublicCoinIOP.queries: kFinal + q * (3 * m + 2). This excludes the q scheduled input
positions, with multiplicity, tracked by inputWordReads, and is the opening count that governs
BCS Merkle verification cost.
Direct input-word read budget: q scheduled input positions, with multiplicity (listed by
friInputQueries outside PublicCoinIOP.queries). Because friDecide can reject on answer-list
length before accessing stmt, repetitions short-circuit on earlier failures, and query challenges
may repeat indices, q is a schedule / upper-bound budget.
Combined word-query budget inputWordReads + proofOracleQueries = kFinal + q * (3 * m + 3),
pairing the q scheduled input positions (with multiplicity) with the exact committed-proof-oracle
opening list length proofOracleQueries ([BSBHR18], pp. 14:3–14:4).
Injectivity of the kFinal anchor points of the final coset L_m.
Cumulative Log-Arities & Smooth FRISmoothParams #
Public parameters for an (m + 1)-round smooth FRI protocol over a field F with per-round
strict 2-smooth folding arity l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2 ([BSCI+23],
Section 8.2, printed p. 37): initial multiplicative coset g * ⟨ω⟩ of size 2 ^ d, m folding
rounds with total log-reduction totalLog = ∑ i, stepLog i ≤ d, final Reed–Solomon dimension
1 ≤ kFinal ≤ 2 ^ (d - totalLog), and q batched query repetitions.
- d : ℕ
Log-size of the initial multiplicative coset (
|L_0| = 2 ^ d). - m : ℕ
Number of smooth folding rounds.
Per-round folding log-arity
sᵢ(l⁽ⁱ⁾ = 2 ^ sᵢ ≥ 2).- kFinal : ℕ
Final Reed–Solomon dimension after all
mfolding rounds. - q : ℕ
Number of independent query starting indices sampled in the final round.
- g : F
Nonzero multiplicative coset offset.
- ω : F
Primitive
2 ^ d-th root of unity generating the initial evaluation subgroup. Each folding round shrinks the domain strictly (
l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2).Total folding log-reduction does not exceed the initial domain log-size.
The final Reed–Solomon dimension is at least
1.The final Reed–Solomon dimension fits within the final domain
2 ^ (d - totalLog).The coset offset is nonzero.
- h2 : 2 ≠ 0
The field does not have characteristic
2(sufficient for all2 ^ s-to-1 folding).
Cumulative folding log-arity after the first i rounds (i ≤ m).
Total folding log-reduction ∑ i : Fin m, stepLog i across all m rounds.
Sum of per-round folding arities ∑ i : Fin m, l⁽ⁱ⁾.
First-round log-arity stepLog 0 (defaulting to 1 when m = 0).
Active domain size 2 ^ (d - cumLog i) at round i.
Reed–Solomon dimension kFinal * 2 ^ (totalLog - cumLog i) at round i.
Initial Reed–Solomon code on OracleTable params.d F.
Proximity language of input words at Hamming distance at most e from initialCode.
Honest completeness relation: input word f₀ lies in initialCode.
Committed-proof-oracle openings per query repetition: 1 round-0 entry, l⁽ⁱ⁾ + 1 entries
per folding round i, and 1 final-round entry (aritySum + m + 2).
Exact length of the committed-proof-oracle opening list issued by the smooth FRI verifier via
PublicCoinIOP.queries: kFinal + q * (aritySum + m + 2).
Direct input-word read budget: q scheduled input positions, with multiplicity (listed by
friSmoothInputQueries outside PublicCoinIOP.queries). Because friSmoothDecide can reject on
answer-list length before accessing stmt, repetitions short-circuit on earlier failures, and
query challenges may repeat indices, q is a schedule / upper-bound budget.
Combined word-query budget inputWordReads + proofOracleQueries = kFinal + q * (aritySum + m + 3), pairing the q scheduled input positions (with multiplicity)
with the exact committed-proof-oracle opening list length proofOracleQueries.
Closed-form expression kFinal + q * (aritySum + m + 3) for totalWordQueries.
First kFinal evaluation points of the final coset L_m.
Injectivity of the kFinal anchor points of the final coset L_m.
Every smooth folding round has arity 2 ^ stepLog i ≥ 2.
The cast of each round's smooth folding arity 2 ^ stepLog i into F is nonzero.
Folding round i shrinks the evaluation domain by a factor of arity i.
Per-round curve-degree weight identity: (l⁽ⁱ⁾ - 1) * n_{i+1} = nᵢ - n_{i+1}.
Exact smooth curve-degree telescoping: summing (l⁽ⁱ⁾ - 1) * n_{i+1} across all m
folding rounds telescopes exactly to 2 ^ d - 2 ^ (d - totalLog).
Round-0 maximality across smooth folding rounds: every round's curve-degree budget
(l⁽ⁱ⁾ - 1) * n_{i+1} is at most the round-0 budget 2 ^ d - 2 ^ (d - firstStepLog).
Embedding FRIParams into FRISmoothParams (toSmooth) #
Embed binary 2-to-1 FRIParams into FRISmoothParams via the constant folding schedule
stepLog := fun _ => 1 (preserving d, m, kFinal, q, g, ω at reducible transparency).
Under toSmooth, the first-round log-arity firstStepLog is 1.
Under toSmooth, round-i domain size matches params.domainSize i for i ≤ m.
Under toSmooth, the initial Reed–Solomon code matches params.initialCode.
Under toSmooth, the proximity language at radius e matches params.proximityLang e.
Under toSmooth, the completeness relation matches params.completenessRel.
Under toSmooth, total committed proof oracle openings match params.proofOracleQueries.
Under toSmooth, scheduled input word reads match params.inputWordReads.
Under toSmooth, combined word queries match params.totalWordQueries.
Under toSmooth, the final anchor points match params.finalAnchorPoints.
Public-coin verifier challenge for each round of friIOP: carries a folding scalar
foldScalar : F (consumed in commit rounds 0, ..., m - 1) and a batch of q query starting
positions queryIdxs : Fin q → Fin (2 ^ d) (consumed in the final round m).
- foldScalar : F
Folding challenge scalar used in commit rounds.
Batch of
qquery starting indices used in the final round.
Instances For
Lagrange Interpolation on Final Anchor Points #
Bridge between the computable evaluator evalLagrange and Mathlib's Lagrange.interpolate,
via Lagrange.eval_basis.
evalLagrange recovers vals s at every distinct interpolation node pts s.
Evaluating evalLagrange pts vals on any evaluation map α : Fin n → F always produces a
Reed–Solomon codeword of dimension k for injective nodes pts : Fin k → F.
Exact recovery for codewords of reedSolomon α k interpolated from the first k nodes of α.
Oracle Padding and Honest FRI Prover Words #
Iterated smooth honest FRI prover word at round j ≤ m, computed causally from the initial
oracle f₀ and the first j folding scalars zs : Fin j → F using per-round arities
l⁽ⁱ⁾ = 2 ^ stepLog i.
Honest smooth folding satisfies the local l⁽ʲ⁾-to-1 fiber equation at every coordinate of
round j + 1.
Reed–Solomon invariance of honest smooth FRI folding: if f₀ ∈ params.initialCode, then
every honest prover round word friSmoothHonestWord params f₀ j hj zs lies in params.rsCode j.
Prefix challenge independence: friSmoothHonestWord depends only on zs up to round j.
Iterated 2-to-1 honest FRI prover word at round j ≤ m, computed causally from the initial
oracle f₀ and the first j folding scalars zs : Fin j → F.
Honest folding satisfies the local 2-to-1 fiber equation at every coordinate of round j + 1.
The padded honest prover oracle tables of binary friHonestWord and smooth
friSmoothHonestWord params.toSmooth coincide identically at every round j ≤ m.
Reed–Solomon invariance of honest FRI folding (corollary of
friSmoothHonestWord_mem_rsCode): if f₀ ∈ params.initialCode, then every honest prover round
word friHonestWord params f₀ j hj zs lies in params.rsCode j.
Prefix challenge independence: friHonestWord depends only on zs up to round j.
Smooth FRI Query Indices and Schedules #
The smooth header query schedule reads params.kFinal entries of the final oracle.
Smooth folding-chain queries along a list of rounds rounds (opening all l⁽ⁱ⁾ fiber points
in π_i and 1 folded point in π_{i + 1}) followed by the final-round check.
Number of smooth folding-chain queries generated along rounds.
A single smooth query repetition contains params.singleRepQueries proof-oracle openings.
Full committed-proof-oracle opening list of the smooth FRI verifier: kFinal final-oracle
interpolation anchors followed by q query repetitions.
Total length of friSmoothQueries matches params.proofOracleQueries.
Schedule of q scheduled input positions, with multiplicity, at which stmt suffices to
determine friSmoothDecide outside PublicCoinIOP.queries.
Total length of friSmoothInputQueries matches params.inputWordReads.
Smooth FRI Final Codeword, Verifier Decisions, and friSmoothIOP #
Final-round Reed–Solomon codeword interpolated from the first kFinal entries of πFinal.
For ANY arbitrary oracle table πFinal, friSmoothFinalCodeword params πFinal lies in
params.rsCode params.m.
Check the smooth folding chain and final Lagrange equation against the flat answer list for a
single repetition starting at s. Matching ans.drop (params.arity i) against yNext :: rest
enforces params.arity i + 1 ≤ ans.length identically on malformed short lists.
Check a single smooth repetition's answer block: round-0 binding to stmt s plus all folding
and final-codeword checks.
Check all smooth repetitions in reps by consuming fixed-size blocks of length
params.singleRepQueries.
Smooth FRI verifier decision procedure operating purely on stmt (determined by the q
scheduled input positions, with multiplicity, in friSmoothInputQueries params chals), chals,
and the flat list of params.proofOracleQueries queried prover-oracle answers.
friSmoothDecide depends on the input word stmt only at the q scheduled input positions,
with multiplicity, in friSmoothInputQueries params chals (params.inputWordReads = q budget).
Multi-round smooth 2^{sᵢ}-to-1 FRI as a PublicCoinIOP
([BSCI+23], Section 8.2, printed pp. 36–38):
m + 1rounds over depth-doracle tablesOracleTable d F.- Honest prover sends
padOracle (friSmoothHonestWord ...)using previous rounds'foldScalars. - Verifier opens
params.proofOracleQueries = kFinal + q * (aritySum + m + 2)entries in the committed prover oracles, schedulesparams.inputWordReads = qinput positions (with multiplicity) ofstmt, and checks round-0 binding, allml⁽ⁱ⁾-to-1 folding checks, and the final degree-< kFinalLagrange-anchor check.
Exact committed-proof-oracle opening count of friSmoothIOP:
params.proofOracleQueries = kFinal + q * (aritySum + m + 2) for every statement and challenge
vector.
Clean mathematical acceptance predicate for a single smooth FRI query repetition starting at
s : Fin (2 ^ d): round-0 binding oracles 0 s = stmt s, all m l⁽ⁱ⁾-to-1 folding checks
along the powering chain of s, and final-round agreement with friSmoothFinalCodeword.
Smooth FRI Completeness and BCS-ROM Compilation #
Exact characterization of smooth FRI IOP verification: iopVerify (friSmoothIOP params)
accepts oracles on (stmt, chals) if and only if every queried starting position
(chals (Fin.last m)).queryIdxs a satisfies friSmoothSingleAccepts.
Perfect completeness of the smooth FRI IOP: for every codeword f₀ ∈ params.initialCode
and every challenge vector chals, the smooth FRI verifier accepts the honest prover's tables.
Perfect deterministic BCS completeness for smooth FRI: for any fixed-length hash H k,
Fiat–Shamir function hFS, and symbol encoding encSym, bcsVerify accepts bcsProve on every
codeword f₀ ∈ params.initialCode.
Perfect BCS ROM completeness for smooth FRI: in the lazy two-channel random-oracle model
with any digest length σ, the honest BCS-FRI game outputs PMF.pure true for every codeword
f₀ ∈ params.initialCode.
Succinct verifier Merkle query cost bound for BCS-compiled smooth FRI: for any proof prf
whose opening paths have length at most L_path, bcsVerifyROM makes at most
params.proofOracleQueries * (L_path + 1) = (kFinal + q * (aritySum + m + 2)) * (L_path + 1)
Merkle hash queries.
The binary header query schedule reads params.kFinal entries of the final oracle.
Folding-chain queries along a list of rounds rounds followed by the final-round check
(derived directly from friSmoothFoldQueriesList params.toSmooth).
All oracle queries for a single query repetition starting at s : Fin (2 ^ d) (derived
directly from friSmoothSingleQueries params.toSmooth).
Full committed-proof-oracle opening list of the FRI verifier: kFinal final-oracle
interpolation anchors followed by q query repetitions (derived directly from
friSmoothQueries params.toSmooth). This excludes the q scheduled input positions, with
multiplicity, tracked by friInputQueries.
Total length of friQueries matches params.proofOracleQueries.
Schedule of q scheduled input positions, with multiplicity, at which stmt suffices to
determine friDecide outside PublicCoinIOP.queries (derived directly from
friSmoothInputQueries params.toSmooth).
Total length of friInputQueries matches params.inputWordReads.
For ANY arbitrary oracle table πFinal, friFinalCodeword params πFinal lies in
params.rsCode params.m.
Check the folding chain and final Lagrange equation against the answer list for a single
repetition starting at s (derived directly from friSmoothCheckFoldList params.toSmooth).
Check a single repetition's answer block: round-0 binding to stmt s plus all folding and
final-codeword checks (derived directly from friSmoothCheckSingle params.toSmooth).
Check all repetitions in reps by consuming fixed-size blocks of length 3 * m + 2 (derived
directly from friSmoothCheckRepsList params.toSmooth).
FRI verifier decision procedure operating purely on stmt (determined by the q scheduled
input positions, with multiplicity, in friInputQueries params chals), chals, and the flat list
of params.proofOracleQueries queried prover-oracle answers (derived directly from
friSmoothDecide params.toSmooth).
Multi-round 2-to-1 FRI as a PublicCoinIOP:
m + 1rounds over depth-doracle tablesOracleTable d F.- Honest prover sends
padOracle (friHonestWord ...)using the previous rounds'foldScalars. - Verifier opens
params.proofOracleQueries = kFinal + q * (3 * m + 2)entries in the committed prover oracles (viaqueries), schedulesparams.inputWordReads = qinput positions, with multiplicity, ofstmt(tracked byfriInputQueries, for the combined word-query budgetparams.totalWordQueries = kFinal + q * (3 * m + 3)), and checks round-0 binding tostmt, allmfolding checks, and the final degree-< kFinalLagrange-anchor check.
Clean mathematical acceptance predicate for a single query starting index s : Fin (2 ^ d):
round-0 binding oracles 0 s = stmt s, all m 2-to-1 folding checks along the squaring chain of
s, and final-round agreement with friFinalCodeword params (oracles (Fin.last m)).
Binary-to-Smooth Bridges, Completeness, and BCS-ROM Compilation #
At params.toSmooth, the smooth folded target index friSmoothFoldedIdx equals the binary
positive index friRoundPosIdx.
At params.toSmooth, fiber point 0 of friSmoothFiberIdx equals friRoundPosIdx.
At params.toSmooth, fiber point 1 of friSmoothFiberIdx equals friRoundNegIdx.
At params.toSmooth, the smooth final-domain index friSmoothFinalIdx equals friFinalIdx.
At params.toSmooth, final-round domain evaluation coincides with FRIParams.eval.
Exact IOP equality: binary 2-to-1 friIOP params coincides identically with
friSmoothIOP params.toSmooth across proveRound, queries, and decide.
Exact equivalence between binary friSingleAccepts and smooth
friSmoothSingleAccepts params.toSmooth.
friDecide depends on the input word stmt only at the q scheduled input positions, with
multiplicity, in friInputQueries params chals (corollary of
friSmoothDecide_congr_inputQueries).
Exact committed-proof-oracle opening count of friIOP:
params.proofOracleQueries = kFinal + q * (3 * m + 2) for every statement and challenge vector
(excluding the params.inputWordReads = q scheduled input positions, with multiplicity, tracked
by friInputQueries).
Exact characterization of FRI IOP verification (corollary of
iopVerify_friSmoothIOP_eq_true_iff): iopVerify (friIOP params) accepts oracles on
(stmt, chals) if and only if every queried starting position (chals (Fin.last m)).queryIdxs a
satisfies friSingleAccepts.
Perfect completeness of the FRI IOP (corollary of friSmoothIOP_complete): for every
codeword f₀ ∈ params.initialCode and every challenge vector chals, the FRI verifier accepts the
honest prover's oracle tables.
Perfect deterministic BCS completeness for FRI (corollary of
friSmoothBCS_verify_prove_eq_true): for any hash function H k whose digests all have one
length, any Fiat–Shamir function hFS, and any symbol encoding encSym, bcsVerify accepts
bcsProve on every codeword f₀ ∈ params.initialCode.
Perfect BCS ROM completeness for FRI (corollary of
friSmoothBCS_honestROMGame_eq_pure_true): in the lazy two-channel random-oracle model with any
digest length σ, the honest BCS-FRI game outputs PMF.pure true for every codeword
f₀ ∈ params.initialCode.
Succinct verifier Merkle query cost bound for BCS-compiled FRI (corollary of
isCostBounded_bcsMTCost_friSmoothVerifyROM): for any proof prf whose opening paths have length
at most L_path, bcsVerifyROM makes at most
params.proofOracleQueries * (L_path + 1) = (kFinal + q * (3 * m + 2)) * (L_path + 1) Merkle hash
queries.