lpetrich
Contributor
Programming Language Converts Laws Into 'Provably Correct' Computer Code | Discover Magazine
"Some legal text is so highly prescribed that it functions like an algorithm. So a team of computer scientist have created a programming language that can capture and execute these laws."
There have been some efforts to create programming languages with some resemblance to natural language, to make them easier to understand by non-programmers. The most notable effort may be COBOL, one of the first high-level programming languages.
One has in it:
add A to B giving C
But a few years after the first release, someone added into the language some syntax more typical of high-level languages:
compute C = A + B
Will Catala contain anything comparable?
"Some legal text is so highly prescribed that it functions like an algorithm. So a team of computer scientist have created a programming language that can capture and execute these laws."
Many algorithms are very awkward to express in natural language, and that is why mathematical notations and programming languages have been invented.... So-called computational law involves ideas that are well defined and situations that do not generally require human judgment. For example, certain areas of tax law. In these areas “law leaves little room for interpretation, and essentially aims to rigorously describe a computation, a decision procedure or, simply said, an algorithm,” says Denis Merigoux and Nikolas Chataing at the National Institute for Research in Digital Science and Technology in Paris, along with Jonathan Protzenko at Microsoft Research in the U.S.
Computational law has always been drafted in ordinary prose, a tool that is better suited to other messages, from romantic poetry to scientific papers. But computer scientists do not use prose to write algorithms ... so why should lawyers?
Now, they no longer need to. Merigoux and colleagues have created a programming language called Catala that is specifically designed to capture and execute legal algorithms. The team have already begun to translate certain legal statutes into Catala and then to implement them. In the process, they show how U.S. tax law can be translated into Catala code and have even found a “bug” in the official implementation of French family benefits, which is governed by a particularly complex set of statutes.
There have been some efforts to create programming languages with some resemblance to natural language, to make them easier to understand by non-programmers. The most notable effort may be COBOL, one of the first high-level programming languages.
One has in it:
add A to B giving C
But a few years after the first release, someone added into the language some syntax more typical of high-level languages:
compute C = A + B
Will Catala contain anything comparable?