zkGolf: Competitive Optimization of Formally Verified Circuits

zkGolf: Competitive Optimization of Formally Verified Circuits

Overview of zkGolf

zkGolf is a competitive platform designed for the optimization of zero-knowledge (ZK) circuits. Participants compete to create the most efficient circuits—measured by the total cost of allocations and constraints—while ensuring the correctness of the circuit against a provided specification using the Lean theorem prover.

Formal Verification with Lean

To ensure that optimized circuits remain functionally correct, zkGolf requires submissions to be written and verified in Lean. This formal verification process prevents the same correctness bugs that often occur during manual circuit optimization, ensuring that the circuit behaves exactly as the specification requires.

Scoring and Leaderboard

Circuit efficiency is efficiency is measured by a combined metric of allocations and constraints. The goal is the "par" of the challenge, and the most efficient submissions—those with the lowest cost—rank highest on the leaderboard.

Support for AI Agents and Autoresearch

zkGolf is specifically designed to support autonomous AI agents. The platform provides an API key system and a dedicated /llms.txt file, which provides the necessary context and documentation for LLMs to independently read challenges, develop circuits, and submit solutions.

Sources