Our legal systems across the planet desperately need this.
It's going to be fun when legal systems are analyzed by LLMs. The chances that hundreds of thousands (millions?) of laws and regulations written by legislators, judges and bureaucrats over hundreds of years are self consistent and contain no internal contradictions is very, very, very close to zero.
Not at all. What an anti pattern that would be.
You could probably use AI to reform legal systems but it's very different from mathematical proofs, being fundamentally about human behaviour.
Imagine the volume of exploits we have in software, but in the law. It’s happening in the law world, just slower and we barely hear about it here on HN.
It’s going to be a proper mess before it gets better.
Laws are supposed to be applied (by judges, bureaucrats, etc) with discretion and common sense, not mechanically. Of course, that can sometimes result in injustices – exceptions being made for some people not others for reasons of political or societal biases – but it also avoids a lot of injustices: thoughtless/mechanical application of the law can result in outcomes which the legislator never intended and few would consider just or fair or reasonable.
I think, if we actually started applying laws in such a mechanical way, we'd end up with laws changing a lot more frequently, and with a lot more special cases written in to them – now, if applying a law in a certain situation seems unreasonable, judges will often choose not to apply it; with mechanical application, they'd have no choice, and then the people negatively impacted would lobby the legislature for a change in the legal text, and they'd probably get it. It could also see increased use of executive clemency (the power of pardon), or its legislative equivalent (legislation retroactively declaring certain convictions null and void).