Compound Propositions

Similar documents
CSC Discrete Math I, Spring Propositional Logic

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

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

2.2: Logical Equivalence: The Laws of Logic

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

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

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

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

Propositional Equivalence

Boolean Logic. CS 231 Dianna Xu

Definition 2. Conjunction of p and q

Chapter 1, Section 1.1 Propositional Logic

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

AMTH140 Lecture 8. Symbolic Logic

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

We last time we began introducing equivalency laws.

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

PROPOSITIONAL CALCULUS

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

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

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

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

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

1.3 Propositional Equivalences

Discrete Mathematics and Its Applications

EECS 1028 M: Discrete Mathematics for Engineers

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

Propositional logic ( ): Review from Mat 1348

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

software design & management Gachon University Chulyun Kim

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

1.1 Language and Logic

Propositional Logic. Spring Propositional Logic Spring / 32

Introduction. Applications of discrete mathematics:

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

1.1 Language and Logic

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

Discrete Mathematics and Applications COT3100

Solutions to Homework I (1.1)

Section 1.1: Logical Form and Logical Equivalence

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Discrete Structures of Computer Science Propositional Logic I

ANALYSIS EXERCISE 1 SOLUTIONS

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

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

Introduction to Decision Sciences Lecture 2

CISC-102 Winter 2016 Lecture 17

LOGIC & PROPOSITIONAL EQUIVALENCE

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

Chapter 4: Classical Propositional Semantics

CSC165 Mathematical Expression and Reasoning for Computer Science

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

UNIT-I: Propositional Logic

DISCRETE STRUCTURES WEEK5 LECTURE1

Today s Topic: Propositional Logic

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

Truth-Functional Logic

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

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

Logic and Proof. Aiichiro Nakano

Equivalence and Implication

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

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

Propositional Logic. Fall () Propositional Logic Fall / 30

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Propositional Logic 1

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.

MAT2345 Discrete Math

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

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

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

CSE 20: Discrete Mathematics

Chapter 4, Logic using Propositional Calculus Handout

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Foundation of proofs. Jim Hefferon.

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

3.2: Compound Statements and Connective Notes

Proofs. Joe Patten August 10, 2018

15414/614 Optional Lecture 1: Propositional Logic

Discrete Mathematics

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

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

Logic: Propositional Logic (Part I)

Mathematical Reasoning (Part I) 1

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

CSE 240 Logic and Discrete Mathematics

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

The Logic of Compound Statements cont.

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Introduction to Sets and Logic (MATH 1190)

Tautologies, Contradictions, and Contingencies

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

THE LOGIC OF COMPOUND STATEMENTS

Logic and Proofs. (A brief summary)

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

PHI Propositional Logic Lecture 2. Truth Tables

Transcription:

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 Table (NOT) Unary Operator, Symbol: p true false p false true

Conjunction (AND) Definition Let p and q be propositions. The conjunction of p and q, denoted by p q, is the proposition p and q. The conjunction p q is true when p and q are both true and is false otherwise.

Examples 1. Find the conjunction of the propositions p and q, where The conjunction is p : Today is Friday. q : It is raining today. p q : Today is Friday and it is raining today.

Truth Table (AND) Binary Operator, Symbol: p q p q true true true true false false false true false false false false

Disjunction (OR) Definition Let p and q be propositions. The disjunction of p and q, denoted by p q, is the proposition p or q. The disjunction p q is false when both p and q are false and is true otherwise.

Examples 1. Find the disjunction of the propositions p and q, where The disjunction is p : Today is Friday. q : It is raining today. p q : Today is Friday or it is raining today.

Truth Table (OR) Binary Operator, Symbol: p q p q true true true true false true false true true false false false

Exclusive OR (XOR) Definition Let p and q be propositions. The exclusive or of p and q, denoted by p q, is the proposition p q. The exclusive or, p q, is true when exactly one of p and q is true and is false otherwise.

Examples 1. Find the exclusive or of the propositions p and q, where p : Atif will pass the course CSC102. q : Atif will fail the course CSC102. The exclusive or is p q : Atif will pass or fail the course CSC102.

Truth Table (XOR) Binary Operator, Symbol: p q p q true true false true false true false true true false false false

Examples (OR vs XOR) The following proposition uses the (English) connective or. Determine from the context whether or is intended to be used in the inclusive or exclusive sense. 1. Nabeel has one or two brothers. A person cannot have both one and two brothers. Therefore, or is used in the exclusive sense.

Examples (OR vs XOR) 2. To register for BSC you must have passed the qualifying exam or be listed as an Math major. Presumably, if you have passed the qualifying exam and are also listed as an Math major, you can still register for BCS. Therefore, or is inclusive.

Composite Statements Statements and operators can be combined in any way to form new statements. p q p q ( p) ( q) true true false false false true false false true true false true true false true false false true true true

Tautologies and Contradictions Tautology is a statement that is always true regardless of the truth values of the individual logical variables Examples: R ( R) (P Q) ( P) ( Q) If S T is a tautology, we write S T. If S T is a tautology, we write S T.

Tautologies and Contradictions A Contradiction is a statement that is always false regardless of the truth values of the individual logical variables Examples R ( R) ( (P Q) ( P) ( Q)) The negation of any tautology is a contradiction, and the negation of any contradiction is a tautology.

Logical Equivalence Commutative laws: p q = q p, p q = q p Associative laws: (p q) r = p (q r), (p q) r = p (q r) Distributive laws: p (q r) = (p q) (p r) p (q r) = (p q) (p r) Identity laws: p t = p, p c = p Negation laws: p ~p = t, p ~p = c Double negative law: ~(~p) = p Idempotent laws: p p = p, p p = p De Morgan s laws: ~(p q) = ~p ~q, ~(p q) = ~p ~q Universal bound laws: p t = t, p c = c Absorption laws: p (p q) = p, p (p q) = p Negation of t and c: ~t = c, ~c = t

Exercises Simplify: ~(~p q) (p q) Simplify : (p (~p q)) ~(q ~r)

Conditional Statements Contrapositive p q is another conditional statement ~q ~p A conditional statement is equivalent to its contrapositive The converse of p q is q p The inverse of p q is ~p ~q Conditional statement and its converse are not equivalent Conditional statement and its inverse are not equivalent

Conditional Statements The converse and the inverse of a conditional statement are equivalent to each other p only if q means ~q ~p, or p q

Biconditional of p and q means p if and only if q and is denoted as p q r is a sufficient condition for s means if r then s r is a necessary condition for s means if not r then not s

Conditional Statements Implication Definition: Let p and q be propositions. The conditional statement p q, is the proposition If p, then q. The conditional statement p q is false when p is true and q is false and is true otherwise. where p is called hypothesis, antecedent or premise. q is called conclusion or consequence

Implication (if - then) Binary Operator, Symbol: P Q P Q true true true true false false false true true false false true

Conditional Statements Biconditional Statements Definition: Let p and q be propositions. The biconditional statement p q, is the proposition p if and only if q. The biconditional (bi-implication) statement p q is true when p and q have same truth values and is false otherwise.

Biconditional (if and only if) Binary Operator, Symbol: P Q P Q true true true true false false false true false false false true

Equivalent Statements P Q (P Q) ( P) ( Q) (P Q) ( P) ( Q) true true false false true true false true true true false true true true true false false true true true Two statements are called logically equivalent if and only if (iff) they have identical truth tables The statements (P Q) and ( P) ( Q) are logically equivalent, because (P Q) ( P) ( Q) is always true.