FROST-GKR: Frobenius Reduction Over Shifted Tables for batched Poseidon2b relations over binary tower fields. https://lab.parano1d.org/research/frost-gkr-global-trace-protocol/
Find a file
ignotusnemo 0c08595306 Add ragged GKR for unequal Poseidon regions
Implement one 66-layer GKR walk across unequal-width Poseidon2b regions without materializing max-width padding. Keep committed rows in GF(2^128), move sumcheck messages to GF(2^256), and accelerate the prover with paired AVX2/VPCLMULQDQ products.

The production-width comparison proves the same claims through independent, physically padded, and ragged paths. On the i7-1365U run, ragged proving has a 10.830 s median versus 17.609 s for nine independent walks, while reducing the raw algebraic transcript from 2,272,512 to 363,264 bytes. Physical padding expands 360,448 native rows to 1,179,648; the fastest isolated samples are 32.155 s padded and 10.621 s ragged.

All proof variants verify and discharge their native terminals, mutated transcripts are rejected, and the flat SIMD arithmetic is differentially checked against the public tower-field implementation.
2026-08-11 22:12:45 +01:00
.cargo release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
.github/workflows release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
benchmark Add ragged GKR for unequal Poseidon regions 2026-08-11 22:12:45 +01:00
crates Add ragged GKR for unequal Poseidon regions 2026-08-11 22:12:45 +01:00
results Add ragged GKR for unequal Poseidon regions 2026-08-11 22:12:45 +01:00
.gitignore release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
BENCHMARK.md release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
Cargo.lock release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
Cargo.toml release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
CITATION.cff release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
LICENSE release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
NOTICE release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
RAGGED.md Add ragged GKR for unequal Poseidon regions 2026-08-11 22:12:45 +01:00
README.md Add ragged GKR for unequal Poseidon regions 2026-08-11 22:12:45 +01:00
rust-toolchain.toml release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00
SECURITY.md release: publish standalone FROST-GKR artifact 2026-07-19 20:22:43 +01:00

FROST-GKR

Frobenius Reduction Over Shifted Tables

Protocol explainer · Paper · Published benchmark · Ragged multi-instance GKR

FROST-GKR is a research component of ParanO(1)d, a proof-native Layer 1 secured by proof of work. This repository publishes the construction, reference implementation, and comparative benchmark as a self-contained artifact.

FROST-GKR is a GKR arithmetization for repeated sequential computation over binary fields. It places every slot, round, and lane of a Poseidon2b batch in one Boolean hypercube, proves the direct degree-seven S-box relation, and binds adjacent rounds through shifted tables.

For the public sequence of 59 permutations evaluated in the paper, this replaces 472 product-chain constraint sumchecks with two sumchecks whose depth is the logarithm of the padded table.

Metric Product-chain GKR FROST-GKR Reduction
Constraint sumchecks 472 2 236×
Constraint rounds 4,248 30 141.60×
All sumcheck rounds 4,263 75 56.84×
Raw algebraic proof 287,712 B 5,568 B 51.67×
Prover median 1,605.931 ms 150.218 ms 10.69×
Protocol verifier median 984.269 ms 66.499 ms 14.80×

The timings are medians from 20 interleaved release-mode samples on an Intel Core i7-1365U. Proof bytes count raw algebraic field elements, including terminal batching and excluding serialization framing and polynomial- commitment openings. See BENCHMARK.md for the precise timing boundaries.

The construction in three steps

  1. Unify. Encode slot × round × lane in one 15-variable Boolean hypercube. The witness has three columns: input to the nonlinear layer, output from it, and round state.
  2. Prove. Check the direct Poseidon2b relation in one degree-nine sumcheck. Over GF(2^128), Frobenius squaring evaluates x^7 with two multiplications and two linear squarings.
  3. Shift. Materialize round-shifted views and reduce them back to the original witness columns with one degree-two sumcheck. Three terminal batches expose the MLE claims for a commitment layer.

The repository contains both implementations of the same application-neutral sequence, field, and FiatShamir transcript. The benchmark first proves, verifies, natively discharges every terminal claim, and asserts the exact proof accounting. Only then does it collect timings.

Reproduce

Rust 1.96.0 is pinned by rust-toolchain.toml. Release builds use the local CPU through -C target-cpu=native, matching the paper artifact.

git clone https://github.com/ignotusnemo/frost-gkr.git
cd frost-gkr
cargo test --release --locked --workspace
cargo run --release --locked -p frost-gkr-bench -- --warmups 3 --samples 20

The benchmark prints a complete Markdown report to stdout. To record a run:

cargo run --release --locked -p frost-gkr-bench -- \
  --warmups 3 --samples 20 > results/my-machine.md

Repository map

benchmark/          correctness-gated comparative benchmark
crates/core/        GF(2^128), packed arithmetic, MLE and sumcheck primitives
crates/poseidon2b/  native Poseidon2b statement and FiatShamir channel
crates/gkr/         product-chain, FROST-GKR, and ragged GKR implementations
results/            published benchmark reports

The artifact is intentionally application-neutral. Its public statement is a fixed sequence of 59 Poseidon2b permutations; it contains no ParanO(1)d node, wallet, transaction format, state model, consensus, networking, or deployment integration. Terminal MLE reductions are evaluated directly for the comparison. An integrating proof system replaces that harness step with its own polynomial-commitment openings and end-to-end accounting.

Citation and license

The author is Ignotus Nemo. Citation metadata is available in CITATION.cff. The implementation is licensed under Apache License 2.0.