Paper 2024/1841 Original: eprint.iacr.org/2024/1841 ↗

Verifying Jolt zkVM Lookup Semantics

Carl Kwan
Quang Dao
Justin Thaler
Abstract

Lookups are a popular way to express repeated constraints in state-of-the art SNARKs. This is especially the case for zero-knowledge virtual machines (zkVMs), which produce succinct proofs of correct execution for programs expressed as bytecode according to a specific instruction set architecture (ISA). The Jolt zkVM (Arun, Setty & Thaler, Eurocrypt 2024) for RISC-V ISA employs Lasso (Setty, Thaler & Wahby, Eurocrypt 2024), an efficient lookup argument for massive structured tables, to prove correct execution of instructions. Internally, Lasso performs multiple lookups into smaller subtables, then combines the results. We present an approach to formally verify Lasso-style lookup arguments against the semantics of instruction set architectures. We demonstrate our approach by formalizing and verifying all Jolt 32-bit instructions corresponding to the RISC-V base instruction set (RV32I) using the ACL2 theorem proving system. Our formal ACL2 model has undergone extensive validation against the Rust implementation of Jolt. Due to ACL2's bit-blasting, rewriting, and developer-friendly features, our formalization is highly automated. Through formalization, we also discovered optimizations to the Jolt codebase, leading to improved efficiency without impacting correctness or soundness. In particular, we removed one unnecessary lookup each for four instructions, and reduced the sizes of three subtables by 87.5\%.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
History
2024-11-20: last updated
2024-11-09: published
Short URL
https://ia.cr/2024/1841
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2024/1841,
      author = {Carl Kwan and Quang Dao and Justin Thaler},
      title = {Verifying Jolt zkVM Lookup Semantics},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1841},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1841}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.