I Built a Tiny HTTP Server in Rust and Formally Verified It with Lean 4

medium.com9 min read

The author developed h5i-app-h1, a lightweight, heap-free HTTP/1.1 implementation written in Rust for resource-constrained embedded systems. To ensure reliability, the protocol-processing core is formally verified in Lean 4 using Charon and Aeneas. The resulting proofs demonstrate that request parsing and body decoding satisfy a formal specification regardless of how TCP splits incoming byte streams. Open article →