Article may be outdated

This article is 8 days old. Some details may have changed since publication.

Hacker News·3 min read·hard

Formalizing US Tax Code (Using Lean)

D
dnw
Formalizing US Tax Code (Using Lean)
✦AI Summary

Researchers are using the Lean programming language to formalize the US Internal Revenue Code to identify potential tax loopholes and mechanical errors. By treating tax law as a set of logical proofs, the project aims to uncover inconsistencies that human reviewers might miss.

Why it matters

This application of formal verification to legal code represents a novel intersection of computer science and public policy.

✦Dive DeeperCreate a free account to unlock

Yesterday, we verified that known tax loopholes could be identified using a Lean search. Today, we set out to formalize the entire Internal Revenue Code to hunt for unknown loopholes (bugs).

Lean is a programming language whose type checker can also check mathematical proofs: if Lean accepts a proof, every step follows from the definitions, with nothing taken on trust. An earlier post discussed how far that kind of formalisation can reach in law, [ 1 ] and yesterday we used it on the retirement-account rules, where a blind search rediscovered the backdoor Roth. [ 2 ]

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologyscienceeconomy
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in