↑
logo

Show HN: Zean Transpiles Zig to Lean

Posted by hbbio |31 minutes ago |1 comments

hbbio 14 minutes ago

Main author here: One of the reasons we're doing this and doubling down on Zig is we believe that AI agents writing code (including ours) favors the relative simplicity of Zig vs. more complex languages.

For instance Rust, which is definitely a very high quality project, had bugs in its memory safety. So proving memory safety in Lean from Zig code may work even better in the end. Also the properties that can be verified in Lean go beyond memory safety but writing whole projects in Lean is not easy: The toolchain is not here, and there will be lots of issues.

Zig, otoh, is excellent in tooling to the point people even use Zig to build C projects. So you can iterate with agents building the software and when it's stabilizing you can use Zean to start verifying it.