Docsity

Logic Worksheet and Masterclass, Exams of Logic

Toggle sidebar
bg1
Logic
Worksheet 1 - Reasoning
1) Do you agree with the following arguments?
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.
You don't have to finish these questions.
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.
2) While visiting the Knights and Liars Island, you meet a boy who tells you that
he is a liar. Does he live on the island or is he a tourist?
PLEASE TURN OVER
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Logic Worksheet and Masterclass and more Exams Logic in PDF only on Docsity!

Logic

Worksheet 1 - Reasoning

  1. Do you agree with the following arguments?

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.

You don't have to finish these questions.

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.

  1. While visiting the Knights and Liars Island, you meet a boy who tells you that he is a liar. Does he live on the island or is he a tourist?

PLEASE TURN OVER

  1. 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?

  2. 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.

  1. The four statements in the box refer to a mother and her four daughters. One statement is true, three statements are false.

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?

  1. How many of the statements in the box are true?

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.

Logic

Worksheet 3 – Truth tables

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

  1. Using a truth table prove that (p Ù Ø p) = False. This is called the “no contradiction” law.

  2. Using a truth table prove that (p Ú False) = p.

  3. Using a truth table prove that Ø (p Ù q) = Øp Ú Øq. This is a De Morgan’s law.

PLEASE TURN OVER

Logic

Worksheet 4 - Implication

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

  1. 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?

  2. 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?

3) Using a truth table prove that (p Þ q) ¹ (q Þ p). This proves that “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.” is incorrect.

PLEASE TURN OVER

A B 4 5

4) Using a truth table prove that (p Þ q) = (Øp Ú q).

You don't have to finish these questions.

  1. Using a truth table prove that (p Þ q) = (q = (p Ú q)).

6) Using a truth table prove that ((p Þ q) Ù (q Þ r)) Þ (p Þ r).

You don't have to finish these questions.

  1. 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.

  2. 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))

  3. 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.

  4. 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))

Logic masterclass

Acknowledgements

and more things to look at

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:

  • http://www.cs.nott.ac.uk/~psarb2/G51MPC/slides/KnightsAndKnaves.pdf
  • http://joaoff.com/wp-content/uploads/2011/06/thesis-a4-colour.pdf (page 192 onwards, several Knights and liars problems were taken from here).
  • Roland Backhouse, Algorithmic Problem Solving. Chapter 5.

-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.

  • Raphael’s The School of Athens: https://www.khanacademy.org/humanities/renaissance- reformation/high-ren-florence-rome/high-renaissance1/v/raphael-school-of-athens

-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.

  • http://www.dummies.com/education/philosophy/socrates-plato-and-aristotle-the-big-three- in-greek-philosophy/
  • http://ed.ted.com/on/tb7gSI6b#review

I hope you enjoyed the masterclass! Gustavo Lau You can send me questions and comments to [email protected]

Answers 1

Worksheet 2 - Basic operations

  1. Do you agree with the following argument?
  • I am at home or I am in the city.
  • I am at home.
  • Therefore, I am not in the city.

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.

  1. What about this one?
  • I cannot be both at home and in the city.
  • I am not at home.
  • Therefore, I am in the city.

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

  1. Could you draw lines pairing the expressions that are equal?

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:

P Ç Q: P Ç R:
P Ç (Q È R) = (P Ç Q) È (P Ç 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.

  1. How many of the statements in the box are true?

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

  1. 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

  2. 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 Ú.

  1. Using a truth table prove that Ø (p Ù q) = Øp Ú Øq. This is a De Morgan’s law.

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

  1. Using a truth table prove that p Ù (q Ù r) = (p Ù q) Ù r. This is called the associativity of Ù.

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

  1. Using a truth table prove that p Ú (q Ù r) = (p Ú q) Ù (p Ú r). This is called the distributivity of Ú over Ù.

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

  1. 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?

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

C= set of

champions

M= set of people

that are good at

maths

Answers 7

7) Using a truth table prove that ((p Þ q) Ù (q Þ r)) Þ (p Þ r).

p q r (^) p Þ q q Þ r (p Þ q) Ù (q Þ r)

p Þ 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

Given that the last column has only T’s, ((p Þ q) Ù (q Þ r)) Þ (p Þ r) is

always true. This is called the transitivity of the implication.

Worksheet 5 - Knights and liars

  1. While visiting the Knights and Liars Island, you meet a boy who tells you that he is a liar. Does he live on the island or is he a tourist?

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:

  • Let’s call the boy B. -Suppose B means “B is a knight”. -If B lives in the island and says S that means B = S. -B said (B = False). If B were to live in the island we would have B = (B = False) (B = B) = False (associativity of =) True = False (B = B is True) A contradiction, therefore B is a tourist.

Answers 8

  1. Labyrinth puzzle. There are two doors: one leads you to the castle and one to certain death. Each door has a guard: one always lies and one always tells the truth. You can only ask one question to one of them. Which question you would ask to figure out which door to open?

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.