Lawmakers often make laws and regulations that aren't consistent with existing body of law, but it's sometimes hard to see (esp. if they're doing a tight schedule, like having a 500-page document dropped in their lap over the weekend).
Having a way to say "here, this new bill you're proposing is provably in conflict with those three" would maaaybe nudge some people to take a second look or raise concerns?
It would also be nice at the judiciary appelate level if you could ask "does this particular finding conflict with law" directly as opposed to "do you, judge, as a fallable human being, agree with this/these other judge/s" in a turtles all the way down to the supreme court which is just a group of fallable humans rather than an individual.
Quickly knowing which existing laws you're treading on while writing a new one, and then mapping them to precedents... that sounds like it might be useful feedback for somebody embarking on a legal refactor.
This all misses the point. Lawyers have jobs exactly because laws are intentionally written to be vague and have loopholes, even contradictions. That field wants human in the loop.
Sure, but if you're drafting legislation you want to write with an understanding of how the human in the loop is likely to behave. What moves are going to be within easy reach? What other moves are going to be a stretch? They're going to do the research to discover their options, why make that research any more difficult than it needs to be? Why not associate it with a hotkey?
The outcome will be the same in either case, so you might as well make it quicker and easier.
Unfortunately, principle of explosion means that if the legal system has a single contradiction, then every law both contradicts and agrees with every other law.
"Yes, you avoided running over a family, but you crossed over the yellow line, didn't signal properly, that also counts as reckless driving and a number of other violations. You'll be fined thousands of dollars, your license taken, and you'll spend one week in jail"
Why would it lead to that? There are many structural errors, inconsistent terms, unintended gaps. Fixing them doesn’t mean that judges will be less flexible in circumstances where the law was supposed to rely on their judgment.
We are talking about people seriously arguing over how to interpret a comma, or the lack thereof [1], or claiming that obstructing guards outside a military base is a crime, while doing it inside the base is completely legal [2].