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

Similar documents
CSC Discrete Math I, Spring Propositional Logic

PROPOSITIONAL CALCULUS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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)

Compound Propositions

2.2: Logical Equivalence: The Laws of Logic

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

Logic and Propositional Calculus

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

CISC-102 Winter 2016 Lecture 17

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

We last time we began introducing equivalency laws.

DISCRETE MATHEMATICS BA202

Proofs. Joe Patten August 10, 2018

Logic and Propositional Calculus

AMTH140 Lecture 8. Symbolic Logic

Boolean Logic. CS 231 Dianna Xu

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

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

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

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

The Logic of Compound Statements cont.

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

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

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

Chapter 1, Section 1.1 Propositional Logic

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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.

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

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.

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

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

MATHEMATICAL REASONING

Equivalence and Implication

CISC-102 Fall 2018 Week 11

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

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

Discrete Structures of Computer Science Propositional Logic I

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

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

Section 1.1: Logical Form and Logical Equivalence

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

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

Propositional Logic. Spring Propositional Logic Spring / 32

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

Math Assignment 2 Solutions - Spring Jaimos F Skriletz Provide definitions for the following:

Introduction to Decision Sciences Lecture 2

1.1 Language and Logic

15414/614 Optional Lecture 1: Propositional Logic

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

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

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

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

Solutions to Homework I (1.1)

1.1 Statements and Compound Statements

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

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

Definition 2. Conjunction of p and q

ANALYSIS EXERCISE 1 SOLUTIONS

1 The Foundation: Logic and Proofs

Propositional Logic, Predicates, and Equivalence

CSC165 Mathematical Expression and Reasoning for Computer Science

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

1.3 Propositional Equivalences

Chapter 1 Elementary Logic

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

software design & management Gachon University Chulyun Kim

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

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

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

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

Logic and Truth Tables

Language of Propositional Logic

Propositional logic ( ): Review from Mat 1348

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

PHIL12A Section answers, 16 February 2011

1 The Foundation: Logic and Proofs

Section 3.1 Statements, Negations, and Quantified Statements

EECS 1028 M: Discrete Mathematics for Engineers

1.1 Language and Logic

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

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

UNIT-I: Propositional Logic

Introduction. Applications of discrete mathematics:

Learning Goals of CS245 Logic and Computation

Math.3336: Discrete Mathematics. Applications of Propositional Logic

Logic and Proof. Aiichiro Nakano

The statement calculus and logic

A Statement; Logical Operations

Discrete Mathematics

ECOM Discrete Mathematics

Logic and Proofs. (A brief summary)

Transcription:

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 2004 1 CS218 Peter Lo 2004 2 Simple Statements Simple Statement is the basic building block of Logic. Simple Statement is referred as a proposition. A statement is a declarative sentence that either True or False. Which one is statement? Today is Friday. This is a Statement How to celebrate the Mid-Autumn? This is not a Statement Let s go for dinner together after lesson. This is not a Statement 1 + 1 = 3 This is a Statement CS218 Peter Lo 2004 3 CS218 Peter Lo 2004 4

Compound Statement Compound Statement is the combination of two or more Simple Statement. Example: Today is Friday and Tomorrow is holiday True Table The value of a statement can be represented by a Truth Table. Only True and False is appear in a Truth Table Example: CS218 Peter Lo 2004 5 CS218 Peter Lo 2004 6 Basic Logic Connectives Compound statements are connected using mainly five basic connectives: Conjunction Disjunction Negation Conditional Biconditional Conjunction Conjunction is the combination of statements using AND. The conjunction of two statement is True only if each component is True. Represented as p ^ q. CS218 Peter Lo 2004 7 CS218 Peter Lo 2004 8

Disjunction (Inclusive OR) Disjunction is the combination of statements using OR. The conjunction of two statement is True if either one component is True. Represented as p q. Negation Negation is the NOT of a simple statement. The Truth value of the statement negation of a statement is the opposite of the truth value of the original statement. Represented as ~p. CS218 Peter Lo 2004 9 CS218 Peter Lo 2004 10 Conditional Conditional Statement is the statement in the form If p, then q or p implies q. The conditional p q is True unless p is True and q is False. Represented as p q (Do the Ex. 1 & 2) Biconditional Biconditional Statement is the statement in the form p if and only if q or p iff q. If p and q have the same value, p q is True, otherwise will be False. Represented as p q CS218 Peter Lo 2004 11 CS218 Peter Lo 2004 12

Propositions When the sub-statement of a compound statement are variables and represented in logical connectives, the compound statement is called Proposition. Truth Table The truth value of a proposition depends exclusively upon the truth values of its variables. The truth value of a proposition is known once the truth values of its variables are known. (See E.g. 30-32) CS218 Peter Lo 2004 13 CS218 Peter Lo 2004 14 Exclusive Disjunction (Exclusive OR) Exclusive Disjunction means either one or the other, but not both. The conditional of a exclusive disjunction is True when p and q are not the same. Exclusive Disjunction can be expressed using basic connectives ~ (p q) (Do the Ex. 3) Tautologies and Contradictions Tautologies A Compound statement that is always True is called Tautologies (See E.g. 33) Contradictions A Compound statement that is always False is called Contradictions (See E.g. 34) CS218 Peter Lo 2004 15 CS218 Peter Lo 2004 16

Principle of Substitution If P(p, q, ) is a Tautology, then P(P 1, P 2, ) is also a Tautology. (See E.g. 35) Law of Syllogism A fundamental principle of logical reasoning, called the Law of Syllogism, states If p implies q and q implies r, then p implies r [(p q) (q r)] (p r) is a Tautology (See E.g. 36) CS218 Peter Lo 2004 17 CS218 Peter Lo 2004 18 Logical Equivalence Two propositions P and Q are said to be logically equivalent if the final columns in their truth table are the same. Represented as (Do the Ex. 4 & 5) DeMorgan s Laws DeMorgan s Laws show that: ~ (p q) ~p ~q ~ (p q) ~p ~q CS218 Peter Lo 2004 19 CS218 Peter Lo 2004 20

Logically True & Logically Equivalent Logically True Statement A statement is said to be Logically True if it is derivable from a Tautology. Logically Equivalent Statement Statement of the form P(p 0, q 0,..) and Q (p 0, q 0,..) are said to be Logically Equivalent if the propositions P(p, q, ) and Q(p, q,..) are logical equivalent. Argument An argument is a relationship between a set of proposition, P 1, P 2, P n, called Premises and other proposition Q, called the Conclusion. An argument is denoted by P 1, P 2, P n Q An argument is said to be Validif the premises yield the conclusion. An argument is said to be Fallacy if that is not valid. (See E.g. 39 & 40) CS218 Peter Lo 2004 21 CS218 Peter Lo 2004 22 Logical Implication A proposition P(p, q, ) is said to Logical Imply a proposition Q(p, q, ), written P(p, q, ) => Q(p, q, ) if Q(p, q, ) is true whenever P(p, q, ) is True. (See E.g. 44) Example Consider the following argument: if I am not in Malaysia, then I am not happy; if I am happy, then I am singing; I am not singing; therefore I am not in Malaysia. Using the translation show that this argument is valid, or explain why it is not. CS218 Peter Lo 2004 23 CS218 Peter Lo 2004 24

Answer Idempotent Laws p p p p p p Associative Laws (p q) r p (q r) (p q) r p (q r) Communicative Laws p q q p p q q p (p q) (q p) CS218 Peter Lo 2004 25 CS218 Peter Lo 2004 26 Distributive Laws p (q r) (p q) (p r) p (q r) (p q) (p r) Identity Laws p F p p T p p T T p F F (T = True, F = False) Complement Laws p ~p T p ~p F ~T F ~F T (T = True, F = False) Involution Law ~ ~p p CS218 Peter Lo 2004 27 CS218 Peter Lo 2004 28

DeMorgan s Laws ~ (p q) ~p ~q ~ (p q) ~p ~q (p q) ~ (~p ~q) (p q) ~ (~p ~q) Contrapositive (p q) (~q ~p) Implication (p q) (~q p) (p q) ~(p ~q) (p q) (~p q) (p q) ~(p ~q) (p r) (q r) (p q) r (p q) (p r) p (q r) Equivalence (p q) = (p q) (q p) CS218 Peter Lo 2004 29 CS218 Peter Lo 2004 30 Exportation Law (p q) r p (q r) Absorbtion Law (p q) (p q) p q (p q) (p q) p q Reductio ad adsurdum (p q) (p ~q) F (T = True, F = False) CS218 Peter Lo 2004 31