Knaph

Proving Things About Every Formula7 of 243 min read

Enough Connectives

A friend says: "I want exactly one of the two: tea or coffee, not both." We have no symbol for that. Must we invent one? Or can the symbols we have already say it - and say any other table too?

From a table to a formula

Here is the table we want, for "exactly one of P and Q".

PQexactly one of P and Q
TTF
TFT
FTT
FFF

Look at each row with T in the last column. For the row P true, Q false, write a row-formula: P ∧ ¬Q. It is true in that row and in no other. For the row P false, Q true, write ¬P ∧ Q. Now join the row-formulas with ∨: (P ∧ ¬Q) ∨ (¬P ∧ Q).

The truth table for exactly one of P and Q. The two rows with T are circled, and beside them are their row-formulas, P and not Q, and not P and Q, joined by or.

Check all four rows. Row TT: P ∧ ¬Q is false and ¬P ∧ Q is false, so F. Row TF: the first is true, so T. Row FT: the second is true, so T. Row FF: both are false, so F. The formula gives exactly the table.

Any table at all

This works for any table. For each row with T, write the letters that are true as they are, and the letters that are false with ¬. Join them with ∧. A row with P true, Q false, R true gives (P ∧ ¬Q) ∧ R. It is true in that row only. Then join all the row-formulas with ∨. The result is true exactly in the rows with T.

What if no row has T? Then the table is false everywhere. The formula P ∧ ¬P does that: it is false when P is true, and false when P is false.

A drawing with a box of not, and, or in the middle. Arrows run out of it to if-then and if-and-only-if, each with the formula that replaces it. Below, or is written with not and and.

So ¬, ∧ and ∨ are enough: every truth table can be written with them.

The others were shortcuts

Then → and ↔ were shortcuts all along. P → Q has the same table as ¬P ∨ Q: both are false only in the row P true, Q false. And P ↔ Q is the same as (P → Q) ∧ (Q → P).

We can do even better. By De Morgan's rule from Level 4, P ∨ Q has the same table as ¬(¬P ∧ ¬Q). So ¬ and ∧ alone are enough. Careful: the row-formulas give a correct formula, not always the shortest one.

Careful

"Enough" is about what can be said, not about how short it is. Shortcuts are still useful to read.

Try it at home

  1. Write the table for "P or Q, but not both" in your notebook. Is it the same as "exactly one"?
  2. Make a table for "P and Q have the same value". Write its row-formulas and join them.
  3. Check in a table that P → Q and ¬P ∨ Q agree in all four rows.

Words to know

  • row-formula - a formula made to be true in one chosen row and false in all others
  • enough - a set of connectives is enough when every truth table can be written with it

Big idea

Every truth table can be written with ¬, ∧ and ∨ alone, so the other connectives are only shortcuts.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.