frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://zk.golf/
23•rot256•2h 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•2h ago
I'm racing to be the first submission, amazing project :)

Since Linux 6.9, LUKS suspend stopped wiping disk-encryption keys from memory

https://mathstodon.xyz/@iblech/116769502749142438
204•IngoBlechschmid•2h ago•100 comments

Launch HN: Manufact (YC S25) – MCP Cloud

https://manufact.com
64•pzullo•2h ago•43 comments

Android Developer Verification: Threat masquerading as protection

https://f-droid.org/2026/07/01/adv-malware.html
1382•drewfax•15h ago•574 comments

PeerTube is a free, decentralized and federated video platform

https://github.com/Chocobozzz/PeerTube
199•doener•6h ago•45 comments

How to ask for help from people who don't know you

https://pradyuprasad.com/writings/how-to-ask-for-help/
155•FigurativeVoid•4h ago•23 comments

AI can't be listed as inventor on patent applications, Japan's top court rules

https://japannews.yomiuri.co.jp/science-nature/technology/20260306-314930/
235•mushstory•4h ago•113 comments

German button maker searched rivers of American Midwest for valuable shells

https://www.smithsonianmag.com/smithsonian-institution/how-one-german-button-maker-searched-the-r...
83•bookofjoe•4d ago•27 comments

Spain Orders Blacklist of Palantir from Public and Private Companies

https://clashreport.com/world/articles/spain-orders-blacklist-of-us-tech-giant-palantir-from-publ...
130•mgh2•2h ago•10 comments

Is One Layer Enough? A Single Transformer Layer Matches Full-Parameter RL Train

https://arxiv.org/abs/2607.01232
95•tcp_handshaker•5h ago•22 comments

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

https://github.com/rafal-qa/slopo
39•rkochanowski•3h ago•13 comments

The Egg Bandits Made a Thousand Times the Fine They Just Paid for Price Fixing

https://www.thebignewsletter.com/p/crime-pays-the-egg-bandits-made-a
234•toomuchtodo•4h ago•100 comments

Kimi K2.7 Code is generally available in GitHub Copilot

https://github.blog/changelog/2026-07-01-kimi-k2-7-is-now-available-in-github-copilot/
342•unliftedq•13h ago•143 comments

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

https://mailmemories.com
78•ltiger•3h ago•27 comments

The primary purpose of code review is to find code that will be hard to maintain

https://mathstodon.xyz/@mjd/115096720350507897
237•ColinWright•6h ago•126 comments

The fall of the theorem economy

https://davidbessis.substack.com/p/the-fall-of-the-theorem-economy
193•varjag•9h ago•87 comments

Hazel (YC W24) Is Hiring for Our Largest Government Contract

https://www.ycombinator.com/companies/hazel-2/jobs/3epPWgu-full-stack-engineer-ts-sci
1•augustschen•4h ago

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

https://freegraphpaper.net/
52•lam_hg94•4h ago•11 comments

CursorBench 3.1

https://cursor.com/evals
142•handfuloflight•12h ago•77 comments

The US Government Is Now a Shareholder in 26 Companies

https://moeonmargin.substack.com/p/the-us-government-is-now-a-shareholder
34•measurablefunc•1h ago•25 comments

How VictoriaLogs Stores Your Logs in a Columnar Layout

https://victoriametrics.com/blog/victorialogs-internals-columnar-storage-on-disk/index.html
8•eatonphil•4d ago•2 comments

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

https://www.zerofs.net/
90•Eikon•4h ago•43 comments

WinPE as a stateless harness for Windows driver testing and fuzzing

https://bednars.me/blog/winpe-harness
64•piotrbednarsalt•3d ago•4 comments

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

https://github.com/emson/claudoro
34•emson•1d ago•26 comments

Germany’s Infineon opens major chip plant as EU seeks tech autonomy

https://www.rfi.fr/en/international-news/20260702-germany-s-infineon-opens-major-chip-plant-as-eu...
142•giuliomagnifico•5h ago•42 comments

Vite+ Beta

https://voidzero.dev/posts/announcing-vite-plus-beta
192•Erenay09•6h ago•112 comments

What Breaks a Cell's Ribs Can Make It Stronger

https://www.quantamagazine.org/what-breaks-a-cells-ribs-can-make-it-stronger-20260629/
9•jnord•2d ago•2 comments

NSA tries to weaken mlkem standardisation

https://nsa.2026.action.cr.yp.to
57•SuperSandro2000•5h ago•23 comments

Senior SWE-Bench: open-source benchmark that assesses agents as senior engineers

https://senior-swe-bench.snorkel.ai/
144•matt_d•15h ago•97 comments

Asymmetric Quantization: Near-Lossless Retrieval with 97% Storage Reduction

https://www.mixedbread.com/blog/asymmetric-quant
94•breadislove•2d ago•32 comments

Natural history on canvas: Brueghel knew about bird-eating noctule bats

https://www.pnas.org/doi/10.1073/pnas.2536525123
9•benbreen•22h ago•0 comments