Binary-Logic Sets: Truth-Tellers, Liars and Yes–No Grids

CAT’s logical-reasoning sets include a family in which each person tells the truth or lies and makes statements about the others, or each cell of a grid is simply yes or no. The existing sets teach arrangements, games, charts and networks but not this binary family. This chapter gives a method that always works, the case-test, and works the chain, the counting statement, the cycle and the grid, with each solution confirmed by brute-force enumeration.
Overview

1. The Method: Assume, Propagate, Check

1 min read · 1 part

Every person in such a set is one of two types, and a statement is true exactly when its speaker is truthful. So “A says X” becomes A ⇔ X: A is truthful if and only if X holds. The method is assume, propagate, check: assume one person’s type (say A is truthful), use each statement to fix the others in turn, and check whether the chain comes back to a contradiction. A contradiction kills the assumption, so the opposite must hold, and that case is then followed through to the end. With n people there are only 2ⁿ assignments, and 2³ = 8 or 2⁴ = 16 are small enough to settle by listing when a chain is not obvious.

Assume, propagate, check
  1. Assume one person's typeSay, A is truthful
  2. Propagate through each statement
  3. Check for a contradiction
  4. Contradiction? The opposite holdsFollow that case to the end

Every person in such a set is one of two types, and a statement is true exactly when its speaker is truthful. So “A says X” becomes A ⇔ X: A is truthful if and only if X holds. The method…

2. A Chain of Accusations

1 min read · 2 parts

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.

The eight cases, T = truthful, F = liar
ABCConsistent?Why not
TTTNoA says B lies
TTFNoA says B lies
TFTNoC says A lies
TFFNoB says C lies, true, yet B is a liar
FTTNoB says C lies
FTFYesAll three statements fit
FFTNoA says B lies, which would be true
FFFNoA 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

1 min read · 2 parts

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

1 min read · 1 part

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.

🧠 The timing rule for these sets
A truth-teller set takes under three minutes if you test the most-mentioned person first, since one assumption propagates the furthest. If a set needs more than about four assumptions, stop and enumerate the 2ⁿ cases in a small table, as in section 2, which cannot go wrong.

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

1 min read

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.

  1. In a truth-teller puzzle, “A says X” is best translated as:

    1. A is truthful if and only if X is true
    2. X is true
    3. A is truthful
    4. X is false
    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.
  2. A says “B lies”, B says “C lies”, and C says “A and B both lie”. Which is the truthful person?

    1. B only
    2. A only
    3. C only
    4. A and C
    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.
  3. 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:

    1. 3
    2. 1
    3. 2
    4. 4
    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
  1. In the same puzzle, the truthful person is the one who said:

    1. Exactly three of us lie
    2. Exactly one of us lies
    3. Exactly two of us lie
    4. Exactly four of us lie
    Show answer

    Answer: A — Exactly three of us lie

    Since exactly three lie, only the statement “exactly three of us lie” is true.
  2. 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:

    1. 0
    2. 2
    3. 5
    4. 10
    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.
  3. The same statement made by four people in a ring has how many consistent assignments?

    1. 2
    2. 0
    3. 4
    4. 1
    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.
  4. 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:

    1. 6
    2. 4
    3. 8
    4. 2
    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.
  5. The XOR of two bits is 1:

    1. Exactly when the bits differ
    2. Exactly when both are 1
    3. Exactly when both are 0
    4. Always
    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.
  6. 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?

    1. B only
    2. A only
    3. C only
    4. Nobody
    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.
  7. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    How many of the 5 people are liars?

    1. 2
    2. 4
    3. 3
    4. 5
    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.
  8. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    What is A?

    1. truthful
    2. a liar
    3. Cannot be determined
    4. Both truthful and a liar
    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).
  9. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    What is B?

    1. a liar
    2. truthful
    3. Both truthful and a liar
    4. Cannot be determined
    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).
  10. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    What is C?

    1. Both truthful and a liar
    2. truthful
    3. a liar
    4. Cannot be determined
    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).
  11. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    What is D?

    1. truthful
    2. Cannot be determined
    3. a liar
    4. Both truthful and a liar
    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).
  12. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    What is E?

    1. Both truthful and a liar
    2. truthful
    3. a liar
    4. Cannot be determined
    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).
  13. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. 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?

    1. 2
    2. 1
    3. 3
    4. 4
    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.
  14. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    Which pair consists of two truthful people?

    1. A and B
    2. A and E
    3. A and C
    4. A and D
    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.
  15. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “D is a liar.”
    2. B: “A and C are of the same type.”
    3. C: “B and E are of the same type.”
    4. D: “B is truthful.”
    5. E: “C is a liar.”

    How many of the 5 statements are true?

    1. 2
    2. 4
    3. 3
    4. 1
    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.
  16. Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “A and D are of the same type.”
    3. C: “At least one of D and A is truthful.”
    4. D: “At least one of B and C is truthful.”

    How many of the 4 people are liars?

    1. 3
    2. 0
    3. 1
    4. 2
    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.
  17. Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “A and D are of the same type.”
    3. C: “At least one of D and A is truthful.”
    4. D: “At least one of B and C is truthful.”

    What is A?

    1. a liar
    2. truthful
    3. Cannot be determined
    4. Both truthful and a liar
    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).
  18. Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “A and D are of the same type.”
    3. C: “At least one of D and A is truthful.”
    4. D: “At least one of B and C is truthful.”

    What is C?

    1. Both truthful and a liar
    2. a liar
    3. truthful
    4. Cannot be determined
    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).
  19. Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “A and D are of the same type.”
    3. C: “At least one of D and A is truthful.”
    4. D: “At least one of B and C is truthful.”

    What is D?

    1. a liar
    2. Cannot be determined
    3. truthful
    4. Both truthful and a liar
    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).
  20. Set. On an island each of 4 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “A and D are of the same type.”
    3. C: “At least one of D and A is truthful.”
    4. 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?

    1. 1
    2. 3
    3. 4
    4. 2
    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.
  21. Set. On an island each of 5 people is either truthful (always tells the truth) or a liar (always lies). They say:

    1. A: “C is a liar.”
    2. B: “Both C and D are truthful.”
    3. C: “Exactly 4 of the 5 of us are liars.”
    4. D: “A and C are of different types.”
    5. E: “B and C are of different types.”

    What is B?

    1. a liar
    2. truthful
    3. Both truthful and a liar
    4. Cannot be determined
    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).