The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018
|
|
- Lauren Lang
- 6 years ago
- Views:
Transcription
1 CSE 2353 Discrete Comutational Structures Sring 2018 The Logic of Comound Statements (Chater 2, E) Note: some course slides adoted from ublisher-rovided material
2 Outline 2.1 Logical Form and Logical Equivalence 2.2 Conditional Statements 2.3 Valid and Invalid Arguments Sring 2018 CSE 2353 Discrete Comutational Structures 3 Logical Form and Logical Equivalence Consider the statement: If a student is a CSE major, then the student must take CSE 2353 The logical form for this statement can be exressed as follows: Let = student is a CSE major q = student must take CSE 2353 if, then q therefore, q Sring 2018 CSE 2353 Discrete Comutational Structures 4
3 Statements In logic, a statement (sometimes called a roosition) is a sentence that is either true or false (not both) Statement: I am currently in the CSE 2353 classroom is true (if you re not skiing class) Statement: I am currently in the CSE 2353 classroom and also inside Moody Coliseum is false (unless we move the class there) Sring 2018 CSE 2353 Discrete Comutational Structures 5 Comound Statements We need a more formal (mathematical) method of exressing statements Basic comonents of a logic statement: and, or, not Symbols: and and q: q conjunction of and q or or q: q disjunction of and q not not q: q negation of q Sring 2018 CSE 2353 Discrete Comutational Structures 6
4 It is sunny and hot Examles Let = "it is sunny" and q = "it is hot" Then we can translate statement as: q It is hot or humid Let r = "it is humid". Then we have: q r It is not humid becomes r Sring 2018 CSE 2353 Discrete Comutational Structures 7 Truth Values As mentioned earlier, a statement is either true or false. We denote truth values as follows: True = T False = F We can develo a truth table to reresent truth values for comound statements. Sring 2018 CSE 2353 Discrete Comutational Structures 8
5 Negation For statement variable If is true, then is false If is false, then is true Truth table for negation: T F F T Sring 2018 CSE 2353 Discrete Comutational Structures 9 Conjunction For statement variables and q If both and q are true, then q is true Otherwise, q is false Truth table for conjunction: q q T T T T F F F T F F F F Sring 2018 CSE 2353 Discrete Comutational Structures 10
6 Disjunction For statement variables and q If at least one of and q is true, then q is true Otherwise, q is false Truth table for disjunction: q q T T T T F T F T T F F F Sring 2018 CSE 2353 Discrete Comutational Structures 11 Alication to Programming C/C++/Java Negation: if (!) {} Conjunction: if ( && q) {} Disjunction: if ( q) {} Sring 2018 CSE 2353 Discrete Comutational Structures 12
7 Evaluating the Truth of General Comound Statements Truth tables are helful for evaluating more comlex statements. A statement form (sometimes called roositional form) is an exression that contains: Statement variables (e.g.,, q, r) Logical connectives (e.g.,,, ) The truth table for a given statement form dislays the truth values for all ossible combinations of truth values for the statement variables Sring 2018 CSE 2353 Discrete Comutational Structures 13 Creating a Truth Table E.g. we have the statement form ( q) r What is the truth table? How many rows in the truth table (number of ossible combinations of truth values for, q, r)? For each variable, we have 2 ossible truth values (T, F) If we have 2 variables, we have a combination of 4 ossible truth values (TT,TF,FT,FF) General rule: for n variables, there are 2 n ossible truth value combinations Sring 2018 CSE 2353 Discrete Comutational Structures 14
8 Creating a Truth Table So for our statement form, we have 3 variables (, q, r), thus our truth table must have 2 3 = 8 rows q r ( q) r T T T T T F T F T T F F F T T F T F F F T F F F Sring 2018 CSE 2353 Discrete Comutational Structures 15 Creating a Truth Table q r q q ( q) r T T T F T T F F T F T T T F F T F T T F F T F F F F T T F F F T Sring 2018 CSE 2353 Discrete Comutational Structures 16
9 Creating a Truth Table q r q q ( q) r T T T F F T T F F F T F T T T T F F T T F T T F F F T F F F F F T T F F F F T F Sring 2018 CSE 2353 Discrete Comutational Structures 17 Creating a Truth Table q r q q ( q) r T T T F F T T T F F F F T F T T T T T F F T T T F T T F F T F T F F F F F F T T F T F F F T F F Sring 2018 CSE 2353 Discrete Comutational Structures 18
10 Examle Write the truth table for the statement form (q r) Alication to rogramming? C/C++/Java: if ( && (q r)) { } Sring 2018 CSE 2353 Discrete Comutational Structures 19 Exclusive-OR Suose that you are at a restaurant, and the menu states that your meal rice includes either tea or coffee. (If you want both, you will need to ay extra) Let = tea and q = coffee. The truth table is: q result COMMENT T T F you can t get both T F T you have tea F T T you have coffee F F F waiter forgot Sring 2018 CSE 2353 Discrete Comutational Structures 20
11 Exclusive-OR This is called Exclusive-OR, or XOR Disjunction is sometimes called Inclusive-OR XOR: can be reresented as: ( q) ( q) or ( q) ( q) Sring 2018 CSE 2353 Discrete Comutational Structures 21 Logical Equivalence Given the statement: It is cold and raining q What if we said It is raining and cold q Are we saying the same thing? Let s verify using a truth table: q q q T T T T T F F F F T F F F F F F Sring 2018 CSE 2353 Discrete Comutational Structures 22
12 Logical Equivalence q q q T T T T T F F F F T F F F F F F Note that the values of q and q are the same for each truth table row (truth values for each variable). Therefore, the statement forms q and q are said to be logically equivalent, or q q Sring 2018 CSE 2353 Discrete Comutational Structures 23 Examle Now, assume that we have two new statement forms Let X = q Y = ( q) Is X Y? Sring 2018 CSE 2353 Discrete Comutational Structures 24
13 De Morgan s Laws How do we handle negation of conjunction and disjunction? First, given variables and q, determine conjunction and disjunction of their negated values: q q q q T T F F F F T F F T F T F T T F F T F F T T T T Sring 2018 CSE 2353 Discrete Comutational Structures 25 De Morgan s Laws Next, determine the negation of the conjunction and disjunction of variables and q: q q q ( q) ( q) T T T T F F T F F T T F F T F T T F F F F F T T Sring 2018 CSE 2353 Discrete Comutational Structures 26
14 De Morgan s Laws Comare the results from the two truth tables: q q q ( q) ( q) T T F F F F T F F T T F F T F T T F F F T T T T Comaring the two tables, we notice a attern: ( q) = q and ( q) = q These roerties are called De Morgan s Laws Sring 2018 CSE 2353 Discrete Comutational Structures 27 Alication to Programming Recall our earlier examle: (q r) In C/C++/Java, this becomes if ( && (q r)) {} Now, negate using De Morgan s Laws Sring 2018 CSE 2353 Discrete Comutational Structures 28
15 Alication to Programming Negation of (q r) becomes ~[ (q r)] = ~ ~(q r) = ~ (~q ~r) In C/C++/Java, this becomes if (! (!q &&!r)) {} Sring 2018 CSE 2353 Discrete Comutational Structures 29 Examle We are given the following statement: The connector is loose or the machine is unlugged Using De Morgan s Laws, write the negation of this statement Sring 2018 CSE 2353 Discrete Comutational Structures 30
16 Tautologies and Contradictions Tautology = statement form that is always true, regardless of truth values of its statement variables Contradiction = statement form that is always false, regardless of truth values of its statement variables Sring 2018 CSE 2353 Discrete Comutational Structures 31 Tautologies and Contradictions T F T F F T T F The statement form is a tautology The statement form is a contradiction NOTATION: tautology = t contradiction = c Sring 2018 CSE 2353 Discrete Comutational Structures 32
17 Summary of Logical Equivalences Knowledge of logically equivalent statements is very useful for constructing arguments. It often haens that it is difficult to see how a conclusion follows from one form of a statement, whereas it is easy to see how it follows from a logically equivalent form of the statement. Sring CSE 2353 Discrete Comutational Structures Logical Equivalence Laws Sring 2018 CSE 2353 Discrete Comutational Structures 34 ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) r q r q r q r q Distributive r q r q r q r q Associative q q q q Commutative Ú Ù Ú º Ù Ú Ù Ú Ù º Ú Ù Ú Ú º Ú Ú Ù Ù º Ù Ù Ú º Ú Ù º Ù : : : Given statement variables, q, and r: Also given tautology t and contradiction c: ( ) Doublenegative Negation Identity º º Ù º Ú º Ú º Ù ~ ~ : ~ ~ : : c t c t
18 Logical Equivalence Laws A few more. Idemotent : Universal bound : De Morgan' s : ~ Ù º Ú t º t Ú º Ù c º c ( Ù q) º ~ Ú ~ q ~ ( Ú q) º ~ Ù ~ q Absortion : Ú ( Ù q) º Ù ( Ú q) Negations of t and c : ~ t º c ~ c º t º Sring 2018 CSE 2353 Discrete Comutational Structures 35 Absortion Laws ( q)? Does this make sense? Develo truth table: q q ( q) T T T T T F F T F T F F F F F F Note equivalence Sring 2018 CSE 2353 Discrete Comutational Structures 36
19 Outline 2.1 Logical Form and Logical Equivalence 2.2 Conditional Statements 2.3 Valid and Invalid Arguments Sring 2018 CSE 2353 Discrete Comutational Structures 37 Conditional Statements Recall conditional statements from earlier: general form: if, then q Denoted as q (often called imlies q ) = hyothesis q = conclusion What are the truth values for, q, q? Sring 2018 CSE 2353 Discrete Comutational Structures 38
20 Conditional Statements Use a working examle: suose the weather forecaster states This is a conditional statement: hyothesis = it is raining, conclusion q = it is flooding If it rains, then it will flood 1. First, assume both and q are true. Is the conditional statement true? It is raining, and there is a flood è the conditional statement is true Sring 2018 CSE 2353 Discrete Comutational Structures 39 Conditional Statements 2. Now, let be true and q be false. It is raining, but there is no flood è the conditional statement is false 3. Next, let and q both be false It is not raining, and there is no flood Is the conditional statement true? Yes, the forecast stated that there would be flooding if it rained it didn t make any assertion about flooding if there was no rain. Sring 2018 CSE 2353 Discrete Comutational Structures 40
21 Conditional Statements 4. Finally, let be false and q be true It is not raining, but there is a flood Is the conditional statement true? Yes, there could be another source of flooding (such as a broken water main) as before, the forecast didn t make any assertion about flooding if there was no rain. Sring 2018 CSE 2353 Discrete Comutational Structures 41 Conditional Statements Truth table becomes: q q T T T T F F F T T F F T Note that if the hyothesis () is false, then the condition ( q) is always true A conditional statement that is true by false hyothesis is called vacuously true. Sring 2018 CSE 2353 Discrete Comutational Structures 42
22 Logic Equivalence Involving Conditional Statements Can we reresent a conditional statement using our,, oerators? i.e., q? q q T T T T F F F T T F F T We note that q = F when = T and q = F, or q Thus, q = T for ( q = F), or ( q) Sring 2018 CSE 2353 Discrete Comutational Structures 43 Logic Equivalence Involving Conditional Statements Alying DeMorgan s laws, we have ( q) = ( q) = q Therefore, q q So, we can restate our earlier conditional statement to the general statement If it rains, then it will flood it is not raining or it is flooding Sring 2018 CSE 2353 Discrete Comutational Structures 44
23 Examle We are given the following statement: If n is rime, then n is odd or n is 2 Determine the negation of this statement Sring 2018 CSE 2353 Discrete Comutational Structures 45 Contraositive of a Conditional Statement The contraositive of q is q So the contraositive of our examle would be If it is not flooding, then it is not raining Is q q? Sring 2018 CSE 2353 Discrete Comutational Structures 46
24 Contraositive of a Conditional Statement q q q q T T F F T T T F F T F F F T T F T T F F T T T T Yes; a conditional statement and its contraositive are logically equivalent! Why use this? Sometimes the contraositive form is easier to use. Sring 2018 CSE 2353 Discrete Comutational Structures 47 Converse and Inverse of a Conditional Statement Converse of q is q Inverse of q is q For our examle, the converse is If it floods, then it is raining The inverse is If it is not raining, then it is not flooding Any logical equivalence? Sring 2018 CSE 2353 Discrete Comutational Structures 48
25 Converse and Inverse of a Conditional Statement q q q q q T T F F T T T T F F T F T T F T T F T F F F F T T T T T Note that a conditional statement is not logically equivalent to either its converse or inverse However, the converse and inverse are logically equivalent Sring 2018 CSE 2353 Discrete Comutational Structures 49 Only If and the Biconditional only if q means if not q, then not and if then q Mom says you will get ice cream only if you eat your lima beans = you eat your lima beans q = you get ice cream For this to be true, both and q must be true This is called the biconditional of and q: denoted as q Sring 2018 CSE 2353 Discrete Comutational Structures 50
26 Only If and the Biconditional Truth table for biconditional is: q q T T T T F F F T F F F T The biconditional form is also called if and only if or iff Sring 2018 CSE 2353 Discrete Comutational Structures 51 Necessary and Sufficient Conditions For statements and q: is a sufficient condition for q è if, then q ( q) is a necessary condition for q è if not, then not q (~ ~q) Sring 2018 CSE 2353 Discrete Comutational Structures 52
27 Necessary Condition Truth Table q ~ ~q ~ ~q q T T F F T T T F F T T T F T T F F F F F T T T T Note that ~ ~q is logically equivalent to q Thus, we can also state that is a necessary condition for q if q imlies Sring 2018 CSE 2353 Discrete Comutational Structures 53 Necessary and Sufficient Conditions Therefore, for statements and q: is a necessary condition for q è if q, then (q ) is a sufficient condition for q è if, then q ( q) Thus, for both conditions to be true: is a necessary and sufficient condition for q è iff q ( q) Sring 2018 CSE 2353 Discrete Comutational Structures 54
28 Examle: Necessary Condition Necessary condition for being a mammal: being warm-blooded Let = animal is warm-blooded, q = animal is a mammal q q T T T T F T F T F Animal is warm-blooded, but is not a mammal. Okay, since birds are also warm-blooded. F F T Animal is not warm-blooded, but is a mammal can t haen since mammals are warm-blooded by definition Sring 2018 CSE 2353 Discrete Comutational Structures 55 Examle: Sufficient Condition Sufficient condition for being a mammal: being a dog All dogs are mammals, but not all mammals are dogs. Let r = animal is dog, q = animal is a mammal r q r q T T T T F F F T T F F T Animal is dog, but is not a mammal not ossible Sring 2018 CSE 2353 Discrete Comutational Structures 56
29 Examle: Necessary and Sufficient Condition Necessary and Sufficient condition for being a mammal: having hair (fur) All mammals have hair, and any animal that has hair is a mammal Let s = animal has hair, q = animal is a mammal s q s q T T T T F F F T F F F T Sring 2018 CSE 2353 Discrete Comutational Structures 57 Outline 2.1 Logical Form and Logical Equivalence 2.2 Conditional Statements 2.3 Valid and Invalid Arguments Sring 2018 CSE 2353 Discrete Comutational Structures 58
30 Valid and Invalid Arguments Argument = a sequence of statements If yesterday was Sunday, then today is Monday Yesterday was Sunday Today is Monday First two statements are called remises (also assumtions or hyotheses) Final statement is called the conclusion Argument form = a sequence of statement forms Sring 2018 CSE 2353 Discrete Comutational Structures 59 Argument Form Let = yesterday was Sunday, q = today is Monday If then q (or q) q How do we know if an argument is valid? Develo a truth table for our argument form: Sring 2018 CSE 2353 Discrete Comutational Structures 60
31 Truth Table for Argument Premises Conclusion q q q T T T T T T F F T F F T T F T F F T F F Look at the rows for where the remises are all true these are called critical rows For every critical row, if the conclusion is true, then the argument is valid Sring 2018 CSE 2353 Discrete Comutational Structures 61 Truth Table for Argument Premises Conclusion q q q T T T T T T F F T F F T T F T F F T F F Is our argument form valid? Yes, conclusion is true for each critical row Critical row Sring 2018 CSE 2353 Discrete Comutational Structures 62
32 Another Argument Form Try another argument form: q q Truth table is: Premises Conclusion q q ~ q T T T F T T F F F F F T T T T F F T T F Sring 2018 CSE 2353 Discrete Comutational Structures 63 Valid Argument Form? Premises Conclusion q q ~ q T T T F T T F F F F F T T T T F F T T F Note that we have two critical rows. For the last critical row, the conclusion is false, so the argument form is invalid. Sring 2018 CSE 2353 Discrete Comutational Structures 64
33 Corresonding Argument? Recall: = yesterday was Sunday, q = today is Monday Argument Form q q Argument If yesterday was Sunday, then today is Monday Yesterday was not Sunday Today is Monday Sring 2018 CSE 2353 Discrete Comutational Structures 65 Examle Is the following argument valid? All Romulans have ointy ears. Sock has ointy ears. Sock is a Romulan. Sring 2018 CSE 2353 Discrete Comutational Structures 66
34 Modus Ponens The argument form that we have been using has two remises and a conclusion; this is called a syllogism. The first remise is called the major remise, and the second remise is called the minor remise. For our examle argument form: q major remise minor remise q conclusion The method that we used to check if our argument form was valid was modus onens ( method of affirming ) is the conclusion true? Sring 2018 CSE 2353 Discrete Comutational Structures 67 Modus Tollens Now, assume that we have this argument form: q q This form uses modus tollens ( method of denying ) is the conclusion false? Corresonding argument: If yesterday was Sunday, then today is Monday Today is not Monday Yesterday was not Sunday Sring 2018 CSE 2353 Discrete Comutational Structures 68
35 Rules of Inference Rule of inference = a form of argument that is valid Modus onens and modus tollens are both rules of inference There are also other rules of inference Sring 2018 CSE 2353 Discrete Comutational Structures 69 Rules of Inference Other Tyes 1. Generalization 2. Secialization 3. Elimination 4. Transitivity 5. Proof by Division into Cases Sring 2018 CSE 2353 Discrete Comutational Structures 70
36 Generalization q let = student is a CSE major q = student is an EE major remise = student is a CSE major conclusion (generalization) = student is a CSE major or EE major Sring 2018 CSE 2353 Discrete Comutational Structures 71 q q Secialization Student is both a CSE major and an EE major student is an EE major Sring 2018 CSE 2353 Discrete Comutational Structures 72
37 Elimination q q Let = student is a junior, q = student is a senior Student is a junior or a senior Student is not a senior student is a junior Sring 2018 CSE 2353 Discrete Comutational Structures 73 q q r r Transitivity Let = it rains, q = it floods, r = Riverside Ave. is closed If it rains, then it floods If it floods, then Riverside Ave. is closed If it rains, then Riverside Ave. is closed Sring 2018 CSE 2353 Discrete Comutational Structures 74
38 q r q r r Proof by Division into Cases Let = today is a university holiday, q = today is a university break, r = there are no classes today Today is a university holiday or break If today is a university holiday, then there are no classes today If today is a university break, then there are no classes today There are no classes today Sring 2018 CSE 2353 Discrete Comutational Structures 75 Fallacies Fallacy = error in reasoning that results in an invalid argument Tyes: 1. Converse Error 2. Inverse Error Sring 2018 CSE 2353 Discrete Comutational Structures 76
39 If it rains, then it floods There is a flood It is raining Converse Error It could flood without rain, such as a water main break Let = it rains, q = it floods q q Sring 2018 CSE 2353 Discrete Comutational Structures 77 Converse Error Truth Table Premises Conclusion q q q T T T T T T F F F T F T T T F F F T F F Note critical row where conclusion is false, so this argument form is invalid Sring 2018 CSE 2353 Discrete Comutational Structures 78
40 If it rains, then it floods It is not raining There is no flood Inverse Error As before, it could flood without rain, such as a water main break Let = it rains, q = it floods q q Sring 2018 CSE 2353 Discrete Comutational Structures 79 Inverse Error Truth Table Premises Conclusion q q ~ ~q T T T F F T F F F T F T T T F F F T T T Note critical row where conclusion is false, so this argument form is invalid Sring 2018 CSE 2353 Discrete Comutational Structures 80
Review. p q ~p v q Contrapositive: ~q ~p Inverse: ~p ~q Converse: q p
~ v Contraositive: ~ ~ Inverse: ~ ~ Converse: Å Review ( Ú ) Ù ~( Ù ) ~( Ù ) ~ Ú ~ ~( Ú ) ~ Ù ~ is sufficient for is necessary for ~ ~ 1 Valid and Invalid Arguments CS 231 Dianna Xu 2 Associative Law:
More information2. 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[Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 400 lecture note #2. 1) Basics
400 lecture note #2 [Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 1) Basics An argument is a sequence of statements ( s1, s2,, sn). All statements in an argument, excet for
More informationCHAPTER 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 informationWhy Proofs? Proof Techniques. Theorems. Other True Things. Proper Proof Technique. How To Construct A Proof. By Chuck Cusack
Proof Techniques By Chuck Cusack Why Proofs? Writing roofs is not most student s favorite activity. To make matters worse, most students do not understand why it is imortant to rove things. Here are just
More informationThe 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 informationLecture 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 informationTHE 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 informationProposition logic and argument. CISC2100, Spring 2017 X.Zhang
Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the
More informationWhere are my glasses?
Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the
More informationChapter 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 information10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference
Logic? Propositional Logic (Rosen, Chapter 1.1 1.3) TOPICS Propositional Logic Truth Tables Implication Logical Proofs 10/1/12 CS160 Fall Semester 2012 2 What is logic? Logic is a truth-preserving system
More informationPROPOSITIONAL CALCULUS
PROPOSITIONAL CALCULUS A proposition is a complete declarative sentence that is either TRUE (truth value T or 1) or FALSE (truth value F or 0), but not both. These are not propositions! Connectives and
More informationCSE 311 Lecture 02: Logic, Equivalence, and Circuits. Emina Torlak and Kevin Zatloukal
CSE 311 Lecture 02: Logic, Equivalence, and Circuits Emina Torlak and Kevin Zatloukal 1 Toics Proositional logic A brief review of Lecture 01. Classifying comound roositions Converse, contraositive, and
More information3 Rules of Inferential Logic
24 FUNDAMENTALS OF MATHEMATICAL LOGIC 3 Rules of Inferential Logic The main concern of logic is how the truth of some roositions is connected with the truth of another. Thus, we will usually consider a
More informationSection 1.1: Logical Form and Logical Equivalence
Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,
More informationWhat 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 informationLogic 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 informationDiscrete Structures of Computer Science Propositional Logic III Rules of Inference
Discrete Structures of Computer Science Propositional Logic III Rules of Inference Gazihan Alankuş (Based on original slides by Brahim Hnich) July 30, 2012 1 Previous Lecture 2 Summary of Laws of Logic
More informationMACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)
MACM 101 Discrete Mathematics I Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class) SOLUTIONS 1. Construct a truth table for the following compound proposition:
More informationChapter 1, Logic and Proofs (3) 1.6. Rules of Inference
CSI 2350, Discrete Structures Chapter 1, Logic and Proofs (3) Young-Rae Cho Associate Professor Department of Computer Science Baylor University 1.6. Rules of Inference Basic Terminology Axiom: a statement
More informationPropositional 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 informationPropositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013
Propositional Logic Argument Forms Ioan Despi despi@turing.une.edu.au University of New England July 19, 2013 Outline Ioan Despi Discrete Mathematics 2 of 1 Order of Precedence Ioan Despi Discrete Mathematics
More informationIntroduction Logic Inference. Discrete Mathematics Andrei Bulatov
Introduction Logic Inference Discrete Mathematics Andrei Bulatov Discrete Mathematics - Logic Inference 6-2 Previous Lecture Laws of logic Expressions for implication, biconditional, exclusive or Valid
More informationCompound 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 informationn logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)
Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional
More informationSample Problems for all sections of CMSC250, Midterm 1 Fall 2014
Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 1. Translate each of the following English sentences into formal statements using the logical operators (,,,,, and ). You may also use mathematical
More informationPropositional Logic. Fall () Propositional Logic Fall / 30
Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically
More information15414/614 Optional Lecture 1: Propositional Logic
15414/614 Optional Lecture 1: Propositional Logic Qinsi Wang Logic is the study of information encoded in the form of logical sentences. We use the language of Logic to state observations, to define concepts,
More informationsoftware design & management Gachon University Chulyun Kim
Gachon University Chulyun Kim 2 Outline Propositional Logic Propositional Equivalences Predicates and Quantifiers Nested Quantifiers Rules of Inference Introduction to Proofs 3 1.1 Propositional Logic
More informationCS100: 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 informationn Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B
Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.7, 5.5) TOPICS Sets and Functions Propositional and Predicate Logic Logical Operators and Truth Tables Logical Equivalences and Inference
More informationToday s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)
Today s Lecture 2/25/10 Truth Tables Continued Introduction to Proofs (the implicational rules of inference) Announcements Homework: -- Ex 7.3 pg. 320 Part B (2-20 Even). --Read chapter 8.1 pgs. 345-361.
More informationA. Propositional Logic
CmSc 175 Discrete Mathematics A. Propositional Logic 1. Statements (Propositions ): Statements are sentences that claim certain things. Can be either true or false, but not both. Propositional logic deals
More informationPropositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38
Propositional Logic Jason Filippou CMSC250 @ UMCP 05-31-2016 ason Filippou (CMSC250 @ UMCP) Propositional Logic 05-31-2016 1 / 38 Outline 1 Syntax 2 Semantics Truth Tables Simplifying expressions 3 Inference
More informationDISCRETE MATH: LECTURE 3
DISCRETE MATH: LECTURE 3 DR. DANIEL FREEMAN 1. Chapter 2.2 Conditional Statements If p and q are statement variables, the conditional of q by p is If p then q or p implies q and is denoted p q. It is false
More informationWhat is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.
Question 1. [10 marks] Part (a) [2 marks] What is the decimal (base 10) representation of the binary number 110101? Show your work and place your final answer in the box. 2 0 + 2 2 + 2 4 + 2 5 = 1 + 4
More informationLogic. 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 information1 The Foundation: Logic and Proofs
1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( ) a declarative sentence that is either true or false, but not both nor neither letters denoting propostions p, q, r, s, T: true
More informationCSC 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 information3/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 informationNatural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic. The method consists of using sets of Rules of Inference (valid argument forms)
More information1 The Foundation: Logic and Proofs
1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( 명제 ) a declarative sentence that is either true or false, but not both nor neither letters denoting propositions p, q, r, s, T:
More informationIntro to Logic and Proofs
Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington
More information2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?
Logic: Truth Tables CS160 Rosen Chapter 1 Logic? 1 What is logic? Logic is a truth-preserving system of inference Truth-preserving: If the initial statements are true, the inferred statements will be true
More informationDERIVATIONS AND TRUTH TABLES
DERIVATIONS AND TRUTH TABLES Tomoya Sato Department of Philosophy University of California, San Diego Phil120: Symbolic Logic Summer 2014 TOMOYA SATO LECTURE 3: DERIVATIONS AND TRUTH TABLES 1 / 65 WHAT
More informationManual of Logical Style (fresh version 2018)
Manual of Logical Style (fresh version 2018) Randall Holmes 9/5/2018 1 Introduction This is a fresh version of a document I have been working on with my classes at various levels for years. The idea that
More information1.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 informationRules of Inference. Agenda. Rules of Inference Dr Patrick Chan. p r. p q. q r. Rules of Inference for Quantifiers. Hypothetical Syllogism
Discr ete Mathem atic Chater 1: Logic and Proof 1.5 Rules of Inference Dr Patrick Chan School of Comuter Science and Engineering South China University of echnology Recall John is a co. John knows first
More informationRules Build Arguments Rules Building Arguments
Section 1.6 1 Section Summary Valid Arguments Inference Rules for Propositional Logic Using Rules of Inference to Build Arguments Rules of Inference for Quantified Statements Building Arguments for Quantified
More informationBoolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012
March 5, 2012 Webwork Homework. The handout on Logic is Chapter 4 from Mary Attenborough s book Mathematics for Electrical Engineering and Computing. Proving Propositions We combine basic propositions
More informationExample. 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 informationChapter 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 informationResolution (7A) Young Won Lim 4/21/18
(7A) Coyright (c) 215 218 Young W. Lim. Permission is granted to coy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version ublished
More informationLECTURE # 3 Laws of Logic
APPLYING LAWS O LOGIC Using law of logic, simlify the statement form [~(~ )] Solution: [~(~ )] [~(~) (~)] LECURE # 3 Laws of Logic [ (~)] [ ] (~) (~) Which is the simlified statement form. EXAMPLE Using
More informationManual of Logical Style
Manual of Logical Style Dr. Holmes January 9, 2015 Contents 1 Introduction 2 2 Conjunction 3 2.1 Proving a conjunction...................... 3 2.2 Using a conjunction........................ 3 3 Implication
More informationAnnouncements. Exam 1 Review
Announcements Quiz today Exam Monday! You are allowed one 8.5 x 11 in cheat sheet of handwritten notes for the exam (front and back of 8.5 x 11 in paper) Handwritten means you must write them by hand,
More informationSymbolic Logic Outline
Symbolic Logic Outline 1. Symbolic Logic Outline 2. What is Logic? 3. How Do We Use Logic? 4. Logical Inferences #1 5. Logical Inferences #2 6. Symbolic Logic #1 7. Symbolic Logic #2 8. What If a Premise
More informationProofs. Joe Patten August 10, 2018
Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital
More informationFUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN
021 McLoughlin Handout 1.3, page 1 of 6 FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN Truth Table for Not K K T F F T Truth Table for And B M B M T F F F T F F F F Truth Table for Or R S R S T
More informationDeductive and Inductive Logic
Deductive Logic Overview (1) Distinguishing Deductive and Inductive Logic (2) Validity and Soundness (3) A Few Practice Deductive Arguments (4) Testing for Invalidity (5) Practice Exercises Deductive and
More informationThe 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 informationLogic and Truth Tables
Logic and Truth Tables What is a Truth Table? A truth table is a tool that helps you analyze statements or arguments in order to verify whether or not they are logical, or true. There are five basic operations
More informationPropositional 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 informationCSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE
1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 February 5, 2015 2 Announcements Homework 1 is due now. Homework 2 will be posted on the web site today. It is due Thursday, Feb. 12 at 10am in class.
More informationChapter 1, Section 1.1 Propositional Logic
Discrete Structures Chapter 1, Section 1.1 Propositional Logic These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 6 th ed., by Kenneth H. Rosen, published
More informationAnalyzing Arguments with Truth Tables
Analyzing Arguments with Truth Tables MATH 100 Survey of Mathematical Ideas J. Robert Buchanan Department of Mathematics Fall 2014 Introduction Euler diagrams are useful for checking the validity of simple
More informationDEDUCTIVE REASONING Propositional Logic
7 DEDUCTIVE REASONING Propositional Logic Chapter Objectives Connectives and Truth Values You will be able to understand the purpose and uses of propositional logic. understand the meaning, symbols, and
More information2/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 informationMethods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures
Methods of Proof CSE0 Discrete Computational Structures Lecture 4 When is a mathematical argument correct? What methods can be used to construct mathematical arguments? Important in many computer science
More informationCOMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University
COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called
More informationReview. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions
Review Propositions, propositional operators, truth tables Logical Equivalences. Tautologies & contradictions Some common logical equivalences Predicates & quantifiers Some logical equivalences involving
More informationLogic 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 informationNatural deduction for truth-functional logic
Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or
More informationPacket #1: Logic & Proofs. Applied Discrete Mathematics
Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should
More informationRules of Inference. Arguments and Validity
Arguments and Validity A formal argument in propositional logic is a sequence of propositions, starting with a premise or set of premises, and ending in a conclusion. We say that an argument is valid if
More informationLogic. Def. A Proposition is a statement that is either true or false.
Logic Logic 1 Def. A Proposition is a statement that is either true or false. Examples: Which of the following are propositions? Statement Proposition (yes or no) If yes, then determine if it is true or
More informationSteinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)
Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning Terminology, Notations, Definitions, & Principles: Mathematical Proof and Proving (MPP) 1. A statement
More informationReview. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.
Review Propositional Logic Propositions atomic and compound Operators: negation, and, or, xor, implies, biconditional Truth tables A closer look at implies Translating from/ to English Converse, inverse,
More informationCSE 20 DISCRETE MATH. Winter
CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20-ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs
More informationCSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker
CSCE 222 Discrete Structures for Computing Propositional Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Propositions A proposition is a declarative sentence that is either true or false
More informationTRUTH TABLES LOGIC (CONTINUED) Philosophical Methods
TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods Here s some Vocabulary we will be talking about in this PowerPoint. Atomic Sentences: Statements which express one proposition Connectives: These are
More information(Refer Slide Time: 02:20)
Discrete Mathematical Structures Dr. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 5 Logical Inference In the last class we saw about
More informationSets of Real Numbers
Chater 4 Sets of Real Numbers 4. The Integers Z and their Proerties In our revious discussions about sets and functions the set of integers Z served as a key examle. Its ubiquitousness comes from the fact
More informationDISCRETE 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 informationA 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 informationSection 1.2: Propositional Logic
Section 1.2: Propositional Logic January 17, 2017 Abstract Now we re going to use the tools of formal logic to reach logical conclusions ( prove theorems ) based on wffs formed by some given statements.
More informationProving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.
1 Proving Things Why prove things? Proof by Substitution, within Logic Rules of Inference: applying Logic Using Assumptions Proof Strategies 2 Why Proofs? Knowledge is power. Where do we get it? direct
More informationCS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration
Lecture 4 Propositional logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square dministration Homework assignment 1 is out Due next week on Wednesday, September 17 Problems: LISP programming a PL
More informationAdvanced Topics in LP and FP
Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection
More informationConsider the following propositions: p: lecture has started q: If I have a banana, then I have a pear r: I finished this problem
Pre-Lecture Problem Do it! Do it now! What are you waiting for?! Consider the following roositions: : lecture has started : If I have a banana, then I have a ear r: I finished this roblem (i) Which of
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
More informationCS 2336 Discrete Mathematics
CS 2336 Discrete Mathematics Lecture 3 Logic: Rules of Inference 1 Outline Mathematical Argument Rules of Inference 2 Argument In mathematics, an argument is a sequence of propositions (called premises)
More informationChapter 4, Logic using Propositional Calculus Handout
ECS 20 Chapter 4, Logic using Propositional Calculus Handout 0. Introduction to Discrete Mathematics. 0.1. Discrete = Individually separate and distinct as opposed to continuous and capable of infinitesimal
More informationPHI Propositional Logic Lecture 2. Truth Tables
PHI 103 - Propositional Logic Lecture 2 ruth ables ruth ables Part 1 - ruth unctions for Logical Operators ruth unction - the truth-value of any compound proposition determined solely by the truth-value
More informationDiscrete Structures for Computer Science
Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #2: Propositional Logic Based on materials developed by Dr. Adam Lee Today s Topic: Propositional
More informationToday s Topic: Propositional Logic
Today s Topic: Propositional Logic What is a proposition? Logical connectives and truth tables Translating between English and propositional logic Logic is the basis of all mathematical and analytical
More informationCSE 20 DISCRETE MATH. Fall
CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs
More informationLogic 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 informationProofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007
Proofs Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.5, 1.6, and 1.7 of Rosen cse235@cse.unl.edu
More information