Knaph

Every Way It Could Be5 of 243 min read

Every Way It Could Be

Sam packs for a day out. Will it rain? Will it be windy? Each answer is yes or no, so the day can turn out in more than one way. How many ways are there, and how do we list them all?

One letter, two ways

Key: P = It is raining. The world can be one of two ways. P is true, or P is false.

We write each way as one row of a table. A row is one way the world could be. T means true and F means false.

P
T
F

Two panels side by side. The left one shows rain falling, with the letter P and a green T. The right one shows a dry sky, with the letter P and a red F.

Two letters, four rows

Add Q = It is windy. For each way of P, Q can be true or false. So we get 2 × 2 = 4 rows.

PQ
TT
TF
FT
FF

Always write the rows in this order. Both true. P true, Q false. P false, Q true. Both false. A fixed order means nobody forgets a row.

Each new letter doubles the rows. One letter gives 2 rows. Two letters give 4. Three letters give 8.

Three small tables side by side: one letter with 2 rows, two letters with 4 rows and three letters with 8 rows. Under each is its row count.

The table for and

We give the word "and" a sign: ∧. P ∧ Q reads "P and Q". When is it true? Look at every row.

A truth table lists every row and the value of the claim in that row.

PQP ∧ Q
TTT
TFF
FTF
FFF

Only the first row has T. If it is not raining, or it is not windy, "It is raining and it is windy" is false.

A truth table for P and Q with a third column P and Q. The first row is circled in amber and has a green T. The other three rows have a red F.

Careful

One row is one way the world could be, not one letter. Two letters do not give two rows. They give four.

Try it at home

  1. Pick two things about today that could be true or false, such as "It is cold" and "I am hungry". Write the key.
  2. Draw the four rows for them in the fixed order.
  3. Put a pencil mark on the one row that is how today really is.
  4. Write "both" as a claim with ∧. Is it true in your marked row?

Words to know

  • row - one way the world could be, with a value for each letter
  • truth table - a list of every row and the value of a claim in each
  • ∧ - the sign for and: true only when both parts are true

Big idea

A table has one row for every way the world could be. Each new letter doubles the rows, and P ∧ Q is true only in the first one.

Test your understanding

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