Four Labeled Boxes, Only One Label Tells the Truth
Math & Bit ManipulationModel answerLast updated
Use a complementary pair of quantified statements to pin down which label is false, then read off the forced conclusion.
Four boxes sit on a table, each with a sentence written on its lid:
- Box 1: "Every box holds fruit candy."
- Box 2: "This box holds apples."
- Box 3: "This box does not hold chocolate."
- Box 4: "At least one box does not hold fruit candy."
Exactly one of the four sentences is true.
Which of the following is guaranteed to hold?
- A. Every box holds fruit candy.
- B. No box holds fruit candy.
- C. No box holds apples.
- D. Box 3 holds chocolate.
Explain the reasoning, state any assumptions about what a box may contain, and say which option is forced and why the rest are only possible.
Hints
Hint 1
Two of the four sentences say opposite things about the same quantity — find that pair first.
Hint 2
Once a complementary pair exists, exactly one member of it is true in every scenario. Use up your single 'true' there and force the other two sentences false.
Hint 3
A false 'this box does not hold chocolate' is a positive statement about Box 3. Also be careful: a false claim about one box never generalizes to all boxes.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Answer: D. Box 3 holds chocolate.
Start with the complementary pair
Don't hunt for the true statement. Look instead for two sentences that are exact negations, because then the truth count within that pair is fixed at exactly one no matter how the world is arranged.
- Box 1: ∀ box: fruit(box) — every box holds fruit candy.
- Box 4: ∃ box: ¬fruit(box) — at least one box lacks fruit candy.
These are negations of each other. The rule that matters here is that the negation of a universal claim is an existential claim:
¬(∀ x: P(x)) ≡ ∃ x: ¬P(x)
So in every possible arrangement of contents, exactly one of Box 1 and Box 4 is true. There is no way for both to be true and no way for both to be false.
Spend the single truth and force the rest
The puzzle guarantees exactly one true sentence overall. That one is consumed by the Box 1 / Box 4 pair. Therefore the remaining sentences must both be false:
- Box 2's sentence is false, so Box 2 does not hold apples.
- Box 3's sentence is false, so it is not the case that Box 3 lacks chocolate — i.e. Box 3 holds chocolate.
That is option D, and it holds in every consistent arrangement.
Why the other options are not forced
The question asks what must hold, so an option survives only if it is true in every arrangement consistent with "exactly one true sentence."
| Option | Forced? | Why |
|---|---|---|
| A. Every box holds fruit candy | No | That's literally Box 1's sentence. Box 4 is free to be the true one, making Box 1 false. |
| B. No box holds fruit candy | No | If Box 1 is the true sentence, all four hold fruit candy, contradicting B. And even when Box 4 is true, "at least one lacks it" says nothing about the other three. |
| C. No box holds apples | No | We only learned that Box 2 lacks apples. Boxes 1, 3, and 4 may or may not hold apples without altering any sentence's truth value. |
| D. Box 3 holds chocolate | Yes | Box 3's sentence is false in every consistent arrangement. |
Notice the puzzle never tells us which of Box 1 or Box 4 is the true one — and it doesn't need to. The derivation is deliberately insensitive to that choice, which is exactly why the conclusion is guaranteed. That is a useful instinct to voice: when a conclusion holds without resolving an ambiguity, the reasoning is robust.
Two mistakes that show up constantly
- Reading "some" as "some but not all," or as "none." In formal logic "at least one box does not hold fruit candy" is compatible with all four boxes lacking fruit candy. It is the negation of "all," not the opposite extreme "none." Candidates who collapse these distinctions drift toward B.
- Generalizing from a single box. Box 2's sentence being false tells you about Box 2 only. Upgrading it to "no box holds apples" (option C) transfers a fact about one box to the whole set — a quantifier-scope slip.
A third, subtler one: forgetting that "this box does not hold chocolate" is a negative sentence, so its falsity yields a positive conclusion. People sometimes negate it into "Box 3 holds chocolate" correctly but then second-guess themselves into "Box 3 holds nothing," which is not implied.
Assumptions about contents
The problem never says whether a box may hold more than one kind of item, and the answer does not depend on it. Take the permissive reading first: each box independently may hold fruit candy, apples, or chocolate in any combination. Then if Box 1 is true, every box holds fruit candy and Box 3 additionally holds chocolate — no contradiction, so this reading is consistent and D still holds. On the strict reading, where each box holds at most one item, Box 3 holding chocolate means Box 3 cannot hold fruit candy, which makes Box 1 false and forces Box 4 to be the true sentence. Either way the answer is D. Saying this out loud during an interview earns credit because it shows you noticed the ambiguity and checked that it doesn't matter.
One more edge note: with a non-empty set of boxes, "all" and "some not" are genuine complements. Only a zero-box world would make "all" vacuously true, and even then the pair remains complementary, so the argument survives.
Mechanical check
Reasoning by hand is fine, but a brute-force enumeration is a cheap sanity check and a good thing to offer. Model each box with three booleans (fruit candy, apples, chocolate) for 3n bits total, giving 2^12 = 4096 candidate arrangements when n = 4. Keep only those where the four sentences evaluate to a total of exactly one true, then intersect the surviving arrangements against each option. The intersection is {D} alone, confirming the derivation. The enumeration is O(2^(3n)) overall with O(1) work per arrangement — trivial here, and it doubles as a template if the interviewer bumps n or adds a box.
from itertools import product
def solve(n=4):
opts = {
"A": lambda f, a, c: all(f),
"B": lambda f, a, c: not any(f),
"C": lambda f, a, c: not any(a),
"D": lambda f, a, c: c[2],
}
always = dict.fromkeys(opts, True)
worlds = 0
for bits in product([False, True], repeat=3 * n):
f, a, c = bits[:n], bits[n:2*n], bits[2*n:]
s = [all(f), a[1], not c[2], not all(f)]
if sum(s) != 1:
continue
worlds += 1
for k, chk in opts.items():
if not chk(f, a, c):
always[k] = False
assert worlds > 0
return sorted(k for k, v in always.items() if v)
print(solve()) # ['D']
Note how sentences 1 and 4 are coded as all(f) and not all(f) — writing them that way makes the complementarity visible in the code itself.
What strong candidates demonstrate
- Naming the complementary pair in the first sentence rather than guessing.
- Precision with quantifiers: the negation of "all" is "some not," not "none."
- Keeping "must be true" separate from "could be true," and being able to say A is possible but not forced.
- Flagging the multi-item ambiguity and showing the answer is invariant to it.
- Optionally, confirming with a brute-force enumeration to rule out reasoning slips.