"A unless B" is an inclusion/exclusion type statement. You start with all possible truths. Exclude those inconsistent with $A$. Then add those consistent with $B$.
Start, all possible truths: $$\{A \land B,~ A\land \lnot B,~ \lnot A \land B,~ \lnot A \land \lnot B\}$$
Truths inconsistent with $A$: $$\{\lnot A \land B,~ \lnot A \land \lnot B\}$$
Truths consistent with $B$: $$\{A \land B,~ \lnot A \land B\}$$
All possible truths excluding those inconsistent with $A$:
$$\{A \land B,~ A\land \lnot B,~ \lnot A \land B,~ \lnot A \land \lnot B\} - \{\lnot A \land B,~ \lnot A \land \lnot B\} = \{A \land B,~ A \land \lnot B\}$$
Add back all truths consistent with $B$:
$$\{A \land B,~ A \land \lnot B\} \cup \{A \land B,~ \lnot A \land B\} = \{A \land B,~ A\land \lnot B,~ \lnot A \land B\}$$
Which is exactly the truths consistent with $A \lor B$.
In casual English, when you say "X unless Y", it doesn't strictly speaking mean that X fails when Y holds. However, some people will infer that anyway because "why else would you say it that way". It is not correct, but it is not uncommon either, so use the word "unless" at your own risk.
It is like saying, "you can't have desert if you don't eat your vegetables". It was never actually said that you could have desert if you do eat your vegetables. But most people will infer that, and be very upset when you correctly inform them that you never promised them desert. Unless they study math.
P exclusive-or Q
, its literal meaning is justP or Q
. – ryang Oct 10 '23 at 16:38