Catala – Law to Code
38 points
4 hours ago
| 5 comments
| catala-lang.org
| HN
mkl
2 hours ago
[-]
How strange to give it the same name as an unrelated natural language spoken by millions of people: https://en.wikipedia.org/wiki/Catala
reply
embedding-shape
2 hours ago
[-]
Not even unrelated, Catala (the law-language) seems to be a French project, supported by institutions in France, and Catalan seems to have a intertwined history with France: https://en.wikipedia.org/wiki/Catalan_language#France
reply
ajax33
54 minutes ago
[-]
Past discussions:

1. (https://news.ycombinator.com/item?id=27059899) - May 2021 (126 comments) 2. (https://news.ycombinator.com/item?id=28633122) - Sept 2021 (40 comments) 3. (https://news.ycombinator.com/item?id=37546874) - Sept 2023 (277 comments)

reply
kimfc
2 hours ago
[-]
Huh I just finished a book by Jaron Lanier that described a hypothetical system literally just like this. Always fun to get a coincidence like this
reply
sublinear
1 hour ago
[-]
> The aim is not to formalise or put into code all the law, because that would make no sense, but we are interested in the law that is already executed automatically, such as the calculation of social benefits, tax or unemployment.

Can anyone explain why it's believed this "would make no sense"?

reply
recursivecaveat
34 minutes ago
[-]
A computer program takes digital bytes, runs some discrete logic on them, outputs some more bytes. Laws take messy real world stuff, run some subjective decision tree on them, and output some messy real world actions to take. If you model the former with the latter you end up 'shelling out' to human judgement every 2 words. Suppose you accidentally shoot somebody while duck hunting, the meaning or value of pretty much everything here can't be determined by a computer, so the code-law version of this random snippet of natural-language-law would be pretty useless:

> If it is found that the defendant did the killing or wounding, but that it was not intentional or negligent, the court shall dismiss the proceeding. Otherwise, if it is found that the defendant did the killing or wounding intentionally, by an act of gross negligence, or while under the influence of alcohol, the court shall issue an order permanently prohibiting the defendant from taking any bird or mammal.

reply
embedding-shape
1 hour ago
[-]
Law isn't written to cover 100% of real life scenarios and potential cases, it's written with deliberate parts of ambiguity, that will ultimately be up to courts to set the precedents for, in various situations and context.

I think the idea is that you can't really cover 100% of real-life cases in "code", either legal or software, so the areas you'll leave this out of would be those "not-entirely-strict" parts.

reply
kelvindegrees
1 hour ago
[-]
I assume it would fail to compile, or error out, because of myriad conflicts throughout the body of laws.
reply
samrus
57 minutes ago
[-]
Basically, all human knowledge is an application of either math or philosophy, and law is philosophy, so cant be modeled by math
reply
bigbadfeline
38 minutes ago
[-]
> Basically, all human knowledge is an application of either math or philosophy

Philosophy is not knowledge, it's pure speculation.

> law is philosophy, so cant be modeled by math

Law is not philosophy unless it was written based on sloppy speculations. In other words, what law is, depends on how it was written, it can certainly be modeled by logic and math methods can be developed for it too.

It's nothing new, lawyers have to master logic as part of their training.

reply
shakna
32 minutes ago
[-]
Modelling intent, with math, is not going to happy. Law is based around the intent of those taking actions, and understanding intent is absolutely philosophy.
reply
bigbadfeline
2 minutes ago
[-]
Understanding intent is understanding interest and that's not philosophy. If it's not about interest, it's psychiatry - not philosophy either.

Down-voting can't change the truth, we've been led by the nose for far too long.

reply
nathan_compton
1 hour ago
[-]
I think the primary reason is that laws are about human convention, not real objects which one can clearly and deliberately define. Like at the most basic level nothing exists at all except for quantum fields or something like that. Everything else we talk about on a regular basis, people, dogs, streets, businesses, etc, is defined by convention to a greater or lesser degree.

It is therefore quite hard to create a formal system to refer to objects in the world in a way which induces no contradictions with intuition. This is why we have courts, among other functions of government.

reply
side_up_down
2 hours ago
[-]
How does this incorporate case law?
reply
Y_Y
1 hour ago
[-]
That's not so important in Napoleonic/Civil jurisdictions like France. Judges can consider prior rulings, but the law as-written is the main thing.
reply