Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside.

Size: px
Start display at page:

Download "Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside."

Transcription

1 You are a mathematician if 1.1 Overview you say to a car dealer, I ll take the red car or the blue one, but then you feel the need to add, but not both Logic and Mathematical Notation (not in the textbook) Introduce some basic mathematical notation that will allow us to express arguments mathematically. Translate and evaluate arguments into truth tables. Use the equivalencies learned in the truth tables to do proofs. Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside. Logic of Objects ( Predicate Logic) can accommodate variables and quantifiers; There exists at least one black sheep in every family. 1

2 1.2 Deductive reasoning and logical connectives Example 1: I am smart or very lucky. I am not smart. Therefore, I am very lucky. Sentence = True or False but not both. Do you get it?, Ask questions! are not mathematical sentences. Argument = We arrive at true conclusions based on the assumption that the premises are true. In example 1 there are 2 premises: I am smart or very lucky. and I am not smart. and 1 conclusion: I am very lucky. Is the conclusion true in my case? No. I am not very lucky. In my case the conclusion is false; however, so is the first or second premise. So if some or all premises are false then the conclusion(s) may be false as well and all of that does not invalidate the argument. Indeed, as we will see, although I am not very lucky, my argument is valid. Rule: An argument is valid if when the premises are true the conclusion(s) must also be true. Is the following argument valid? Example 2: Either Miss Scarlet is guilty or Mr. Green is guilty. Either Mr. Green is guilty or Mrs. Peacock is guilty. Therefore, either Miss Scarlet or Mrs. Peacock is guilty. 2

3 Lets assume the premises are true. Must the conclusion be true? No, there is a counter-example: Only Mr. Green is guilty. In this case true premises would not lead to a true conclusion. So my counter-example makes this argument in example 2 invalid (= we can show that it is possible that the premises are true and the conclusion (s) are false.) This is a very important point and will guide our thinking on how to do proofs: (1) if in all cases where the premises are true, the conclusion is also true, then an ARGUMENT IS VALID; (2) if in at least one case where the premises are true and the conclusion is false, then an ARGUMENT IS INVALID. NOTE: Consider the following example, is it a valid argument?: Either Miss Scarlet is guilty or Mr. Green is guilty. Either Mr. Green is guilty or Mrs. Peacock is guilty. Either Miss Scarlet guilty or Mrs. Peacock is guilty. Therefore, YOU ARE GUILTY!!! 3

4 Notice that you cannot make a counter-example so that all three premises are true and the conclusion is false!! (3) if the premises cannot be all true, an ARGUMENT itself is VALID! So far, we ve been writing everything out using words. This can get a little confusing because of the large number of words. Often, it is convenient to use symbols to represent concepts. Reconsider Example 1. Suppose we let P represent very lucky and Q represent smart. Then this argument has the form: P or Q not Q Therefore, P. Just as we can use letters like P and Q to represent concepts that are TRUE of FALSE, we can also introduce some other symbolic notation. Therefore, P v Q means P or Q, P ^ Q means P and Q, and P is the negation of P. 4

5 Note that just as with math symbols, placement of brackets is crucial. Reducing complex statements to letters and symbolic notation, allows us to strip things down just to the argument. Then we can judge a statement by its argument without getting distracted by the phrasing. Exercise 3: Write the following in logical notation: It is not true that Abby and Bill are both telling the truth. A = Abby is telling truth; B = Bill is telling truth: ( A ^ B ) Did you see it? It just fell by itself. Exercise 4: Write the following in logical notation: Either Abby or Bill is telling the truth. A = Abby is telling truth; B = Bill is telling truth: (A v B) ^ ( A ^ B ) (Abby or Bill is telling the truth but not both.) 5

6 1.3 Truth Tables Recall that an argument is valid if the premises cannot all be true without the conclusion also being true. Truth tables can be very helpful in determining whether an argument is valid. First we ll show how to construct truth tables. Then we ll show how to use them to evaluate arguments. Statement (premise or conclusion): (a) P (b) P ^ Q (c) P v Q Truth Table: P P P Q P ^ Q P Q P v Q F T F F F F F F T F F T F F T T T F F T F T Note that tables list all possible T T T T T T combinations of simple statements (P and Q in the examples above), each can either be true or false. Exercise 5 Make the truth table for (P v Q). Exercise 6 Make the truth table for (P ^ Q) v R 6 P Q (P v Q) F F F F T T T F F T T F P Q R (P ^ Q) v R F F F T F F T T F T F T F T T T T F F T T F T F T T F T T T T T

7 Go back to Example 1 from earlier. Make a truth table and use it to analyze whether the argument is valid. Recall that we decided that the form of this argument was: P v Q (1 st premise: very lucky or smart) Q (2 nd premise: not smart) P (Conclusion: very lucky) Use a Truth Table to decide whether this argument is valid. P Q P v Q Q P F F F T F F T T F F T F T T T <= This line decides validity T T T F T of this example (1st premise) (2nd premise) (Conclusion) (When both premises are T, conclusion must be T.) Recall that the requirement for an ARGUMENT to be NOT VALID is that the premises can be all true, but the conclusion can be false. Observe that in all lines where the premises are all (both) true, the conclusion is also true. Therefore, we have shown symbolically that this argument is valid. 7

8 Exercise 7 Use a truth table to determine whether the following argument is valid: Either John isn t stupid and he is lazy, or he s stupid. John is stupid. Therefore, John isn t lazy. S=Stupid; L=Lazy: Exercise 8 Use a truth table to determine whether the following argument is valid: The butler and the cook are not both innocent. Either the butler is lying or the cook is innocent. Therefore, the butler is either lying or guilty. B=Butler innocent C=Cook innocent L=Butler lying B=Butler guilty Pr.2 Premise 1 Conclusion S L [( S^L)vS]^ [( S^L)^S] L F F F T F T T F T F T T ok. T T T F oups! This is not a valid argument! Premise 1 Premise 2 Conclusion B C L (B^C) (LvC)^ (L^C) (Lv B)^ (L^ B) F F F T F T F F T T T F NOT VALID F T F T T T ok. F T T T F F T F F T F F T F T T T T ok. T T F F T F T T T F F T This is not a valid argument 8

9 1.4 Equivalencies Exercise 9 Use the truth table to show that statement: I am not stupid and I am not lazy is equivalent to statement It is not true that I am stupid or lazy. S L S^ L (S v L) F F T T F T F F T F F F T T F F Many times, logical statements can be simplified, making the truth tables easier and faster to calculate. This is because symbolic logic follows many of the same properties as typical math. Commutative laws: P v Q is equivalent to Q v P P ^ Q is equivalent to Q ^ P Associative laws: P v (Q v R) is equivalent to (P v Q) v R P ^ (Q ^ R) is equivalent to (P ^ Q) ^ R Idempotent laws: P v P is equivalent to P P ^ P is equivalent to P Distributive laws: P ^ (Q v R) is equivalent to (P ^ Q) v (P ^ R) P v (Q ^ R) is equivalent to (P v Q) ^ Double negation law: ( P) is equivalent to P DeMorgan s laws: (P ^ Q) is equivalent to P v Q and (P v Q) is equivalent to P ^ Q 9 (P v R) Using truth tables, you can (and should be able to) show that the above are equivalent.

10 Exercise 10 Find a simpler (=shorter) equivalent formula: ( P v Q) ( P v Q ) use double negative ( ( P) v Q ) use DeMorgan s law ( ( P ^ Q)) use double negative P ^ Q Exercise 11 Find a simpler equivalent formula: ( Q ^ P) v P ( Q ^ P ) v P use De Morgan s law ( Q v ( P)) v P use double negative ( Q v P ) v P use associative law Q v( P v P ) P v P is always true Q v T Q v T is always true T Formulas that are always True (T), such as P v P, are called tautologies. Formulas that are always False (F), such that P ^ P are called contradictions. 10

11 1.5 Conditional (Implication) and Biconditional (Equivalency) Connectives A very important set of words in arguements are of the form if...then. Following example shows this type of argument. P Q is read as if P then Q. This is called a conditional statement. P is the antecedent and Q is the consequent. Consider the following example: Example 12 If today is Sunday, then I don t have to go to work. S W Today is Sunday. S Therefore, I don t have to work today. W Definition of Conditional Statement: P Q P Q T T T T F F F T T! F F T! Exercise 13 Put in logical form: If it s raining and I don t have my umbrella, then I ll get wet. R = rain U = have umbrella W= get wet (R ^ U) W 11

12 Exercise 14 Put in logical form: If Mary solved her homework problem, then the teacher won t collect it, and if she didn t then he ll collect it and ask her to present the solution on the blackboard. S = Solved homework C = Collect homework B = present on the Blackboard (S C) ^ [ S (C ^ B)] Exercise 15 Create a truth tables for : Mary did not solve her homework or class was cancelled. and for : If Mary solved her homework then class was cancelled. H C H H v C H C F F T T T F T T T T T F F F F T T F T T Hopefully you found that the last two columns are the same and thus ( H v C) and (H C) are equivalent statements: ( H v C) (H C) Here is another common example of equivalency: Don t come late or you will be grounded! You will be grounded if you come late! ( L v G) (L G) 12

13 Note: An argument is actually a conditional statement with premises being antecedents and conclusion being consequent. Conditional that is never false is a valid argument. Recall Example 1: It will rain or snow tomorrow. It is too warm for snow. Therefore, it will rain. and add a column of the following conditional statement into your truth table: If it rains or snows tomorrow, and if it is too warm for snow, then it will rain. P Q P v Q Q P ((P v Q)^ Q) P F F F T F T F T T F F T T F T T T T T T T F T T (1st premise) (2nd premise) (Conclusion) (True Conditional Statement) Exercise 16: Suppose that Q is TRUE and that given Q=T an argument [( P ^ Q) Q] is valid (= it is a TRUE conditional). Use a truth table to find out if P is true or false. P Q P ^ Q Q ( P ^ Q) Q F F F T T Q is false here F T T F F Conditional is false here T F F T T Q is false here T T F F T => P is false and thus P is TRUE True conditional [( P ^ T) F] is called Proof of P by contradiction. 13

14 1.6 Contrapositive versus Converse Converse of a statement (L G) is (G L) If you are grounded then you were late. Contrapositive of a statement (L G) is Exercise 17: Write the following in logical notation: (a) (b) TTT T T T T 14 ( G L) If you aren t grounded then you weren t late. If it s raining or snowing, then the game has been canceled. (R v S ) C If the game hasn t been canceled, then it s not raining and it s not snowing. C ( R ^ S ) or C (R v S ) (c) If the game has been canceled then it s raining or snowing. C (R v S ) Fill in (a) or (b) or (c): ( b ) is a contrapositive of ( a ) and ( c ) is a converse of ( a ) and ( b ) Show that the above contrapositives have the same truth tables, and that they differ from the converse. RSC R v S (R v S ) C C (R v S ) C (R v S ) FFF F T T T FFT F T T F FTF T F F T FTT T T T T TFF T T T T TFT T T T T TTF T F F T

15 1.7 Variables and Sets So far, we ve symbolized statements using simple letters. We have not accounted for the fact that a statement might include variables. Consider the statement, x is a prime number. Let x be a variable. We can write this statement as P(x). By writing this in this way, rather than just P, we are accounting for the fact that x can take on different values. If a statement includes more than one variable, all variables should be shown: eg, D(x, y). Exercise 18 : x is a prime number and x+1 is not a prime number. P(x) ^ P(x+1) Exercise 19 : Write out the following in symbolic notation: if x likes y and y likes z then z and x do not like each other. Let L(a, b) be True if a likes b and False otherwise. [ L(x,y) ^ L(y,z) ] [ L(x,z) ^ L(z,x) ] With dealing with statements without variables, a statement is always either true or false. This is not the case when a statement includes variables; the truth of a statement depends on the value that the variable takes. In our Exercise 18, P(7) is true while P(9) is false. We deal with this through the introduction of truth sets. A truth set is the set of values of x for which P(x) is true. We will introduce basic set theory later 15

16 1.8 Last bits of notation: iff and Quantifiers iff : (Q P) is a biconditional statement, it is a shorthand for [(P Q) ^ ( Q P)]. or (using the contrapositive) for [(P Q) ^ ( P Q)]. This is translated as if P then Q and if not P then not Q or Q if P and Q only if P Q if and only if P or Q iff P or P is sufficient and necessary for Q for all, any, every : [ x: P(x)] means for all values of x, P(x) is true All players were tall., Every player was tall. there exists, at least one : [ x: Q(x)] means there exists a value of x, such that Q(x) is true There exists a player who was tall., At least one player was tall. Note that negation switches the quantifiers: [ x: P(x)] [ x: P(x)] (It is not true that all players were tall.) (At least one player was short (=not tall.)) and that [ x: P(x)] [ x: P(x)] (It is not true that there was at least one tall player.) (All player were short (=not tall.)) Exercise 20: Read and simplify the following statement: [ x: y s.t. y= 1/x] (s.t.=such that) [ x: y s.t. y = 1/x ] It is not true that for every x there exists y such that y=1/x. x s.t. y : y 1/x There exists an x such that for any y, y 1/x. 16

17 Exercise 21: Analyze the following statements. Are some equivalent? (use (S 10) for students; L for lecture) 1. If at least 10 students are here, then the lecture is being given. 2. If less then 10 students are here then lecture is not being given. 17 (S 10) L (S 10) L 3. Only if the lecture is being given then at least 10 students are here. (S 10) L 4. Only if at least 10 students are here then the lecture is being given L (S 10) 5. If an only if at least 10 students are here then the lecture is being given. (S 10) L 6. Having at least 10 students here is a SUFFICIENT condition for the lecture being given. (S 10) L 7. Having at least 10 students here is a NECESSARY condition for the lecture being given. L (S 10) 8. The lecture being given is a NECESSARY condition for having at least 10 students here. (S 10) L 9. The lecture being given is a SUFFICIENT and NECESSARY condition for having at least 10 students here. (S 10) L 10. Having at least 10 students here is a SUFFICIENT and NECESSARY condition for the lecture being given. (S 10) L [1] [3] [6] [8]; [2] [4] [7]; [5] [9] [10];

Chapter 1: The Logic of Compound Statements. January 7, 2008

Chapter 1: The Logic of Compound Statements. January 7, 2008 Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive

More information

Compound Propositions

Compound Propositions Discrete Structures Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not 2. And 3. Or 4. Exclusive or 5. Implication 6. Biconditional Truth

More information

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic Discrete Mathematical Structures Chapter 1 he oundation: Logic 1 Lecture Overview 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Quantifiers l l l l l Statement Logical Connectives Conjunction

More information

CSC Discrete Math I, Spring Propositional Logic

CSC Discrete Math I, Spring Propositional Logic CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)

More information

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook) Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

More information

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

2. The Logic of Compound Statements Summary. Aaron Tan August 2017 2. The Logic of Compound Statements Summary Aaron Tan 21 25 August 2017 1 2. The Logic of Compound Statements 2.1 Logical Form and Logical Equivalence Statements; Compound Statements; Statement Form (Propositional

More information

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication Announcements CS311H: Discrete Mathematics Propositional Logic II Instructor: Işıl Dillig First homework assignment out today! Due in one week, i.e., before lecture next Wed 09/13 Remember: Due before

More information

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1) CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

More information

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information Introduction What is mathematics? High school mathematics is concerned mostly with solving equations and computing answers to numerical questions. College mathematics deals with a wider variety of questions,

More information

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

More information

The statement calculus and logic

The statement calculus and logic Chapter 2 Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn t, it ain t. That s logic. Lewis Carroll You will have encountered several languages

More information

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS 1.1 - Logical Form and Logical Equivalence Definition. A statement or proposition is a sentence that is either true or false, but not both. ex. 1 + 2 = 3 IS a statement

More information

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Spring 2018 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

Chapter 1 Logic Unit Math 114

Chapter 1 Logic Unit Math 114 Chapter 1 Logic Unit Math 114 Section 1.1 Deductive and Induction Reasoning Statements Definition: A statement is a group of words or symbols that can be classified as true or false. Examples of statements

More information

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic. Propositional Logic Winter 2012 Propositional Logic: Section 1.1 Proposition A proposition is a declarative sentence that is either true or false. Which ones of the following sentences are propositions?

More information

Definition 2. Conjunction of p and q

Definition 2. Conjunction of p and q Proposition Propositional Logic CPSC 2070 Discrete Structures Rosen (6 th Ed.) 1.1, 1.2 A proposition is a statement that is either true or false, but not both. Clemson will defeat Georgia in football

More information

Unit 1 Logic Unit Math 114

Unit 1 Logic Unit Math 114 Unit 1 Logic Unit Math 114 Section 1.1 Deductive and Induction Reasoning Deductive Reasoning: The application of a general statement to a specific instance. Deductive reasoning goes from general to specific

More information

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Fall 2017 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

More information

For all For every For each For any There exists at least one There exists There is Some

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 26 Why Study Logic?

More information

Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Logic. Spring Propositional Logic Spring / 32 Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements

More information

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example Announcements CS243: Discrete Structures Propositional Logic II Işıl Dillig First homework assignment out today! Due in one week, i.e., before lecture next Tuesday 09/11 Weilin s Tuesday office hours are

More information

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. Math 0413 Appendix A.0 Logic Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. This type of logic is called propositional.

More information

Recitation Week 3. Taylor Spangler. January 23, 2012

Recitation Week 3. Taylor Spangler. January 23, 2012 Recitation Week 3 Taylor Spangler January 23, 2012 Questions about Piazza, L A TEX or lecture? Questions on the homework? (Skipped in Recitation) Let s start by looking at section 1.1, problem 15 on page

More information

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives Logic Logic is study of abstract reasoning, specifically, concerned with whether reasoning is correct. Logic focuses on relationship among statements as opposed to the content of any particular statement.

More information

Unit 1 Logic Unit Math 114

Unit 1 Logic Unit Math 114 Unit 1 Logic Unit Math 114 Section 1.1 Deductive and Induction Reasoning Deductive Reasoning: The application of a general statement to a specific instance. Deductive reasoning goes from general to specific

More information

LOGIC. Name: Teacher: Pd: Page 1

LOGIC. Name: Teacher: Pd: Page 1 LOGIC Name: Teacher: Pd: Page 1 Table of Contents Day 1 Introduction to Logic HW pages 8-10 Day 2 - Conjunction, Disjunction, Conditionals, and Biconditionals HW pages 16-17 #13-34 all, #35 65(every other

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Section 3.1 Statements, Negations, and Quantified Statements

Section 3.1 Statements, Negations, and Quantified Statements Section 3.1 Statements, Negations, and Quantified Statements Objectives 1. Identify English sentences that are statements. 2. Express statements using symbols. 3. Form the negation of a statement 4. Express

More information

1.1 Statements and Compound Statements

1.1 Statements and Compound Statements Chapter 1 Propositional Logic 1.1 Statements and Compound Statements A statement or proposition is an assertion which is either true or false, though you may not know which. That is, a statement is something

More information

Topic 1: Propositional logic

Topic 1: Propositional logic Topic 1: Propositional logic Guy McCusker 1 1 University of Bath Logic! This lecture is about the simplest kind of mathematical logic: propositional calculus. We discuss propositions, which are statements

More information

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will

More information

Unit 6 Logic Math 116

Unit 6 Logic Math 116 Unit 6 Logic Math 116 Logic Unit Statement: A group words or symbols that can be classified as true or false. Examples of statements Violets are blue Five is a natural number I like Algebra 3 + 7 = 10

More information

Mat 243 Exam 1 Review

Mat 243 Exam 1 Review OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for

More information

MAT2345 Discrete Math

MAT2345 Discrete Math Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview

More information

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

What is Logic? Introduction to Logic. Simple Statements. Which one is statement? What is Logic? Introduction to Logic Peter Lo Logic is the study of reasoning It is specifically concerned with whether reasoning is correct Logic is also known as Propositional Calculus CS218 Peter Lo

More information

Math.3336: Discrete Mathematics. Propositional Equivalences

Math.3336: Discrete Mathematics. Propositional Equivalences Math.3336: Discrete Mathematics Propositional Equivalences Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall

More information

A Quick Lesson on Negation

A Quick Lesson on Negation A Quick Lesson on Negation Several of the argument forms we have looked at (modus tollens and disjunctive syllogism, for valid forms; denying the antecedent for invalid) involve a type of statement which

More information

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Deduction by Daniel Bonevac. Chapter 3 Truth Trees Deduction by Daniel Bonevac Chapter 3 Truth Trees Truth trees Truth trees provide an alternate decision procedure for assessing validity, logical equivalence, satisfiability and other logical properties

More information

8. TRANSFORMING TOOL #1 (the Addition Property of Equality)

8. TRANSFORMING TOOL #1 (the Addition Property of Equality) 8 TRANSFORMING TOOL #1 (the Addition Property of Equality) sentences that look different, but always have the same truth values What can you DO to a sentence that will make it LOOK different, but not change

More information

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics Unit I LOGIC AND PROOFS B. Thilaka Applied Mathematics UNIT I LOGIC AND PROOFS Propositional Logic Propositional equivalences Predicates and Quantifiers Nested Quantifiers Rules of inference Introduction

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Logic Overview, I. and T T T T F F F T F F F F

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

More information

Propositional Languages

Propositional Languages Propositional Logic Propositional Languages A propositional signature is a set/sequence of primitive symbols, called proposition constants. Given a propositional signature, a propositional sentence is

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as: 3.4 THE CONDITIONAL & BICONDITIONAL Definition. Any statement that can be put in the form If p, then q, where p and q are basic statements, is called a conditional statement and is written symbolically

More information

Chapter 3: Logic. Diana Pell. A statement is a declarative sentence that is either true or false, but not both.

Chapter 3: Logic. Diana Pell. A statement is a declarative sentence that is either true or false, but not both. Chapter 3: Logic Diana Pell Section 3.1: Statements and Quantifiers A statement is a declarative sentence that is either true or false, but not both. Exercise 1. Decide which of the following are statements

More information

G E O M E T R Y CHAPTER 2 REASONING AND PROOF. Notes & Study Guide CHAPTER 2 NOTES

G E O M E T R Y CHAPTER 2 REASONING AND PROOF. Notes & Study Guide CHAPTER 2 NOTES G E O M E T R Y CHAPTER 2 REASONING AND PROOF Notes & Study Guide 2 TABLE OF CONTENTS CONDITIONAL STATEMENTS... 3 DEFINTIONS & BICONDITIONAL STATEMENTS... 6 DEDUCTIVE REASONING... 9 REASONING WITH PROPERTIES

More information

Mathematical Reasoning (Part I) 1

Mathematical Reasoning (Part I) 1 c Oksana Shatalov, Spring 2017 1 Mathematical Reasoning (art I) 1 Statements DEFINITION 1. A statement is any declarative sentence 2 that is either true or false, but not both. A statement cannot be neither

More information

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1. Chapter 1 Chapter Summary Propositional Logic The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.3) Predicate Logic The Language of Quantifiers (1.4) Logical Equivalences (1.4)

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

Supplementary Logic Notes CSE 321 Winter 2009

Supplementary Logic Notes CSE 321 Winter 2009 1 Propositional Logic Supplementary Logic Notes CSE 321 Winter 2009 1.1 More efficient truth table methods The method of using truth tables to prove facts about propositional formulas can be a very tedious

More information

30. TRANSFORMING TOOL #1 (the Addition Property of Equality)

30. TRANSFORMING TOOL #1 (the Addition Property of Equality) 30 TRANSFORMING TOOL #1 (the Addition Property of Equality) sentences that look different, but always have the same truth values What can you DO to a sentence that will make it LOOK different, but not

More information

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations Chapter 1, Part I: Propositional Logic With Question/Answer Animations Chapter Summary Propositional Logic The Language of Propositions Applications Logical Equivalences Predicate Logic The Language of

More information

Boolean Logic. CS 231 Dianna Xu

Boolean Logic. CS 231 Dianna Xu Boolean Logic CS 231 Dianna Xu 1 Proposition/Statement A proposition is either true or false but not both The sky is blue Lisa is a Math major x == y Not propositions: Are you Bob? x := 7 2 Boolean variables

More information

GEOMETRY. 2.1 Conditional Statements

GEOMETRY. 2.1 Conditional Statements GEOMETRY 2.1 Conditional Statements ESSENTIAL QUESTION When is a conditional statement true or false? WHAT YOU WILL LEARN owrite conditional statements. ouse definitions written as conditional statements.

More information

DISCRETE MATHEMATICS BA202

DISCRETE MATHEMATICS BA202 TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION

More information

Homework assignment 1: Solutions

Homework assignment 1: Solutions Math 240: Discrete Structures I Due 4:30pm Friday 29 September 2017. McGill University, Fall 2017 Hand in to the mailbox at Burnside 1005. Homework assignment 1: Solutions Discussing the assignment with

More information

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators Proposition/Statement Boolean Logic CS 231 Dianna Xu A proposition is either true or false but not both he sky is blue Lisa is a Math major x == y Not propositions: Are you Bob? x := 7 1 2 Boolean variables

More information

Chapter 1: Formal Logic

Chapter 1: Formal Logic Chapter 1: Formal Logic Dr. Fang (Daisy) Tang ftang@cpp.edu www.cpp.edu/~ftang/ CS 130 Discrete Structures Logic: The Foundation of Reasoning Definition: the foundation for the organized, careful method

More information

Introduction to Decision Sciences Lecture 2

Introduction to Decision Sciences Lecture 2 Introduction to Decision Sciences Lecture 2 Andrew Nobel August 24, 2017 Compound Proposition A compound proposition is a combination of propositions using the basic operations. For example (p q) ( p)

More information

Section 1.2: Conditional Statements

Section 1.2: Conditional Statements Section 1.2: Conditional Statements In this section, we study one of the most important tools in logic - conditional statements. Loosely speaking, conditional statements are statements of the form if p

More information

CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions

CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions 1. [10 points] Translate the following sentences into propositional logic, making the meaning of your propositional variables

More information

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo gic Instructor: Sourav Chakraborty Propositional logic and Predicate Logic Propositional logic and Predicate Logic Every statement (or proposition) is either TRUE or FALSE. Propositional logic and Predicate

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1 Logic One reason for studying logic is that we need a better notation than ordinary English for expressing relationships among various assertions or hypothetical states of affairs. A solid grounding in

More information

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications Discrete Mathematics and Its Applications Lecture 1: The Foundations: Logic and Proofs (1.3-1.5) MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 19, 2017 Outline 1 Logical

More information

Propositional Equivalence

Propositional Equivalence Propositional Equivalence Tautologies and contradictions A compound proposition that is always true, regardless of the truth values of the individual propositions involved, is called a tautology. Example:

More information

CISC-102 Winter 2016 Lecture 17

CISC-102 Winter 2016 Lecture 17 CISC-102 Winter 2016 Lecture 17 Logic and Propositional Calculus Propositional logic was eventually refined using symbolic logic. The 17th/18th century philosopher Gottfried Leibniz (an inventor of calculus)

More information

1 Propositional Logic

1 Propositional Logic 1 Propositional Logic Required reading: Foundations of Computation. Sections 1.1 and 1.2. 1. Introduction to Logic a. Logical consequences. If you know all humans are mortal, and you know that you are

More information

FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

UNIT-I: Propositional Logic

UNIT-I: Propositional Logic 1. Introduction to Logic: UNIT-I: Propositional Logic Logic: logic comprises a (formal) language for making statements about objects and reasoning about properties of these objects. Statements in a logical

More information

Discrete Mathematics

Discrete Mathematics Discrete Mathematics Discrete mathematics is devoted to the study of discrete or distinct unconnected objects. Classical mathematics deals with functions on real numbers. Real numbers form a continuous

More information

The Logic of Compound Statements cont.

The Logic of Compound Statements cont. The Logic of Compound Statements cont. CSE 215, Computer Science 1, Fall 2011 Stony Brook University http://www.cs.stonybrook.edu/~cse215 Refresh from last time: Logical Equivalences Commutativity of :

More information

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall CSE 20 HW1 graded review form? HW2 released DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Translate sentences from English to propositional logic using appropriate

More information

ANS: If you are in Kwangju then you are in South Korea but not in Seoul.

ANS: If you are in Kwangju then you are in South Korea but not in Seoul. Math 15 - Spring 2017 - Homework 1.1 and 1.2 Solutions 1. (1.1#1) Let the following statements be given. p = There is water in the cylinders. q = The head gasket is blown. r = The car will start. (a) Translate

More information

Truth-Functional Logic

Truth-Functional Logic Truth-Functional Logic Syntax Every atomic sentence (A, B, C, ) is a sentence and are sentences With ϕ a sentence, the negation ϕ is a sentence With ϕ and ψ sentences, the conjunction ϕ ψ is a sentence

More information

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Propositional and Predicate Logic

Propositional and Predicate Logic Propositional and Predicate Logic CS 536-05: Science of Programming This is for Section 5 Only: See Prof. Ren for Sections 1 4 A. Why Reviewing/overviewing logic is necessary because we ll be using it

More information

2.2: Logical Equivalence: The Laws of Logic

2.2: Logical Equivalence: The Laws of Logic Example (2.7) For primitive statement p and q, construct a truth table for each of the following compound statements. a) p q b) p q Here we see that the corresponding truth tables for two statement p q

More information

Propositional and First-Order Logic

Propositional and First-Order Logic Propositional and First-Order Logic Chapter 7.4 7.8, 8.1 8.3, 8.5 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer Logic roadmap overview Propositional logic (review) Problems with

More information

Proving logical equivalencies (1.3)

Proving logical equivalencies (1.3) EECS 203 Spring 2016 Lecture 2 Page 1 of 6 Proving logical equivalencies (1.3) One thing we d like to do is prove that two logical statements are the same, or prove that they aren t. Vocabulary time In

More information

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC 1 CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC Here, you ll learn: what it means for a logic system to be finished some strategies for constructing proofs Congratulations! Our system of

More information

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element

More information

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications: Tools for reasoning: Logic Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications: 1 Why study propositional logic? A formal mathematical language for precise

More information

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of

More information

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion

More information

1 Propositional Logic

1 Propositional Logic CS 2800, Logic and Computation Propositional Logic Lectures Pete Manolios Version: 384 Spring 2011 1 Propositional Logic The study of logic was initiated by the ancient Greeks, who were concerned with

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1 Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

More information

Equivalence and Implication

Equivalence and Implication Equivalence and Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing February 7 8, 2018 Alice E. Fischer Laws of Logic... 1/33 1 Logical Equivalence Contradictions and Tautologies 2 3 4 Necessary

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 Getting Started In order to be fluent in mathematical statements, you need to understand the basic framework of the language

More information

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form Math 378 Exam 1 Spring 2009 Show all Work Name 1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form a) In order for John to be wealthy it

More information

Propositional and Predicate Logic

Propositional and Predicate Logic 8/24: pp. 2, 3, 5, solved Propositional and Predicate Logic CS 536: Science of Programming, Spring 2018 A. Why Reviewing/overviewing logic is necessary because we ll be using it in the course. We ll be

More information

Intermediate Logic. Natural Deduction for TFL

Intermediate Logic. Natural Deduction for TFL Intermediate Logic Lecture Two Natural Deduction for TFL Rob Trueman rob.trueman@york.ac.uk University of York The Trouble with Truth Tables Natural Deduction for TFL The Trouble with Truth Tables The

More information

Predicate Logic & Quantification

Predicate Logic & Quantification Predicate Logic & Quantification Things you should do Homework 1 due today at 3pm Via gradescope. Directions posted on the website. Group homework 1 posted, due Tuesday. Groups of 1-3. We suggest 3. In

More information