# Basis makes LLMs prove their language rules match the real interpreter

Original title: Ship Your Interpreter

> Hacker News story 50160440 · language: en · submitted 2026-10-20
> Web version: https://zeli.app/story/50160440
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 24 · by [gopiandcode](<https://news.ycombinator.com/user?id=gopiandcode>) · 💬 25
[original](<https://www.basis.ai/blog/ship-your-interpreters/>) · [HN discussion](<https://news.ycombinator.com/item?id=50160440>)

## Summary

Basis researchers had LLMs write formal semantics for a small language, then used Lean to prove the rules match a C interpreter compiled to RISC-V for every program. Testing alone missed a real bug: the semantics ignored a 64-byte buffer limit in stringifying functions, so long names broke. The proof forced the fix. The full development is on GitHub.

## Key quote

> A semantics can pass every test and still be wrong.

## HN discussion (25 comments)

### [ngruhn](<https://news.ycombinator.com/item?id=50177095>)

> This is great. Many people online who "verify their software" seem to just tell an LLM "verify dis" and have no idea what comes out. The model could be proving 1+1=2 for all they know.
>
> These guys actually show some Lean theorems they proved. Also interesting approach to compile the existing interpreter into the de-facto spec.

### [ISackKnights](<https://news.ycombinator.com/item?id=50177266>)

> I am not sure what I have read here, I couldn't finish it, due to the AI writing. But you do have to wonder - Isn't this (just) a subset of Rust?

### [jupitr](<https://news.ycombinator.com/item?id=50178376>)

> This is the same idea as the fixed point of the meta-circular evaluator - the abstract ideal language that lisp models almost exactly.

---

## Cite

- Page: https://zeli.app/story/50160440
- Date: 2026-10-20
- Source: basis.ai (https://www.basis.ai/blog/ship-your-interpreters/)
- Hacker News: https://news.ycombinator.com/item?id=50160440

## Other languages

- zh: https://zeli.app/zh/story/50160440 · markdown: https://zeli.app/zh/story/50160440.md
- ja: https://zeli.app/ja/story/50160440 · markdown: https://zeli.app/ja/story/50160440.md
- ko: https://zeli.app/ko/story/50160440 · markdown: https://zeli.app/ko/story/50160440.md
- de: https://zeli.app/de/story/50160440 · markdown: https://zeli.app/de/story/50160440.md
- es: https://zeli.app/es/story/50160440 · markdown: https://zeli.app/es/story/50160440.md
- ru: https://zeli.app/ru/story/50160440 · markdown: https://zeli.app/ru/story/50160440.md
