Reason with true and false — quick review
Read a two-state predicate
A librarian looks at the four slots on a returns cart.
This paper model uses one or more labeled slots, each with a known state. For each slot, record the Boolean answer to “Is this slot free?” Use true for free and false for occupied.
Use the states from one moment and keep them fixed while you work. The rule here covers a fixed set of slots with no missing states. For the whole set, give true if one or more slots are free. Give false if zero slots are free.
Write the total number of slots and the number occupied.
Subtract the occupied count from the total. Give true if the free count is one or more. Give false if it is zero.
To check, draw one box per slot and start with every box unmarked. Visit the slots once in label order. Mark each occupied box and leave each free box unmarked. Stop after the last label. Count the unmarked boxes and use that count to answer the question again.
On the returns cart, the count 1 answers “How many slots are free?” That one free slot makes the answer to “Is at least one slot free?” true. Keep the free count and the predicate result on separate lines.
Fill an AND table
Imagine a pottery studio pickup desk.
A AND B gives true only when A and B are both true. If either input is false, the result is false.
Draw three columns. Label them A (receipt present), B (name matches) and A AND B (result). Make four rows beneath the labels.
From top to bottom, write
false/false,false/true,true/false,true/true. In each pair, put the first value under A and the second under B. Use onlytrueandfalsefor the inputs. Leave the four result spaces blank.Start at the top and work down. Tick each input that is
true. Writetruein the result column if the row has two ticks. Writefalseif it has fewer.Stop when every row has a result.
Suppose a visitor has a receipt and gives a name that differs from the tag. Only A gets a tick. That row gives false, so the piece stays at the desk.
Fill an OR table
Imagine an apartment resident who can report a broken light by phone, by email, or by both.
For two Boolean inputs, A OR B gives true if at least one input is true. It gives false if both are false.
Assume both input values are known and refer to the same light. The paper model answers whether the resident made a report. Delivery, reading the report, and repairing the light are outside the model.
Draw the table on paper with A on the left, B in the middle, and Reported on the right.
Write the input pairs from top to bottom. Write false and false, false and true, true and false, then true and true. Start with all four Reported spaces blank.
Start at the top. Read A first. If A is true, write true in Reported. If A is false, read B and copy it into Reported.
Move down one row at a time. Stop when every Reported space has a value.
Suppose the resident phones and then emails. Does the email cancel the phone report? The phone report still counts after the email, so keep Reported true in the marked last row, where both inputs are true.
Negate a condition
Imagine a shop sign that always shows exactly one of its two faces, OPEN or CLOSED.
The input to NOT is the known value you start with, here the value of A. In this paper model it can be either of the two Boolean values, false or true. Write those values in lowercase and use uppercase NOT to show that you’re reversing a value. The output is the value you get from the rule. For false, write true. For true, write false.
Draw a table on paper with rows for CLOSED and OPEN. Add columns for A and NOT A and leave their cells blank.
Start with CLOSED. Check whether that row’s face shows OPEN to fill in A. Then use NOT to write the other value beside it.
Repeat that process for OPEN. Once both rows have a NOT A value, stop filling the table.
Check by using each value in the NOT A column as the input to the rule one more time. From top to bottom, true gives false and false gives true. Compare false, then true, with the original A column. Both rows match.
Leave the sign alone and work with the value on your paper. Turning the sign would give you a different observation. If the face is covered, stop before writing either value. Find out which face was showing at noon before you choose a row.
Check two rules against every input pair
A resident reads two proposed rules for deciding whether there is no parcel at either door.
Compare the two final rule answers on the same row. If every row matches, the rules are equivalent. If any row differs, record that input pair as a counterexample.
Write the four input pairs in order. Leave the result and comparison cells blank.
In the first row, find
A OR B. Flip that result and record it underNOT (A OR B).In the same row, flip
Ato getNOT Aand flipBto getNOT B. UseORon those two values to fill(NOT A) OR (NOT B).Compare the answers under
NOT (A OR B)and(NOT A) OR (NOT B). Mark the rowmatchormismatch.Repeat the calculation and comparison for the remaining rows. Finish the fourth row even if you have already found a counterexample.
Two matches can look like proof that the rules are equivalent. If you check only false/false and true/true, you miss the mixed rows, where one input is true and the other is false. Each mixed row makes the rules disagree.