Air-Gapped Post-Quantum zkML Inference Prover, Goldilocks Sumcheck/LogUp Circuit Compiler & Silent Quantization-Substitution Verifier
- Live Workstation: https://zasa4.github.io/prooftensor/
- Air-Gapped
file://Single-File HTML Release: https://github.com/ZASA4/prooftensor/releases/tag/v1.0.0 (prooftensor-offline.html, zero external network requests, zerocrypto.subtledependency)
Untrusted inference providers routinely substitute lower-precision quantized weights (INT4 for FP16), inject unverified low-rank adapters, or approximate non-linear activations while billing for full-precision committed weights. ProofTensor compiles quantized neural forward passes (.safetensors / .npy) into deterministic arithmetic transcripts over the 64-bit Goldilocks prime field and verifies execution integrity using hash-based post-quantum primitives—requiring zero elliptic curves, zero pairings, and zero trusted setup.
Every cryptographic proof generated in TypeScript (BigInt) is 100% bit-for-bit identical to the zero-dependency Python 3 standard-library CLI (int), sharing the exact SHA-256 Merkle commitment root and Fiat-Shamir sponge digest.
All witness values use signed Q10 fixed-point quantization (
Since 0x00 leaf prefix, 0x01 internal node prefix).
For each linear layer
Across
Running
For
Quantized pre/post-activation pairs
| Preset | Scenario | Verdict | Exact Fault Localization |
|---|---|---|---|
01 |
Verified FP16 Proof | VERIFIED_SOUND |
All 24 Sumcheck rounds, Merkle paths & LogUp pass (< 2^-183) |
02 |
Silent INT4 Substitution | SOUNDNESS_REJECTED |
Layer 0 · SUMCHECK_ROUND · Round 0 (4-bit quantization divergence) |
03 |
1-ULP Weight Drift | SOUNDNESS_REJECTED |
Layer 0 · FINAL_ORACLE · Round 3 (W1[5,11] + 1 caught at oracle) |
04 |
Rank-1 Adapter Drift | SOUNDNESS_REJECTED |
Layer 1 · SUMCHECK_ROUND · Round 2 (uncommitted LoRA splice) |
05 |
ReLU Lookup Mismatch | SOUNDNESS_REJECTED |
Layer 0 · LOGUP_RELU ( |
weightCommitmentRoot:7925b93c97f9d6894c457779a221b43f69684e5e8890b399db2cc0ced99091e6finalTranscriptHash:ed97c25d477a53c2615c57f13054261b0bc26f65c35f09ee8cc908c4df574297
cli/prooftensor.py uses only the Python 3 standard library (struct, hashlib, json, math, argparse, sys) and exits 0 on VERIFIED_SOUND or 1 on SOUNDNESS_REJECTED.
# Run full FP16 + 4-drift verification matrix
python3 cli/prooftensor.py --demo
# Prove binary .safetensors or .npy weights into a self-contained .ptzk.json artifact
python3 cli/prooftensor.py --prove examples/model-fp16.safetensors --out /tmp/proof.ptzk.json
# Verify proof against an expected 64-char SHA-256 weight commitment root
python3 cli/prooftensor.py --verify examples/valid-proof.ptzk.json \
--commitment 7925b93c97f9d6894c457779a221b43f69684e5e8890b399db2cc0ced99091e6
# Simulate untrusted provider drift (exits 1 with exact failing stage & round)
python3 cli/prooftensor.py --simulate-drift int4 --json
# Export standalone bound verifiers (py | rs | sol | rego)
python3 cli/prooftensor.py --export-verifier solnpm install
npx tsc --noEmit
npm test
python3 -m unittest discover -s cli -v
npm run parity
npm run build:standalone
npm run buildReleased under the MIT License.
For enterprise hardware-accelerated Goldilocks/AVX-512 provers, custom operator lookup tables, sovereign air-gapped deployment packages, commercial licensing, or acquisition inquiries, contact ZASA4 via GitHub (github.com/ZASA4).