paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Tabby: A Synthesis-Aided Compiler for High-Performance Zero-Knowledge Proof Circuits

Tabby:面向高性能零知识证明电路的合成辅助编译器
OOPSLA 9(OOPSLA2)2025匹配度 2/10 · 论文属于程序合成、编译器与形式化验证方向,与用户的 PL 背景有间接交集;但未涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,也不属于用户关注的核心交叉方向。引用 0 inbox
Junrui Liu, Jiaxin Song, Yanning Chen, Hanzhi Liu, Hongbo Wen, Luke Pearson, Yanju Chen, Yu Feng
crossref: 2026-09-10

AI 速览

一句话:提出合成辅助编译器 Tabby,从高层程序自动生成高性能 ZK 电路,提升证明效率并保证语义等价。

零知识证明应用需将高层程序转换为算术电路,既要正确又需高效,但现有 DSL 生成的电路常非最优,手工优化难以构造和验证。Tabby 提出一种合成辅助编译器,引入面向符号推理的领域特定中间表示,利用 sketch 程序合成生成优化后的低层实现,并通过组件分解和基于 SMT 的语义等价验证保证正确性。作者在真实 ZKP 应用上评估,结果显示相比主流 ZK 编译器,证明生成时间和电路规模均显著降低。

问题
如何从高层程序自动生成既正确又高性能的零知识证明算术电路,避免现有 DSL 生成电路次优以及手工优化难以构造和验证的问题。
方法
设计面向符号推理的领域特定 IR,采用 sketch 程序合成并分解可复用组件,用 SMT 推理验证低层实现与源程序语义等价。
评估
在真实 ZKP 应用套件上与主流 ZK 编译器对比,证明生成时间与电路规模显著减少。
原文摘要(Abstract)

Zero-knowledge proof (ZKP) applications require translating high-level programs into arithmetic circuits–a process that demands both correctness and efficiency. While recent DSLs improve usability, they often yield suboptimal circuits, and hand-optimized implementations remain difficult to construct and verify. We present Tabby, a synthesis-aided compiler that automates the generation of high-performance ZK circuits from highlevel code. Tabby introduces a domain-specific intermediate representation designed for symbolic reasoning and applies sketch-based program synthesis to derive optimized low-level implementations. By decomposing programs into reusable components and verifying semantic equivalence via SMT-based reasoning, Tabby ensures correctness while achieving substantial performance improvements. We evaluate Tabby on a suite of real-world ZKP applications and demonstrate significant reductions in proof generation time and circuit size against mainstream ZK compilers.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2896,
  title = {Tabby: A Synthesis-Aided Compiler for High-Performance Zero-Knowledge Proof Circuits},
  author = {Junrui Liu and Jiaxin Song and Yanning Chen and Hanzhi Liu and Hongbo Wen and Luke Pearson and Yanju Chen and Yu Feng},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA2},
  year = {2025},
  doi = {10.1145/3763110}
}