lexifina.comยท10 november 2026

Formalizing the US tax code | Lexifina

Image for the article: Formalizing the US tax code | Lexifina
Image via lexifina.com

Researchers formalized the US Internal Revenue Code using Lean, a programming language with proof-checking capabilities, to identify 138 drafting mistakes and potential tax loopholes. The process involved translating the tax law into Lean, testing it against IRS examples, and comparing it with other tax software. The work is part of the global-law project, which aims to use AI and proof checkers to find contradictions and mechanical mistakes in versioned legislation. The researchers also found bugs in existing tax software, including logical errors in calculations for the Earned Income Tax Credit and self-employment income.