Lean-zip: A formally verified DEFLATE implementation in Lean 4
Comments on “Lean-zip: A formally verified DEFLATE implementation in Lean 4”
Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked
lean-zip is a pure-Lean DEFLATE encoder and decoder whose round-trip property, decompressing compressed output returns the original for any input and level, is proved and checked by Lean's kernel. The repository says AI coding agents wrote the code and proofs, with merges blocked unless the proof still passed. Its benchmarks on the Silesia corpus show it beating miniz_oxide and zlib at matched ratios, but trailing libdeflate and zlib-ng. These figures are the author's own, and most were not independently checked. Four small C primitives remain trusted.
Why it ranked
No. 8 of 57 with a score of 0.65. The panel rated it highest on new information (0.92) and substantiated (0.89), lowest on audience breadth (0.54). Placed No. 8, No. 9 by score alone: close to “Right Code, Wrong Comment: The Pointer Chase Inside Zlib”, No. 30 on Friday 20 November 2026 (−0.009). The placement terms move stories; they are not part of the score.
- AI judgeJudge 2claude-haiku-5-5
- Formally verified DEFLATE codec in Lean with kernel-checked round-trip proof and benchmarks; technically deep and novel, though niche in audience and somewhat promotional in framing.
- AI judgeJudge 3gpt-5.6-luna
- A deeply technical, kernel-checked DEFLATE implementation with extensive proofs, benchmarks, reproducibility details, and practical usage. It offers genuinely new evidence about verified optimization and AI-assisted software development, with only modestly promotional framing.
Each judge wrote its line after answering the rubric, with the site and the author still hidden. Every answer behind this is in the table under Score.
Score
0.65total under rubric v2.3
- Significance0.64
- Reader interest0.83
- Audience breadth0.54
- Practical relevance0.60
- Substantiated0.89
- Technical depth0.88
- New information0.92
- Counts against: Promotional0.10
- Counts against: Overclaim0.35
Each judge’s answer per question (0–1), their mean and spread, and what the question adds to the score (weight × mean).
| Question | Judge 1 | Judge 2 | Judge 3 | Mean | Spread | Weight | Contribution (weight times mean) |
|---|---|---|---|---|---|---|---|
| SignificanceHow much does this change what people in tech know or can do? | 0.65 | 0.45 | 0.82 | 0.64 | 0.37 | +0.24 | +0.153 |
| Reader interestWould a well-informed senior engineer or tech founder want to read this today, and likely pass it on? | 0.74 | 0.80 | 0.94 | 0.83 | 0.20 | +0.26 | +0.215 |
| Audience breadthHow many people who build technology does it concern? | 0.57 | 0.50 | 0.55 | 0.54 | 0.07 | +0.13 | +0.070 |
| Practical relevanceHow useful is it to someone who builds software or tech products? | 0.69 | 0.40 | 0.73 | 0.60 | 0.33 | +0.22 | +0.133 |
| SubstantiatedHow well is it backed? Consider whether it is the primary source, and whether its main claims come with data, code, a demo, a reproducible method or citations. | 0.96 | 0.80 | 0.90 | 0.89 | 0.16 | +0.05 | +0.044 |
| Technical depthHow technically substantive is it? | 0.89 | 0.80 | 0.96 | 0.88 | 0.16 | +0.05 | +0.044 |
| New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)? | 0.88 | 0.90 | 0.97 | 0.92 | 0.09 | +0.05 | +0.046 |
| PromotionalIs it mainly marketing with little substance (a press release, ad or sponsored post with no real information)? A launch post that carries real news is not promotional. | 0.08 | 0.15 | 0.08 | 0.10 | 0.07 | −0.19 | −0.020 |
| OverclaimDo the headline or conclusions claim more than the body supports? | 0.57 | 0.30 | 0.18 | 0.35 | 0.39 | −0.11 | −0.038 |
| Sum of contributions | +0.648 | ||||||
| Claim-check penalty | 0.000 | ||||||
| Total, as published | 0.648 | ||||||
Spread is the highest minus the lowest judge answer. marks a spread above 0.40: the judges disagree, and the story is marked contested.
The badge for this ranking, for the author's page or anyone's: one line of HTML, and it links back here.
<a href="https://rubric.hrih.si/editions/2026-11-23/8/"><img src="https://rubric.hrih.si/badge/2026-11-23/8.svg" alt="Ranked #8 on Rubric, 23 Nov 2026" width="238" height="28"></a>Claim check
Claim check: 1 matches source · 7 couldn’t check. Each claim is compared with the source the article itself cites; a flag is published only when both checkers agree.
Matches sourceBenchmark result
lean-zip compresses the 212 MB Silesia tar smaller and faster than miniz_oxide, taking 4.57s versus 5.77s at level 6.
The cited source says the same thing.
The article says “lean-zip compresses the 212 MB Silesia tar smaller and faster than miniz_oxide — 4.57s vs 5.77s at level 6”
The source says “$ time deflate-lean silesia.tar # lean-zip 68054183 real 0m4.57s”
Source cited by the article: kim-em.github.io/blog/2026-7-24-why-lean-is-faster-than-rust
Couldn’t checkNumber
The lean-zip round-trip proof rests on more than 1,100 theorems across about 32k lines of proof in Zip/Spec/, with no sorrys.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “more than 1,100 theorems across ~32k lines of proof in Zip/Spec/. There are no sorrys”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip/blob/master/Zip/Spec
Couldn’t checkCausal conclusion
Both the lean-zip implementation and its verification were written entirely by loosely supervised AI coding agents.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “both the implementation, and the verification, are written entirely by loosely supervised AIs”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip/tree/pre-split
Couldn’t checkBenchmark result
At miniz_oxide's level 1, lean-zip reaches 273.7 vs 235.2 MB/s (+16.4%) with 8.8% smaller output; at L6 it is about 30% faster at equal ratio and at L9 about 2x faster.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “at L1 it is directly ahead, 273.7 vs 235.2 MB/s (+16.4%), with 8.8% smaller output”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip-benchmark
Couldn’t checkBenchmark result
At every fflate level there is a single lean-zip level that is both denser and 1.5–2× faster, and lean-zip decompresses more than 2× faster than fflate.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “at every fflate level there is a single lean-zip level that is both denser and 1.5–2× faster”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip-benchmark
Couldn’t checkBenchmark result
lean-zip gives equal-or-better ratio at higher throughput than the zlib C reference implementation at every level.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “dominates the zlib C reference implementation: equal-or-better ratio at higher throughput at every level”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip-benchmark
Couldn’t checkBenchmark result
lean-zip trails libdeflate by roughly 2× at mid ratios, growing to about 10× at the dense end.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “trails the hand-tuned C + SIMD ceiling (libdeflate) by roughly 2× at mid ratios, growing to ~10× at the dense end”
The source says No passage could be compared.
Source cited by the article: github.com/kim-em/lean-zip-benchmark
Couldn’t checkGeneralization
The lean-zip codec's speed gains came from a long series of small verified steps made possible by the proof, supporting the thesis that verifiable languages scale better.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “formally-verifiable languages may start from a worse baseline but scale better, because verified code is the substrate on which automated optimization can safely compound”
The source says No passage could be compared.
Source cited by the article: gwern.net/lean-scaling
Also covered by
No other coverage was clustered with this story.
Elsewhere
Elsewhere: HN 2 pts, not on front page
Recorded for context only, checked 23 Nov 2026, 05:47 UTC. It played no part in the ranking.