Laws can't even consistently get "and" and "or" right.
So the clarity you are proposing would in many instances have rather brutal and likely unintended impacts if broadly applied.
Not to mention that rewriting that verbiage probably wouldn't even have the intended effect as the semantics may already be determined by years of caselaw. But regardless, the dominating factor here is that the ambiguity is (usually or at least very often) baked in and that is in part meant as a stopgap against the particular kinds of injustices that arise when laws are applied purely procedurally without regard for the situational reality
See also Chesterton's Fence
If they actually couldn't decide on such a thing, they would need to suck it up and do their job. Your idea of brutal consequences is ridiculous in a situation like that.
We don't need formalising law in something like Lean to get this.
All we need is better legislative drafting. Indeed, many jurisdictions now have drafting guidelines which recommend using constructs such as "At least one of the following", "All of the following", etc, to remove the ambiguity of plain "and"/"or". Those jurisdictions which don't have such guidance should adopt it.
But what has always baffled me, AFAIK, the original legislators don't file Amicus Briefs when the meaning of laws are argued in court. I mean in situations where the original legislator is still alive and of good mind, why doesn't the Judge just ask them what the spirt of the law is?
In a parliamentary system such as the UK, Canada or Australia, this tends to be less of an issue – the executive government is under the direct control of the legislature, so if the Attorney-General or Solicitor-General submits a brief arguing for a particular interpretation of legislation, the current legislative majority (which might not necessarily be the majority which enacted that legislation to begin with) can be understood as effectively endorsing it.
In a presidential system such as the US, where there is a strong separation between the executive and legislative branches, legislator amicus briefs make somewhat more sense – and members of US Congress submitting amicus briefs to appellate courts actually does happen reasonably frequently; however, the courts tend not to put much weight on them.
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).