svGolf: write SystemVerilog circuits, prove them in Lean, compete on area × time

thomasahle · x · 2026-11-27

Thomas Ahle highlights svGolf — hardware golf with proofs: write a circuit in SystemVerilog, prove it in Lean with Proglib for every size the task allows, and compete on area × time (lower is better). Task specs are fixed in a trusted Lean statement: a function, or for clocked tasks a property of every cycle. The site offers a tutorial, rules, a proving guide, and a repo.

Tasks include a bitwise-AND tutorial (record 28.03 µm²·ns), N-bit adder (record 6% under par), N-bit multiplier (record 37,114 µm²·ns, 59% under par), carry-less GF(2) multiplier, AES S-box (69% under par), IEEE 754 dividers for every format, and a clocked fair N-client arbiter. Courses cover sky130 and ASAP7 (now placed and routed). Ahle invites anyone skilled at hardware design — or agents that are — to help find provably correct, optimal circuits for real tasks.

Original post →

More from coding & agent

coding & agent channel →