COMP Intro to Logic for Computer Scientists. Lecture 2

Similar documents
For every sentences A and B, there is a sentence: A B,

The Language of First-Order Predicate Logic

6.034 Notes: Section 4.1

Symbolization and Truth-Functional Connectives in SL

MATH 195: Gödel, Escher, and Bach (Spring 2001) Notes and Study Questions for Tuesday, March 20

Lecture 24: Motivating Modal Logic, Translating into It

T T T T T F F F F T T T F F T T. which is equiv. to p Aq^ B, which is equiv. to A ^ B.

Lecture 7. Scope and Anaphora. October 27, 2008 Hana Filip 1

TRANSLATIONS IN SENTENTIAL LOGIC

Present perfect simple

Logik für Informatiker Logic for computer scientists

Formalising arguments

Introduction p. 1 The Elements of an Argument p. 1 Deduction and Induction p. 5 Deductive Argument Forms p. 7 Truth and Validity p. 8 Soundness p.

Section 3.1 Statements, Negations, and Quantified Statements

CPSC 121: Models of Computation. Module 1: Propositional Logic

Mind Association. Oxford University Press and Mind Association are collaborating with JSTOR to digitize, preserve and extend access to Mind.

What is Character? David Braun. University of Rochester. In "Demonstratives", David Kaplan argues that indexicals and other expressions have a

First Order Logic. Xiaojin Zhu Computer Sciences Department University of Wisconsin, Madison. [Based on slides from Burr Settles]

1 HW1 is due now. 2 HW2 & HW3 are due next Tuesday. 3 We are trying to find space to hold the sections. 4 Our TA (Theo Korzukhin) has an office hour

Formalizing Irony with Doxastic Logic

CSC 373: Algorithm Design and Analysis Lecture 17

Peirce's Remarkable Rules of Inference

Disquotation, Conditionals, and the Liar 1

Intro to Pragmatics (Fox/Menéndez-Benito) 10/12/06. Questions 1

INTRODUCTION TO MATHEMATICAL REASONING. Worksheet 3. Sets and Logics

Introduction: A Musico-Logical Offering

Ling 130: Formal Semantics. Spring Natural Deduction with Propositional Logic. Introducing. Natural Deduction

Articulating Medieval Logic, by Terence Parsons. Oxford: Oxford University Press,

Grammar & Usage. Liza Kleinman

CONTINGENCY AND TIME. Gal YEHEZKEL

What are meanings? What do linguistic expressions stand for or denote?

COMMON GRAMMAR ERRORS. By: Dr. Elham Alzoubi

/ The Logic of Atomic Sentences. Remember

1.1 The Language of Mathematics Expressions versus Sentences

IF MONTY HALL FALLS OR CRAWLS

QUESTIONS AND LOGICAL ANALYSIS OF NATURAL LANGUAGE: THE CASE OF TRANSPARENT INTENSIONAL LOGIC MICHAL PELIŠ

Reported speech exercises

Note on Path Signed Graphs

Fallacies and Paradoxes

Word Fry Phrase. one by one. I had this. how is he for you

Embedded Definite Descriptions: Russellian Analysis and Semantic Puzzles STEVEN T. KUHN. Department of Philosophy. Georgetown University

8. Numerations The existential quantifier Exemplification Overview

1. She is drawing a cat. Her drawing is not good. She wants to draw another one. What is she doing? Do you like her drawing?

8. Numerations The existential quantifier Overview

Chicago Manual of Style Quick Guide : Print, Media, and Online Sources

Reply to Stalnaker. Timothy Williamson. In Models and Reality, Robert Stalnaker responds to the tensions discerned in Modal Logic

Elements of Style. Anders O.F. Hendrickson

The Language Revolution Russell Marcus Fall 2015

The Language Revolution Russell Marcus Fall Class #7 Final Thoughts on Frege on Sense and Reference

A Note on Unawareness and Zero Probability

Colours. 2. To appear out of the blue: To arrive unexpectedly usually after a long period.

Topics in Linguistic Theory: Propositional Attitudes

QUANTIFICATION IN AFRICAN LOGIC. Jonathan M. O. Chimakonam Ph.D Department of Philosophy University of Calabar, Nigeria

mcs 2015/5/18 1:43 page 15 #23

Self-reference. Sereny's presentation in "Godel, Tarski, Church, and the Liar,"' although the main idea is

Present perfect and simple past. LEVEL NUMBER LANGUAGE Beginner A2_2043G_EN English

Fragments, Run-ons and Comma Splices

Modeling Scientific Revolutions: Gärdenfors and Levi on the Nature of Paradigm Shifts

Philosophy 405: Knowledge, Truth and Mathematics Spring Russell Marcus Hamilton College

Year 5 Optional English SAT 2003 Reading Test Mark Scheme

PROFESSOR: I'd like to welcome you to this course on computer science. Actually, that's a terrible way to start.

In Defense of the Contingently Nonconcrete

Lesson 13 Teens online

Adventures. 1 Warm-up. 2 Conversation. Language box Adventures. a Talk about the pictures with a partner.

HAVE GOT WAS WERE CAN. Koalatext.com TO BE GRAMMAR CONDITIONAL 0

A. Write a or an before each of these words. (1 x 1mark = 10 marks) St. Thomas More College Half Yearly Examinations February 2009

************************************************

BMC Worksheet: Odd and Even Numbers

The First Hundred Instant Sight Words. Words 1-25 Words Words Words

Examples: & & & In addition to these categories, here are some of the most commonly misused words in the English language:

On Meaning. language to establish several definitions. We then examine the theories of meaning

Punctuation and Capitalization Flipper 1. End Punctuation-Sentences

THE COMMON MINIMAL COMMON NEIGHBORHOOD DOMINATING SIGNED GRAPHS. Communicated by Alireza Abdollahi. 1. Introduction

O. Henry s The Gift of the Magi

Conditional Probability and Bayes

Spectrum inversion as a challenge to intentionalism

ENGLISH FILE Intermediate

AVOIDING FRAGMENTS AND RUN-ONS

ENGLISH FILE. Grammar, Vocabulary, Pronunciation, and Practical English. New. Beginner. 1 Underline the correct word(s) in each sentence.

Content. Learning Outcomes. In this lesson you will learn all about antonyms.

Review Jean Mark Gawron SDSU. March 14, Translation basics (you shouldnt get these things wrong):

پایگاه تفریحی-آموزشی ا و س نیوز

Running head: Collective Representational Content for Shared Extended Mind. Collective Representational Content for Shared Extended Mind.

Negation Switching Equivalence in Signed Graphs

1) PRELIMINARY INFORMATION Angelica Rinebarger Date March 24, Grade level 3 Time frame for lesson 1 hour

Requirements and editorial norms for work presentations

Vagueness & Pragmatics

The Embedding Problem for Non-Cognitivism; Introduction to Cognitivism; Motivational Externalism

borrowed changed heard about injured listened to received studied tried (to) visited went to

Putting It All Together Miss Brill Grade Ten

Forty-Four Editing Reminders

PIER Working Paper

Summit 1. Test Unit 1

SCIENTIFIC KNOWLEDGE AND RELIGIOUS RELATION TO REALITY

eats leaves. Where? It

Prof. Jendry E. Barrios O.

Note: Please use the actual date you accessed this material in your citation.

cse371/mat371 LOGIC Professor Anita Wasilewska

Appendix B. Elements of Style for Proofs

Programa de Acceso Inclusivo, Equidad y Permanencia PAIEP U. de Santiago PAST CONTINUOUS ENGLISH DEPARTMENT

Transcription:

COMP 1002 Intro to Logic for Computer Scientists Lecture 2 B 5 2 J

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth. Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar.

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar. This is Jim Yes Yes No No Jim is a liar Yes No Yes No

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth. Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar. This is Jim Jim is a liar This is a liar Yes Yes Yes Yes No No No Yes No No No Yes

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth. Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar. This is Jim Jim is a liar This is a liar Are you Jim? Yes Yes No No Yes No No Yes No Yes Yes No No No Yes Yes

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth. Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar. This is Jim Jim is a liar This is a liar Are you Jim? Is 2+2=4? Yes Yes Yes No No Yes No No Yes Yes No Yes No No Yes No No Yes Yes No

Twins puzzle There are two identical twin brothers, Dave and Jim. One of them always lies; another always tells the truth. Suppose you see one of them and you want to find out his name. How can you learn if you met Dave or Jim by asking just one short yes-no question? You don t know which one of them is the liar. This is Jim Jim is a liar This is a liar Are you Jim? Is 2+2=4? Is Dave a liar? Yes Yes Yes No No Yes Yes No No Yes Yes Yes No Yes No No Yes No No No Yes Yes No No

Language of logic: building blocks Proposition: A sentence that can be true or false. A: It is raining in St. John s right now. B: 2+2=7 But not Hi! or x is an even number Propositional variables: A, B, C ( or p, q, r) It is a shorthand to denote propositions: B is true, for the B above, means 2+2=7 is true.

Language of logic: connectives Pronunciation Notation Meaning A and B (conjunction) A B True if both A and B are true A or B (disjunction) A B True if either A or B are true (or both) If A then B (implication) A B True whenever if A is true, then B is also true Not A (negation) A Opposite of A is true, A is true when A is false Let A be It is sunny and B be it is cold A B: It is sunny and cold A B: It is either sunny or cold A B: If it is sunny, then it is cold A: It is not sunny

Language of logic Pronunciation Notation True when Now we can combine these operations to make longer formulas Precedence: first, then, then, last is like a unary minus, like * and like + A B C A is A B C A When in doubt or need a different order, use parentheses A B C is not the same as A B C Check the scenario when A is true, but both B and C are false. A and B A B Both A and B must be true A or B A B Either A or B must be true (or both) If A then B A B if A is true, then B is also true Not A A Opposite of A is true A B A B C C A A B C

Language of logic Let A be It is sunny, B be it is cold, C be It s snowing Pronunciation Notation True when A and B A /\ B Both A and B must be true What are the translations of: B C A AND THEN If it is cold and snowing, then it is not sunny B C A THEN OR If it is cold, then it is either snowing or sunny A or B A \/ B Either A or B must be true (or both) If A then B A -> B if A is true, then B is also true Not A ~A Opposite of A is true IF ( ) NOT IF ( ) IF ( NOT AND ) A A C If it is sunny and not sunny, then it is snowing. THEN

The truth We talk about a sentence being true or false when the values of the variables are known. If we didn t know whether it is sunny, we would not know whether A B C is true or false. Truth assignment: setting values of variables to true/false. A=true, B=false, C=false. Satisfying assignment for a sentence: assignment that makes it true. (Otherwise, falsifying assignment). A=true, B=false, C= false satisfies A B C A=true, B=true, C=false falsifies A B C

if... then in logic Last class puzzle has a logical structure: if A then B J 5 What circumstances make this true? A is true and B is true J 5 A is true and B is false J 2 A is false and B is true B 5 A is false and B is false B 2

Truth tables A B not A A and B A or B if A then B True True False True True True True False False False True False False True True False True True False False True False False True A True True False False B True False True False Let A be It is sunny B be it is cold It is sunny and cold. It is sunny and not cold It is not sunny and cold It is neither sunny nor cold

Let A be It is sunny B be it is cold It is sunny and cold. It is sunny and not cold It is not sunny and cold It is neither sunny nor cold Truth tables A B not A A and B A or B if A then B True True False True True True True False False False True False False True True False True True False False True False False True Now, A B is: Same as A B So A B and A B are equivalent. A B (Not A) or B True True True True False False False True True False False True

Knights and knaves On a mystical island, there are two kinds of people: knights and knaves. Knights always tru tell the truth. Knaves always lie. Raymond Smullyan

Knights and knaves On a mystical island, there are two kinds of people: knights and knaves. Knights always tell the truth. Knaves always lie. Puzzle 1: You meet two people on the island, Arnold and Bob. Arnold says Either I am a knave, or Bob is a knight. Is Arnold a knight or a knave? What about Bob?