lean-zip
Formally verified DEFLATE compression and decompression in Lean
All Skills in This Repository (17)
Pure Emerald Level Indicatorslean-array-list
Prove Lean 4 properties for ByteArray, Array, and List manipulation.
lean-content-preservation
Formalize byte-level content preservation proofs for Lean 4 byte array functions.
lean-roundtrip-proofs
Formalizes Lean 4 proofs for encode/decode roundtrip theorems and padding extraction.
lean-zstd-patterns
Implement Zstandard decompression patterns in Lean 4.
lean-monad-proofs
Guide Lean 4 proofs involving Option and Except monads with tactical advice.
lean-parsing-completeness
Prove parsing completeness theorems for Lean 4 parsers.
lean-fuel-induction
Guide Lean 4 fuel-based recursion proofs with loop invariants and termination.
lean-wf-recursion
Guide Lean 4 proofs for well-founded recursive functions with induction and termination measures.
agent-pr-recovery
Diagnose merge conflicts and rebase stale branches for agent pull requests.
lean-zstd-spec-pattern
Create formal Zstandard specifications in Lean with structured patterns.
agent-worker-flow
Orchestrate claim-branch-verify-publish workflows for GitHub issues and pull requests.
proof-review-checklist
Automate Lean proof review with structured checklists and cleanup commands.
Frequently Asked Questions
FAQPage SchemaHow to install lean-zip?โผ
Run `npx skills add kim-em/lean-zip --all -g -y` in your terminal to install all skills in this suite globally.
What is formally verified compression?โผ
It means the Lean kernel mathematically proves that decompressing compressed data always returns the exact original input, for every possible input, not just tested samples.
How do I use lean-zip in a Lean project?โผ
Add `require "kim-em" / "lean-zip"` to your lakefile.lean, then call Zip.Native.ZlibEncode.compress and ZlibDecode.decompress on your data.
Is lean-zip faster than Rust or C libraries?โผ
Yes, at matched compression ratios it beats Rust's miniz_oxide and the C zlib reference at most levels, though hand-tuned SIMD libraries like libdeflate remain faster.
Does lean-zip need system C libraries?โผ
No. The codec is pure Lean and builds without any system dependencies; only the optional conformance test suite requires system zlib.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core