MathorynMathematical Formula Database

Set Theory & Logic

De Morgan's Laws in Logic

The negation of "and" is "or" of the negations, and the negation of "or" is "and" of the negations. These laws are used to negate statements correctly, to simplify Boolean expressions and in digital circuit design.

¬(p∧q)≡¬p∨¬q,¬(p∨q)≡¬p∧¬q\neg(p\land q)\equiv\neg p\lor\neg q,\qquad \neg(p\lor q)\equiv\neg p\land\neg q
LaTeX\neg(p\land q)\equiv\neg p\lor\neg q,\qquad \neg(p\lor q)\equiv\neg p\land\neg q

Variables

p, qp,\ q
propositions (true or false)
¬, ∧, ∨\neg,\ \land,\ \lor
not, and, or
≡\equiv
logically equivalent

Example

Check ¬(p∧q)≡¬p∨¬q\neg(p\land q)\equiv\neg p\lor\neg q with a truth table.

  1. Rows (p,q)(p,q): TT, TF, FT, FF.
  2. ¬(p∧q)\neg(p\land q): F, T, T, T; ¬p∨¬q\neg p\lor\neg q: F, T, T, T.

Answer: The columns agree in all 44 rows.

Related formulas