Show HN: Zean Transpiles Zig to Lean
Category: devtools
Tags: zig, lean, formal-verification, transpiler, memory-safety, proof-assistant
Score: 8.3/10 (Innovation: 9, Technical: 9, Documentation: 8, Utility: 7)
Zean transpiles Zig's analyzed intermediate representation (AIR) into executable Lean models, enabling formal verification of memory safety and behavioral properties with manually written Lean proofs. It extracts a subset of Zig, provides a reusable verification library based on Lean's WP calculus, and demonstrates proofs for Ziglings exercises and other examples. This is a novel bridge between a systems language and a proof assistant, addressing a significant gap in formal methods tooling.
Target audience: systems programmers, formal verification researchers, compiler engineers, security engineers
Repository: https://github.com/okcontract/zean · Lean · Apache-2.0 · 35 stars
View on Hacker News