Hacker News new | ask | show | jobs
by BWStearns 3776 days ago
There's a lawyer at the MIT media lab named Dazza Greenwood who is working on projects along these lines. My understanding is that he's already working with Boston to get any city ordinances that are amenable to the challenge to also be published with valid code of some sort. He has really worked through a lot of the issues and is really open about talking on the subject.

The formalization of all law into code fully is probably not fully achievable in the near term since there are many component parts of legal tests that are not really deterministically resolvable, and I think it would be a hard sell that justice is properly served if a call to rand() played a part in adjudication or sentencing.

I think a more profitable way to start integrating code is within the realm of contract law. A contract described in code has some advantages over even a well written legal prose contract: it's testable, components could be more easily reusable, in some circumstances it could self-monitor for breach, it's easily diffable. Such contracts could be made to be more transparent (assuming good faith and code-literacy) and less prone to purposely unenforcible clauses etc (law linter?). Some such contracts might be progressively abstracted into a genuine and good faith "standard contract" for [thing]. Of course now you need two lawyers who both can also program comfortably in the same programming language and I have to imagine the first judge to interpret such a contract is going to be pissed as hell (or more optimistically intrigued).

As far as starting from scratch all the time, we don't really do that. The US legal system was basically just forked from England at first, and within the US we have a lot of model laws that are more or less universal (look at the https://en.wikipedia.org/wiki/Uniform_Law_Commission), but we do sometimes have some weird holdouts (pretty sure Louisiana still uses some Napoleonic code instead of UCC stuff).

Edit: sorry for the wall-o-text, also just thought of IoT/semi-autonomous agents that might require the autonomy to decide whether or not to enter into a legally binding agreement on behalf of the operator without necessarily knowing ahead of time the counterparty or the exact terms. It would be a lot easier for these kind of bots if there were some generic contracting convention or DSL or something. I'm thinking trading bots and maybe of an intelligent shopping bot.

1 comments

Thanks for the leads. Very informative.

Contracts make sense, and will probably be the first experiments with this. That seems to be what blockchain tech is tapping into first. I would think though that new languages developed for this would emphasize readability. Perhaps a wiki-style top layer for regular human reading where the definitions, terms, and links can be defined and standardized as code underneath and can do things like call to state or federal entities for rates, dates, numbers, or jurisdiction domains etc. upon "enforcement" (runtime).

Now your edit was really interesting. International trade/shipping might be ripe for automation in the future. Boats and drones might be able to simply upload the most recent contract and parse it into actionable rules, or, act on behalf of parameters set via the contract. Maybe delivery drones check local law dynamically on sale of weapons etc. so that it doesn't need to get hard-coded into the operating system.