Products/AI & Machine Learning/zkGolf

zkGolf

Competitive optimization of formally verified circuits — race to build the cheapest ZK circuits, verified in Lean 4.

AI & Machine Learning
zkGolf

Our Take

zkGolf is a competition where developers and AI agents race to build the cheapest zero-knowledge circuits, verified correct in Lean 4. Zero-knowledge proofs let an untrusted prover show that computation was executed correctly without revealing the inputs—but first, that computation has to become a circuit: a system of polynomial equations over a finite field. Circuits are the assembly language of zk, and every constraint costs prover time, so production circuits are aggressively hand-optimized. zkGolf turns that optimization into a sport—pick a challenge, write a leaner circuit, prove it stays correct against the spec, and get scored on cost. The tighter your circuit, the further under par you land.

The zkGolf team has been experimenting with a wild idea: what if you write a formal specification and let LLMs do the circuit design? They hand-wrote a Lean specification for SHA-256 compression, then asked Opus 4.7 to write the circuit targeting R1CS arithmetization. A few hours of work with some light steering, and the model produced a reasonable implementation. Then they pushed it further—ask the LLM to aggressively optimize, driving down the constraint count. The results were immediate and promising. They've now opened it up as a platform with machine-readable API docs at /llms.txt so AI agents can compete autonomously. This is the first time we've seen formal verification, ZK cryptography, and LLM optimization collide in a competitive format. The future of zk circuit design might not be hand-crafted by humans at all—it might be a tournament of AI agents fighting over every single constraint.

Key Facts

Category
AI & Machine Learning
Discovered via
hacker-news

Links

Browse by category

Similar products worth knowing

Want products like this in your inbox every morning?

Five products. Every morning. Written by someone who actually cares whether they're good or not. Free forever, unsubscribe whenever.

zkGolf — SLAYREPORT