Propositional Logic. Propositional Equivalences. Agenda. Yutaka HATA, IEEE Fellow. Ch1.1 Propositional Logic. Ch1.2 Propositional Equivalences

Size: px
Start display at page:

Download "Propositional Logic. Propositional Equivalences. Agenda. Yutaka HATA, IEEE Fellow. Ch1.1 Propositional Logic. Ch1.2 Propositional Equivalences"

Transcription

1 Discrete Mathematic Chapter 1: Logic and Proof 1.1 Propositional Logic 1.2 Propositional Equivalences Yutaka HAA, IEEE ellow University of Hyogo, JAPAN his material was made by Dr. Patrick Chan School of Computer Science and Engineering South China University of echnology Agenda Ch1.1 Propositional Logic Proposition Propositional Operator Compound Proposition Applications Ch1.2 Propositional Equivalences Logical Equivalences Using De Morgan's Laws Constructing New Logical Equivalences Chapter 1.1 & 1.2 2

2 Warm Up John is a cop. John knows first aid. herefore, all cops know first aid Chapter 1.1 & Warm Up Human walks by two legs. Human is mammal. Mammal walks by two legs. Chapter 1.1 & 1.2 4

3 Warm Up he clock alarm of my iphone does not work today. he clock alarm of iphone does not work on So, today is Chapter 1.1 & Warm Up Some students work hard to study. Some students fail in examination. So, some work hard students fail in examination. Chapter 1.1 & 1.2 6

4 Small Quiz Next few pages contain 4 questions Write down the answer of each question on a paper Remember No Discussion Do not modify answers you written down Chapter 1.1 & Small Quiz: Question 1 According to the law, only a person who is elder than 21-year-old can have alcoholic drink You are a police. Which person(s) you need to check? Drink ea Drink Beer 23-year-old 19-year-old Chapter 1.1 & 1.2 8

5 Small Quiz: Question 2 According to a policy of a company, if someone surf the Internet longer than 2 hours, he/she has to earn more than 300k You are the boss of this company. Which staff(s) you need to check? 1h Surfing 3h Surfing Earned 200k Earned 400k Chapter 1.1 & Small Quiz: Question 3 A company publishes a desk Each card has two sides: a character and a number If one side of a card is a vowel, the number on the other side should be even number You are a QC staff. Which card(s) you need to check? E 4 7 Chapter 1.1 &

6 Small Quiz: Question 4 A company publishes another desk: each card has two sides: a shape and a color If one side of a card is a circle, the color on the other side should be yellow You are a QC staff. Which card(s) you need to check? Chapter 1.1 & Small Game: Answer Q1: Only a person who is elder than 21-year-old can have alcoholic drink Q2: If someone surf the Internet longer than 2 hours, he/she has to earn more than 300k Q3: If one side of a card is a vowel, the number on the other side is even number ea Beer h 3h 200k 400k E 4 7 Q4: If one side of a card is a circle, the color on the other side is yellow Chapter 1.1 &

7 Introduction In this chapter, we will explain how to make up a correct mathematical argument prove the arguments Chapter 1.1 & Propositions Proposition (also called statement) is a declarative sentence (declares a fact) that is either true or false, but not both ruth value of a proposition is either rue/alse (/) to indicate its correctness Example: Keep quite 1 hour has 50 minutes = 3 x + 2 = 4 alse Not declarative alse Can be either true or false Can be turned into proposition when x is defined Chapter 1.1 &

8 Propositions Proposition Variable is letters denote propositions Conventional letters are p,q,r,s, P,Q, Example: r : Peter is a boy Proposition Logic is the area of logic that deals with propositions Logic Operators NO AND OR XOR If then (Conditional Statement ) If and Only If (Biconditional Statement) Chapter 1.1 & Proposition Logic Negation Operator (Not) Definition Let p be a proposition Negation of p is the statement It is not the case that p Notation: p, ~p, p Read as not p ruth value Opposite of the truth value of p Example: p: you are a student p: You are not a student Chapter 1.1 &

9 Proposition Logic Conjunction Operator (AND) Definition Let p and q be propositions Conjunction of p and q is p andq Notation: p q points up like an A, which means ND ruth value rue when both p and q are true alse otherwise Example: p: Peter likes to play, q: Peter likes to read p q: Peter likes to play and Peter likes to read Chapter 1.1 & Proposition Logic Disjunction Operator (OR) Definition Let p and q be propositions Disjunction of p and q is p orq Notation: p q points up like an r, means O ruth value alse when both p and q are false rue otherwise Example: p: Peter likes to play, q: Peter likes to read p q: Peter likes to play or Peter likes to read Chapter 1.1 &

10 Proposition Logic Disjunction Operator (OR) In English, ORhas more than one meanings Example: Jackie is a singer ORJackie is an actor Either one or both (inclusive) Disjunction operation (OR, ) Jackie is a man ORJackie is a woman Either one but no both (exclusive) Exclusive OR operation( ) Chapter 1.1 & Proposition Logic Exclusive OR Operator (XOR) Definition Let pand qbe propositions Notation: p q, p q, p +q ruth value rue whenexactly one ofpandqistrue alse otherwise Example: p: You can have a tea, q: You can have a coffee p q: You can have a tea ora coffee, but not both (exclusive or) Chapter 1.1 &

11 Small Exercise Given p: oday is riday q: It is raining today What is? p oday is not riday Which is correct? Why? omorrow is Wednesday Yesterday is riday oday is not Monday hey provide more information than p p q oday is riday and it is raining today p q oday is riday or it is raining today p q Either today is riday or it is raining today, but not both Chapter 1.1 & Small Exercise Given p: x > 50 q: x < 100 What is? p p q p q p q x 50 x 100 or x > x > 50 x can be any number Both qand pis Only qis Only pis qis pis Chapter 1.1 &

12 Proposition Logic ruth able ruth able displays the relationships between the truth values of propositions Example: ruth able of Negation Operation P P Operand Column Result Column Chapter 1.1 & Proposition Logic ruth able NO AND OR XOR p q p p q p q p q Chapter 1.1 &

13 Proposition Logic Conditional Statement (imply) Definition Let pand qbe propositions Conditionalstatement is if p, then q Notation: p q p is called the hypothesis(or antecedent or premise) q is called the conclusion(or consequence) ruth value alsewhen pistrue and qisfalse rue otherwise Example p q p q p: you work hard, q: you will pass this subject p q: If you work hard, then you will pass this subject Chapter 1.1 & Proposition Logic Conditional Statement (imply) Example: p: You give me twenty dollars q: We are the best friends What is p q? If you give me twenty dollars, then we are the best friends Assume p q is true, what does you do not give me twenty dollars ( p) mean? Does it mean We are not the best friend ( p q)? Chapter 1.1 &

14 Proposition Logic Conditional Statement (imply) Example: Given p q If it rains, the floor is wet Situation 1 ( p q) If it does not rain, the floor is not wet Situation 2 (q p) If the floor is wet, it rains Situation 3 ( q p) p q and its Contrapositive are equivalent Converse and Inverse are equivalent Inverse Converse Contrapositive If the floor is not wet, it does not rain Chapter 1.1 & Proposition Logic: Conditional Statement Necessary Condition o say that pis anecessary conditionfor q, it is impossible to have q without p Example Breathing is necessary condition for human life You cannot find a non-breathing human who is alive aking a flight is not necessary condition to go to Beijing You can go to Beijing by train, bus Chapter 1.1 &

15 Proposition Logic: Conditional Statement Sufficient Condition o say that pis asufficientconditionfor q, the presence of p guarantees the presence of q Example Being divisible by 4 is sufficient for being an even number Working hard is not sufficient for having a good examination result Chapter 1.1 & Proposition Logic: Conditional Statement Necessary / Sufficient Condition Relation between conditional statement and necessary / sufficient condition Necessary Condition E.g. Breathing is necessary condition for human life P is necessary P Q condition of Q Sufficient Condition E.g. Being divisible by 4 is sufficient for being an even number P Q P is sufficient condition of Q p q p q p q is equivalent to: p is sufficient condition of q q is necessary condition of p Chapter 1.1 &

16 Proposition Logic Conditional Statement (imply) Other equivalent forms for P Q: Pis a sufficient condition for Q Qis a necessary condition for P Pimplies Q If P, then Q If P, Q Qif P Qwhenever P Ponly if Q P cannot be true when Q is not true Q is necessary condition for P Chapter 1.1 & Proposition Logic Conditional Statement (imply) Remark: No causalityis implied in P Q P may not cause Q or example: If I have more money than Bill Gates, then a rabbit lives on the moon Chapter 1.1 &

17 Proposition Logic Conditional Statement (imply) Example: A mother tells her child that If you finish your homework, then you can eat the ice-cream What does it mean? Case 1 (p q) Homework is finished, p q p q you can eat the ice-cream Homework is not finished, you can/cannot eat the ice-cream Case 2 Homework is finished, you can eat the ice-cream Homework is not finished, you cannot eat the ice-cream Chapter 1.1 & Proposition Logic Biconditional Statement (equivalent) Definition Let pand qbe propositions Biconditional statement is p if and only if q (iff) Notation: p q, p =q, p q Also called bi-implications, equivalence Equivalent to(p q) (q p) ruth value ruewhen pand qhave thesame truth values alseotherwise p q p q Chapter 1.1 &

18 Proposition Logic Biconditional Statement (equivalent) Example: p: You take the flight q: you buy a ticket What is p q? You take the flight if and only if you buy a ticket No ticket, no flight No flight, no ticket Chapter 1.1 & Proposition Logic: Conditional Statement Necessary / Sufficient Condition p is necessarybut notsufficientfor q q p p is sufficientbut not necessaryfor q p q p is both necessary and sufficientfor q q p p q p q q is also both necessary and sufficientfor p Chapter 1.1 &

19 Proposition Logic Remarks: In ordinary speech, words like or and if-then may have multiple meanings In this technical subject, we assume that or means inclusive or ( ) if-then means implication ( ) Chapter 1.1 & Proposition Logic Summary ormal Name Nickname Symbol Negation Operator NO Conjunction Operator AND Disjunction Operator OR Exclusive-OR Operator XOR Conditional Statement Imply Biconditional Statement Equivalent Chapter 1.1 &

20 Proposition Logic Summary p q p p q p q p q p q p q Chapter 1.1 & Compound Proposition Compound Propositions are formed from existing propositions using proposition logical operators Example: Beijing is the capital of China and 1+1=2 How can we determine the truth values of the complicated compound propositions involving any number of propositional variables? Example: What is the truth value for every situations? p q s q p Chapter 1.1 &

21 Compound Proposition Precedence of Logical Operator Precedence Operator 1 NO 2 AND 3 OR XOR 4 Imply 5 Equivalent Example: p q r p (q r) (p q) r s f ( s) f (s f) a f b (a f) b a (f b) Chapter 1.1 & Compound Proposition Example: 1. p q s q p 2. p ( q) s q p 3. p ( q) (s q) p 4. p ( q) ((s q) p) 5. (p ( q)) ((s q) p) Precedence Operator herefore, p q s q p is equal to (p ( q)) ((s q) p) Chapter 1.1 &

22 Compound Proposition ruth tables can be used to determine the truth values of the complicated compound propositions Algorithm: 1. Write down all the combinations of the compositional variables 2. ind the truth value of each compound expression that occurs in the compound proposition according to the operator precedence Chapter 1.1 & Compound Proposition Example: (p q) (s q) p p q s Chapter 1.1 &

23 Compound Proposition Example: (p q) (s q) p p q s Chapter 1.1 & Compound Proposition Example: (p q) (s q) p p q s q Chapter 1.1 &

24 Compound Proposition Example: (p q) (s q) p p q s q s q Chapter 1.1 & Compound Proposition Example: (p q) (s q) p p q s q s q (s q) p Chapter 1.1 &

25 Compound Proposition Example: (p q) (s q) p p q s q s q (s q) p p q Chapter 1.1 & Compound Proposition Example: (p q) (s q) p p q s q s q (s q) p p q (p q) (s q) p Chapter 1.1 &

26 Small Exercise Write down the truth table for the following compound statement: p r q p r p q p p q p q p q p q p q Chapter 1.1 & Small Exercise p r q p r (p (r q)) (p ( r)) p q r r r q p (r q) p ( r) (p (r q)) (p ( r)) Chapter 1.1 &

27 ranslating English Sentences Human language is often ambiguous ranslating human language into compound propositions (logical expression) removes the ambiguity Chapter 1.1 & ranslating English Sentences Algorithm: 1. Remove the connective operators 2. Let a variable for each complete concept 3. Use the operators to connect the variables 4. Adding brackets in suitable positions will be helpful Example: p: You can access the Internet from campus q: You are a computer science major s: You are a freshman You can access the Internet from campus only if you are a computer science major or you are not a freshman p ( q s) Chapter 1.1 &

28 Applications System Specifications Specifications are the essential part of the system and software engineering Specifications should be consistent, otherwise, no way to develop a system that satisfies all specifications Consistence means all specifications can be true Chapter 1.1 & Applications System Specifications Example: here are three specifications for a particular system, are they consistent? he diagnostic message is stored in the buffer or it is retransmitted. he diagnostic message is not stored in the buffer. If the diagnostic message is stored in the buffer, then it is retransmitted. Chapter 1.1 &

29 Applications System Specifications he diagnostic message is stored in the buffer or it is retransmitted. he diagnostic message is not stored in the buffer. 1. Remove the connective operators 2. Let a variable for each complete concept 3. Use the operators to connect the variables 4. Adding brackets in suitable positions will be helpful If the diagnostic message is stored in the buffer, then it is retransmitted. P Q P P Q P: he diagnostic message is stored in the buffer Q: he diagnostic message is retransmitted hese specifications are consistent P Q P Q P P Q (P Q) ( P) (P Q) Chapter 1.1 & Applications Logic and Bit Operations Information stored in a computer is represented by bits E.g. A = Bit = Binary Digit, i.e. 0 or 1 ( or ) Logic connectives can be used as bit operation Bitwise OR ( ) the OR of the corresponding bits in the two strings Bitwise AND ( ) the AND of the corresponding bits in the two strings Bitwise XOR ( ) the XOR of the corresponding bits in the two strings Chapter 1.1 &

30 Applications Logic and Bit Operations Example: A B Bit-wise OR Bit-wise AND Bit-wise XOR Chapter 1.1 & Applications Logic Puzzles Puzzles that can be solved using logical reasoning are known as logic puzzles Can be solved by using rules of logic Example: here are two kinds of peopleon an island Batman: Always tell the truth Joker: Always lie One day, you encounter two peoples A and B. A says B is a Batman B says he two of us are opposite types What are A and B? Chapter 1.1 &

31 Applications Logic Puzzles Batman: Always tell the truth Joker: P Q Always lie A says B is a Batman B says he two of us are opposite types A B P Q 61 Chapter 1.1 & 1.2 ypes of Proposition autology A compound proposition which is always true Example: P P P P P P Contradiction A compound proposition which is always false Example: P P P P P P Contingency A compound proposition which is neither a tautology nor a contradiction P P P P (P P) Example: P (P P) Chapter 1.1 &

32 ypes of Proposition Example Are they autology, Contradiction or Contingency? P P P P P P P Q P Q (P Q) Q autology Contradiction autology Contingency Contingency Contradiction Chapter 1.1 & Logically Equivalence An importanttype of step used in a mathematical argument is the replacement of a statement with another statementwith the same truth value We would like to discuss about the equivalences of arguments Chapter 1.1 &

33 Logically Equivalence Definition wo propositions Pand Qare logically equivalentif P Qis a tautology Notation: P Q or P Q Chapter 1.1 & Logically Equivalence ruth able can be used to testif compositions are logically equivalent Example: if p q and p q are logically equivalent? p q ~p q p q p q p q Chapter 1.1 &

34 Logically Equivalence Example: Show p (q r) (p q) (p r) p q r q r p (q r) p q p r (p q) (p r) Chapter 1.1 & Logically Equivalence Characteristic of ruth able Assume nis the number of variables, Raw of tables = 2 n E.g. 20 variables, 2 20 = Not efficient Besides the ruth able, we will introduce a series of logical equivalences p q p p q s p q s Chapter 1.1 &

35 Logically Equivalence Example: Show (p q) (p r) p (q r) (p q) (p r) ( p q) ( p r) ( p p) (q r) p (q r) p (q r) Logical Equivalences P Q P Q P P P P (Q R) (P Q) R p q r q r p (q r) p q p r (p q) (p r) Chapter 1.1 & Important Equivalences Identify Laws p p p p p p p p Domination Laws p p p p p p Chapter 1.1 &

36 Important Equivalences Idempotent Laws p p p p p p p p p p p p Double Negation Law ( p) p p p ( p) Chapter 1.1 & Important Equivalences Negation Laws p p p p p p p p p p p p Chapter 1.1 &

37 Important Equivalences Commutative Laws p q q p p q q p p q q p q p p q q p q p Chapter 1.1 & Important Equivalences Associative Laws p (q r) (p q) r p (q r) (p q) r p q r q r p (q r) p q (p q) r p q r q r p (q r) p q (p q) r Chapter 1.1 &

38 Important Equivalences Distributive Laws p (q r) p (q r) (p q) (p r) (p q) (p r) p q r q r p (q r) p q p r (p q) (p r) p q r q r p (q r) p q p r (p q) (p r) Chapter 1.1 & Important Equivalences How about p (p q)? (p p) (p q) p (p q) p (p q)? (p p) (p q) p (p q) Distributive Laws p (q r) (p q) (p r) p (q r) (p q) (p r) Chapter 1.1 &

39 Important Equivalences Absorption Laws p q p q p (p q) p (p q) p (p q) p p p q p q p (p q) Chapter 1.1 & Important Equivalences De Morgan s Laws (p q)? p q (p q)? p q p q p q (p q) p q p q p q p q (p q) p q p q Chapter 1.1 &

40 Recall, De Morgan s Laws Important Equivalences (p q) p q De Morgan s Laws Extension (p 1 p 2... p n )? Assume q= p 2... p n (p 1 p 2... p n ) = (p 1 q) According to De Morgan s Law... (p I q)= p 1 q= p 1 (p 2... p n ) Chapter 1.1 & Recall, De Morgan s Laws Important Equivalences Assume s = p 3... p n (p 2 p 3... p n ) = (p 2 s) According to De Morgan s Law (p 2 s) = p 1 s = p 2 (p 3... p n ) herefore, (p q) p q (p 1 p 2... p n ) = p 1 p 2 p n Chapter 1.1 &

41 Important Equivalences De Morgan s Laws Extension herefore, (p q) p q (p 1 p 2... p n ) = p 1 p 2 p n Similarly, (p q) p q (p 1 p 2... p n ) = p 1 p 2 p n Chapter 1.1 & Identify Laws Domination Laws Idempotent Laws Double Negation Law Commutative Laws Associative Laws p p p p p p p p p p p p ( p) p p q q p p q q p p (q r) (p q) r p (q r) (p q) r Distributive Laws p (q r) (p q) (p r) p (q r) (p q) (p r) De Morgan s Laws (p q) p q (p q) p q Absorption Laws Negation Laws p (p q) p p (p q) p p p p p Chapter 1.1 &

42 Some Important Equivalences Important equivalences about Implication P Q Q P Q You only need to memorize this P Q Q P P Q P Q P Q (P Q) (P Q) P Q (P Q) (P R) P (Q R) (P R) (Q R) (P Q) R (P Q) (P R) P (Q R) (P R) (Q R) (P Q) R Chapter 1.1 & P Q Q P Let P = S and Q = P Q P Q ** ( S) Substitution S Double Negation Law S ** Q P Substitution (P Q) P Q (P Q) ( P Q) ** P Q De Morgan s Laws P Q P Q Let P = S P Q S Q Substitution S Q ** P Q Substitution P Q (P Q) P Q ( P Q) De Morgan s Laws (P Q) ** **P Q P Q Chapter 1.1 &

43 (P Q) (P R) P (Q R) (P R) (Q R) (P Q) R (P Q) (P R) ( P Q) ( P R) P (Q R) Distributive Laws P (Q R) ** (P R) (Q R) ** ( P R) ( Q R) ** ( P Q) R Distributive Laws (P Q) R De Morgan slaws (P Q) R ** (P Q) (P R) P (Q R) (P R) (Q R) (P Q) R (P Q) (P R) ( P Q) ( P R) ** ( P R) ( Q R) ** P P (Q R) Associative Laws ( P Q) R R Associative Laws P (Q R) P (Q R) ** **P Q P Q Idempotent Laws (P R) (Q R) ( P Q) R Idempotent Laws (P Q) R De Morgan s Laws (P Q) R ** Chapter 1.1 & Some Important Equivalences Important equivalences about if and only if: P Q Q (P Q) (Q P) You only need to memorize this P Q (P Q) ( P Q) P Q P Q (P Q) P Q P Q (P Q) (Q P) ( P Q) ( Q P) **P Q P Q Chapter 1.1 &

44 Some Important Equivalences P Q (P Q) ( P Q) P Q ** P Q P Q ## P Q (P Q) (Q P) ( P Q) ( Q P) ( P Q) ( Q P) ## (( P Q) Q) (( P Q) P) Distributive Laws (( P Q) (Q Q)) (( P P) (Q P)) Distributive Laws (( P Q) ) ( (Q P)) Negation Laws ( P Q) (Q P) Identify Laws Chapter 1.1 & Some Important Equivalences P Q P Q Let P= S and Q= P Q ** P Q P Q ## P Q (P Q) (Q P) ( P Q) ( Q P) ( P Q) ( Q P) ## (S ) ( S) Substitution S ## P Q Substitution Chapter 1.1 &

45 Some Important Equivalences (P Q) P Q (P Q) (( P Q) ( Q P)) ## ( P Q) ( Q P) (P Q) (Q P) ((P Q) Q) ((P Q) P) ((P Q) ( Q Q)) ((P P) ( Q P)) (P Q) ( Q P) (P Q) ( Q P) P Q ## De Morgan s Laws De Morgan s Laws Identify Laws ** P Q P Q ## P Q (P Q) (Q P) ( P Q) ( Q P) Distributive Laws Negation Laws Distributive Laws Chapter 1.1 & End of 1.1 and 1.2 Chapter 1.1 &

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

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

Chapter 1, Section 1.1 Propositional Logic

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

Discrete Mathematics and Applications COT3100

Discrete Mathematics and Applications COT3100 Discrete Mathematics and Applications CO3100 Dr. Ungor Sources: Slides are based on Dr. G. Bebis material. uesday, January 7, 2014 oundations of Logic: Overview Propositional logic: (Sections 1.1-1.3)

More information

1 The Foundations. 1.1 Logic. A proposition is a declarative sentence that is either true or false, but not both.

1 The Foundations. 1.1 Logic. A proposition is a declarative sentence that is either true or false, but not both. he oundations. Logic Propositions are building blocks of logic. A proposition is a declarative sentence that is either true or false, but not both. Example. Declarative sentences.. Ottawa is the capital

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

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04 An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04 1 A Taste of Logic Logic puzzles (1) Knights and Knaves Knights: always tell the truth Knaves: always lie You encounter two people A and B. A says:

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

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

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

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

Propositional logic ( ): Review from Mat 1348

Propositional logic ( ): Review from Mat 1348 CSI 2101 / Winter 2008: Discrete Structures. Propositional logic ( 1.1-1.2): Review from Mat 1348 Dr. Nejib Zaguia - Winter 2008 1 Propositional logic: Review Mathematical Logic is a tool for working with

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

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

Propositional Logic 1

Propositional Logic 1 Propositional Logic 1 Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth Tables 2 Propositions A proposition is

More information

CSE 240 Logic and Discrete Mathematics

CSE 240 Logic and Discrete Mathematics CSE 240 Logic and Discrete Mathematics Instructor: odd Sproull Department of Computer Science and Engineering Washington University in St. Louis 1Extensible - CSE 240 Logic Networking and Discrete Platform

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

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

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

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

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC Discrete Structures & Algorithms Propositional Logic EECE 320 // UBC 1 Review of last lecture Pancake sorting A problem with many applications Bracketing (bounding a function) Proving bounds for pancake

More information

The Foundations: Logic and Proofs. Part I

The Foundations: Logic and Proofs. Part I The Foundations: Logic and Proofs Part I Chapter Summary Propositional Logic n The Language of Propositions n Applications n Logical Equivalences Predicate Logic n The Language of Quantifiers n Logical

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

software design & management Gachon University Chulyun Kim

software 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 information

Section 1.1: Logical Form and Logical Equivalence

Section 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 information

Logic and Proof. Aiichiro Nakano

Logic and Proof. Aiichiro Nakano Logic and Proof Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science

More information

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007 COT3100: Propositional Equivalences 1 Logic and Proofs Jan 2007 COT3100: Propositional Equivalences 2 1 Translating from Natural Languages EXAMPLE. Translate the following sentence into a logical expression:

More information

Today s Topic: Propositional Logic

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

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Section 1.1 Sec$on Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional ruth ables 2 Proposi$ons A proposition is a declarative

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

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes: Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements. An inference mechanism (a collection of rules) to

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

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

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

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

Announcements CompSci 102 Discrete Math for Computer Science

Announcements CompSci 102 Discrete Math for Computer Science Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most

More information

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic. Ch. 1.1 Logic Logic 1 Def. A Proposition is a statement that is either true or false. Example 1: Which of the following are propositions? Statement Proposition (yes or no) UHD is a University 1 + 3 = 0

More information

DISCRETE STRUCTURES WEEK5 LECTURE1

DISCRETE STRUCTURES WEEK5 LECTURE1 DISCRETE STRUCTURES WEEK5 LECTURE1 Let s get started with... Logic! Spring 2010 CPCS 222 - Discrete Structures 2 Logic Crucial for mathematical reasoning Important for program design Used for designing

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

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Why Learning Logic? Logic. Propositional Logic. Compound Propositions Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional

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

LOGIC & PROPOSITIONAL EQUIVALENCE

LOGIC & PROPOSITIONAL EQUIVALENCE KS091201 MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) LOGIC & PROPOSITIONAL EQUIVALENCE Discrete Math Team 2 -- KS091201 MD W-02 Outline Logic Proposition Propositional Variables Logical Operators Presedence

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

A statement is a sentence that is definitely either true or false but not both.

A statement is a sentence that is definitely either true or false but not both. 5 Logic In this part of the course we consider logic. Logic is used in many places in computer science including digital circuit design, relational databases, automata theory and computability, and artificial

More information

Discrete Structures for Computer Science

Discrete 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 information

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship. LOGIC In mathematical and everyday English language, we frequently use logic to express our thoughts verbally and in writing. We also use logic in numerous other areas such as computer coding, probability,

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

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications Discrete Mathematics and Its Applications Lecture 1: Proposition logic MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 12, 2017 Outline 1 Propositions 2 Connectives

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

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

1.3 Propositional Equivalences

1.3 Propositional Equivalences 1 1.3 Propositional Equivalences The replacement of a statement with another statement with the same truth is an important step often used in Mathematical arguments. Due to this methods that produce propositions

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

ECOM Discrete Mathematics

ECOM Discrete Mathematics ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional

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

ARTIFICIAL INTELLIGENCE

ARTIFICIAL INTELLIGENCE ARTIFICIAL INTELLIGENCE LECTURE # 03 Artificial Intelligence 2012 Lecture 03 Delivered By Zahid Iqbal 1 Review of Last Lecture Artificial Intelligence 2012 Lecture 03 Delivered By Zahid Iqbal 2 Today s

More information

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov Introduction Propositional Logic Discrete Mathematics Andrei Bulatov Discrete Mathematics Propositional Logic 2-2 What is Logic? Computer science is a mere continuation of logic by other means Georg Gottlob

More information

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions Note 01 Propositional Logic 1 / 10-1 Overview 1. Introduction to Propositional Logic 2. Operations on Propositions 3. Truth Tables 4. Translating Sentences into Logical Expressions 5. Preview: Propositional

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

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

Formal Logic. Critical Thinking

Formal Logic. Critical Thinking ormal Logic Critical hinking Recap: ormal Logic If I win the lottery, then I am poor. I win the lottery. Hence, I am poor. his argument has the following abstract structure or form: If P then Q. P. Hence,

More information

PROPOSITIONAL CALCULUS

PROPOSITIONAL 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 information

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Fall CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Describe and use algorithms for integer operations based on their expansions Relate algorithms for integer

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

Foundation of proofs. Jim Hefferon.

Foundation of proofs. Jim Hefferon. Foundation of proofs Jim Hefferon http://joshua.smcvt.edu/proofs The need to prove In Mathematics we prove things To a person with a mathematical turn of mind, the base angles of an isoceles triangle are

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

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

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

Truth Tables for Arguments

Truth Tables for Arguments ruth ables for Arguments 1. Comparing Statements: We ve looked at SINGLE propositions and assessed the truth values listed under their main operators to determine whether they were tautologous, self-contradictory,

More information

GEOMETRY. Chapter 2: LOGIC. Name: Teacher: Pd:

GEOMETRY. Chapter 2: LOGIC. Name: Teacher: Pd: GEOMERY Chapter 2: LOGIC Name: eacher: Pd: able of Contents DAY 1: SWBA: Identify, write and analyze the different types of logical statements. Pgs: 2-8 Homework: Pgs 6 8 (EVEN ONLY) DAY 2: SWBA: Write

More information

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic CHAPER 1 MAHEMAICAL LOGIC 1.1 undamentals of Mathematical Logic Logic is commonly known as the science of reasoning. Some of the reasons to study logic are the following: At the hardware level the design

More information

Chapter 2: The Logic of Compound Statements

Chapter 2: The Logic of Compound Statements Chapter 2: he Logic of Compound Statements irst: Aristotle (Gr. 384-322 BC) Collection of rules for deductive reasoning to be used in every branch of knowledge Next: Gottfried Leibniz (German, 17th century)

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

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p

More information

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science Fall 2018 Assignment 1. Solutions 1. For each of the following statements use a truth table to determine whether

More information

Mathematical Logic Part One

Mathematical Logic Part One Mathematical Logic Part One Question: How do we formalize the definitions and reasoning we use in our proofs? Where We're Going Propositional Logic (oday) Basic logical connectives. ruth tables. 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

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

CITS2211 Discrete Structures. Propositional Logic

CITS2211 Discrete Structures. Propositional Logic CITS2211 Discrete Structures Propositional Logic Unit coordinator: Rachel Cardell-Oliver July 31, 2017 Highlights This lecture will address the following questions: 1 What is a proposition? 2 How are propositions

More information

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

10/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 information

PHI Propositional Logic Lecture 2. Truth Tables

PHI 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 information

Discrete Structures of Computer Science Propositional Logic I

Discrete Structures of Computer Science Propositional Logic I Discrete Structures of Computer Science Propositional Logic I Gazihan Alankuş (Based on original slides by Brahim Hnich) July 26, 2012 1 Use of Logic 2 Statements 3 Logic Connectives 4 Truth Tables Use

More information

13.3 Truth Tables for the Conditional and the Biconditional

13.3 Truth Tables for the Conditional and the Biconditional ruthablesconditionalbiconditional.nb 1 13.3 ruth ables for the Conditional and the Biconditional Conditional Earlier, we mentioned that the statement preceding the conditional symbol is called the antecedent

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

Functions. Lecture 4: Truth functions, evaluating compound statements. Arithmetic Functions. x y x+y

Functions. Lecture 4: Truth functions, evaluating compound statements. Arithmetic Functions. x y x+y Lecture 4: ruth functions, evaluating compound statements 1. unctions, arithmetic functions, and truth functions 2. Definitions of truth functions unctions A function is something that takes inputs and

More information

Logic. Def. A Proposition is a statement that is either true or false.

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

CSCI Homework Set 1 Due: September 11, 2018 at the beginning of class

CSCI Homework Set 1 Due: September 11, 2018 at the beginning of class CSCI 3310 - Homework Set 1 Due: September 11, 2018 at the beginning of class ANSWERS Please write your name and student ID number clearly at the top of your homework. If you have multiple pages, please

More information

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem Part A 1. (a) Some dog does not have his day. (b) Some action has no equal and opposite reaction. (c) Some golfer will never be eated

More information

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits CSE 311: Foundations of Computing Lecture 2: More Logic, Equivalence & Digital Circuits Last class: Some Connectives & Truth Tables Negation (not) p p T F F T Disjunction (or) p q p q T T T T F T F T T

More information

Announcement. Homework 1

Announcement. Homework 1 Announcement I made a few small changes to the course calendar No class on Wed eb 27 th, watch the video lecture Quiz 8 will take place on Monday April 15 th We will submit assignments using Gradescope

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

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

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

n 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 information

Chapter 5: Section 5-1 Mathematical Logic

Chapter 5: Section 5-1 Mathematical Logic Chapter 5: Section 5-1 Mathematical Logic D. S. Malik Creighton University, Omaha, NE D. S. Malik Creighton University, Omaha, NE Chapter () 5: Section 5-1 Mathematical Logic 1 / 29 Mathematical Logic

More information

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese Section 1.1 Propositional Logic proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese go to town! X - imperative What time is it? X - interrogative propositional

More information

Mathematical Logic Part One

Mathematical Logic Part One Mathematical Logic Part One Announcements Problem Session tonight from 7:00 7:50 in 380-380X. Optional, but highly recommended! Problem Set 3 Checkpoint due right now. 2 Handouts Problem Set 3 Checkpoint

More information

Section 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Section 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.1 Statements and Logical Connectives What You Will Learn Statements, quantifiers, and compound statements Statements involving the words not, and, or, if then, and if and only if 3.1-2 HISORY

More information