ZKSM83: Native Lookup Proofs for SM83 Execution — Transparent lattice-backed receipts for the DMG/MBC3 machine
79793d51a9cf3209…ZKSM83 proves CPU-visible execution of an SM83 machine directly. A segment packs at most four instructions per row into \(N=2^{14}\) rows, commits \(C=4604\) multilinear columns, and checks \(M=11458\) identities of degree at most \(23\) by sumcheck and a transparent Akita polynomial commitment scheme. ISA, byte-operation, ROM, memory, device, log, and segment-boundary claims share one committed trace. Version 2 is transparent, not witness-hiding; no current end-to-end packed-proof measurement is claimed.
1.Proposition#
Let
Here \(c_t=(c_t^{\rm in},c_t^{\rm out},c_t^{\rm bus},c_t^{\rm isa})\) and
The public statement is
where \(L,T,A,C\) are segment, source-transition, active-row, and machine-cycle counts.
The semantic boundary is
The SM83 timing and opcode model follows the public hardware references in Pan Docs [1, 2]; the proof architecture is lookup-centric in the sense of Jolt and Lasso [3, 4].
2.Packed trace#
One segment uses the Boolean hypercube
For row \(r\in\mathcal H\), let \(a_r\) be active, \(i_r\) be an instruction-block tag, \(\ell_{r,j}\) be lane activity, and \(e_{r,k}\) be a machine-event selector:
Resource ownership is explicit. For \(S_M=6\) machine-cycle slots, \(S_B=5\) bus slots, and \(\omega^{X}_{r,s,j}\in\{0,1\}\):
The five local boundaries \(x_{r,0},\ldots,x_{r,4}\) are shared across four lanes; the device boundary \((d_r^-,d_r^+)\) is shared across the row:
For lane \(j\), local bus slot \(u\), shared slot \(s\ge u\), define \(k=s-u\) and
The \(4\sum_{u=0}^{4}(5-u)=60\) values \(m_{r,j,u,s}\) are committed columns. This replaces repeated cubic routing expressions by degree-one consumers.
The complete column geometry is
| Relation prefix | columns | identities | degree |
|---|---|---|---|
| Routing | 50 | 129 | 7 |
| Boundary | 145 | 297 | 3 |
| Front end | 729 | 1096 | 7 |
| Machine | 796 | 1353 | 7 |
| Mutable-memory row relation | 3542 | 8257 | 15 |
| Packed CPU plus execution lookup | 4604 | 11458 | 23 |
3.Row relation#
Let \(W_r\in\mathbb{F}^{4604}\). The deepest relation is
Byte and word reconstruction uses Boolean limbs:
Typical selector-gated identities are
Flags, DAA, CB-prefixed operations, interrupts, HALT, MBC3 bank selection, timer stages, PPU/STAT ordering, DMA, serial, joypad, APU, and typed MMIO instantiate the same pattern \(q\cdot f(W_r)=0\).
The fixed tables are
There are four ISA queries, at most eight byte-operation queries, and at most five ROM bus queries per packed row.
4.Shout-style lookup equations#
For a table \(T:\{0,1\}^m\to\mathbb{F}^v\), selected trace rows \(x\in\mathcal H\), address bits \(A(x)\in\{0,1\}^m\), selector \(q(x)\), and output \(y(x)\), sample \(\gamma,\lambda\) and compress
Then
The left side is a table product sumcheck; the construction of \(R_A\) is an address-binding sumcheck. Equation (5) is instantiated for
All addresses, outputs, selectors, table commitments, and openings are Fiat-Shamir bound.
5.Mutable memory#
For a selected event \(e=(a,v^-,v^+,t^-,t)\) with write selector \(w_e\), choose \(\alpha,\beta\leftarrow\mathbb{F}\) and define
With \(\langle f\rangle_n=2^{-n}\sum_{x\in\{0,1\}^n}f(x)\) and boundary inverse-table averages \(Z_0,Z_L\):
Fixed clocks, predecessor timestamps, initial values, final values, and Equation (6) bind the \(2^{17}\)-byte mutable image.
6.Ordered logs and continuity#
For \(k\in\{\mathsf{bus},\mathsf{in},\mathsf{out},\mathsf{isa}\}\), compress tuple \(v=(v_0,\ldots,v_{d_k-1})\) as
Canonical positions are tuple fields. For trace inverse columns \(Z_k^{\rm tr}\) and table inverse columns \(Z_k^{\rm tab}\):
For state-mixing challenge \(\rho\) and inverse point \(\zeta\), define the row-tagged token
With
continuity reduces to
7.Uniform sumcheck and Akita PCS#
The row identities are reduced by the sumcheck protocol [5]. For column \(w_j:\{0,1\}^{14}\to\mathbb{F}\),
Sample \(r\leftarrow\mathbb{F}^{14}\) and \(\eta\leftarrow\mathbb{F}^*\), and mix the identities:
Sumcheck yields \(u\in\mathbb{F}^{14}\) and
Since \(\deg Q\le23\), equality weighting gives round degree at most \(24\) and
Pad the witness with four zero columns:
Akita is a transparent lattice PCS whose binding target is stated under Module-SIS [6, 7]:
Nightstream [8] is relevant as an implementation reference for lattice-based CCS folding architecture, a separated paper-exact versus optimized oracle/sumcheck path, and seeded Ajtai commitment engineering. It is not used here as a production backend and is not evidence of end-to-end SM83 or Game Boy proving throughput.
The transcript binds
using Blake2b-512 internally for Fiat-Shamir. The wire cut is strict:
Fiat-Shamir compilation follows the standard transform paradigm [9].
8.Receipt composition#
One segment proof is
Before any folding layer is introduced, the implementation types each obligation by family and evaluation binding: CPU and device row relations use the packed-row sumcheck terminal point; ISA and execution lookups use shared witness openings; ROM uses a table opening; mutable memory uses the shared witness plane; continuity uses segment-boundary challenges; and logs use ordered-log challenges. Accumulation may only combine claims with the same family and evaluation binding.
For \(0\le k<L\):
The verifier accepts exactly when
No emulator, ROM image, memory image, or trace is a verifier input.
9.Conditional soundness#
Assume Akita evaluation binding, sumcheck soundness, lookup and log-derivative soundness, collision resistance of the canonical hashes, and a random-oracle Fiat-Shamir transform. Then
Any false implication breaks one assumed component.
10.Static cost and evidence boundary#
The logical witness sizes are exact source-level quantities:
\(N_{\rm slot}\) counts constraint-slot evaluations in the main sumcheck model, not native CPU instructions or measured field operations.
A benchmark report must separate at least the following buckets before making a performance claim:
The current implementation exposes process-local diagnostics for the proof components in Equation (17), except that witness construction and proof-byte attribution still require a dedicated benchmark harness.
For \(T\) source transitions and average packing density \(1\le\bar\rho\le4\),
At snapshot 1062c35:
Thus Equations (eq:static-cost)–(18) are models, not measurements.
11.Code correspondence#
crates/zksm83-jolt/src. #| \textObject | Implementation |
|---|---|
| \tau_R,I | zksm83-core::StepRelation |
| W,Q | block_cpu::{BlockCpuWitness, BlockCpuRelation} |
| T_\rm ISA,T_\rm exec,R | isa_lookup, execution_lookup, rom_lookup |
| \mathcalR_\rm mem,\mathcalR_\rm log | memory, logs |
| \mathcalR_\rm cont,\mathcalR_\rm chain | continuity, receipt |
| \mathsfSC,\mathsfCom,\mathsfOpen | uniform::sumcheck, uniform::commitment, pcs |
| \mathsfBench,\mathsfObligation | optimization, metrics, BlockCpuRelation::evaluation_profile |
12.Conclusion#
The open empirical obligation is a current independently verified packed v2 receipt; the open privacy obligation is an explicit witness-hiding layer.
\sloppy
References#
- [1]GBDev community, “Pan Docs: Game Boy Technical Reference,” 2025, https://gbdev.io/pandocs/.
- [2]GBDev community, “Game Boy CPU (SM83) Instruction Set,” 2025, https://gbdev.io/gb-opcodes/.
- [3]Arasu Arun and Srinath Setty and Justin Thaler, “Jolt: SNARKs for Virtual Machines via Lookups,” Advances in Cryptology - EUROCRYPT 2024, 2024, https://eprint.iacr.org/2023/1217.
- [4]Srinath Setty and Justin Thaler and Riad S. Wahby, “Unlocking the Lookup Singularity with Lasso,” Advances in Cryptology - EUROCRYPT 2024, 2024, https://eprint.iacr.org/2023/1216.
- [5]Carsten Lund and Lance Fortnow and Howard Karloff and Noam Nisan, “Algebraic Methods for Interactive Proof Systems,” Journal of the ACM, vol. 39, no. 4, pp. 859–868, 1992, DOI: 10.1145/146585.146605.
- [6]LayerZero Labs, “Akita: A Modular Lattice Polynomial Commitment Scheme,” Software snapshot, 2026, https://github.com/LayerZero-Labs/akita/tree/69438de6cd8ce8ed7c9ebb21bdf60b813e8fcabc.
- [7]LayerZero Labs, “Introducing Akita,” 2026, https://www.layerzero.org/blog/introducing-akita.
- [8]LFDT-Nightstream, “Nightstream: Lattice-based Folding for CCS,” Software repository, 2026, https://github.com/LFDT-Nightstream/Nightstream.
- [9]Amos Fiat and Adi Shamir, “How to Prove Yourself: Practical Solutions to Identification and Signature Problems,” Advances in Cryptology - CRYPTO '86, pp. 186–194, 1987, DOI: 10.1007/3-540-47721-7_12.