- Review of propositional logic
- In which we discuss propositional variables, logical connectives, and a couple of logical equivalences
- Representation principle for Knights and Knaves puzzles
- In which we discuss a general principle for representing, in propositional logic, statements made by the island's inhabitants
- First example - Informal solution
- In which we discuss a typical puzzle with two inhabitants and solve it informally. A typical puzzle asks questions of the type: What is A?
- First example - Formal proof
- In which we discuss a complete, formal proof of the solution to our first puzzle
- First example - A natural-deduction proof
- In which we discuss what a natural-deduction-style proof looks like and provide such a formal proof by cases for our first example
- First example - Truth table approach
- In which we discuss how to solve a typical puzzle by building a truth table
- First example - Proof by contradiction
- In which we discuss an indirect proof of the puzzle's solution that contrasts with the direct proofs we gave earlier
- Second example
- In which we discuss both an informal solution and a formal, truth-table-based approach to a second typical puzzle with 3 inhabitants
- Automating puzzle proofs with Prover9
- In which we discuss an automatic theorem prover and use it to automatically generate a proof by contradiction of the solution to our first puzzle
- Automating puzzle proofs with Mace4
- In which we discuss how to automatically solve the first puzzle using another theorem prover that does not need the solution of the puzzle to generate the proof
- Third example
- In which we discuss how to solve a typical puzzle with more than one solution using both Prover9 and Mace4.
- Fourth example
- In which we discuss how to solve another typical problem that involves statements of the form "such and such inhabitants are (not) of the same type"
- Fifth example
- In which we discuss how to solve yet another type of puzzle that does not ask to determine the type of inhabitants but rather the answer that they will give to some question
- Sixth example
- In which we discuss how to solve yet another type of puzzle in which we have to use additional information given by the author, that is not part of the puzzle's storyline
- Seventh example
- In which we discuss how to solve yet another type of puzzle in which we must determine if the answers to two questions posed to two inhabitants are the same
- Creating our own puzzle
- In which we discuss how to reverse the truth-table approach to create new Knights and Knaves puzzles that are provably correct
Tuesday, April 23, 2019
Table of contents
for the series of posts on
Knights and Knaves puzzles
for the series of posts on
Knights and Knaves puzzles
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment