(image credit: Joe Blitzstein via Twitter)
Smullyan’s Knights and Knaves problems are classics. On an island all inhabitants are either Knights (who only tell true things) and Knaves (who always lie). You have to determine their nature from a few statements. Here’s a very simple problem:
“Abercrombie met just two inhabitants, A and B. A made the following statement: “Both of us are Knaves.” What is A and what is B?”
Now, this one is simple enough to solve, but for more complicated problems a generic way to solve the puzzles is to use propositional calculas, as explained in Smullyan’s Logical Labyrinths”, chapter 8 “Liars, truth-tellers and propositional logic’.
If an inhabitants
for if
Usually, one can express
The example above can be rephrased as
Assigning truth values to
Clearly, one only requires this approach for far more difficult problems.
In almost all Smullyan puzzles, the only truth values are
Did anyone pursue the idea of Smullyanesque puzzles with truth values in a proper Heyting algebra?
I only found one blog-post on this: Non-Classical Knights and Knaves by Jason Rosenhouse.
He considers three valued logic (the Heyting algebra corresponding to the poset 0-N-1, and logical connectives as in the example on the Wiki-page on Heyting algebras.
On his island the natives cycle, repeatedly and unpredictably, between the two states. They are knights for a while, then they enter a transitional phase during which they are partly knight and partly knave, and then they emerge on the other side as knaves.
“If Joe is in the transitional phase, and you say, “Joe is a knight,” or “Joe is a knave,” what truth value should we assign to your statement? Since Joe is partly knight and partly knave, neither of the classical truth values seems appropriate. So we shall assign a third truth value, “N” to such statements. Think of N as standing for “neutral” or “neither true nor false.” On the island, vague statements are assigned the truth value N.
Just to be clear, it’s not just any statement that can be assigned the truth value N. It is only vague statements that receive that truth value, and for now our only examples of such statements are attributions of knight-hood and knave-hood to people in the transitional phase.
For the natives, entering the transitional phase implied a disconcerting loss of identity. Uncertain of how to behave, they hedged their bets by only making statements with truth value N. People in the transitional phase were referred to as neutrals. So there are now three kinds of people: Knights, who only make true statements; Knaves, who only make false statements; and Neutrals, who only make statements with the truth value N.”
He gives one example of a possible problem:
“Suppose you meet three people, named Dave, Evan and Ford. They make the following statements:
Dave: Evan is a knight.
Evan: Ford is a knave.
Ford: Dave is a neutral.
Can you determine the types of all three people?”
If you know of more of these Smullanesque problems using Heyting algebras, please leave a comment.