Binary-Logic Sets: Truth-Tellers, Liars and Yes–No Grids
2. A Chain of Accusations
Set. A says “B lies”, B says “C lies”, and C says “A and B both lie”. Solve. Suppose A is truthful: then B lies, so B’s claim “C lies” is false, making C truthful; but C says that A and B both lie, which is false of a truthful A: contradiction. So A lies, and A’s claim “B lies” is false, so B is truthful; then B’s claim is true, so C lies; and C’s false claim “A and B both lie” is indeed false because B is truthful: consistent. The only solution is A liar, B truthful, C liar, which the enumeration of all eight cases confirms is unique.
| A | B | C | Consistent? | Why not |
|---|---|---|---|---|
| T | T | T | No | A says B lies |
| T | T | F | No | A says B lies |
| T | F | T | No | C says A lies |
| T | F | F | No | B says C lies, true, yet B is a liar |
| F | T | T | No | B says C lies |
| F | T | F | Yes | All three statements fit |
| F | F | T | No | A says B lies, which would be true |
| F | F | F | No | A says B lies, true, yet A is a liar |
Set. A says “B lies”, B says “C lies”, and C says “A and B both lie”. Solve. Suppose A is truthful: then B lies, so B’s claim “C lies” is false, making C truthful; but C says that A and B…
3. Counting Statements and Cycles
Counting statements. Four people say, in turn, “exactly one of us lies”, “exactly two of us lie”, “exactly three of us lie” and “exactly four of us lie”. At most one statement can be true, since the counts differ, so at least three are false, which makes the number of liars at least three; if all four lied then the fourth would be telling the truth, impossible. So exactly three lie, and the one who said “exactly three” is the truthful one. Enumeration agrees: the only consistent assignment is (F, F, T, F). The key is that the statements cannot all be true together when they give different counts.
Cycles. If each person in a ring says the next one lies, the types must alternate T, F, T, F, … around the ring. That fits only if the ring has an even number of people: a ring of 4 has exactly 2 solutions (the two alternations) while a ring of 5 has none, since the alternation cannot close. The reasoning generalises: an odd cycle of “X lies” statements is contradictory, and an even one has exactly two solutions. A quick count of statements and a parity check can therefore decide a large set without the full enumeration.
Counting statements. Four people say, in turn, “exactly one of us lies”, “exactly two of us lie”, “exactly three of us lie” and “exactly four of us lie”. At most one statement can be true…
4. Yes–No Grids and Bit Patterns
A second binary family is a grid in which each cell is yes or no (or 1 or 0): a table of which of five people attend which of four meetings, with row and column totals given as clues. Solve it as you would a Sudoku: fill the forced cells first (a row total of 0 or of the full width), then use the column totals to fix the next, and count the possibilities with combinations when a total leaves a choice: a row with a total of 2 among 4 cells can be filled in C(4,2) = 6 ways. For bit patterns, an XOR of two bits is 1 exactly when they differ, so it is the arithmetic of “exactly one of the two”, and a parity (even or odd number of 1s) is the usual consistency check.
A second binary family is a grid in which each cell is yes or no (or 1 or 0): a table of which of five people attend which of four meetings, with row and column totals given as clues. Solve…
5. A Worked Yes–No Grid and a Counting Set
Three people A, B and C each say one thing. A says "exactly one of us is a liar", B says "exactly two of us are liars" and C says "all three of us are liars". The statements give different counts, so at most one of them can be true. Suppose C is truthful: then all three are liars, which makes C a liar, a contradiction. So C is a liar, and the real number of liars is not three. If A were also a liar, then B would be the only possible truth-teller with two liars, and B's claim "exactly two are liars" holds when A and C lie, so B is truthful. Check A: A claims exactly one liar, but there are two, so A lies. The unique solution is A liar, B truth-teller, C liar.
A yes–no grid works the same way. Four people attend some of three meetings. Row and column totals are given: person 1 attends 2 meetings, person 2 attends 1, person 3 attends 3 and person 4 attends 0, and the meetings have 3, 2 and 1 attendees. The totals of both sets are 6, which is a first check: the sum of the row totals must equal the sum of the column totals. Person 3 attends all three meetings and person 4 none, so meeting 1, with 3 attendees, must also include persons 1 and 2, and so on. Always check the two sums before starting the grid.
Three people A, B and C each say one thing. A says "exactly one of us is a liar", B says "exactly two of us are liars" and C says "all three of us are liars". The statements give different…
Key takeaways
- Translate “A says X” into “A is truthful if and only if X”, then assume, propagate and check for a contradiction; with n people there are only 2ⁿ cases.
- In the chain “A: B lies, B: C lies, C: A and B both lie” the unique solution is A liar, B truthful, C liar.
- When statements give different counts of liars at most one can be true, so with four statements “exactly 1, 2, 3, 4 lie” exactly three lie.
- A ring of “next one lies” statements has 2 solutions if the ring is even and none if it is odd.
- For yes–no grids fill the forced cells first and count the rest with combinations, such as C(4,2) = 6.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
In a truth-teller puzzle, “A says X” is best translated as:
Show answer
Answer: A — A is truthful if and only if X is true
A truthful speaker’s statement is true and a liar’s is false, so the speaker’s type and the statement’s truth always agree. Taking X as simply true ignores the possibility that A lies.A says “B lies”, B says “C lies”, and C says “A and B both lie”. Which is the truthful person?
Show answer
Answer: A — B only
Assuming A truthful forces C truthful, and then C’s claim about A fails. So A lies, B is truthful, and C lies, the only consistent case.Four people say “exactly one of us lies”, “exactly two of us lie”, “exactly three of us lie” and “exactly four of us lie”, in that order. The number of liars is:
Show answer
Answer: A — 3
At most one statement can be true, since the counts differ, so at least three lie; four liars would make the fourth statement true. So exactly three lie.
Show the other 21 questions
In the same puzzle, the truthful person is the one who said:
Show answer
Answer: A — Exactly three of us lie
Since exactly three lie, only the statement “exactly three of us lie” is true.Five people stand in a ring, and each says “the person on my right lies”. The number of consistent assignments of truth and lies is:
Show answer
Answer: A — 0
The types must alternate around the ring, which closes only for an even number of people. A ring of five has no consistent assignment.The same statement made by four people in a ring has how many consistent assignments?
Show answer
Answer: A — 2
The types must alternate, T, F, T, F or F, T, F, T, and both close around an even ring.A row of a yes–no grid has 4 cells and a row total of 2 yeses. The number of ways to fill the row is:
Show answer
Answer: A — 6
Choosing which 2 of 4 cells are yes is C(4, 2) = 6. The 8 would be 4 × 2, which counts ordered choices.The XOR of two bits is 1:
Show answer
Answer: A — Exactly when the bits differ
XOR means “one or the other but not both”, so it is 1 for 01 and 10 and 0 for 00 and 11.A says "exactly one of us three is a liar", B says "exactly two of us three are liars" and C says "all three of us are liars". Who is the truth-teller?
Show answer
Answer: A — B only
The three counts differ, so at most one statement is true. C cannot be truthful, since "all three lie" would make C a liar. If B is truthful, exactly two lie, A and C, and A's claim of one liar is indeed false, so the picture is consistent. If A were truthful, there would be exactly one liar, but B and C would both be lying, which is two.Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
How many of the 5 people are liars?
Show answer
Answer: C — 3
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. That is 3 liar(s). The tempting 4 is the count in an assignment that satisfies all but one statement.Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
What is A?
Show answer
Answer: A — truthful
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Hence A is truthful. (Settled by 4 of the statements.) The tempting a liar is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
What is B?
Show answer
Answer: A — a liar
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Hence B is a liar. (Settled by 2 of the statements.) The tempting truthful is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
What is C?
Show answer
Answer: C — a liar
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Hence C is a liar. (Settled by 3 of the statements.) The tempting truthful is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
What is D?
Show answer
Answer: C — a liar
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Hence D is a liar. (Settled by 3 of the statements.) The tempting truthful is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
What is E?
Show answer
Answer: B — truthful
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Hence E is truthful. (Settled by 4 of the statements.) The tempting a liar is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
Suppose C’s statement is struck out, so only the other 4 statements are known. How many truthful/liar assignments are then consistent with them?
Show answer
Answer: A — 2
Check all 32 assignments against the remaining 4 statements: 2 survive. Without C’s statement the puzzle no longer has a single answer. The tempting 1 is the count with all statements in force.Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
Which pair consists of two truthful people?
Show answer
Answer: B — A and E
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. The only all-truthful pair is A and E. The tempting A and B pairs a truthful person with a liar.Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “D is a liar.”
- B: “A and C are of the same type.”
- C: “B and E are of the same type.”
- D: “B is truthful.”
- E: “C is a liar.”
How many of the 5 statements are true?
Show answer
Answer: A — 2
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, E, liars = B, C, D. Truthful people make true statements, so the number of true statements is 2. The tempting 3 counts the false statements instead of the true ones.Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “A and D are of the same type.”
- C: “At least one of D and A is truthful.”
- D: “At least one of B and C is truthful.”
How many of the 4 people are liars?
Show answer
Answer: D — 2
Test the 16 assignments of truthful/liar for 4 people against every statement; exactly one survives: truthful = C, D, liars = A, B. That is 2 liar(s). The tempting 0 is the count in an assignment that satisfies all but one statement.Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “A and D are of the same type.”
- C: “At least one of D and A is truthful.”
- D: “At least one of B and C is truthful.”
What is A?
Show answer
Answer: A — a liar
Test the 16 assignments of truthful/liar for 4 people against every statement; exactly one survives: truthful = C, D, liars = A, B. Hence A is a liar. (Settled by 2 of the statements.) The tempting truthful is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “A and D are of the same type.”
- C: “At least one of D and A is truthful.”
- D: “At least one of B and C is truthful.”
What is C?
Show answer
Answer: C — truthful
Test the 16 assignments of truthful/liar for 4 people against every statement; exactly one survives: truthful = C, D, liars = A, B. Hence C is truthful. (Settled by 2 of the statements.) The tempting a liar is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “A and D are of the same type.”
- C: “At least one of D and A is truthful.”
- D: “At least one of B and C is truthful.”
What is D?
Show answer
Answer: C — truthful
Test the 16 assignments of truthful/liar for 4 people against every statement; exactly one survives: truthful = C, D, liars = A, B. Hence D is truthful. (Settled by 2 of the statements.) The tempting a liar is the verdict you reach by trusting the statement that is false (or doubting the one that is true).Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “A and D are of the same type.”
- C: “At least one of D and A is truthful.”
- D: “At least one of B and C is truthful.”
Suppose B’s statement is struck out, so only the other 3 statements are known. How many truthful/liar assignments are then consistent with them?
Show answer
Answer: D — 2
Check all 16 assignments against the remaining 3 statements: 2 survive. Without B’s statement the puzzle no longer has a single answer. The tempting 1 is the count with all statements in force.Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:
- A: “C is a liar.”
- B: “Both C and D are truthful.”
- C: “Exactly 4 of the 5 of us are liars.”
- D: “A and C are of different types.”
- E: “B and C are of different types.”
What is B?
Show answer
Answer: A — a liar
Test the 32 assignments of truthful/liar for 5 people against every statement; exactly one survives: truthful = A, D, liars = B, C, E. Hence B is a liar. (Settled by 2 of the statements.) The tempting truthful is the verdict you reach by trusting the statement that is false (or doubting the one that is true).