Talos – Open-source WASM interpreter for Lean

At Cajal (YC W26) we’re excited to share Talos (https://github.com/cajal-technologies/talos), an open source framework for formal verification of WebAssembly modules in Lean.AI is now writing tons of the code that gets pushed to production. As code generation gets cheaper, verification becomes the bottleneck. We believe in a future where every piece of software comes with a mathematical proof that it does what its author intended - in doing so, eliminating many classes of exploits. Talos is part of the foundation for that.Talos provides a Wasm interpreter optimized for reasoning at the binary level, together with a weakest-precondition calculus layer for proving properties about programs. Because we reason directly about WebAssembly, any language with a Wasm backend is in scope: Rust, C++, Go, C, Swift, Kotlin, Zig, C#, and many more.To make this possible, we use Lean: a programming language and theorem prover that lets you both write software and mathematically prove that it's correct - all in one system. That's what lets Talos double as both an executable interpreter and the formal object Lean reasons about. Lean also integrates with modern AI proving tools, discharging goals automatically via both proof search and direct evaluation.To see Talos in action check out a proof for Stein's GCD algorithm, implemented in the popular Rust crate num-integer: https://github.com/cajal-technologies/talos/blob/main/progra....Our roadmap:- Full Wasm coverage by first passing the official W3C testsuite, then later verifying against SpecTec (formal Wasm spec) - Arbitrary crate verification - any Rust crate that compiles to Wasm should be in scope - Building our proof library codelib, to make verifying increasingly complex programs tractableWe would love to hear the community’s feedback on Talos and comments on the state of formal verification right now. Contributions are also welcome!

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

medium confidence

Competition

No competitor data yet

Trend

No signal yet

A formal verification tool that proves WebAssembly code is correct by reasoning about compiled binaries in Lean, targeting the growing problem of AI-generated code reaching production without guarantees.

The pain

AI code generation is accelerating faster than verification methods. Teams shipping AI-written code to production have no mathematical guarantee it does what was intended. Security exploits, logic bugs, and undefined behavior slip through testing. For safety-critical systems (finance, healthcare, autonomous vehicles), this is unacceptable. Current verification tools require source-level reasoning or manual proof work, both expensive and incomplete.

The gap

No existing tool lets you verify arbitrary compiled WebAssembly binaries with machine-checked proofs. You can either verify source code (incomplete, language-specific) or test binaries (doesn't prove correctness). Lean + WASM reasoning bridges this gap by working at the binary level where all languages converge, making verification language-agnostic and proof-based rather than test-based.

Build angle

Start with high-value, narrow use cases: verify critical Rust crates used in production (crypto libraries, consensus algorithms, memory-unsafe operations). Build proof libraries for common patterns. Partner with teams shipping AI-generated code to safety-critical systems. Monetize through verification-as-a-service or enterprise licensing once the tool matures. The open-source foundation builds credibility and community contribution.

Strengths

  • Addresses a real bottleneck: as code generation gets cheaper, verification becomes the constraint
  • Works at binary level, making it language-agnostic across Rust, C++, Go, etc.
  • Lean integration with AI proving tools means proofs can be partially automated
  • YC backing and open-source approach builds trust in a domain where correctness claims matter
  • Clear technical differentiation: executable interpreter + formal reasoning in one system
  • Timing is good: AI code generation is accelerating, creating urgency for verification

Risks

  • Adoption barrier is high: formal verification requires expertise most teams don't have; even with automation, users need to understand what they're proving
  • Market size unclear: how many teams actually need mathematical proofs vs. better testing? Enterprise adoption of formal methods has been slow for decades
  • Competitive pressure from simpler alternatives: static analysis, fuzzing, and property-based testing solve 80% of problems for 5% of the cost
  • Lean ecosystem is small; building a proof library (codelib) from scratch is a multi-year effort with uncertain ROI
  • Full WASM coverage is a long slog; W3C testsuite compliance doesn't guarantee practical usefulness
  • Chicken-and-egg problem: tool is only valuable if proofs exist for the code people actually write; building that library requires either community contribution or significant internal effort

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Talos – Open-source WASM interpreter for Lean”.

Open FlyBot