frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: zkGolf, competitive optimization of formally verified circuits.

https://zk.golf/
18•rot256•1h ago
Zero-Knowledge Proofs (ZKPs) let an untrusted proved show that computation was executed correctly without revealing the inputs to the verifier. However to prove anything, the computation first has to be expressed as a circuit: a system of polynomial equations (constraints) over a finite field. Circuits are the assembly language of zk and every constraint costs prover (and sometimes verifier) time, so production circuits are aggressively hand-optimized.

Over the last months, we have been experimenting with writing formal specifications instead and letting LLMs produce the circuits: as long as they could prove that their implementation was correct. It started with SHA-256: we hand wrote a specification in Lean for SHA-256 compression, and then we asked LLMs to write the circuit, targeting R1CS arithmetization and large fields.

It took a few hours of work for Opus 4.7, and some light steering into the right direction, but in the end the model came up with a reasonable implementation. We then asked the LLM to aggressively optimize the circuits, by driving down a cost metric of the circuit (number of constraints). We immediately got very promising results, just by asking to come up with optimization ideas, implement them and prove that the new circuit still satisfies soundness and completeness. Sometimes, it came up with unsound optimizations, however, since it could not prove them, it backtracked and got itself back on to the right approach.

The result was a (non-deterministic) circuit beating the current, human optimized, state of the art for SHA256 compression. This experience lead us to create "zk.golf" which is an open competition to produce optimized, formally verified circuits to lower the bar for the use of ZKPs and make their application more efficient.

Come play (https://zk.golf/llms.txt) and learn about formal verification.

Comments

baby•1h ago
I'm racing to be the first submission, amazing project :)

Show HN: QUALITY.md – open format/specification, agent skill, and CLI

https://getquality.md
6•craigsmitham•29m ago•1 comments

Show HN: Mail Memories – A desktop app to rescue photos from Gmail

https://mailmemories.com
71•ltiger•2h ago•20 comments

Show HN: CLI tool for detecting non-exact code duplication with embedding models

https://github.com/rafal-qa/slopo
30•rkochanowski•2h ago•9 comments

Show HN: A graph paper generator that renders vector PDFs in the browser

https://freegraphpaper.net/
42•lam_hg94•3h ago•7 comments

Show HN: Claudoro, Pomodoro timer embedded in the Claude Code statusline

https://github.com/emson/claudoro
29•emson•1d ago•24 comments

Show HN: ZeroFS – A log-structured filesystem for S3

https://www.zerofs.net/
81•Eikon•3h ago•38 comments

Show HN: zkGolf, competitive optimization of formally verified circuits.

https://zk.golf/
19•rot256•1h ago•1 comments

Show HN: Cyclearchive.com – search vintage cycling magazines

https://cyclearchive.com/search/
18•alastairr•5d ago•6 comments

Show HN: Enola-A deterministic architecture graph for developers and AI agents

https://github.com/enola-labs/enola/tree/main
5•GertLH•2h ago•1 comments

Show HN: ctx – Search the coding agent history already on your machine

https://github.com/ctxrs/ctx
6•luca-ctx•1h ago•1 comments

Show HN: I built an open-source alternative to Claude Cowork

https://github.com/valmishq/valmis
11•wayneshng•3h ago•3 comments

Show HN: Randomify – stumble onto niche music at random

https://randomify.net
2•s_e__a___n•1h ago•0 comments

Show HN: Kubelens-If kubectl works, you're ready. A browser UI for your cluster

https://github.com/jialinhuang00/kubelens
4•jiaLin1014•1h ago•0 comments

Show HN: Egaki – create videos with code and MDX files

https://egaki.org/docs
2•xmorse•1h ago•0 comments

Show HN: Searchable directory of 22k+ products from worker-owned co-ops

https://www.workerowned.info/
383•IESAI_ski•20h ago•76 comments

Show HN: UATC – A Closed-Loop Controller to Prevent GPU OOM

https://github.com/sajjaddoda72-design/UATC
2•L_u_u_6•1h ago•0 comments

Show HN: I measured the half-life of 41,301 Show HN launches. It's 7 hours

https://jonno.nz/posts/your-show-hn-dies-in-7-hours/
13•jonnonz•5h ago•3 comments

Show HN: MemSignal - an experimental memory-pressure indicator for Windows

https://github.com/riccardoruspoli/MemSignal
3•riccardoruspoli•3h ago•0 comments

Show HN: Newsprint – A native RSS reader for macOS with Hacker News support

https://github.com/ata-sesli/newsprint
3•ata-sesli•2h ago•0 comments

Show HN: Point0 – a fullstack TypeScript framework on Bun and React

https://github.com/1gr14/point0
3•1gr14•2h ago•0 comments

Show HN: All the News You Need

https://github.com/ulyssestenn/allthenewsyouneed
2•bethanyhunt•2h ago•0 comments

Show HN: Pgblame – which Vercel deploy slowed your Postgres?

https://pgblame.com
2•liberzon•3h ago•0 comments

Show HN: Image steganography tool – Hide any file inside a PNG image

https://stegoimage.pages.dev/
3•coder_xyz•3h ago•0 comments

Show HN: I turned GitHub contribution history into a driveable 3D city

https://gitcity.natrajx.in/
4•rishabhbhartiya•3h ago•3 comments

Show HN: Salt – a systems language with Z3 theorem proving in the compiler

https://salt-lang.dev
42•bneb-dev•23h ago•34 comments

Show HN: A lightweight CLI tool to track and purge temporary packages in Linux

https://github.com/hermetic-code/labeled-cli
2•joyalgeorgekj•3h ago•3 comments

Show HN: GolemUI – Declarative Form Engine

https://golemui.com
46•wtfdeveloper•1d ago•68 comments

Show HN: Skill Federation –private search across 87k skills for AI coding agents

https://github.com/skill-federation/skill-federation
2•sibmike•4h ago•0 comments

Show HN: Unobin compiles Infrastructure as Code to one binary

https://cloudboss.co/docs/unobin
17•joseph•4d ago•2 comments

Show HN: SwiftShrink – compress an image to an exact KB size, in the browser

https://swiftshrink.com/
2•Talha_Asjad•4h ago•0 comments