Jump To Content

LearnHub




The Hardest Logic Puzzle Ever

The following puzzle was titled "L'indovinello più difficile del mondo", which means "The hardest logic puzzle ever" in Italian. An American philosopher and logician named George Boolos gave this Raymond Smullyan logic puzzle the name. It was published in an Italian newspaper called La Repubblica. Think you can solve it?

The Puzzle

Three gods A, B, and C are called, in some order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter. Your task is to determine the identities of A, B, and C by asking three yes-no questions; each question must be put to exactly one god. The gods understand English, but will answer all questions in their own language, in which the words for yes and no are 'da' and 'ja', in some order. You do not know which word means which.


Clarifications

Boolos gave the following clarifications regarding this puzzle:

  • It could be that some god gets asked more than one question (and hence that some god is not asked any question at all)

  • What the second question is, and to which god it is put, may depend on the answer to the first question. (And of course similarly for the third question.)

  • Whether Random speaks truly or not should be thought of as depending on the flip of a coin hidden in his brain: if the coin comes down heads, he speaks truly; if tails, falsely.

  • Random will answer 'da' or 'ja' when asked any yes-no question.


P.S., I'm posting this logic puzzle here for the enjoyment of puzzle lovers. I actually am actually pretty bad at logic puzzles.


The Solution

Boolos states that the first move is to find either the god True or False, not Random.

One possible strategy is to use logical connectives in your questions:

Boolos' question was:

Does 'da' mean yes if and only if you are True if and only if B is Random?

Or:

Are an odd number of the following statements true: you are False, 'ja' means yes, B is Random?


The puzzle's solution can be simplified by using counterfactuals. The key to this solution is that, for any yes/no question Q, asking either True or False the question:

* If I asked you Q, would you say 'ja'?

This results in the answer 'ja' if the truthful answer to Q is yes, and the answer 'da' if the truthful answer to Q is no. The reason this works can be seen by looking at the eight possible cases, explained below.


* Assume that 'ja' means yes and 'da' means no.

(i) True is asked and responds with 'ja'. Since he is telling the truth the truthful answer to Q is 'ja', which means yes.

(ii) True is asked and responds with 'da'. Since he is telling the truth the truthful answer to Q is 'da', which means no.

(iii) False is asked and responds with 'ja'. Since he is lying it follows that if you asked him Q he would instead answer 'da'. He would be lying, so the truthful answer to Q is 'ja', which means yes.

(iv) False is asked and responds with 'da'. Since he is lying it follows that if you asked him Q he would in fact answer 'ja'. He would be lying, so the truthful answer to Q is 'da', which means no.

* Assume 'ja' means no and 'da' means yes.

(v) True is asked and responds with 'ja'. Since he is telling the truth the truthful answer to Q is 'da', which means yes.

(vi) True is asked and responds with 'da'. Since he is telling the truth the truthful answer to Q is 'ja', which means no.

(vii) False is asked and responds with 'ja'. Since he is lying it follows that if you asked him Q he would in fact answer 'ja'. He would be lying, so the truthful answer to Q 'da', which means yes.

(viii) False is asked and responds with 'da'. Since he is lying it follows that if you asked him Q he would instead answer 'da'. He would be lying, so the truthful answer to Q is 'ja', which means no.


Now that we know the eight cases, we can proceed:

  • Ask god B, "If I asked you 'Is A Random?', would you say 'ja'?"

If B answers 'ja', then either B is Random (and is answering randomly), or B is not Random and the answer indicates that A is indeed Random. Either way, C is not Random. If B answers 'da', then either B is Random (and is answering randomly), or B is not Random and the answer indicates that A is not Random. Either way, A is not Random.


  • Go to the god who was identified as not being Random by the previous question (either A or C), and ask him: "If I asked you 'Are you True?', would you say 'ja'?"

Since he is not Random, an answer of 'ja' indicates that he is True and an answer of 'da' indicates that he is False.


  • Ask the same god the question: "If I asked you 'Is B Random?', would you say 'ja'?"

If the answer is 'ja' then B is Random; if the answer is 'da' then the god you have not yet spoken to is Random. The remaining god can be identified by elimination.


There you have it - the word's hardest logic puzzle! It doesn't seem that bad, but it can get really confusing. As for me - I can't even begin to wrap my head around it. But hopefully you've found this puzzle is be a tricky treat for your grey matter.


Reference: Wikipedia


  1. Derick saidThu, 11 Dec 2008 06:04:26 -0000 ( Link )

    Very fun.

    I’m tempted to say that I don’t think puzzles are the direct subject of philosophy, which I don’t (and I think that attitude stops it from being that logical about the wider issues) but this one is a good exercise for syllogisms and inductive and deductive reasoning in a very clear, fundamental way, so I think it’s worthwhile in a philosophical context. I’m too distracted by the “otherwise unemployable academics” who turn philosophy into nothing but a game so that I forgot for a second how indicative puzzles can be of important attributes of philosophy.

    And it’s interesting on its own terms too. Thanks for the post. I’d really like to get better at these puzzels. I think I can add to my views on epistemology and how to improve one’s thinking from them. I’d like to think of more categories of induction/deduction which these are indicative of, and that could help me think more quickly and concisely in general.

    (For the sake of discussion I ignored the other factor here – that I don’t believe that what I believe constitutes philosophy is the standard for inclusion here, even if I think I’m objectively right; I don’t wish to discourage anyone from posting whatever they genuinely think is philosophy. Even if you’re unsure. Please keep it up!)

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  2. lucyinthesky saidThu, 11 Dec 2008 07:19:58 -0000 ( Link )

    Oh Derick, You would say that, wouldn’t you? Haha. I recognize that a logic puzzle isn’t really part of philosophy – but this type of logic and reasoning is very prominent in philosophy, and it would probably appeal to those interested in philosophy. There is also philosophical logic, which focuses on identity, truth, negation, existence, necessity, definition, etc. I think puzzles like these are good skills to have and to practice, so that when it comes to stuff like philosophy, you’ll be well-acquainted with your logical thought process and capacity for proofs.

    Anyway, I post lessons about classic rock in my jazz community…so don’t take my placement of this lesson in Philosopher’s Study as an indication that I think of the discipline merely as a useless game, hehe. :)

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  3. riasharma saidWed, 09 Sep 2009 09:55:23 -0000 ( Link )

    its answer is too confusing. plz simplify it

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  4. petkish saidFri, 20 Nov 2009 16:06:32 -0000 ( Link )

    Check out my site rooms.jmpup.com – there is a puzzle generator, which is close to this kind of puzzle.

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

Your Comment
Textile is Enabled (View Reference)