Formalizing US Tax Code (Using Lean)

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.
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 ]
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 accountAlready have an account? Sign in