Lean-zip: A formally verified DEFLATE implementation in Lean 4
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
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.