Skip to content
Breakpoint logobreakpoınt

zkGolf

Write the cheapest zero-knowledge circuit and prove it correct in Lean 4

zkGolf grew out of an experiment. Giorgio Dell'Immagine and Mathias Hall-Andersen of zkSecurity had an LLM write a SHA-256 compression circuit in Clean, their Lean circuit DSL, then keep cutting its constraint count while re-proving it after every change. They report the result beat the best human-optimised version, and they opened the contest on 2 July 2026.

Play on zk.golf

Free · Browser · Advanced

Screenshot of zkGolf

About zkGolf

A valid entry proves both soundness and completeness. Soundness alone would be easy to game, since a circuit nothing can satisfy is trivially sound, so completeness is what ties it to the intended function. Entries must also be R1CS circuits, ship proofs of their own cost, avoid native_decide and use only the axioms the challenge config permits.

The challenge repository starts with assert-bytes, the Hello, World! of the set, and climbs to SHA-256, Keccak-f[1600], BLAKE3 compression, JSON extraction, secp256k1 and BLS12-381 scalar multiplication, and RSA signature verification with 4096-bit keys.

In the Show HN thread a commenter caught an entry that measured its cost only on trivial inputs, and the organisers closed the gap. The Lean Game Server is the gentler place to learn tactics first.

Questions about zkGolf

How is a zkGolf submission scored?

The score is allocations plus constraints, counted only once the Lean proof verifies.

Why would a submission time out?

Each submission is verified under a 1200 second limit, so upgrading Lean, Mathlib or Clean forces a rebuild that exceeds it, and you must use the pinned versions.

Can I use an AI model to write the circuit?

Yes, submissions have an optional assisted_by field where you name the model and reasoning effort.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help