Skip to content
BetterDL

Perfect induction

Also called: proof by perfect induction, proof by truth table, truth table proof, exhaustive proof, exhaustive checking

Proving a Boolean identity by checking every possible input combination in a truth table. If all rows match, the identity holds.

Perfect induction is proof by trying everything. Because Boolean variables have only two values, an equation with n variables has just 2ⁿ cases. Check them all and you have a complete proof.

The method:

  1. Build a truth table with a row for every input combination.
  2. Add a column for each side of the equation.
  3. If the columns match in every row, the identity is true. If any row differs, that row is a counterexample and the identity is false.

It is how the basic laws are justified in the first place. For = 1: A = 0 gives 0 + 1 = 1, A = 1 gives 1 + 1 = 1. Both rows give 1, so the law holds.

Strengths: completely mechanical, impossible to fool, and a good way to rebuild a law you have forgotten.

Weakness: the table doubles with every variable. Fine for 2 or 3 variables, tedious at 5, impractical beyond that. That is why an algebraic proof using the laws is usually preferred for bigger expressions.

0011
0100
1000
1100

Worked example

Example

Proving a De Morgan law

Prove = by perfect induction.

  1. 1.

    Row 00: = 0, so the left side is 1; = 1 · 1 = 1.

  2. 2.

    Row 01: = 1, so the left side is 0; = 1 · 0 = 0.

  3. 3.

    Row 10: left side 0; = 0 · 1 = 0.

  4. 4.

    Row 11: left side 0; = 0 · 0 = 0.

  5. 5.

    All four rows match, so the law is proved.

Common mistakes

  • Skipping rows. Perfect induction only counts as proof when every row is checked.

  • Using it for 6 or more variables when a few algebra steps would be quicker and less error-prone.

Practice Perfect induction

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Perfect induction is taught in Boolean Algebra.