Skip to content
Prompt & SolderHow to Ask Claude
All builds
SRNo photo
Unverified Proof shown

The US tax code formalised in Lean to check IRS figures

A developer used Claude Code to parse the US tax code, compile its relationships into Lean and search for mistakes in values the IRS reports.

—

Credits

  • Reddit poster SnooPeripherals5313 Source ↗

Earliest dated source: 17 Nov 2026

The full story

A team used Claude Code to turn the US tax code into a formal model in the Lean theorem prover. They took the code as XML, wrote a parser to extract the relationships between sections, versioned them, and had Claude compile them into a Lean script, borrowing the approach used to formalise CPython. Claude also managed subagents watching the long-running searches.

They then wrote each line of IRS worksheets in Lean from the worksheets' own text and proved it against the statute for every possible input. The write-up lists eight places where IRS forms differ from the law and who is affected, and also checks open-source tax calculators against the model.

How it was done

Tools

Themes

Loading themes…

Sources

From a short post by the maker, so the details are as they tell them.

  • Reddit: Vibe checking the IRS with LeanForum threadreddit.com
    Reddit poster: SnooPeripherals5313Posted 17 Nov 2026

    The developer's post in r/ClaudeCode summarising the method.

  • The project: lexifina.comBlog or write-uplexifina.com

    The team's blog post with the IRS discrepancies and calculator checks.

Related builds

Finding related builds…

Prompt & Solder

An independent community project. Not affiliated with Anthropic.

What this is. Real projects where people used Claude to build, fix, port, revive or take apart something, from jailbroken Kindles to rebuilt DOS games, plus the times it went badly wrong. Every build links to where it was shared, and every source is listed here.

How far to trust it. We summarise what people reported and say what each build rests on: a full write-up with code, a short post, or a passing comment. We haven't tested them ourselves. Photos are shown from the original sources with credit. Only modify hardware you own, and back up first.

Privacy. No accounts. Analytics cookies (Google Analytics) only if you accept them; no ads or cross-site tracking. Searches are counted anonymously (just the words) to show what's popular, and so are clicks on Ask Claude (just the count). The Claude connector only receives the search words your Claude sends it.

How toAsk ClaudeEvery sourceStatsSubmit a buildPrivacyRSS