Express-
ion
ABA || BA && B!A!B!A || !B!A && !B
TTTTFFFF
TFTFFTTF
FTTFTFTF
FFFFTTTT
Same
as
! (!A && !B)! (!A || !B)!(A && B)! (A || B)

For any comparison between two booleans, you can either pull out !‘s from both, or distribute !‘s from an outside bracket. When distributing/pulling out !‘s, you switch the boolean operation from || to && and vice versa.

  • ! (!A && !B) A || B
  • A && B !(!A || !B)
  • !A && !B !(A || B)

Unrelated

&&‘s cannot be split, but ORs can be