Formalizing the US Tax Code A Lean proof-checker test suite applied to Title 26 of the US Code, release point 119-138 current to 3 November 2026, reported 257 findings, of which 138 are real drafting faults in the Internal Revenue Code after an AI agent checked each against the official text and editorial notes. The 138 faults include 67 references to provisions since repealed, moved or rewritten with no conforming change, 24 typos or wrong subdivisions, 8 wrong level words, 9 duplicate provision numbers and 30 unclosed parentheses, and Lean re-checks all 138 certificates in about two and a half minutes. The work is part of the CC0 global-law repository, which versions legislation as a git history with one commit per public law, and follows an earlier blind search that rediscovered the backdoor Roth under the retirement-account rules. Formalizing the US tax code 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 . Pointing a proof checker at statutes 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,