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.