On Hacker News
Show HN: Talos – Open-source WASM interpreter for Lean
Read the full article on github.com ↗51
points
6
comments
0
notable voices
The 5-second version
- Talos is a WebAssembly interpreter written in Lean 4 where the same executable semantics are used for both running programs and formal verification, eliminating the need to keep a separate spec in sync.
- It uses weakest precondition calculus for compositional reasoning about program behavior, enabling proofs of correctness, equivalence, and properties without re-unfolding the interpreter at each step.
- The project is structured as three Lake packages in dependency order: interpreter (core Wasm semantics and WP tactics), codelib (lifting lemmas and reasoning helpers), and programs (concrete verification tasks).
- You can run .wat modules directly with a fuel-capped interpreter or prove theorems about them using Lean's proof tooling, with the immediate focus on non-optimized higher-level source semantics over performance.
- The codebase is AGPL v3.0 licensed, actively developed with potentially changing APIs, and requires Lean 4 (via elan) and wasm-tools for building and running the Wasm testsuite.
Top voices
Verbatim comments from the thread's most notable / highest-karma participants.
jazzyjackson12.2k karma
Also collides with the Power9 desktop system https://www.raptorcs.com/TALOSII/Read on HN ↗
himata41131.6k karma
talos is already in use by https://github.com/siderolabs/talos, was confused for a second when I saw talos and wasm for a second, got excited about native wasm pod support.Read on HN ↗
quietusmuris3 karma
Interesting. Do I have to write specs in Lean against the Wasm semantics or can you annotate Rust directly?Read on HN ↗