Math 2.0

Mathematical logic and foundations Proof

Proof of De Morgan's laws by truth tables

Builds on PropositionNegationConjunctionDisjunctionLogical equivalenceTruth table

Proof

We compare truth tables. Two formulas are logically equivalent when they agree for each of the four assignments of truth values to pp and qq.

  1. Let pp and qq be propositions. In classical logic, each of them is true or false, so there are four rows: TT, TF, FT and FF.
  2. We compute ¬(p∨q)\neg (p \lor q). By the definition of disjunction, p∨qp \lor q is false only in the row FF. By the definition of negation, ¬(p∨q)\neg (p \lor q) is true only in the row FF.
  3. We compute ¬p∧¬q\neg p \land \neg q. By the definition of conjunction, it is true only when ¬p\neg p and ¬q\neg q are both true. By the definition of negation, this happens only in the row FF.
  4. By steps 2 and 3, both formulas are true in the row FF and false in the other three rows. So ¬(p∨q)≡¬p∧¬q\neg (p \lor q) \equiv \neg p \land \neg q.
  5. We compute ¬(p∧q)\neg (p \land q). By the definition of conjunction, p∧qp \land q is true only in the row TT. So ¬(p∧q)\neg (p \land q) is false only in the row TT.
  6. We compute ¬p∨¬q\neg p \lor \neg q. By the definition of disjunction, it is false only when ¬p\neg p and ¬q\neg q are both false. This happens only in the row TT.
  7. By steps 5 and 6, both formulas are false in the row TT and true in the other three rows. So ¬(p∧q)≡¬p∨¬q\neg (p \land q) \equiv \neg p \lor \neg q.
  8. The full table shows both laws.
pp qq ¬(p∨q)\neg (p \lor q) ¬p∧¬q\neg p \land \neg q ¬(p∧q)\neg (p \land q) ¬p∨¬q\neg p \lor \neg q
T T F F F F
T F F F T T
F T F F T T
F F T T T T

Idea

Each side of a De Morgan law is singled out by one special row. For the first law that row is "both false", and for the second law it is "both true". Since the two sides pick out the same row, they agree everywhere.

Reading path

To understand this page from the ground up, read these 11 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Proposition concept
  2. Conjunction definition
  3. Disjunction definition
  4. Implication definition
  5. Negation definition
  6. Biconditional definition
  7. Truth table concept
  8. Propositional logic concept
  9. Tautology definition
  10. Logical equivalence definition
  11. Proof of De Morgan's laws by truth tables proof

Where this leads

66 pages build on this one.

Further reading

  1. Web https://richardhammack.github.io/BookOfProof/
About this page
Tag68VBVMFJSW
URIm2://68VBVMFJSW
Kindproof
WritingW0 stub
MSC03B05
ProvesDe Morgan's laws
UsesProposition, Negation, Conjunction, Disjunction, Logical equivalence, Truth table
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.