DeMorgan's Law (one of them, anyway), normally applied to two variables, states that:
A or B == not (not A and not B)
But this works equally well for three (or more) variables:
A or B or C == not (not A and not B and not C)
This becomes obvious when you realise that A or B or C
is true if any of them are true, the only way to get false if if all of them are false.
And, only if they're all false will not A and not B and not C
give true (hence not(that)
will give false). For confirmation, here's the table, where you'll see that the A or B or C
and not(notA and notB and notC)
columns give the same values:
A B C A or B or C notA notB notC not(notA and notB and notC)
----- ----------- -------------- ---------------------------
f f f f t t t f
f f t t t t f t
f t f t t f t t
f t t t t f f t
t f f t f t t t
t f t t f t f t
t t f t f f t t
t t t t f f f t