Field noteNov 23, 20265 min read1 source

Formalizing Taxation Across 38 Nations Using Lean

In one minute

Lexifina says it has formalized income-tax rules for 38 countries in Lean, using shared components and country-specific code to compare laws, datasets and tax software. The project reports 179 verified findings across 37 countries, alongside newly rediscovered tax loopholes and errors in other programs. Its value for AI builders is a detailed example of turning complex rules into inspectable, testable software.

What happened

Lexifina’s November 19, 2026 article describes models of income tax in 38 countries, written in Lean, a language that accepts a proof only when each step follows logically. Each model represents a country’s rules rule by rule, in exact arithmetic, and cites the legal provision associated with each rule. The company says this makes disagreements with government tables traceable to particular code and legal text. It also says the same household description can be run through all 38 models.

The project built a shared kernel of 12 reusable parts, including tax bands, rounding, allowances that taper with income, credits, social contributions and lookup tables. Thirty-three country models use kernel declarations directly; five earlier models are wrapped rather than rebuilt on the kernel. The compiled models and kernel contain 9,568 definitions, theorems and types, including 2,114 theorems. The article reports 30,848 dependency links and 1,106 distinct cited legal provisions across the models. A UK reconstruction from shared parts matches the full UK model to the penny for 10,279 households.

Lexifina reports 179 verified findings in 37 countries: 49 benefit cliffs, 42 stale references or tables, 39 discrepancies involving the OECD and other referees, 18 withholding issues, 18 frozen thresholds and 13 errors in government software. Examples include a South Korean payroll table still using 2014 rules, a Cyprus benefit that drops when family income exceeds €49,000, and an Austrian official calculator that overcharges pensioners. For the Cyprus example, the article reports an annual loss of €4,708 from earning one additional cent. Each finding, it says, is backed by the country file, statute, household and a Lean statement proving the amount.

The team also compared the models with 103 datasets: 74 working datasets and 51 held back for testing, according to the article. The models were checked against nine free tax programs covering 31 countries. Lexifina says that comparison revealed 20 mistakes in other programs and five mistakes in its own models that official data had missed. The team reports that it froze models before scoring each round and allowed changes only when they followed the law, not merely to fit a number. Project files and test-round results are published in the linked open-source work referenced by the article.

What the archive adds

New Runtime’s earlier coverage includes The Stacks Project, formalized in Lean (November 5, 2026), which described a machine-checked library of about 16 million lines, and Axiom announces a Lean formalization of Faltings’ theorem (November 16, 2026). This is a new event in the same broader Lean-formalization thread: the distinctive addition is a multi-country legal model tested against tax datasets and software.

Trend signal

This does not yet fit a pattern New Runtime tracks. Lexifina’s account concerns formal verification of tax rules, not the runtime boundaries, agent workflows or interoperable protocols that the tracked patterns address. The reported results may be useful to future work on verification, but the article does not establish a broader shift in how AI systems are built or operated.

Why it matters

For teams building software around law, policy or other rule-heavy domains, the project illustrates a way to make assumptions auditable rather than burying them in an opaque calculator. Exact arithmetic, citations attached to rules, shared components and a held-back test set provide separate checks: the code can be examined, the legal basis can be located, and discrepancies can be measured against independent examples.

The larger lesson is not that a proof settles the meaning of a statute. Lexifina explicitly acknowledges that a formal model proves claims about its encoded interpretation, not that the interpretation is the only legally valid one. But if a model is explicit and versioned, teams can identify where a rule changed, compare outputs and rerun checks. That is especially valuable when a law, table and calculator are maintained by different organizations and fall out of sync.

Limits and uncertainty

The findings are reported by Lexifina, the project’s builder; the article does not provide independent replication of the 179 findings. It says datasets were held back, but also discloses that three rounds included files mixing held-back households into working data; the reported differences were five lines where the data could be removed. The article notes that grids from programs used during model development are not independent. Formal proofs establish results within each encoded model; they do not independently settle legal interpretation, and the report does not show how governments or affected taxpayers have acted on the findings.

Reader takeaway

Lean’s contribution here is not simply that tax rules were translated into code. The project ties rules to cited provisions, reuses common components, tests outputs against withheld data and other software, and makes discrepancies inspectable. For rule-heavy systems, that combination can turn a difficult-to-audit calculator into a model whose assumptions and failures are easier to trace.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1lexifina.com/blog/formalizing-taxation-across-38-nations
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicVerificationExplore the verification topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract