Quarry School

Read a two-state predicate — quick review

In plain words

A librarian looks at the four slots on a returns cart.

Rule

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.

Step

  1. Write the total number of slots and the number occupied.

  2. Subtract the occupied count from the total. Give true if the free count is one or more. Give false if it is zero.

  3. 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.

Trap

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.