Catala: A Programming Language for the Law
Not on the map. Why?
Abstract (arXiv)
Law at large underpins modern society, codifying and governing many aspects of citizens' daily lives. Oftentimes, law is subject to interpretation, debate and challenges throughout various courts and jurisdictions. But in some other areas, law leaves little room for interpretation, and essentially aims to rigorously describe a computation, a decision procedure or, simply said, an algorithm. Unfortunately, prose remains a woefully inadequate tool for the job. The lack of formalism leaves room for ambiguities; the structure of legal statutes, with many paragraphs and sub-sections spread across multiple pages, makes it hard to compute the intended outcome of the algorithm underlying a given text; and, as with any other piece of poorly-specified critical software, the use of informal language leaves corner cases unaddressed. We introduce Catala, a new programming language that we specifically designed to allow a straightforward and systematic translation of statutory law into an executable implementation. Catala aims to bring together lawyers and programmers through a shared medium, which together they can understand, edit and evolve, bridging a gap that often results in dramatically incorrect implementations of the law. We have implemented a compiler for Catala, and have proven the correctness of its core compilation steps using the F* proof assistant. We evaluate Catala on several legal texts that are algorithms in disguise, notably section 121 of the US federal income tax and the byzantine French family benefits; in doing so, we uncover a bug in the official implementation. We observe as a consequence of the formalization process that using Catala enables rich interactions between lawyers and programmers, leading to a greater understanding of the original legislative intent, while producing a correct-by-construction executable specification reusable by the greater software ecosystem.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Mar 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 5; 2025: 2; 2026: 6.
18 papers.
Sort:
By area:
- 2025A Neurosymbolic Approach to Natural Language Formalization and Verificationcited by 8
- 2024A Certified Proof Checker for Deep Neural Network Verification in Imandracited by 7
- 2023Enhancing Logical Reasoning in Large Language Models to Facilitate Legal Applicationscited by 6
- 2024Software Engineering Methods For AI-Driven Deductive Legal Reasoningcited by 3
- 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoningcited by 3
- 2025Can LLMs Identify Tax Abuse?cited by 2
- 2024Automated legal reasoning with discretion to act using s(LAW)cited by 1
- 2021An NLG pipeline for a legal expert system: a work in progresscited by 0
- 2022Automating Defeasible Reasoning in Lawcited by 0
- 2022Artificial intelligence and renegotiation of commercial lease contracts affected by pandemic-related contingencies from Covid-19. The project A.I.A.Cocited by 0
- 2022Envisioning a Human-AI collaborative system to transform policies into decision modelscited by 0
- 2024Le Nozze di Giustizia. Interactions between Artificial Intelligence, Law, Logic, Language and Computation with some case studies in Traffic Regulations and Health Carecited by 0
6 more
- 2024Code-Driven Law NO, Normware SI!cited by 0
- 2026Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domainscited by 0
- 2026GDPR Auto-Formalization with AI Agents and Human Verificationcited by 0
- 2026By Their Fruits You Will Know Them: Comparing Formalizations of Law by the Decisions They Encodecited by 0
- 2026Time as Structure: Temporal Dependency Graphs for Verifiable Deadline Computation over Legal Documentscited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoningcited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning1 Oct 2026
- 2026Time as Structure: Temporal Dependency Graphs for Verifiable Deadline Computation over Legal Documents15 Aug 2026
- 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning15 Jun 2026
- 2026By Their Fruits You Will Know Them: Comparing Formalizations of Law by the Decisions They Encode24 May 2026
- 2026GDPR Auto-Formalization with AI Agents and Human Verification16 Apr 2026
- 2026Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domains23 Mar 2026
- 2025A Neurosymbolic Approach to Natural Language Formalization and Verification12 Nov 2025
- 2025Can LLMs Identify Tax Abuse?10 Aug 2025
- 2024Code-Driven Law NO, Normware SI!5 Oct 2024
- 2024A Certified Proof Checker for Deep Neural Network Verification in Imandra17 May 2024
- 2024Software Engineering Methods For AI-Driven Deductive Legal Reasoning15 Apr 2024
- 2024Le Nozze di Giustizia. Interactions between Artificial Intelligence, Law, Logic, Language and Computation with some case studies in Traffic Regulations and Health Care9 Feb 2024
6 more
- 2024Automated legal reasoning with discretion to act using s(LAW)25 Jan 2024
- 2023Enhancing Logical Reasoning in Large Language Models to Facilitate Legal Applications22 Nov 2023
- 2022Envisioning a Human-AI collaborative system to transform policies into decision models1 Nov 2022
- 2022Artificial intelligence and renegotiation of commercial lease contracts affected by pandemic-related contingencies from Covid-19. The project A.I.A.Co14 Oct 2022
- 2022Automating Defeasible Reasoning in Law15 May 2022
- 2021An NLG pipeline for a legal expert system: a work in progress6 Jul 2021
- 2023Enhancing Logical Reasoning in Large Language Models to Facilitate Legal Applicationscited by 6
- 2024Software Engineering Methods For AI-Driven Deductive Legal Reasoningcited by 3
- 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoningcited by 3
- 2026By Their Fruits You Will Know Them: Comparing Formalizations of Law by the Decisions They Encodecited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoningcited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning1 Oct 2026
- 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning15 Jun 2026
- 2026By Their Fruits You Will Know Them: Comparing Formalizations of Law by the Decisions They Encode24 May 2026
- 2024Software Engineering Methods For AI-Driven Deductive Legal Reasoning15 Apr 2024
- 2023Enhancing Logical Reasoning in Large Language Models to Facilitate Legal Applications22 Nov 2023
- 2025A Neurosymbolic Approach to Natural Language Formalization and Verificationcited by 8
- 2024A Certified Proof Checker for Deep Neural Network Verification in Imandracited by 7
- 2025Can LLMs Identify Tax Abuse?cited by 2
- 2024Automated legal reasoning with discretion to act using s(LAW)cited by 1
- 2021An NLG pipeline for a legal expert system: a work in progresscited by 0
- 2022Automating Defeasible Reasoning in Lawcited by 0
- 2022Artificial intelligence and renegotiation of commercial lease contracts affected by pandemic-related contingencies from Covid-19. The project A.I.A.Cocited by 0
- 2022Envisioning a Human-AI collaborative system to transform policies into decision modelscited by 0
- 2024Le Nozze di Giustizia. Interactions between Artificial Intelligence, Law, Logic, Language and Computation with some case studies in Traffic Regulations and Health Carecited by 0
- 2024Code-Driven Law NO, Normware SI!cited by 0
- 2026Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domainscited by 0
- 2026Time as Structure: Temporal Dependency Graphs for Verifiable Deadline Computation over Legal Documentscited by 0
- 2026Time as Structure: Temporal Dependency Graphs for Verifiable Deadline Computation over Legal Documents15 Aug 2026
- 2026Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domains23 Mar 2026
- 2025A Neurosymbolic Approach to Natural Language Formalization and Verification12 Nov 2025
- 2025Can LLMs Identify Tax Abuse?10 Aug 2025
- 2024Code-Driven Law NO, Normware SI!5 Oct 2024
- 2024A Certified Proof Checker for Deep Neural Network Verification in Imandra17 May 2024
- 2024Le Nozze di Giustizia. Interactions between Artificial Intelligence, Law, Logic, Language and Computation with some case studies in Traffic Regulations and Health Care9 Feb 2024
- 2024Automated legal reasoning with discretion to act using s(LAW)25 Jan 2024
- 2022Envisioning a Human-AI collaborative system to transform policies into decision models1 Nov 2022
- 2022Artificial intelligence and renegotiation of commercial lease contracts affected by pandemic-related contingencies from Covid-19. The project A.I.A.Co14 Oct 2022
- 2022Automating Defeasible Reasoning in Law15 May 2022
- 2021An NLG pipeline for a legal expert system: a work in progress6 Jul 2021