

Catala
Catala is a domain-specific language for deriving faithful-by-construction algorithms from legislative texts.
Cost / License
- Free
- Open Source
Platforms
- Self-Hosted
- Visual Studio Code


Catala
Features
- Code Formatting
- Autocompletion
- Syntax Highlighting
- Literate programming
- Code Completion
Tags
- legislation
- logical-thinking
- legislative-text
- vscode-extension
- Language Server Protocol
- ocaml
Catala information
What is Catala?
Catala is a domain-specific language for deriving faithful-by-construction algorithms from legislative texts.
Catala is a programming language adapted for socio-fiscal legislative literate programming. By annotating each line of the legislative text with its meaning in terms of code, one can derive an implementation of complex socio-fiscal mechanisms that enjoys a high level of assurance regarding the code-law faithfulness.
Concretely, you have to first gather all the laws, executive orders, previous cases, etc. that contain information about the socio-fiscal mechanism that you want to implement. Then, you can proceed to annotate the text article by article, in your favorite text editor.
Once your code is complete and tested, you can use the Catala compiler to produce a lawyer-readable PDF version of your implementation. The Catala language has been specially designed in collaboration with law professionals to ensure that the code can be reviewed and certified correct by the domain experts, which are in this case lawyers and not programmers.
The Catala language is special because its logical structure mimics the logical structure of the law. Indeed, the core concept of "definition-under-conditions" that builds on default logic has been formalized by Professor Sarah Lawsky in her article A Logic for Statutes. The Catala language is the only programming language to our knowledge that embeds default logic as a first-class feature, which is why it is the only language perfectly adapted to literate legislative programming.
