Skip to content

Releases

v0.1.1

Choose a tag to compare

@AbdelStark AbdelStark released this 02 Dec 12:46
v0.1.1
98ab9f8

Peer-review hardening, unified cross-host verification records, and updated documentation for the standalone FlashProve H821 verifier in Bend 2 (pinned to Bend 2.0.40 and FlashProve 0.16.0-rc.26, commit 9e2bdd8).

Standalone source digest: b47502ec85d252b14a99ca72b1aef9eb59a0c34b54f52ba778bc4e1a9edc73b8, rechecked by Bend's independent BendTT kernel (make kernel-check).

Proofs and verification hardening

  • Canonical Goldilocks decoding across Commitment.canonical (src/commitment.bend) and record_seeds.base (src/record_seeds.bend) now calls the proven Ch.field_candidate, matching transcript.bend and opening_bytes.bend. Gl.radix() spelling is aligned in src/goldilocks.bend, and Law 25 (e3_canonical in LAWS.bend, PROOF.bend, and proofs/e3_canon.bend) passes with zero axioms alongside all 151 transitive standalone modules under make kernel-check (BendTT, Lean v4.34.0).
  • src/weight_layout.bend clamps 48-bit Nat multiplication and accumulation in place, push, and clog2 (pre_refusal), avoids eager evaluation on oversized L inputs, removes duplicate layout construction in checked, and adds regression tests (including a multi-unit L = 1 overflow case and v > 2^47) in tests/weight_layout.bend.
  • scripts/test-request-stage.py adds a bit-48 binding-slot negative test, scripts/mutate-refusals.py covers dynamic-message Header.require sites (185 mutated sites covering 190 of 412 "NO: " occurrences in src/), and the extended workflow's --strict --names gate expands to 7 checks (noncanonical-element, public-table-length, KL-length, plan-length, request-binding-slot, lin_run:reason, policy_tables:error).
  • Planner differential checkers (scripts/plan-chains-check.py, scripts/plan-first-check.py, Makefile) enforce exact key-set equality, non-empty counts, explicit accounting stages (--expect-stages), and rejection of stray short stdin lines. build/plan-first-reference.txt has an atomic Make target, and C++ reference cache checks include upstream.lock.

Unified verification and benchmark records (d1f53309)

Matched M4 Max, Xeon 8480CL, and H100 runs were recorded on standalone digest d1f53309, prior to the 48-bit Nat clamp in src/weight_layout.bend (unchanged on the four admitted layouts and re-verified on M4 Max with make perf-gate at 1.47× C++ CPU time).

Host Workload Bend (1 worker, vs. Lean) Bend (16 workers) 16-worker paired reference Report
Apple M4 Max full-size (17.91 MiB, 1,001 tokens) 15.60 s (vs. 56.67 s) 7.11 s (vs. Lean) / 7.12 s (vs. C++) Lean OnBytes 56.70 s (7.98×); C++ -j 1 7.95 s (10.4% faster) M4 rerun
Intel Xeon Platinum 8480CL full-size (17.91 MiB, 1,001 tokens) 34.48 s (vs. 94.78 s) 16.23 s (vs. Lean) / 16.63 s (vs. C++) Lean OnBytes 92.73 s (5.71×); C++ -j 1 18.50 s (10.1% faster) Xeon rerun

The Xeon rerun also recorded Linux BendTT kernel checking (95 s), 7/7 strict CI mutations killed, and a 10-site delta sweep (1 killed, 9 shadowed or self-check sites surviving). A fresh NVIDIA H100 next-token proof (Slurm job 7958) verified against cp_verify under a new commitment after fixing scripts/cluster/fresh-proof.sh to pre-warm partial-clone promisor blobs before read-only Apptainer mounts (fresh-proof record).

Tooling, CI, and documentation

  • Parallel scripts/bootstrap.sh symlink races are fixed, and scripts/kernel-check.sh falls back to Python 3.14+'s built-in compression.zstd.
  • .github/workflows/verify.yml sets persist-credentials: false and bounds the conformance job timeout, .github/dependabot.yml enables automated dependency updates, and actions/upload-artifact is updated to v7.0.2 (#96).
  • README.md, CONTRIBUTING.md, and docs/spec/ are aligned on verified proof boundaries and paired measurements. The verbatim upstream NOTICE is replaced with an Apache-2.0 §4(d) attribution notice, and CITATION.cff, CHANGELOG.md, .github/ISSUE_TEMPLATE/config.yml, and .github/social-preview.png are added.

Limits

No formal proof yet shows that Bend acceptance implies FlashProve's Lean acceptance for every input. Runtime configuration admission outside the four bundled H821 profiles remains tracked in #31, #88, and #32.

Full changelog: v0.1.0...v0.1.1

v0.1.0: a standalone FlashProve verifier in Bend 2

Choose a tag to compare

@AbdelStark AbdelStark released this 01 Dec 15:54
5fe7b8c

The first public release of a standalone FlashProve verifier written in Bend 2. Given a model commitment, the tokens and a proof, it checks that every covered token is the committed integer model's first choice. It runs on a CPU and never sees the weights.

What works

  • All four published configurations at both model sizes, the larger one with Llama 4 Maverick's dimensions. Each is checked under both acceptance policies, exact match and clipped gap.
  • The whole verification runs in Bend: the key, the selected leaf and the request. Bend compiles to C, and the C entry point only passes the arguments in.
  • One executable for any worker count. It prints the same answer with 1 worker or 16; 91 of 91 comparisons are identical.

Results

The full-size proof is 17.9 MiB and covers 1,001 tokens. Each time is the median of three fresh processes, from launch to exit. Every row measures the same Bend source (digest 7eb80fa0).

CPU Bend, 1 worker Bend, 16 workers Lean OnBytes C++ cp_verify -j 1
Apple M4 Max 18.24 s 8.20 s 63.71 s 8.54 s
Intel Xeon Platinum 8480CL (16 cores) 34.46 s 16.08 s 94.64 s 21.01 s (one core)
  • Against Lean OnBytes, FlashProve's native Lean verifier, Bend is 3.5× faster with one worker and 7.75× faster with 16 workers on the M4. On the Xeon the figures are 2.75× and 5.8×.
  • Against the C++ reference with one worker each, Bend takes 2.1× (M4) and 1.6× (Xeon) as long. With 16 workers it finishes first on both machines.

M4 report · Xeon report · Measurement protocol

How it is checked

  • Conformance: all four published proofs verify, and Bend and C++ both reject all 122 altered proof sets and all 256 fuzzed proofs. A separate campaign added 40,000 fuzzed inputs. A fresh proof from an H100 prover, under a new commitment, passed both verifiers.
  • Types and kernel: all 164 modules pass Bend's dependent type checker. Bend's independent kernel (Lean v4.34.0) rechecked the standalone verifier and the proofs.
  • Proven laws about the verifier's own code, checked on every commit:
    • the 32-bit carry and borrow helpers compute a + b and a − b;
    • the Goldilocks product and reduction return the canonical residue;
    • the cubic extension product is the schoolbook product modulo X³ − 2;
    • the canonical decoders are exact, and reading bytes into words and back gives the same bytes.
  • Plans derived in Bend. Bend derives all 28 bundled transcript chains, byte for byte, from the public configuration files: chain parameters, round accounting and weight placement. The ported planner agrees with the pinned C++ at every layer.
  • CI runs six parallel groups in about 15 minutes of wall time on every pull request, and fails if Bend's CPU time drifts beyond a budget relative to C++ on the same runner.

Limits

  • No end-to-end proof yet. Nothing yet proves that Bend's acceptance implies the Lean verifier's acceptance for every input. The proven laws cover the arithmetic and decoding layers.
  • Four configurations only. Some planner inputs still come from catalogs tied to the four published configurations. Deriving those inputs for configurations that were not shipped is tracked in #31, #88 and #32.
  • Assumptions behind bits=128. The security target assumes the proof-of-work rounds and commitment binding. Read the assurance contract before relying on it.
  • Synthetic weights. The larger model uses synthetic weights. The verifier is pinned to FlashProve 0.16.0-rc.26 (9e2bdd8) and Bend 2.0.40.

Try it

make bootstrap upstream standalone
make smoke   # about 40 s warm: both small proofs, plus one altered bit that must be refused