PROPOSITIONAL CALCULUS

Similar documents
CSC Discrete Math I, Spring Propositional Logic

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

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

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

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

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

Compound Propositions

The Logic of Compound Statements cont.

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

software design & management Gachon University Chulyun Kim

DISCRETE MATHEMATICS BA202

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

2.2: Logical Equivalence: The Laws of Logic

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

Propositional Logic. Spring Propositional Logic Spring / 32

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

PHI Propositional Logic Lecture 2. Truth Tables

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

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

15414/614 Optional Lecture 1: Propositional Logic

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

n 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

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

Propositional Equivalence

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.

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

ECOM Discrete Mathematics

CSE 20: Discrete Mathematics

A. Propositional Logic

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

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

1 The Foundation: Logic and Proofs

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

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

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

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Logic and Proof. Aiichiro Nakano

1.1 Statements and Compound Statements

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

DERIVATIONS AND TRUTH TABLES

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

1 The Foundation: Logic and Proofs

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

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

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.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Section 1.2: Propositional Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

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

Chapter 1, Section 1.1 Propositional Logic

THE LOGIC OF COMPOUND STATEMENTS

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

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

Advanced Topics in LP and FP

AMTH140 Lecture 8. Symbolic Logic

Readings: Conjecture. Theorem. Rosen Section 1.5

Propositional Logic. Fall () Propositional Logic Fall / 30

Section 1.1: Logical Form and Logical Equivalence

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

Chapter 1 Elementary Logic

HANDOUT AND SET THEORY. Ariyadi Wijaya

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

3 The Semantics of the Propositional Calculus

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

ICS141: Discrete Mathematics for Computer Science I

Section 1.1 Propositions

Discrete Structures of Computer Science Propositional Logic I

EECS 1028 M: Discrete Mathematics for Engineers

Proofs. Joe Patten August 10, 2018

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

Rules of Inference. Arguments and Validity

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

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

Artificial Intelligence. Propositional logic

Methods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

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

Math 3336: Discrete Mathematics Practice Problems for Exam I

1.1 Language and Logic

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

A Quick Lesson on Negation

1.1 Language and Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

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

Tautologies, Contradictions, and Contingencies

CSE 20 DISCRETE MATH. Winter

Lecture 02: Propositional Logic

Logic, Sets, and Proofs

Manual of Logical Style

Section L.1- Introduction to Logic

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

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

Rules Build Arguments Rules Building Arguments

Transcription:

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 Compound Propositions

PROPOSITIONAL CONNECTIVES

Negation of a Proposition The negation of a proposition P is denoted by P and is read as not P. The truth table is shown below:

Example 1: Negation of a Proposition 1. P: It will rain today. P: It will not rain today. 2. Q: Angela is hardworking. Q: Angela is not hardworking. 3. R: You will pass this course. R: You will not pass this course.

Conjunction of Propositions The proposition P and Q, denoted by P Q, is called the conjunction of P and Q. Other keywords: but, nevertheless

Conjunction of Propositions The truth table is shown as follows:

Example 2: Conjunction of a Proposition 1. P: Sofia is beautiful. Q: Anton is strong. P Q: Sofia is beautiful and Anton is strong. 2. S: The stock exchange is down. T: It will continue to decrease. S T: The stock exchange is down and it will continue to decrease.

Disjunction: Inclusive or The proposition P or Q, denoted by P Q, is called the disjunction of P or Q. This is also referred to as the inclusive or. Other keywords: unless

Disjunction: Inclusive or The truth table is shown below:

Example 3: Inclusive or 1. P: This lesson is interesting. Q: The lesson is easy. P Q: This lesson is interesting or it is easy. 2. S: I want to take a diet. T: The food is irresistible. S T: I want to take a diet or the food is irresistible.

Disjunction: Exclusive or The disjunction proposition P or Q but not both, denoted by P Q, is called the exclusive or. The truth table is shown as follows:

Example 4: Exclusive or P: Presidential candidate A wins. Q: Presidential candidate B wins. P Q: Either presidential candidate A or B wins.

Implications or Conditionals The proposition If P, then Q, denoted by P Q is called an implication or a conditional. Equivalent propositions: P only if Q, Q follows from P, P is a sufficient condition for Q, Q whenever P

Implications or Conditionals The truth table for an implication is shown as follows:

Example 5: Implications P: It is raining very hard today. Q: Classes are suspended. P Q: If it is raining very hard today, then classes are suspended.

Related Implication: Converse The converse of the proposition If P, then Q is the proposition If Q, then P. In symbols, the converse of P Q is Q P. Example: The converse of the proposition P Q: If it is raining very hard today, then classes are suspended. is the proposition Q P: If classes are suspended, then it is raining very hard today.

Related Implication: Contrapositive The contrapositive of the proposition If P, then Q is the proposition If not Q, then not P. In symbols, the contrapositive of P Q is Q P. Example: The contrapositive of the proposition P Q: If it is raining very hard today, then classes are suspended. is the proposition Q P: If classes are not suspended, then it is not raining very hard today.

Related Implication: Inverse The inverse of the proposition If P, then Q is the proposition If not P, then not Q. In symbols, the inverse of P Q is P Q. Example: The inverse of the proposition P Q: If it is raining very hard today, then classes are suspended. is the proposition Q P: If it is not raining very hard today, then classes are not suspended.

Biconditionals The proposition P if and only if Q, denoted by P Q is called a biconditional. Equivalent propositions: P is equivalent to Q, P is a necessary and sufficient condition for Q

Biconditionals The truth table for a biconditional is shown as follows:

Example 6: Biconditionals P: I will pass Matapre. Q: My grade is at least 60. P Q: I will pass Matapre if and only if my grade is at least 60.

TRUTH TABLE SUMMARY

Truth Tables In constructing a truth table, the number of rows is equal to 2 n where n is the number of propositional variables. For example, if there are 4 propositional variables, then the truth table will consist of 2 4 = 16.

Assignment of Values For two propositional variables, we have 4 rows for the truth table and the assignment of values are shown as follows:

Assignment of Values For three propositional variables, we have 8 rows:

Assignment of values

Types of Propositional Forms There are three types of propositional forms: Tautology Contradiction Contingency

Tautology A propositional form that is true under all circumstances is called a tautology. Example: The proposition P Q P Q is a tautology. The truth table is shown as follows:

Tautology

Contradiction A propositional form that is false under all circumstances is called a contradiction. Example: The proposition P Q (Q P) is a contradiction. The truth table is shown as follows:

Contradiction

Contingency A propositional form that is neither a tautology nor a contradiction is called a contingency. Example: The proposition (P Q) R is a contingency. The truth table is shown as follows:

Contingency

Knowledge Check 1.3 Test 1: Determine if the following propositional forms is a tautology, contradiction or contingency by constructing truth tables for each. 1. P P 2. Q S P 3. Q P P Q 4. Q S P S Test 2: Turn on page 15 and answer number 18.

Logically Equivalent Propositions

Some Logically Equivalent Propositions

Some Logically Equivalent Propositions

Remark: Implications

When is a Mathematical Reasoning Correct?

Rule of Inference: Addition 1. Addition P P Q In this rule of inference, we can add any propositional variable to another with the use of the logical connective or.

Rule of Inference: Simplification 2. Simplification P Q P Illustration: Give the appropriate conclusion using simplification rule. (R S) T?

Rule of Inference: Conjunction 3. Conjunction P Q P Q Illustration: Give the appropriate conclusion using conjunction rule. S T N R?

Rule of Inference: Modus Ponens 4. Modus Ponens P Q P Q Illustration: Give the appropriate conclusion using modus ponens rule. (M N) T M N?

Rule of Inference: Modus Tollens 5. Modus Tollens P Q Q P Illustration: Give the appropriate conclusion using modus tollens rule. M (B C) (B C)?

Rule of Inference: Disjunctive Syllogism 6. Disjunctive Syllogism P Q P Q Illustration: Give the appropriate conclusion using disjunctive syllogism rule. Z (X Y) Z?

Rule of Inference: Hypothetical Syllogism 7. Hypothetical Syllogism P Q Q R P R Illustration: Give the appropriate conclusion using hypothetical syllogism rule. (X N) T T (A B)?

Some Applications

Some Applications

Knowledge Check 1.4 State the rule of inference by which the conclusion follows from its premise/s. 1. A (B C) B C A D 2. T U W D [T U W ] P

Knowledge Check 1.4 3. E F G H E F G H 4. I J K L I J K L

Knowledge Check 1.4 5. M N N Q (M N) ( N Q) 6. P Q R S P Q R S