

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















a) Pam promised she would attend the school assembly or send a substitute. She is not coming to the assembly, so we are expecting a substitute.
b) If there are delays in the Circle line then Jenny is late at work. Today she has arrived late therefore there are delays in the Circle line.
c) If there are delays in the Circle line then Jenny is late at work. Today she has arrived on time therefore there are no delays in the Circle line.
There is an island whose inhabitants are quite unusual. Some of them always tell the truth while others always lie. Those that always tell the truth are called knights.
PLEASE TURN OVER
In the Knights and Liars Island you meet two natives (not tourists), A and B. What single question should you ask A to determine whether B is a knight?
In an abridged version of Shakespeare’s Merchant of Venice, Portia had two caskets: gold and silver. Inside one of these caskets, Portia had put her portrait, and on each was an inscription. Portia explained to her suitor that each inscription could be either true or false but, on the basis of the inscriptions, he was to choose the casket containing the portrait. If he succeeded, he could marry her. The inscriptions were:
-Gold: The portrait is in this casket. -Silver: If the inscription on the gold casket is true, this inscription is false.
Which casket contained the portrait? What can we deduce about the inscriptions?
https://www.xkcd.com/246/ https://www.explainxkcd.com/wiki/index.php/246:_Labyrinth_Puzzle
These questions are taken from United Kingdom Mathematics Trust (UKMT) Mathematical Challenges.
Alice is the mother. Carol and Ella are both daughters. Beth is the mother. One of Alice, Diane or Ella is the mother.
Who is the mother?
None of these statements is true. Exactly one of these statements is true. Exactly two of these statements are true. All of these statements are true.
Remember:
How to prove that (p Ú Ø p) = T? p (^) Ø p p Ú Øp T F T F T T
How to prove that (p Ù T) = p? p T (^) p Ù T T T T F T F How to prove that (p Ù F) = F? p F p Ù F T F F F F F
How to prove that (p Ú T) = T? p T p Ú T T T T F T T How to prove that Ø(p Ú q) = Øp Ù Øq? p q (^) p Ú q Ø (p Ú q) Øp Øq Øp Ù Øq T T T F F F F T F T F F T F F T T F T F F F F F T T T T
Using a truth table prove that (p Ù Ø p) = False. This is called the “no contradiction” law.
Using a truth table prove that (p Ú False) = p.
Using a truth table prove that Ø (p Ù q) = Øp Ú Øq. This is a De Morgan’s law.
PLEASE TURN OVER
Remember:
Logic Sets p Þ q means p implies q (if p then q) P Í Q means P is a subset of Q
p q (^) p Þ q T T T T F F F T T F F T
Peter's mom said: "All champions are good at maths." Peter says: "I am good at maths. Therefore I am a champion!" Is his reasoning correct?
There are four different cards on a table; each one has a letter on one side and a natural number on the other one. The visible sides have the symbols A, B, 4, and 5. What is the minimum number of cards we must turn over to find out whether the following statement is true: "If an even number is written on one side of a card then a vowel is written on the other side"? Which cards we need to turn over?
PLEASE TURN OVER
In the Knights and Liars Island you meet two natives (not tourists), A and B. What single question should you ask A to determine whether B is a knight? Hint: Call Q the question that you want to ask, Q being a yes/no question.
One inhabitant of the island, A, says: If I am a knight, then B is a liar. What are A and B? Hint: Use a truth table or use one of the following two formulas: (p Þ q) = (p = (p Ù q)) (p Þ q) = (q = (p Ú q))
In the Knights and Liars Island you meet two natives (not tourists), A and B. What single question should you ask A to determine whether A and B are different types? Hint: Call Q the question that you want to ask, Q being a yes/no question.
In an abridged version of Shakespeare’s Merchant of Venice, Portia had two caskets: gold and silver. Inside one of these caskets, Portia had put her portrait, and on each was an inscription. Portia explained to her suitor that each inscription could be either true or false but, on the basis of the inscriptions, he was to choose the casket containing the portrait. If he succeeded, he could marry her. The inscriptions were:
-Gold: The portrait is in this casket. -Silver: If the inscription on the gold casket is true, this inscription is false.
Which casket contained the portrait? What can we deduce about the inscriptions? Hint: Use one of the following two formulas: (p Þ q) = (p = (p Ù q)) (p Þ q) = (q = (p Ú q))
I would like to thank Professor Paulo Oliva from Queen Mary University of London for his suggestions to improve this masterclass.
-Raymond Smullyan, A Beginner's Guide to Mathematical Logic. Raymond Smullyan popularised the knights and liars problems in his 1978 book What Is the Name of This Book? He published A Beginner's Guide to Mathematical Logic at the age of 95!
-George Boole, The Laws of Thought. This is the original book that showed how classical logic could be treated with algebraic terminology, including equations.
-The switching circuit images are mostly taken from I. M. Yaglom’s Unusual algebra, which is part of a great Russian collection: https://mirtitles.org/2011/06/02/little-mathematics-library/
-Regula falsi method: https://en.wikipedia.org/wiki/False_position_method#Arithmetic_and_algebra
-Knights and liars: https://en.wikipedia.org/wiki/Knights_and_Knaves
-Algebraic approach to the knights and liars puzzles:
-The Oxford Maths Admissions Test (MAT) usually includes a logic question: https://www.maths.ox.ac.uk/study-here/undergraduate-study/maths-admissions-test
-Once you master the knights and liars puzzles you could try “The Hardest Logic Puzzle Ever”: https://en.wikipedia.org/wiki/The_Hardest_Logic_Puzzle_Ever.
-My interpretation about Aristotle and Socrates was inspired by Karl Popper’s The open society and its enemies and by http://www.friesian.com/foundatn.htm.
-More about Socrates, Plato and Aristotle:
-Bertrand Russell, A History of Western Philosophy. The chapter on Pythagoras has comments about the influence of geometry on the history of ideas.
I hope you enjoyed the masterclass! Gustavo Lau You can send me questions and comments to [email protected]
Answers 1
Worksheet 2 - Basic operations
No, as I could be in both the city and at home. Using the truth table:
I am at home I am in the city I am at home or I am in the city T T T T F T F T T F F F
The first statement discards the 4th^ row and the second one discards the 3 rd^ row. In the two rows left “I am in the city” could be true or false.
No, as I could be not at home and not in the city. Using the truth table:
I am at home I am in the city I am at home and I am in the city T T T T F F F T F F F F
The first statement discards the 1st^ row and the second one discards the 2 nd^ row. In the two rows left “I am in the city” could be true or false.
Answers 2
One way of doing this is using Venn diagrams for the analogous set operations.
An example: p Ù (q Ú r) = (p Ù q) Ú (p Ù r)
Q È R:
R
P (^) Q
P (^) Q
R
R
P (^) Q P^ Q
R
Answers 4
Since we are told that one statement is true and three statements are false we conclude that Ella is the mother.
None of these statements is true. Exactly one of these statements is true. Exactly two of these statements are true. All of these statements are true.
Only one statement is true, the second one. Any other statement leads to a contradiction.
Worksheet 3 - Truth tables
Using a truth table prove that (p Ù Ø p) = False. This is called the “no contradiction” law. p Ø p p Ù Øp T F F F T F
Using a truth table prove that (p Ú False) = p.
p F p Ú F T F T F F F
The identity, or neutral, element of an operation leaves other elements unchanged when combined with them. For example, 0 is the identity element of the sum because, for every number a, a+0 = a. Therefore (p Ú False) = p means that False is the identity element of Ú.
p q (^) p Ù q Ø (p Ù q) Øp Øq Øp Ú Øq T T T F F F F T F F T F T T F T F T T F T F F F T T T T
Answers 5
p q r (^) q Ù r p Ù (q Ù r) p Ù q (p Ù q) Ù r T T T T T T T T T F F F T F T F T F F F F T F F F F F F F T T T F F F F T F F F F F F F T F F F F F F F F F F F
p q r (^) q Ù r p Ú (q Ù r) p Ú q p Ú r (p Ú q) Ù (p Ú r) T T T T T T T T T T F F T T T T T F T F T T T T T F F F T T T T F T T T T T T T F T F F F T F F F F T F F F T F F F F F F F F F
Worksheet 4 - Implication
No. What Peter’s mom says is equivalent to say that the set of champions is a subset of the people that are good at maths but not that those two sets are equal. So, according to what his mom said, Peter could be good at maths and not a champion.
C M
Answers 7
p q r (^) p Þ q q Þ r (p Þ q) Ù (q Þ r)
Þ (p Þ r) T T T T T T T T T T F T F F F T T F T F T F T T T F F F T F F T F T T T T T T T F T F T F F T T F F T T T F T T F F F T T F T T
always true. This is called the transitivity of the implication.
Worksheet 5 - Knights and liars
Case analysis way:
If the boy is a knight then he would be lying when he says that he is a liar. That is a contradiction. If he is a liar then he would be telling the truth when he says that he is a liar. That is a contradiction. Therefore he can’t live on the island. Therefore he is he is a tourist.
Algebraic way:
Answers 8
Algebraic way:
-Suppose A means “A is a knight” and B means “B is a knight”. -If guard A says S that means A = S. -What else do we know? That B = A is false. How to use that? -Searching how to use the associativity of equality we try: (B = A) = S B = (A = S) -Therefore if we ask to B: what would A say if we ask him if the left door leads to the castle? We will know that the answer is a lie. That is, if the answer is yes then we should take the right door and if the answer is no we should take the left door.
Check with case analysis:
Let’s call Q the question “what would A say if we ask him if the left door leads to the castle?” We have four cases: a) The left door leads to the castle and A always lies. Then if we were to ask A if the left door leads to the castle he would say “No”. In this case B always tells the truth and to question Q he would reply “No”. b) The left door leads to the castle and A always tells the truth. Then if we were to ask A if the left door leads to the castle he would say “Yes”. In this case B always lies and to question Q he would reply “No”. c) The left door leads certain death and A always lies. If we were to ask A if the left door leads to the castle he would say “Yes”. In this case B always tells the truth and to question Q he would reply “Yes”. d) The left door leads certain death and A always tells the truth. Then if we were to ask A if the left door leads to the castle he would say “No”. In this case B always lies and to question Q he would reply “Yes”.
Therefore if we pose question Q and B replies “No” we should open the left door and if he replies “Yes” we should open the right one.