Catala.
Catala is an open-source programming language for turning legislation, such as tax or social benefit rules, into software. The code is written alongside the legal text, article by article, so lawyers and developers can check together that each rule is implemented exactly as the law intends. It compiles to mainstream languages such as Python or C.
Article 3
If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.
scope IncomeTaxComputation: label article_3 exception article_2 definition tax_rate under condition individual.number_of_children >= 2 consequence equals 15%
Try the tax law
In Catala, as in the law, an article can make an exception to another one. Change the case below and see which article sets the tax rate.
Each arrow goes from an exception to the rule it overrides. In blue, the article that sets the rate. Dashed, an article that applies but is overridden. Faded, an article that does not apply.
Set by article 3
Article 2 (version before 2000)
The fixed percentage mentioned at article 1 is equal to 20%.
scope IncomeTaxComputation: label article_2 definition tax_rate under condition current_date < |2000-01-01| consequence equals 20%Article 2 (version from 2000)
The fixed percentage mentioned at article 1 is equal to 21%.
scope IncomeTaxComputation: label article_2 definition tax_rate under condition current_date >= |2000-01-01| consequence equals 21%Article 3
If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.
scope IncomeTaxComputation: label article_3 exception article_2 definition tax_rate under condition individual.number_of_children >= 2 consequence equals 15%Article 4
Individuals earning $10,000 or less are exempt from the income tax mentioned at article 1.
scope IncomeTaxComputation: label article_4 exception article_3 definition tax_rate under condition individual.income <= $10,000 consequence equals 0%Article 5
Individuals earning more than $100,000 are subject to a tax rate of 30%, regardless of their number of children.
scope IncomeTaxComputation: label article_5 exception article_3 definition tax_rate under condition individual.income > $100,000 consequence equals 30%Article 6
In the overseas territories, the tax rate for individuals earning more than $100,000 specified at article 5 is reduced to 25%.
scope IncomeTaxComputation: label article_6 exception article_5 definition tax_rate under condition individual.income > $100,000 and overseas_territories consequence equals 25%Our work
With Inria, we work on making Catala ready for production use. Since March 2026, we have worked on several tools in its ecosystem.
VS Code extension
Our main focus, and in particular a debugger for the people who test business rules. More
Clerk
We restructured clerk, the build system that compiles and tests Catala projects.
JavaScript backend
A new backend that compiles Catala programs to JavaScript.
Debugger
The people who test business code against real-world cases are often not the developers who wrote it. We designed this debugger to be usable by people from different professional backgrounds. It relies on the trace feature introduced in Catala 1.3.0.
Here is what it looks like on a simple example: a household of two people under the simplified tax law. The replay follows a value back to the article that set it.
The test
Two people in one household, in 1999. One earns $15,000 and has no children. The other earns $80,000 and has two.
#[test]declaration scope TestHousehold: output computation content Taxes.HouseholdTaxComputation scope TestHousehold: definition computation equals output of Taxes.HouseholdTaxComputation with { -- individuals: [ Taxes.Individual { -- income: $15,000 -- number_of_children: 0 }; Taxes.Individual { -- income: $80,000 -- number_of_children: 2 } ] -- overseas_territories: false -- current_date: |1999-01-01| }
The trace
Article 3, for two or more children: the trace shows its code and its text.
- → Call to TestHousehold
- Results
- = computation
- → Call to HouseholdTaxComputation
- Results
- = household_tax equal to $15000.00
- → Function sum equal to $15000.00
- → Call to HouseholdTaxIndividualComputation
- → Call to HouseholdTaxIndividualComputation
- Inputs
- = individual
- {income: 80000.00, number_of_children: 2}
- Internals
- = income_tax_computation
- → Call to IncomeTaxComputation
- Internals
- = tax_rate equal to 0.15code
label article_3 exception article_2definition tax_rateunder condition individual.number_of_children >= 2consequence equals 15%- Article 3 If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.
- Results
- = income_tax equal to $12000.00
- = household_tax state base equal to $20000.00
- Results
- = household_tax state with_deduction equal to $8000.00
VS Code extension
The Catala extension for Visual Studio Code is open source and published on the Visual Studio Marketplace. It brings completion, error reporting, hover information, code navigation, formatting, a test editor and support for clerk projects.
We added the Catala activity bar and a view of all the tests in a project, and we designed the debugger described above. Catala on the Marketplace
At the CNAF
The Caisse nationale des Allocations familiales (CNAF) pays family, housing and other social benefits in France. In June 2026, the CNAF and Inria signed an agreement that makes Catala the core of the CNAF's future calculation engines, starting with housing benefits. We work with Inria on this deployment.


- €110B
- of benefits paid by the CNAF each year
- 13.6M
- households receiving CNAF benefits