lexifina.comยท10 november 2026
Formalizing the US tax code | Lexifina

AI in Law
Internal Revenue Code
Lean programming
Tax Calculation
tax code analysis
tax compliance
tax credits
tax deductions
tax errors
tax law formalization
tax loopholes
tax policy
tax reform
tax software
tax software bugs
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.