Skip to content

Consolidated CertiFRI + multi-stark/ v6 128-Bit Formal Soundness, Native BLAKE3 AIR, & CUDA Prover - #9

Open
johnchandlerburnham wants to merge 154 commits into
mainfrom
jcb/certifri-consolidated
Open

johnchandlerburnham wants to merge 154 commits into
mainfrom
jcb/certifri-consolidated

Conversation

@johnchandlerburnham

Copy link
Copy Markdown
Member

Scope: Consolidates every active CertiFRI workstream (remediation/t4-certifri, verified128/checkpoint-1, jcb/certifri-batch5a, jcb/certifri-batch5b, jcb/opt3-ep1-turbo, jcb/certifri-v128-batch5b, jcb/certifri-p5-gpu, jcb/certifri-p6-s1retain, and jcb/certifri-p6-quotient) onto one unified, CI-green branch so ix, aiur, and stark-shrinker can pin a single argumentcomputer/CertiFRI revision.


Summary of Changes

1. Formal 128-Bit Soundness, Extraction, & CI (origin/main → verified128/checkpoint-1 e607644)

Preserved verbatim as an exact linear ancestor of HEAD (0 Lean diffs vs verified128/checkpoint-1):

  • PR Unconditional BatchedLineListCA, c = 3/2 STARK Sponge Chaining, Johnson-Regime Tensor STARK Soundness, and Multi-Arity HVZK Fix #8 (remediation/t4-certifri 2baa404): Unconditional BatchedLineListCA, c = 3/2 STARK sponge chaining, Johnson-regime tensor STARK soundness (including single-shard S = 1 + LogUp balance over $\mathbb{F}_{p^3}$), and multi-arity HVZK fix.
  • verified128/checkpoint-1 (e607644): Byte-level straight-line extractor and knowledge soundness for the pinned batch verifier with generated keys at the keyed soundness bound (with no residual hypothesis), executable fixed-trace commitments (pinned_three_shard), integer lookup balance semantics per channel, plain-statement row-level constraint enforcement, axiom-pin guards (scripts/CheckAxioms.lean), and unified CI (scripts/ci.sh + .github/workflows/ci.yml).

2. Native BLAKE3 AIR, Prover Key Disk Cache, & Plonkish EP1-Turbo (multi-stark/ Batch 5a — 8ee26cb..25f6370)

  • Native 16-Row Blake3Air Chip & 3-Byte Plonkish Bridge (src/blake3_air.rs, src/plonkish/{builder,hash,stark,witness}.rs): Adds native 16-row Blake3Air constraints and compact 3-byte Plonkish hashing bridge (compact_hash tests), cutting EP1-Turbo compression proving overhead.
  • BLAKE3-Verified ProverKey Disk Cache (src/cache.rs): Persistent, integrity-verified disk cache for System and ProverKey preprocessed commitments, plus CacheMode::CompactNoLde (.orig + .merkle + .meta, recomputing LDE on load) and safe 1× trace materialization outside snapshot locks.
  • Multi-Stage CUDA Streaming & Batching (src/cuda/{mod,mmcs,pcs,sppark,witness}.rs, cuda/{kernels,sppark_ntt}.cu):
    • Batched same-height GPU NTT/LDE across Stage 1 generated, Stage 2 lookup, and Stage 3 quotient commits + GPU BLAKE3 PoW grinding offload (781bd17, 963ac67).
    • Direct-read sub-warp BLAKE3 leaf hashing up to 1 MiB rows (9a299e9).
    • Streamed quotient zeros and lookups with lifted occupancy launch caps (8ee26cb).

3. CUDA Kernel & Memory Pipeline Overhaul (multi-stark/ Batch 5b — 3c1c111..90b0ead)

  • GPU-3 (3c1c111): Packed quotient bytecode IR, 12-instruction Goldilocks modular arithmetic (cuda/goldilocks.cuh), SMEM lookup evaluation, batched Stage 3, and 1 GiB temporary buffer cap.
  • GPU-4a/4b (f5a5416): Coalesced Acc160 quotient accumulation, padded NTT stride, tiled coset shift, and swizzled scatter.
  • GPU-5-keep (90b0ead): Warp-coalesced bit-reversed selectors, 4× row-strip gather/scatter, and stream synchronization / slab pool cleanup.

4. Wave 5 GPU Memory Headroom & Stage-1 Retention (jcb/certifri-p5-gpu — b118798..74976c7)

  • Fixed cuda/pcs.rs proactive_spill Cliff (7e4e06f): Replaced the source_bytes >= total_bytes / 12 (8.55 GB) premature spill trigger (which caused a 6.1× lookup_sum regression above 1.57B cells with 52–64 GiB VRAM free) with an actual low-headroom guard (source_bytes >= total_bytes / 4 && free_bytes < total_bytes / 3), unlocking 2.0B cells/shard on 96 GiB GPUs with zero NVMe spill.
  • Truncated Stage-1 Merkle Tree Retention (b118798, 431c10f, e5e0320): Retains truncated Stage-1 Merkle trees up to a 512 MiB cap with reuse hooks (100% Stage-1 tree reuse across aggregation joins) while dropping unretained 1× host traces promptly.
  • Opt-In Quotient/Lookup Leaf Rematerialization (b118798, e5e0320, 74976c7): Defaulted off on large-L2 GPUs (where remat regresses BLAKE3 compression by +66–69%), preserved behind MULTI_STARK_QUOTIENT_REMAT_TARGET for memory-constrained cards.

5. Wave 6 P6-1 Host Upload & Retention (jcb/certifri-p6-s1retain — 43a2444..70ddeb6)

  • Batched 128 MiB Pinned Upload Ring + MADV_HUGEPAGE (43a2444, c37c611): Cuts Stage-1 R2 upload latency by -64.8% on joins while keeping peak VRAM flat.
  • Evictable 1× Stage-1 GPU Retention (43a2444): Opt-in device-side 1× retention (off by default to preserve full 96 GiB headroom).
  • Wave Order HWM Fix (70ddeb6): Restored first_index wave ordering after measuring +4.32 GiB concurrent per-stream scratch pool pinning from LPT sorting.

6. Wave 6 P6-2 Quotient Occupancy & Zero-Stall Async Direct PTX HotSpot JIT (jcb/certifri-p6-quotient + f974649 — fba2ede..f974649)

All changes are strictly P0 (zero wire format, verifying key, or proof-byte changes):

  • P6-2a Interpreter Occupancy & Register Pressure (fba2ede):
    • Eliminated the 13× IPC collapse on tile=32/64 SMEM launches (1 warp/SM, 2.08% occupancy on sm_120): promotes < 192 threads/SM circuits to L1/L2-backed global scratch with cudaSharedmemCarveoutMaxL1 (128 KB L1/SM) and SM-aligned blocks = k * sm_count.
    • Outlined cold Ext3 lookup handlers (__noinline__), cutting evaluate_quotient_packed_t<Ext3> register usage from 166 → 148 (STACK=0, LOCAL=0).
  • P6-2b Zero-Stall Async Background Direct PTX HotSpot JIT (cuda/quotient_jit.cuh, cuda/kernels.cu, src/cuda/mod.rs — 7ba70db..5f1b4c8):
    • Zero build-time driver/NVRTC link dependencies: Dynamically loads libcuda.so.1 (dlopen) and compiles hot SSA quotient graphs (rows >= 524,288, HotSpot 4B cumulative row-nodes) via an out-of-process lock-free posix_spawn(ptxas -arch sm_XX -O1 -maxrregcount 128) worker pool (2 workers at nice +15, env MULTI_STARK_QUOTIENT_JIT*), falling back cleanly to the P6-2a interpreter on first hit or if ptxas is unavailable.
    • Eliminates interpreter & scratch bottlenecks: Outlined PTX ABI .param .func helpers for ext2_mul/ext3_mul, 512-node .visible .func chunk splitting, SSA linear-scan (16 %s registers) that never spills Var loads to scratch (Blake3 2,368 → 64 mem slots = -97.3%), algebraic constant identities, and headroom-aware 512 MiB global scratch budget.
    • Deterministic opt-in on-disk CUBIN cache (MULTI_STARK_QUOTIENT_JIT_CACHE_DIR): Added explicit zero-initialized _pad: u32 (static_assert(sizeof(ConstraintNode) == 32)) and field-by-field nodes_equal (5f1b4c8), achieving 83/83 (100.0%) cross-run cache hits with 0.064s total load_ms.
  • CI Hygiene (f974649): Applied cargo fmt --all across 10 pre-existing files and updated cuda_full_system_multi_arity_v6_zk trace heights (256, 2048, 512) → (512, 4096, 1024) to satisfy v6-zk's 512 minimum height check.

Blackwell (RTX PRO 6000 Blackwell Server Edition, sm_120, 96 GiB) Benchmarks

Measured end-to-end on ix compiled IxVM (Init+Std, 2.0B default cell budget, zero NVMe spill, bit-exact aggregate root af371c00364cf07a908b11245f7da972036bf7c68a0206301f960d207db94e05, independently verified via Pure-CPU zero-CUDA ix verify --aggregate):

Stage / Arm Init+Std Wall Peak RSS Peak VRAM (>85G) quotient_eval Total GPU proving
Batch 5b (1.0B default) 8:51.47 — — — —
Wave 5 (p5-gpu 74976c7, 2.0B) 7:31.99 (-15.0%) 80.77 GiB 84.47 GiB — —
Wave 6 P6-1 (p6-s1retain 70ddeb6) 7:25.94 (-16.0%) 80.77 GiB 84.47 GiB (0/446) 82.68s 271.6s
Wave 6 P6-2a (fba2ede, interpreter) 7:16.88 (-17.8%) 75.20 GiB 84.41 GiB (0/437) 52.92s (-36.0%) 241.7s (-29.9s)
Wave 6 P6-2b R7 Cold (5f1b4c8, 2w +15) 7:26.22 74.09 GiB 84.26 GiB (0/447) 40.02s (-51.6%) 231.4s (-40.2s)
Wave 6 P6-2b R7 Warm (83/83 = 100% hit) 7:37.26* 88.07 GiB* 84.66 GiB (0/458) 26.08s (-68.5% / 3.17×) 216.6s (-55.0s / -20.3%)

*On Init+Std, wall clock is CPU-execution-bound (claim 5 vs join 2 tie shifted DAG scheduling by +12s on the warm pass).

Measured Full Mathlib (689,237 constants, 1,191 shards, 100% HONEST COLD, ZERO perf env overrides, ZERO NVMe spill)

Measured on ix @ 561ed4bd71 pinning this exact branch (f974649452), bit-exact aggregate root 8937429c8c1d9e20e71e94631a4a5e1ae4d86eb5f77f66fd71a3fad1bc986ee4, verified via Pure-Lean zero-FFI ix verify --aggregate (3.46s, 0.77 GiB RSS) + 4/4 tamper negative controls:

Full Mathlib Metric Batch 5b Wave 5 (74976c7) Consolidated f974649452 Delta vs Wave 5 / Batch 5b
Stage 1 Prove Wall (100% COLD) 1h 25m 56s 1h 17m 21s 1h 08m 19s (4,099s) -9m 02s (-11.7%) / -17m 37s (-20.5%)
STARK prove (round2 GPU) — 1,956.6s 1,191.0s -765.6s (-12m 46s / -39.1% / 1.64×!)
Total GPU proving (Claims + Joins) — 3,553.5s 2,680.2s -873.3s (-14m 33s / -24.6%!)
Multi-STARK quotient (1,191 sh) — ~1,150s (~59%) 353.9s (31.7%) ~3.25× faster (no longer #1!)
Peak VRAM (>88 GiB) / Spills — / 0 87.32 GiB / 0 87.48 GiB (0/2,050 >88G) / 0 +0.16 GiB (flat), 8.11 GiB headroom
Pinned aiur_shrinker v3 (v6) — 1m 05.11s 0m 48.55s (3.95 MB, 2.60s CPU verify) -16.56s (-25.4%!)
Warm plonkish EP1-Turbo (v6) 3m 51.3s 3m 37.52s 3m 35.50s (510.3 KiB, 4.60 ms STARK verify) -2.0s / -15.8s

Verification Results (f974649452081214c0190fbb1470c37037af1402)

multi-stark/ CPU & CI (scripts/ci.sh multi-stark)

  • cargo fmt --all -- --check: PASS (0 diffs)
  • cargo clippy --release --locked --all-targets --features parallel -- -D warnings: PASS (0 warnings)
  • cargo clippy --release --locked --all-targets --no-default-features -- -D warnings (at 5f1b4c8): PASS (0 warnings)
  • cargo test --locked --profile dev-ci --features parallel: PASS (244/244 passed, 0 failed, 2 ignored)

multi-stark/ CUDA (RTX PRO 6000 Blackwell, sm_120, CUDA 13.3)

  • cargo clippy --release --locked --all-targets --features cuda,parallel -- -D warnings: PASS (0 warnings)
  • cargo clippy --release --locked --all-targets --features cuda -- -D warnings (at 5f1b4c8): PASS (0 warnings)
  • cargo test --release --locked --features cuda,parallel -- --test-threads=1: PASS (307/307 passed: 260/260 lib incl. cuda_full_system_multi_arity_v6_zk + 47/47 integration, 0 failed)
  • MULTI_STARK_QUOTIENT_JIT=force CUDA quotient suite (8 default + 6 --ignored): PASS (14/14 passed, 231 JIT compiles, 0 failures)
  • MULTI_STARK_QUOTIENT_JIT=force MULTI_STARK_QUOTIENT_JIT_CHUNK_NODES=16: PASS (14/14 passed)

Formal Lean 4 Proofs (CertiFri, CertiFriP3, CertiFriProofs)

  • git diff origin/verified128/checkpoint-1..HEAD -- ':!multi-stark' is empty (0 files changed) — all Lean sources, proofs, axiom checks, and CI scripts are bit-identical to origin/verified128/checkpoint-1 (e607644) and will be re-validated automatically by GitHub Actions (Lean build, kernel replay, axioms).
  • (Note: origin/jcb/ep1-zk-verifier 7de946f for v6-zk EP1 Lean soundness remains separate and is intentionally not included in this PR.)

johnchandlerburnham and others added 30 commits November 29, 2026 23:01
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).
…ped profiles

Adds the building blocks set out in docs/verified-128-bit-stark-design.md.
Builds with `lake build --wfail` in both packages (9142 jobs in Proofs).

Executable (Mathlib-free):
- CertiFri/Stark/Admissible: Profile, numericOk, batchCoveredOk, FixedOk /
  HeightOk / LookupsPlain checkers, System.admissible.
- CertiFri/Stark/VerifierZk: verifier for the hiding (v6-zk) proof shape,
  with a hidingMmcs wrapper for salted leaves.
- CertiFriP3/Wire, VerifyBytes: byte decoders for key, claims and batch
  proof, and Profile.verifyBytes comparing verified with expected claims.

Proofs:
- AdmissibleSound: soundness of each check; Johnson instances restated over
  the Bool checks.
- GoldilocksExt3Ud160: unique-decoding STARK soundness and lookup balance at
  (lb 2, q >= 160, pow 20), delta = 3071/8192.
- Digest32Budget: N'/2^128 under 6 N' <= 2^128 for the 32-byte digest.
- LookupsGeneral, JohnsonLookups, GoldilocksExt3JohnsonLookups: generalised
  LogUp sum identity, stage-1 Johnson ball, lookup-round events and bounds,
  joint-witness core, bad-log bounds for both Endpoint 1 profiles.
- BalanceWeight, MultiplicityWeight, BalanceIntBatch: integer balance from
  field balance under a weight bound; sent = received for fixed-arity
  messages.
- ShapeZk: hiding-shape facts and the single-circuit reduction of the check
  at zeta.
- EncodingInjective, ChallengerUniform(Core), ByteOracle, ByteLink: hash
  input injectivity, exact rejection sampling, the byte-level experiment,
  and obstruction theorems for the ideal-to-byte link.
- WireRoundTrip, VerifyBytesCovered: decoder round trips; acceptance implies
  the batch bounds.
- Audit128/*: axiom pins for the above.

Not yet proved: the Johnson lookup-balance headline, integer balance for
prover-chosen table multiplicities, hiding-shape soundness, and the
ideal-to-byte link (stated as ByteLinkObligation). See the design doc's
"Corrections from the first implementation pass".
…hard

Proves the joint-witness soundness theorem for the pruned, sponge-chained
batch verifiers, binary and multi-arity
(soundness_verifyBatchTensor{,MultiArity}PrunedSpongeJBL): the probability
that an accepted, covered batch has no tuple in its circuit's Johnson ball
that both satisfies every constraint and has balanced lookup messages is at
most N' * eps + 3 N'^2 / (2 |D|), with eps bounding roundErrJB.

Hypotheses beyond the constraint-only Johnson theorems:
sys.circuits.size = 1, LookupsPlain for that circuit, (2 : K) != 0, and
B.shards = 1.

Adds concrete GoldilocksExt3 instances for compact400KBBalanced (L = 8) and
ultraCompact400KBZk (L = 10) at (3/4)/2^128 per query, and axiom pins.

No existing declaration is changed; the private sponge helpers needed are
copied into the new file. `lake build --wfail` passes (9143 jobs).
…the state function

The shard and batch wrappers for the Johnson regime are now generic in a
state function P that implies sdoomedTensor(Multi)JL and holds of the empty
transcript, and additionally return `ShardTranscript P m0 l β γ`: the
shard's transcript is in state P, with its first message read from the
log's committed rows and its first two challenges. The constraint-only
theorems instantiate P at the Johnson state; the joint constraint-and-
balance theorems instantiate it at the state with the lookup rounds and
finish with two arity-independent lemmas
(`not_lookupFailJ_of_shardTranscript`, `exists_balanced_of_batchChecks`).

Removes the copied helper lemmas and the duplicated JBL wrappers, and three
older private duplicates (`baseRows_congr` in ShardGood and ShardGoodTensor,
`sizes_of_shapeOkT`). `baseRows_congr`, `sizes_of_shapeOk`,
`digestsIn_batchFirstMessageS` and `headerOk_of_shardOkS` become public.

Statements of every `soundness_*` theorem are unchanged.
…es by checks

One `Profile` and `BatchBounds` (CertiFri/Stark/Admissible.lean), with the
FRI parameters, the size bounds, the list size `L`, `zk` and a new flag
`rejectInactivePreprocessed` (default false). `Profile.verifyBytes` and its
lemmas use it; `Profile.preambleOk` checks coverage and, under the flag,
`Admissible.fixedActiveOk` before the STARK verifier runs.

Proved:
- `Profile.verifyBytes_fixedActive`: under the flag, every accepted batch
  activates, in every shard, every circuit with a fixed trace.
- `Admissible.openingOk_sound`: `maxWidthBound sys d ≤ 2^32`,
  `maxOpeningsBound sys ≤ 2^32`, `maxLogDegree ≤ 32`.
- `Admissible.singleOk_sound`: one circuit, plain lookups for it under
  `admissible`, one shard.
- `soundness_verifyBatchTensorMultiArityPrunedSpongeJBL_{compact400KBBalanced,
  ultraCompact400KBZk}_checked` and `_digest32_checked`: the joint-witness
  instances with `admissible`, `numericOk` (lookup rounds with factor L) and
  `singleOk` in place of every hypothesis on the system and the bounds.
- `soundness_verifyBatchTensorPrunedSponge{,_lookups}_ud160_checked`: the
  160-query instances over `admissible`, `numericOk` at L = 1 and `openingOk`.
- `soundness_verifyBatchTensorMultiArityPrunedSpongeJBL_*_digest32`:
  `≤ N' / 2^128` under `6 N' ≤ 2^128` for the 32-byte digest.

The `_checked` instances move to P3/GoldilocksExt3Checked.lean, leaving
Exec/Stark/AdmissibleSound.lean generic. Docstrings of the
`_ultraCompact400KBZk` theorems state that they cover the non-hiding proof
shape only. All new theorems are pinned in Audit128 to
[propext, Classical.choice, Quot.sound] or a subset.
…ulti-stark

The fixtures (CertiFriTest/vectors/stark/v6-bytes, from Ix's
Tests/Fixtures/MultiStark) are accepted under a profile with the key's FRI
parameters and the batch sizes as bounds, and rejected after flipped proof,
claims or key bytes, truncation, tighter bounds, other parameters or a hiding
profile. `admissible`, `numericOk` (L = 1) and `openingOk` hold on every key;
`singleOk` only on single_no_prep. `two_shard` is accepted by default and
rejected with `rejectInactivePreprocessed`. Fixed tables at another height
are rejected; a nonzero commit grinding witness at zero bits is accepted, as
in Plonky3.

The design document records what the fixtures establish, that they use binary
folding with 77 queries and 10-bit query grinding, and the inactive
fixed-trace difference from Ix and the flag.
…ties

Field balance of senders (small integer lifts) against table receivers
(prover-chosen multiplicities) gives membership and counting by message,
and integer balance with equal sent/received multisets when table entries
are distinct. Adds executable checks with soundness for the sender/receiver
classification, booleanity from c*(c-1) zeros, channel arity, and distinct
entries of a fixed table, with corollaries for allItems, the unique-decoding
lookup conclusion and the Johnson joint witness.
…ti-circuit Johnson balance

Prove the design-C pinning lemma (an out-of-domain sample separates the
members of a Johnson ball except on a C(L,2)*d/|K| fraction, additively over
the (shard, circuit) pairs of a batch), the pinned state function over the
rounds z0, beta, gamma with unique-decoding lookup errors, and the
joint-witness core for balance across all circuits and shards. For the
unchanged protocol, prove the L^P union bound over selections.

Document why cross-shard balance at 128 bits fails for the multi-circuit
profile: shards fork after beta, gamma, so an adversary with two codewords
at agreement 5/8 per shard solves a subset-sum after the lookup challenges
and grinds each shard's queries separately, at about 2^114.8 queries.
…s and shards

Lift the selection-level lookup rounds to the pruned tensor batch verifiers
(binary and multi-arity): a state function with the lookup rounds over
selections of one stage-1 tuple per (shard, circuit) pair, its bad-log bounds,
the transcript and batch-check glue across shards, and the soundness theorems
with one witness per pair for constraints and balance over the whole batch.
The lookup rounds cost L^(shards * circuits) times the unique-decoding errors,
which the accompanying analysis shows cannot be avoided across shards without
a protocol change.
samuelburnham and others added 26 commits December 1, 2026 20:26
# Conflicts:
#	Proofs/CertiFriProofs.lean
#	docs/verified-128-bit-stark-design.md
…607644)

Preserves 100% of Batch 5b Blackwell CUDA kernels (Blake3Air 16-row chip,
CompactNoLde cache, GPU-2b batched NTT/LDEs, GPU-3/GPU-4 packed Acc160
quotient + 128B padded NTT, GPU-5-keep warp-coalesced bit-rev selectors +
4x row-strip gather/scatter) and 100% of verified128/checkpoint-1's
250 Lean 128-bit knowledge-soundness proofs, stage-1 pinning (pinning.rs,
batch.rs, verifier.rs), and byte fixtures.

Also implements CudaTwoAdicFriPcs::open_with_known across resident GPU,
streamed GPU, and CPU fallback paths so GoldilocksV6Config::open_with_known
works identically under both CPU and --features cuda (preserving known z0
openings and passing values_from_the_commitment_are_not_evaluated_again on GPU).
…1 Merkle retention, 1x trace retention, and parallel small lookups
…axr=128, never spill Vars, and gate JIT on rows>=1M
…c blocks, unpin loop params, and add HotSpot 4B-work tier-up
…JIT worker pool + 512-node chunks + opt-in cubin disk cache
…2 to eliminate CPU contention and transient RSS
arthurpaulino
arthurpaulino previously approved these changes Dec 3, 2026
@johnchandlerburnham
johnchandlerburnham dismissed arthurpaulino’s stale review December 3, 2026 15:59

The merge-base changed after approval.

arthurpaulino
arthurpaulino previously approved these changes Dec 3, 2026
@johnchandlerburnham
johnchandlerburnham dismissed arthurpaulino’s stale review December 3, 2026 16:10

The merge-base changed after approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants