Repository navigation
Unconditional BatchedLineListCA, c = 3/2 STARK Sponge Chaining, Johnson-Regime Tensor STARK Soundness, and Multi-Arity HVZK Fix - #8
Merged
Conversation
…ards, and multi-arity HVZK fix
…Goldilocks htensor elimination
Port binary & multi-arity tensor STARK soundness (unpruned & pruned MMCS,
single & batch, constraints & LogUp lookups) from full-transcript Hit
(c = ((B.shards+1)*maxRounds+3)/2) to SpongeCommitted (entryCap = 1),
giving collision term 3*N^2/(2*|D|) independent of B.shards and maxRounds.
- Exec/Stark/SpongeGoodLogTensor.lean: GoodLogSponge, prob_not_goodLogSponge_le,
spongeToFS, deriveSpongeA and prefix-stability helpers.
- Exec/Stark/SoundnessTensorSponge.lean: shard-level and end-to-end sponge
soundness (generic RbrSound + unconditional UD) for verifyTensor,
verifyBatchTensor (+pruned), verify{,Batch}TensorMultiArityPruned.
- ShardGoodTensor / MultiArity.StarkSoundness: oracle-agnostic
shard_goodTensor{,Multi}_of_doomedL reused verbatim (no duplication).
- P3/GoldilocksExt3{,MultiArity}Soundness: Fp3 instantiations incl.
Digest (2^256) / Digest64 (2^512), compact400KBBalanced, ultraCompact400KBZk.
- Audit128: axiom locks (strictly propext, Classical.choice, Quot.sound).
All existing full-transcript theorems kept unchanged.
…ndness
Lemmas A-E beyond the unique-decoding radius (2^(-lb) < theta^2), zero sorry,
axioms [propext, Classical.choice, Quot.sound]:
- Lemma A (JohnsonBall.decodeOnSet_eq, Link.exists_decoder_of_not_claimsFail):
coherence of all claims at one height on one agreement set, no StrictMargin.
- Lemma B (exists_ballFinset): per-circuit interleaved Johnson ball has <= L tuples.
- Lemma C (ConstraintFailJ/AlphaFailJ/ZetaFailJ, fractionLE_alphaFailJ/zetaFailJ):
list-quantified constraint and out-of-domain rounds, error L*cB/|K|, L*zB/|K|.
- Lemma D (claimsFail_of_zetaFailJ, sdoomedTensorJL / sdoomedTensorMultiJL,
good_of_*, shard_goodTensor{,Multi}J_of_doomedL): Johnson state functions with
per-circuit balls, error independent of #circuits, heights and #shards;
SupportedJ carries the runtime tensor cap (tensorCap_of_checkTensor{,Multi}).
- Sponge (c = 3/2) Johnson soundness, binary and multi-arity, single and batch
pruned: soundness_verify{Batch,}Tensor{,MultiArity}PrunedSpongeJ.
- Lemma E (P3/GoldilocksExt3JohnsonStark): roundErrJ <= (3/4)/2^128 under explicit
system-size bounds; PCS discharge for v6 (569/1024, 71/128; L = 5) and EP1
(compact400KBBalanced 77/256 L = 8, ultraCompact400KBZk 37/128 L = 10);
Digest64 corollary <= N/2^128 for any number of shards.
Residual (documented): no LogUp balance claim in the Johnson regime.
Document the Tier-2 full-Goldilocks tensor PCS theorems, sponge chaining (c = 3/2), and the Johnson-regime STARK soundness (Lemmas A-E) with concrete v6/EP1 instances. Record residuals honestly: no lookup-balance claim in the Johnson regime (L^(#circuits*S)), explicit system-size hypotheses, lb >= 1, runtime tensor cap. No Verifier.lean preamble hook needed (t4-ix-stark passes v6BatchInit as the initial challenger).
…r Fp^3
Prove unconditional single-shard (B.shards = 1, arbitrary #circuits and #heights)
Johnson-regime STARK soundness including global LogUp balance over GoldilocksExt3
(Fp^3) without unique decoding, for both binary (v6) and multi-arity (EP1) tensor
FRI with c = 3/2 incremental sponge ROM and literal Digest64 <= N / 2^128 bounds:
- Theory/PcsRbrTensorJoint.lean: single-set joint-agreement tensor FRI RbrSound
(doomedTensorJoint, doomedTensorMultiJoint) with per-level geometric-sum Round 0
union bound (<= 2 * eps_0 instead of (R + 1) * eps_0).
- Exec/Stark/JohnsonShardBall.lean: pullback interleaved Johnson list over the top
shard domain (|L_shard| <= L_J), single-shard LogUp (beta, gamma) Schwartz-Zippel
bounds multiplying error by only L_J (no L_J^S blowup), and constraint/zeta bounds.
- Exec/Stark/JohnsonShardLink.lean: link single-shard joint decoder to
ClaimsFailJoint and ClaimsFailJointMulti.
- Exec/Stark/StateTensorJohnsonLogup.lean: single-shard Johnson + LogUp RBR state
(sdoomedTensorJ1L, sdoomedTensorMultiJ1L) and roundErrJ1.
- Exec/Stark/SoundnessTensorJohnsonLogup.lean: generic c = 3/2 sponge ROM theorems
(soundness_verify{,Batch}Tensor{,MultiArity}PrunedSpongeJ1) proving SingleShardSoundJ.
- P3/GoldilocksExt3JohnsonLogup.lean: concrete <= (3/4)/2^128 and Digest64 <= N/2^128
instantiations for v6 (theta = 569/1024, 71/128; maxLogDegree + 2 <= 31),
EP1 compact400KBBalanced (theta = 77/256; full Goldilocks maxLogDegree + 4 <= 32),
and EP1 ultraCompact400KBZk (theta = 37/128; maxLogDegree + 4 <= 31).
- Audit128.lean: Milestone 5 #guard_msgs #print axioms locks (propext, Classical.choice,
Quot.sound only).
arthurpaulino
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unconditional
BatchedLineListCA,c = 3/2STARK Sponge Chaining, Johnson-Regime Tensor STARK +S = 1LogUp Soundness, and Multi-Arity HVZK Fixremediation/t4-certifri→maine815d47(PR Formal Honest-Verifier Zero-Knowledge (HVZK), Polynomial Blinding, Masked-LogUp & Salted-Merkle Hiding forv6-zk#7)2baa40411f32521987069a8526ac3db50c7a5154(8 commits, 34 files changed, +22,486 / -654)sorry, zeroadmit, zeronative_decide/bv_decide, zero custom axioms; all new theorems are locked via#guard_msgs in #print axiomsinProofs/CertiFriProofs/Audit128.leanto strictly[propext, Classical.choice, Quot.sound], audited byscripts/CheckAxioms.lean(198 modules, 14,758 constants, 9,250 theorems), and replayed in standaloneleanchecker --verbose.Summary
This PR closes five soundness and verification gaps in
CertiFRIand its bundledmulti-starkRust crate so that full-scaleGoldilocksExt3($\mathbb{F}_{p^3} = \mathbb{F}_p[X]/(X^3 - X - 1)$) tensor-batched STARK profiles (v6and multi-arityEP1) are backed by machine-checked soundness beyond the unique-decoding radius without exponential width caps — including global LogUp lookup balance for arbitrary single-shard (S = 1) proofs:Multi-arity
v6-zkHVZK bug fix (multi-stark) & runtime tensor guards (CertiFri,multi-stark)multi-stark/src/p3_adapter/zk.rswheremin_zk_log_degreeignoredmax_log_arity(2Q + 2Dinstead ofQ · 2^{max(max_log_arity, 1)} + 2D), returninglogN = 7on 8-aryultraCompact400KBZk(Q = 55) instead of thelogN ≥ 9floor proved inV6ZkHvzk.lean.CertiFri.Stark.tensorCapOk) and Rust (multi-stark/src/p3_adapter/fri_batching.rs), matching the proved domain.Elimination of the exponential
htensorsize cap (BatchedLineListCAunconditional discharge)2^(kCol + kOpen)applications ofCurveListCA, capping2^(kCol + kOpen) · 2^logMaxHeight ≤ 2^36(v6) /≤ 2^33(EP1) — below fullIxVMtraces (~2^{39.5}).2c2f50a): RetunesEP1proximity parameters (θ = 35/128 → 77/256forcompact400KBBalancedand37/128forultraCompact400KBZk) and replaces the conservative2^63budget shortcut with the exact(3/4) · p^3 / 2^128 = 2^{63.585}budget (v6 → 2^37,EP1 → 2^38 / 2^37).3b270c8): Unconditionally provesbatchedLineListCA_of_curveListCAfromCurveListCA(m = 2) inTheory/ProximityGap/TensorMCA.lean(via random-linear collapse + double-counting + Lagrange interpolation +card_roots_lt), reducing2^(kCol + kOpen)scaling to linear(kCol + kOpen)and certifying full GoldilockskCol + kOpen ≤ 32 ∧ logMaxHeight ≤ 32(covering allv6,compact400KBBalanced, andultraCompact400KBZkwith zero changes to shipped FRI parameters.STARK-layer
SpongeCommittedchaining withc = 3/2independent of shard count (9ae7dc7)Exec/Stark/GoodLogTensor.leanused full-transcriptHitwith collision prefactor((B.shards + 1) · maxRounds + 3) / 2(c = 39.5for 1 shard up toc = 1236.5for 64 shards).SpongeCommitted(entryCap = 1), collapsing the collision term to3 · N² / (2 · |D|)independent ofB.shardsandmaxRounds.Johnson-regime (DEEP-ALI list-decoding) tensor STARK constraint soundness over$\mathbb{F}_{p^3}$ (
d86cfa7)c = 3/2sponge) from unique decoding (StrictMargin:JohnsonBall,StateTensorJohnson,P3/GoldilocksExt3JohnsonStark.lean) for arbitrary shard counts:v6:soundness_verifyBatchTensorPrunedSpongeJ_v6_569(_v6_71(_v6_569_digest64(EP1:soundness_verifyBatchTensorMultiArityPrunedSpongeJ_compact400KBBalanced(_ultraCompact400KBZk(Single-shard ($\mathbb{F}_{p^3}$ (
S = 1) Johnson-regime full-STARK soundness + global LogUp lookup balance over2baa404)B.shards = 1, arbitrary number of circuits and trace heights) proofs — coveringStarkShrinker/ Endpoint 1 and single-shardv6proofs — with zeroL^Sblowup:Theory/PcsRbrTensorJoint.lean: single-set joint-agreement tensor FRIRbrSound(doomedTensorJoint,doomedTensorMultiJoint,rbrSound_grind_tensor{,Multi}Joint) with per-level geometric-sum Round-0 union bound (Exec/Stark/{JohnsonShardBall,JohnsonShardLink,StateTensorJohnsonLogup}.lean: pullback interleaved Johnson listL_shardover the top domain (fractionLE_shardBalPoly_{beta,gamma}, linear factorclaimsFailJoint_of_shardZFailJ,sdoomedTensor{,Multi}J1L, andgood_and_bal_of_sdoomedTensorJ1L.Exec/Stark/SoundnessTensorJohnsonLogup.lean: genericc = 3/2sponge ROM theoremssoundness_verify{,Batch}Tensor{,MultiArity}PrunedSpongeJ1concludingSingleShardSoundJ(AIR + Stage-2 constraints AND global LogUp balance).P3/GoldilocksExt3JohnsonLogup.lean: concrete unconditionalroundErrJ1_le_128) andDigest64literalv6(lb=2, q≥128, pow=20, L=5, maxLogDegree+2 ≤ 31[≤536M rows]):soundness_verifyBatchTensorPrunedSpongeJ1_v6_{569,71}{,_digest64},soundness_verifyTensorPrunedSpongeJ1_v6_569{,_digest64}.EP1 compact400KBBalanced(lb=4, q=58, pow=28, θ=77/256, L=8, full GoldilocksmaxLogDegree+4 ≤ 32):soundness_verify{Batch,}TensorMultiArityPrunedSpongeJ1_compact400KBBalanced{,_digest64}.EP1 ultraCompact400KBZk(lb=4, q=55, pow=30, θ=37/128, L=10, maxLogDegree+4 ≤ 31[≤134M rows]):soundness_verify{Batch,}TensorMultiArityPrunedSpongeJ1_ultraCompact400KBZk{,_digest64}.Commit Breakdown
2c2f50ahtensorlift (v6 → 2^37,EP1 → 2^38 / 2^37), exact Goldilocks budget,tensorCapOk/tensor_htensor_within_capguards,multi-stark3-argmin_zk_log_degree(num_queries, ext_degree, max_log_arity)fix + regression tests3b270c8batchedLineListCA_of_curveListCA(TensorMCA.lean), full-Goldilocks (kCol + kOpen ≤ 32 ∧ logMaxHeight ≤ 32)v6/EP1PCS theorems, Tier-2 runtime cap (DEFAULT_TENSOR_CHALLENGE_CAP = 32)9ae7dc7Exec/Stark/{SpongeGoodLogTensor,SoundnessTensorSponge}.leanporting binary & multi-arity tensor STARKs (constraints & LogUp lookups) toSpongeCommitted(c = 3/2)d86cfa7Exec/Stark/{JohnsonBall,StateTensorJohnson}.lean&P3/GoldilocksExt3JohnsonStark.lean: full DEEP-ALI Johnson STARK constraint soundness (v6&EP1,c = 3/2,Audit128locked)5a4178cREADME.md&TODO.mdupdated with M1–M4 theorems and explicit open residuals4e6b795ringwithmul_assocon high exponents (2^287/2^364/2^1172) socd Proofs && lake build --wfailpasses with zero warnings4f563b7rustfmtonmulti-stark/src/p3_adapter/fri_batching.rs2baa404S = 1, arbitrary #circuits & heights) Johnson-regime full-STARK soundness + global LogUp balance overFp^3(PcsRbrTensorJoint,JohnsonShardBall/Link,StateTensorJohnsonLogup,SoundnessTensorJohnsonLogup,GoldilocksExt3JohnsonLogup,Audit128Milestone 5 + 21#guard_msgslocks)Breaking API Change (
multi-stark)multi_stark::p3_adapter::zk::min_zk_log_degreenow takes 3 arguments:multi-stark(src/types.rs,tests/fp3_v6_zk.rs) are updated. Downstream callers passing 2 arguments should passmax_log_arity(1for binary folding,2for 4-ary,3for 8-ary).Verification
Run on 64-core cloud CPU host (
Lean 4.34.1,rustc 1.98.1):CertiFri,CertiFriP3,CertiFriTest):lake build --wfail— green (60/60 jobs, Mathlib-free).CertiFriProofs+Audit128):cd Proofs && lake build --wfail— green (9,120/9,120 jobs, 0 warnings, 0sorry).scripts/CheckAxioms.lean— PASSED (198 modules, 14,758 constants, 9,250 theorems strictly[propext, Classical.choice, Quot.sound]);leanchecker --verbose— PASS on all 6 new M6 modules +Audit128.multi-starkcrate:cargo test— all suites pass (lib163+,fri_batching5/5,fp3_v612/12,fp3_v6_zk15/15 incl. 8-aryQ = 55logN ≥ 9enforcement and 256-row trace rejection at setup & prove,cap_binding3/3).Documented Residuals (Explicit Scope Boundaries)
S > 1) Johnson-regime LogUp balance: Single-shard (S = 1, arbitrary #circuits & heights) Johnson LogUp balance is now fully proved (2baa404). AcrossS > 1independent shards, Johnson LogUp faces an information-theoreticS, cross-shard LogUp balance remains proved in the unique-decodingSpongeCommittedc = 3/2regime [9ae7dc7], or would require batch-unified FRI query sampling across shards).GoldilocksExt3Johnson{Stark,Logup}:roundErrJ_le_128/roundErrJ1_le_128assume explicit linear size bounds on(cB, zB, cosetB, itemBound, lenBound)againstIxVM/StarkShrinkershapes is handled downstream (and forv6/ultraCompact400KBZk,roundErrJ1usesmaxLogDegree + lb ≤ 31due to the 2× geometric-sum factor inPcsRbrTensorJoint, whilecompact400KBBalancedcovers the fullmaxLogDegree + 4 ≤ 32).lb ≥ 1.tensorCapOkguard (logMaxHeight ≤ 32 ∧ kCol + kOpen ≤ 32), enforced in bothCertiFri/Stark/Verifier.leanandmulti-stark/src/p3_adapter/fri_batching.rs.Digestcaps at127.71 bcollision /127.27 bcombined; 64-byteDigest64achieves literal≤ N / 2^128). Quantum/QROM adversaries are not modeled.