⭐ Proven on GitHub · score 28
lean-zip: a free port of DEFLATE
A formally verified implementation of the DEFLATE compression algorithm in Lean 4.
lean-zip vs DEFLATE
It is a formally verified, pure-Lean DEFLATE codec that reads and writes standard zlib, gzip, and raw DEFLATE streams, so it can interoperate with existing files, but it is a young project with no stated production track record and it is fa
What it does like DEFLATE
- Implements DEFLATE compression and decompression in pure Lean 4
- Provides zlib, gzip, and raw DEFLATE formats
- Proves round-trip correctness (decompress of compress returns input) in Lean's k
- Offers compression levels 0 through 10, with level 0 emitting stored blocks
- Includes verified CRC-32 and Adler-32 implementations
What's missing compared with DEFLATE
- Clear-cut production track record of the standard DEFLATE tooling
- Streaming APIs (README points to lean-zlib for those, not this codec)
- Maturity or stability guarantees are not stated in the README
- Decoders always require a maxOutputSize bound, unlike typical C APIs with no lim
- Benchmarks show it trailing C and SIMD implementations such as libdeflate by rou
Opens DEFLATE files: yes.
Can I use lean-zip?
- Source code only: you build it yourself.
- License: Apache-2.0.
- Last changed 2026-10-03.
3 likes and 0 reposts on X, 159 GitHub stars.
The post on X · kim-em/lean-zip on GitHub
More free utilities apps
- RustDesk: free TeamViewer alternative (Established open-source)
- NectarLink: free Microsoft Phone Link alternative (Loved)
- Mister Download Manager: free Internet Download Manager alternative (Loved)
- Nextcloud: free Dropbox alternative (Established open-source)
- Bitwarden: free AgileBits 1Password alternative (Established open-source)