Law cannot be translated into formal proofs, because it is designed to interface with the messyness of the real world, not a pure mathematical system, and always requires case-by-case contextual interpetations.
Based on my experiences over years, both working in chambers and litigating, judges on a particular end of the spectrum tend to do this more than those on the other end.
If the person running the software checks of that the event happened, the resulting consequence can be expected.