Silly starter Clicker question

Slides:



Advertisements
Similar presentations
Solving the Einstein puzzle Carol Mullen MST Summer Program 2006 Daemen College.
Advertisements

Clicker: Silly starter question
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Opening Questions What do you think is an appropriate measure of intelligence? How important do you think it is to know how intelligent you are?
What is the story behind the picture? Silly starter Clicker question The picture is an example of which fallacy? A) Straw man B Slippery slope C) Argumentum.
Logic Puzzles Break out Session and Resources. Ph.D. Training – Published Piled Higher and Deeper by Jorge Chamwww.phdcomics.comwww.phdcomics.com.
Puzzle A Puzzle B. When asked about his birthday, a man said: "The day before yesterday I was only 25 and next year I will turn 28." This is true only.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
#tbt #4 Who Owns The Zebra?
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Reading: Chapter 4 (44-59) from the text book
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
11-5 Square Challenge
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Silly starter Clicker question What does the word Proof mean to you A) Establishing a fact with complete certainty B) Establishing a fact beyond reasonable.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Deductive Reasoning. Inductive: premise offers support and evidenceInductive: premise offers support and evidence Deductive: premises offers proof that.
L = # of lines n = # of different simple propositions L = 2 n EXAMPLE: consider the statement, (A ⋅ B) ⊃ C A, B, C are three simple statements 2 3 L =
Chapter 7. Propositional and Predicate Logic
Logic and Reasoning.
2. The Logic of Compound Statements Summary
Valid and Invalid Arguments
Lecture 1.2: Equivalences, and Predicate Logic
Propositional Logic.
Propositional Logic.
DISCRETE MATHEMATICS CHAPTER I.
Discrete Mathematics Lecture 1 Logic of Compound Statements
Lecture 1 – Formal Logic.
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
Discrete Mathematics Logic of Compound Statements
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Silly starter Clicker question
(CSC 102) Discrete Structures Lecture 2.
Clues 1 The Brit lives in the red house 2 The Swede keeps dogs as pets 3 The Dane drinks tea 4 As you look at the houses from across the street, the.
Solving the ‘Einstein” puzzle
Discrete Structures for Computer Science
Introduction to Symbolic Logic
Copyright © Cengage Learning. All rights reserved.
Principles of Computing – UFCFA3-30-1
Propositional Equivalences
Information Technology Department
Using Alloy to Solve the Einstein Puzzle
CS201: Data Structures and Discrete Mathematics I
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
CSRU 1400 Discrete Structure: Logic
Propositional Equivalences
Applied Discrete Mathematics Week 1: Logic
Propositional Logic.
Computer Security: Art and Science, 2nd Edition
Lecture 2: Propositional Equivalences
Discrete Mathematics Logic.
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
Foundations of Discrete Mathematics
Logical and Rule-Based Reasoning Part I
CS201: Data Structures and Discrete Mathematics I
Introduction to Computational Linguistics
Chapter 8 Natural Deduction
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

Silly starter Clicker question What does the word Proof mean to you A) Establishing a fact with complete certainty B) Establishing a fact beyond reasonable doubt C) What happens to dough when you add yeast D) None of the above

Silly starter Clicker question The picture is an example of which fallacy? A) Straw man B Slippery slope C) Argumentum ad hominum D) Ignoratio Elenchi E) Circular reasoning

Lecture 2, MATH 210G.02, Fall 2017: Logic Part 2: Symbolic Logic

Law of the excluded middle For every proposition, either the proposition is true or its negation is true Either “Socrates is a man” or “Socrates is not a man” Either “It is true that Socrates is a man” or “It is true that Socrates is not a man” What about “This sentence is neither true nor false” Problem of self-reference or implied “it is true that…”

A use of the excluded middle There exist positive, irrational numbers a and b such that is rational. Proof: is irrational (believe me next week) If is rational then we are done: If is irrational then Does the trick. Proof is nonconstructive. It does not tell us whether is rational for particular irrational values of a and b.

Problems with the excluded middle Many statements have an element of uncertainty and are subject to an error of equivocation or false dilemma Four quarters are a dollar Either it is raining or it is not raining Either Sophia Vergara is blonde or she is not blonde. Either NMSU has a better football team or UTEP has a better football team… These examples all suffer from imprecise language.

Logical arguments I: The syllogism Aristotle, Prior Analytics: a syllogism is "a discourse in which, certain things having been supposed, something different from the things supposed results of necessity because these things are so.”

Syllogism cont. A categorical syllogism consists of three parts: the major premise, the minor premise and the conclusion. Major premise: All men are mortal. Minor premise: Socrates is a man. Conclusion: Socrates is mortal. Major premise: All mortals die. Minor premise: All men are mortals. Conclusion: All men die.

Identify the major premise: All dogs have four legs Milo is a dog ________________________ People who solve problems can get jobs. Students good in math can solve problems. _______________________ Women like a man with a prominent chin. Robert Z’dar has a prominent chin.

ou Logic, n. The art of thinking and reasoning in strict accordance with the limitations and incapacities of the human misunderstanding. The basic of logic is the syllogism, consisting of a major and a minor premise and a conclusion - thus: Major Premise: Sixty men can do a piece of work sixty times as quickly as one man. Minor Premise: One man can dig a post-hole in sixty seconds; Therefore- Conclusion: Sixty men can dig a post-hole in one second. This may be called syllogism arithmetical, in which, by combining logic and mathematics, we obtain a double certainty and are twice blessed.”

Modus ponendo ponens ("the way that affirms by affirming”) If P, then Q. P. Thus, Q If Socrates is a man then Socrates is mortal Socrates is a man Therefore, Socrates is mortal

Logic and causality

Causality Plato is a dog. all dogs are green Plato is green.

Universe of discourse

Logic and symbol of propositional calculus 1515 Logic and symbol of propositional calculus P, Q, R etc: propositional variables Substitute for statements, e.g., P: Plato is a dog, Q: Plato is Green Logical connectives: Proposition: If Plato is a dog then Plato is green:

Truth tables P Q (conjunction) T F P Q (disjunction) T F

Clicker question P: Socrates is a man Q: Socrates is mortal. If Socrates is a man then Socrates is mortal. Suppose that Socrates is not a man. Is the whole statement: true or false? Clicker: True (A) or False (B)

Truth table for implication Q (implication) T F

Why is “If p then q” true whenever p is false? Your mom always tells the truth…right? Your mom makes a promise: “ if you get an A in math then we’ll get you a puppy” Suppose you don’t get an A in math. If you don’t get a puppy, then your mom has not broken her promise. If you get a puppy anyway, she still has not broken her promise. P: you get an A in math; Q: get a puppy holds either way.

Simple and compound statements A simple statement is sometimes called an atom. E.g., Milo is a dog; Socrates is a man; Men are mortal. A compound statement is a string of atoms joined by logical connectives (and, or, then, not) Logical equivalence: vs Truth value of a compound statement is inherited from the values of the atoms.

Truth table for modus ponens No matter what truth values are assigned to the statements p and q, the statement is true

Exercise: complete the truth table for modus tollens Q ~P ~Q T F Stopped here 2/2/17

For compound statements with conjunctions (∧) to be true, the elements on both sides of ∧ must have the value “T” so the fourth column is as follows: P Q T F

For condition statements or “implications” with “ ->” to be true, either the statement to the left of the implication has to be false or the statement to the right of the implicationhas to be true. The statement (p->q)∧-q is false in the first three cases and the statement –p is true in the last, so the fourth column has value “T” in all cases P Q T F

Clicker questions: First row: True (A) or False (B) p ~p q Q~ T F First row: True (A) or False (B) Second row: True (A) or False (B) Third row: True (A) or False (B) Fourth row: True (A) or False (B)

Logical equivalence Two formulas are logically equivalent if they have the same truth values once values are assigned to the atoms. Ex: is equivalent is equivalent to How to check logical equivalence: verify that the statements always have the same values

Exercise: verify that the statements , and are logically equivalent p q T F

Exercise: Verify using truth tables that the following DeMorgan’s laws are logically equivalent

Exercise: Verify using truth tables the following absorption rules and the conditional rules

Match the following logical equivalencies with the corresponding rules of inference

Tautology and contradiction: T or C A logical statement that is always true, independent of whether each of the symbols is true, is called a tautology. A logical statement that is always true, independent of whether each of the symbols is true, is called a contradiction. Note:

Logical equivalence laws Commutative laws: p ∧ q = q ∧ p; p ∨ q = q ∨ p Associative laws: (p ∧ q) ∧ r = p ∧ (q ∧ r), (p ∨ q) ∨ r = p ∨ (q ∨ r) Distributive laws: p ∧ (q ∨ r) = (p ∧ q) ∨ (p ∧ r) p ∨ (q ∧ r) = (p ∨ q) ∧ (p ∨ r) Identity, universal bound, idempotent, and absorption laws: p ∧ t = p, p ∨ c = p p ∨ t = t, p ∧ c = c p ∧ p = p, p ∨ p = p p ∨ (p ∧ q) = p, p ∧ (p ∨ q) = p De Morgan’s laws: ~(p ∧ q) = ~p ∨ ~q, ~(p ∨ q) = ~p ∧ ~q

Show that the following are logically equivalent: (r V p) ^ ( ( ~r V (p^q) ) ^ (r V q) ) and p ^ q

Boole (1815-1864) and DeMorgan (1806–1871) De Morgan’s laws: not (P and Q) = (not P) or (not Q) not (P or Q) = (not P) and (not Q)

Boolean algebra

Other logical deduction rules

Exercises

Fill in the following truth table

Fill in the following truth table

Fill in the following truth table

Exercise 1: Complex deduction • Premises: – If my glasses are on the kitchen table, then I saw them at breakfast I was reading the newspaper in the living room or I was reading the newspaper in the kitchen – If I was reading the newspaper in the living room, then my glasses are on the coffee table – I did not see my glasses at breakfast – If I was reading my book in bed, then my glasses are on the bed table – If I was reading the newspaper in the kitchen, then my glasses are on the kitchen table • Where are the glasses?

Deduce the following using truth tables or deduction rules

a. If it walks like a duck and it talks like a duck, then it is a duck NAME_______________ NAME_____________ Write each of the following three statements in the symbolic form and determine which pairs are logically equivalent a. If it walks like a duck and it talks like a duck, then it is a duck b. Either it does not walk like a duck or it does not talk like a duck, or it is a duck c. If it does not walk like a duck and it does not talk like a duck, then it is not a duck

Walks like duck (W) Talks like duck (Ta) Is duck (D) T F Walks like duck ~ W Talks like duck ~ T Is duck T F

Exercise: Are the statements and are logically equivalent p q T F

Spatial logic puzzles The last set of exercises here will not be reflected on the midterm exam because of their level of complexity, combining spatial reasoning and logic.

Spatial logic puzzles Spatial logic puzzles involve deducing certain attributes attached to specific entities by a process of elimination that takes spatial or temporal information into account.

Zebra puzzle There are 5 houses each with a different color. Their owners, each with a unique heritage, drinks a certain type of beverage, smokes a certain brand of cigarette, and keeps a certain variety of pet. None of the owners have the same variety of pet, smoke the same brand of cigarette or drink the same beverage. Clues: The Brit lives in the red house. The Swede keeps dogs as pets. The Dane drinks tea. Looking from in front, the green house is just to the left of the white house. The green house's owner drinks coffee. The person who smokes Pall Malls raises birds. The owner of the yellow house smokes Dunhill. The man living in the center house drinks milk. The Norwegian lives in the leftmost house. The man who smokes Blends lives next to the one who keeps cats. The man who keeps a horse lives next to the man who smokes Dunhill. The owner who smokes Bluemasters also drinks beer. The German smokes Prince. The Norwegian lives next to the blue house. The man who smokes Blends has a neighbor who drinks water. Who owns the pet fish?

Five women bought five different types of flowers for different reasons on different days. Names: Julia, Amy, Bethany, Rachel, and Kristen Flowers: Roses, Daisies, Lilies, Tulips, and Carnations Colors: Purple, Yellow, Pink, White, and Peach Places or Occasions: Backyard, Park, Office, Wedding, and Birthday Days: Monday, Tuesday, Wednesday, Thursday, and Friday 1. The flowers were purchased in the following order: tulips, the flowers for the office, the purple flowers, the roses for the park, and the white flowers bought by Julia. 2. Bethany loves flowers but is allergic, so she would never have them indoors. 3. It rained on Wednesday and Friday, because of this, the wedding and birthday party had to be moved indoors. 4. Amy bought her flowers after Rachel, but before Kristen. 5. Rachel needed something more to add to her office, so she chose peach flowers to match her curtains. 6. On Wednesday the only purple flowers available at the flower shop were daisies. 7. The pink flowers were bought after the carnations, but before the lilies. 8. The flowers for the birthday were bought after the flowers for the office, but before the flowers for the wedding.

Assassin is a popular game on college campuses Assassin is a popular game on college campuses. The game consists of several players trying to eliminate the others by means of squirting them with water pistols in order to be the last survivor. Once hit, the player is out of the game. Game play is fair play at all times and all locations, and tends to last several days depending on the number of participants and their stealth. At Troyhill University, 5 students participated in a game that only lasted four days. Can you determine each player's first name, their color, their assassin alias, how they were eliminated, and their major? Names: Liam, Anabel, Bella, Oliver, Ethan Colors: Red, Green, Blue, Purple, Black Alias: Captain Dawn, Night Stalker, Dark Elf, McStealth, Billy Capture: Caught at weekly study group, Caught helping friend with car trouble, Ambushed during sleep, Caught on the way to class, Winner Major: Economics, Biology, Art History, Sociology, Psychology MONDAY: Liam, the girl named Captain Dawn, and the person in purple avoided any action that day. The psychology major was able to easily catch Ethan because she already had a study group meeting with him that day. Since it was a weekly engagement, he didn't suspect a thing. Goodbye red player. TUESDAY: Everyone tried to get in on the action today. The girl masquerading as the Dark Elf (who was wearing either black or red) and the sociology major lived to see another day. The purple player was able to catch the obliging yet naive green player by calling her and pretending he had car trouble. WEDNESDAY: The biology major (who was still "alive") was surprised to hear that the Psychology major, who wasn't Anabel the art history major, ambushed Night Stalker as he slept in his dorm. THURSDAY: The black player was declared the victor after luckily spotting "Billy" on his way to Mammalian Physiology, a class required by his major.

More logic grid puzzles

Exercise Solutions

Fill in the following truth table p q r p ^ r ~ ( p ^ r ) ~ ( p ^ r ) v q T F

Fill in the following truth table p q r p ^ r ~ ( p ^ r ) ~ ( p ^ r ) v q T F

Fill in the following truth table P Q ~P ~Q P^~Q ~P v Q ~(~P v Q) ~P v ( P ^ ~ Q) Q ^ ~ (~ P v Q) T F

Fill in the following truth table P Q ~P ~Q P^~Q ~P v Q ~(~P v Q) ~P v ( P ^ ~ Q) Q ^ ~ (~ P v Q) T F

Fill in the following truth table C D ~A ~AvB ~C ~C^D (~AvB)->(~C^D) T F

Fill in the following truth table C D ~A ~AvB ~C ~C^D (~AvB)->(~C^D) T F

Exercise 1: Complex deduction (solution) • Premises: – If my glasses are on the kitchen table, then I saw them at breakfast. I was reading the newspaper in the living room or I was reading the newspaper in the kitchen. If I was reading the newspaper in the living room, then my glasses are on the coffee table. I did not see my glasses at breakfast. If I was reading my book in bed, then my glasses are on the bed table. If I was reading the newspaper in the kitchen, then my glasses are on the kitchen table • Where are the glasses? SOLN: Since I did not see my glasses at breakfast, they are not on the kitchen table. Therefore I was not reading the newspaper in the kitchen. Therefore I was reading the newspaper in the living room. Therefore my glasses are on the coffee table. Notice that the conditional statement: “If I was reading my book in bed then my glasses are on the bed table “ is a red herring because nothing else supports the conclusion that I was reading in bed or that my glasses are on the bed table.

Deduce the following using truth tables or deduction rules Complete the following truth table to confirm the equivalence: P ~P Q ~Q P v ~ Q ~P ^ ~Q ~(P v ~ Q) ~(P v ~ Q) v (~P ^ ~Q) T F

Deduce the following using truth tables or deduction rules The following truth table confirms the equivalence: P ~P Q ~Q P v ~ Q ~P ^ ~Q ~(P v ~ Q) ~(P v ~ Q) v (~P ^ ~Q) T F

a. If it walks like a duck and it talks like a duck, then it is a duck NAME_______________ NAME_____________ Write each of the following three statements in the symbolic form and determine which pairs are logically equivalent a. If it walks like a duck and it talks like a duck, then it is a duck b. Either it does not walk like a duck or it does not talk like a duck, or it is a duck c. If it does not walk like a duck and it does not talk like a duck, then it is not a duck

Walks like duck (W) Talks like duck (Ta) Is duck (D) T F Walks like duck Talks like duck Is duck ~ W ~ T ~WV~T T F

Walks like duck (W) Talks like duck (Ta) Is duck (D) T F Walks like duck Talks like duck Is duck ~ W ~ T ~WV~T T F

Exercise: Are the statements and are logically equivalent Exercise: Are the statements and are logically equivalent? SOLN: No: truth values are not all the same: p q T F

Spatial logic puzzles We only solve the “zebra”puzzle to illustrate the thinking involved.

Zebra puzzle Brit Swede Dane German Norge Red Green White Yellow Blue Dog Bird Cat Horse Fish Tea Coffee Milk Beer Water Pall Dun Blend BlMa Prince 1 2 3 4 5 o x BlMas There are 5 houses each with a different color. Their owners, each with a unique heritage, drinks a certain type of beverage, smokes a certain brand of cigarette, and keeps a certain variety of pet. None of the owners have the same variety of pet, smoke the same brand of cigarette or drink the same beverage. Clues: The Brit lives in the red house. The Swede keeps dogs as pets. The Dane drinks tea. Looking from in front, the green house is just to the left of the white house. The green house's owner drinks coffee. The person who smokes Pall Malls raises birds. The owner of the yellow house smokes Dunhill. The man living in the center house drinks milk. The Norwegian lives in the leftmost house. The man who smokes Blends lives next to the one who keeps cats. The man who keeps a horse lives next to the man who smokes Dunhill. The owner who smokes Bluemasters also drinks beer. The German smokes Prince. The Norwegian lives next to the blue house. The man who smokes Blends has a neighbor who drinks water. Who owns the pet fish?

Soln: We know that the Norwegian lives in the leftmost house, which is next to the blue house, so the blue house is the second house. Since the Brit lives in the red house, the red house cannot be the first leftmost house. Since the white house is to the right of the green house, we can only conclude that the three houses on the right are red, green or white. So the Norwegian lives in the yellow house and smokes Dunhills. Thus, the horse must belong to the second (blue) house. The center house is not green since its owner drinks milk, not coffee. Therefore the center house must be red, the next house green and the rightmost house white. We now know that the Brit lives in the middle house. The man in the blue house is not British, Norwegian or Swedish (dogs) so is German or Danish. If he is German then he smokes Pall Malls and the smokers of Blends, BlueMeisters and Pall Mall live in the right three houses as do the drinkers of milk (middle), beer (Bluemeisters) and coffee (green). This leads to a contradiction since then the drinkers of tea and water live in the left two houses—impossible if the tea drinker is Danish. So the blue house belongs to the Dane. The owners of the two right houses then are German and Swede. Since the Dane in the blue house does not smoke Prince (German), Dunhill (Norwegian), Pall Mall (Birds, not horse) or Bluemeister (beer, not tea), the Dane must smoke Blends. Since the middle house drinks milk, the Dane’s other neighbor-the Norwegian, must drink water. This forces the owner of the white house to drink beer since that of the Green house drinks tea. Since the German smokes Prince, not Bluemeisters, the German must live in the Green house and the Swede in the White house and the Brit must have the birds. The cat must live with the Norwegian. This means the German owns the fish.