Between basic and a doctorate, there must be some intermediary level. 😉
I would say that VC are more about boolean logics (AND, OR, XOR, IF, NOT) than plain mathematics.
As I am guilty as charged for having expressed my concern about circumvoluted VC, here is my point.
I tend to shun VC which have numerous conditions, with different goals depending of the game turn.
For an example, AP 38 Thai Hot has the following :
or AP87 Empire's Fall:
Nothing impossible...
I however would presume that a Minefield would only attack when all the units of the HW have finished their Impulse movement (i.e. not separate attacks for each different unit entering the same Location)?
I couldn't find a statement that covered that precise situation.
I would go for the end of "the" CCPh, as ASOP has the paragraph starting with "B" (=Both).
The introductory note of the ASOP gives the latter precedence over the rule:
What if the attack that generated the RF came from the other side of the building?
One could argue that you won't be harmed at all moving out of the building.
RF has no memory of its origin and using the obstacle's TEM is a not too bad compromise/abstraction.