Chapter 2: The Logic of Compound Statements

Similar documents
THE LOGIC OF COMPOUND STATEMENTS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

The Logic of Compound Statements cont.

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

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

CSC Discrete Math I, Spring Propositional Logic

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

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

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)

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

PHI Propositional Logic Lecture 2. Truth Tables

Formal Logic. Critical Thinking

Formal Logic 2. This lecture: Standard Procedure of Inferencing Normal forms Standard Deductive Proofs in Logic using Inference Rules

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

1.1 Statements and Compound Statements

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

Definition 2. Conjunction of p and q

Propositional Logic. Spring Propositional Logic Spring / 32

1 The Foundation: Logic and Proofs

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

Where are my glasses?

1 The Foundation: Logic and Proofs

PROPOSITIONAL CALCULUS

THE LOGIC OF COMPOUND STATEMENTS

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

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

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

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

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

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

Logic and Truth Tables

Virtual University of Pakistan

Logic and Proof. Aiichiro Nakano

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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)

Announcements CompSci 102 Discrete Math for Computer Science

DeMorgan s Laws and the Biconditional. Philosophy and Logic Sections 2.3, 2.4 ( Some difficult combinations )

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

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

CISC-102 Winter 2016 Lecture 17

Chapter 4, Logic using Propositional Calculus Handout

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:

Propositional Logic 1

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

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

ICS141: Discrete Mathematics for Computer Science I

Section 1.2: Propositional Logic

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

Logic and Proofs. (A brief summary)

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

1 Propositional Logic

Truth-Functional Logic

Artificial Intelligence Knowledge Representation I

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

Chapter 1 Elementary Logic

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

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

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

HANDOUT AND SET THEORY. Ariyadi Wijaya

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

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

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

LECTURE # 3 Laws of Logic

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.

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

1.3 Propositional Equivalences

A Quick Lesson on Negation

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

CISC-102 Fall 2018 Week 11

Tautologies, Contradictions, and Contingencies

The Limit of Humanly Knowable Mathematical Truth

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

A Statement; Logical Operations

Math.3336: Discrete Mathematics. Applications of Propositional Logic

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

PS10 Sets & Logic. Sam Maddy Austin Jacob For each of these statements, list the students for which the statement is true:

Section 1.1: Logical Form and Logical Equivalence

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

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

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

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

1.1 Language and Logic

Manual of Logical Style

DISCRETE MATHEMATICS BA202

COMP 2600: Formal Methods for Software Engineeing

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.

DISCRETE MATH: LECTURE 3

The Foundations: Logic and Proofs. Part I

A. Propositional Logic

CSE 20 DISCRETE MATH. Winter

Discrete Mathematics and Applications COT3100

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

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

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

Discrete Mathematical Structures: Theory and Applications

2.2: Logical Equivalence: The Laws of Logic

Transcription:

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) using symbols to mechanize the process of logic as algebraic notation had mechanized the process of reasoning about numbers and their relationships. Next: George Boole and Augustus De Morgan (English, 18th century) founded modern logic. 2.1 Logical orm and Logical Equivalence Concept of argument form is central to the concept of deductive logic. An argument is a sequence of statements aimed at demonstrating the truth of an assertion. HE ORM O AN ARGUMEN IS DISINGUISHED ROM IS CONEN So, logic won't determine the merit of argument's content; it can only determine if the conclusion follows from the truth of preceding statements. LOGICAL ORM: he following two arguments have the same logical form but differ entirely in content. If the program syntax is faulty or if program execution results in division by zero, then the computer will generate an error message. herefore, if the computer does not generate an error message, then the program syntax is correct and the program execution does not result in division by zero.

If x is a real number such that x < -2 or x > 2, then x 2 > 4. herefore, if x 2 <= 4, then x >= -2 and x <= 2. Using p, q, r, to represent the three statements in each argument. If p or q, then r herefore, if not r, then not p and not q SAEMEN: A statement is a sentence that is true or false but not both. Self-referential sentences--he Barber Puzzle In a certain town there is a male barber who shaves all those men, and only those men, who do not shave themselves. Question: Does the barber shave himself?

COMPOUND SAEMENS negation of p NO (~) conjunction of p AND ( ) disjunction of p OR ( ) RANSLAING ENGLISH INO SYMBOLS But = AND It is not sunny but it is hot. p q Both and = it is not the case that the sentence It is not both sunny and hot. (p q) Neither/nor = not A and not B It is neither hot nor sunny. p q

LOGIC PROPOSIIONS AND CONNECIVES Proposition (Statement) is a declarative sentences that is either true or false. etanus is a disease. ½ is an integer. here is intelligent life on Mars. One plus one equals two. We denote propositions by lowercase letters p, q, r, s, etc., called propositional variables. he truth values of a proposition are either RUE or ALSE. CONNECIVES Negation (NO) p p Conjunction (AND) p q p q

Disjunction (OR) p q p q 2.2 Conditional Statements Implication p q p q p implies q if p then q q if p only if q is p q is necessary for p p is sufficient for q p only if q

IMPLICAION AND VACUOUS RUH Example:If you loan me $20.00 then I will pay you on riday. p = you loan me $20.00q = I will pay you on riday QUESION: Under what conditions can you call me a liar for not keeping my word? You loan me $20.00 (p is true), riday I don't pay you (q is false) What about the other conditions? You loan me $20.00 (p is true) riday I pay you (q is true)no problem here. You don't loan me $20.00 (p is false) riday I pay you (q is true) Crazy maybe but not a liar. You don't loan me $20.00 (p is false) riday I don't pay you (q is false) No problem here. Because there is really only one condition which would make the conditional statement false (I'd be a liar) the remaining conditions are said to be vacuously true.

ORDER O OPERAIONS negation conjunction (left to right) disjunction (left to right) implication equivalence CONVERSE, CONRAPOSIIVE, AND INVERSE O A PROPOSIION Prove that these are logically equivalent. If the proposition is p q, then its contrapositive is q p Prove that these are logically equivalent. If the proposition is p q, then its inverse is p q If the proposition is p q, then its converse is q p DEMORGAN'S LAWS p q p q p q (p q) p q p q p q p q (p q) p q

AUOLOGIES--> always true conclusion CONRADICIONS --> always false conclusion autology Contradiction p p p p p p LOGICAL EQUIVALENCE (pg. 30-35) Logical Equivalence for implication if p then q p q p q p q p p q p q HE NEGAION of and Implication if p then q (p q) p q q p q (p q) p q

I=I AND ONLY I IS A BICONDIIONAL PROVE: p q (p q) (q p) Set up a truth table A LOGIC REMINDER: a hypothesis and conclusion are not required to have related subject matter.

2.3 VALID AND INVALID ARGUMENS An argument is a sequence of statements. All but the final statement are called premises. he last statement is called the conclusion and is usually preceded by A valid argument means the ORM is valid. irst we locate the premises and the conclusion(s). Next we create an appropriate ruth able. ind the critical rows. All premises are, then the conclusion(s) must be true. We will confirm that the following valid arguments: MODUS PONENS (method of affirming) p q p q MODUS OLLENS (method of denying) p q q p DISJUNCIVE SYLLOGISM p q p q q p p q

HYPOHEICAL SYLLOGISM ( or transitive property of implication) p q q r p r p q r p q q r p r ALLACIES Vague or ambiguous premises Begging the question (assuming what is to be proven) Jumping to a conclusion without grounds Converse error Inverse error Converse Error and Inverse Error hese look like MODUS PONENS & MODUS OLLENS

CONRADICION RULE: the heart of proof by contradiction If an assumption leads to a contradiction, then that assumption must be false. p c c Knights and Knaves (Raymond Smullyan, pg. 60) Knights always tell the truth. Knaves always lie. A says: B is a knight. B says: A and I are opposite types. What are A and B? Okay, assume A is a knight.(always tells the truth) A says: B is a knight. B is a knight. B says: A and I are opposite types. if B is a knight then he tells the truth. Contradition. hey cannot both be knights and be of opposite types. Okay, assume A is a knave (always lies). A says: B is a knight. B is a knave. B says: A and I are opposite types. opposite types. Not telling the truth, so they aren t of hey are both Knaves.

Summary of Rules of Inference (pg. 61-Valid Argument orms) 2.4 Application: DIGIAL LOGIC GAES (tutorial videos here is a link to Simple Circuits) and Boolean Algebra Boolean Expressions corresponding to Circuits 2.5 Application: NUMBER SYSEMS AND CIRCUI ADDIION Subtraction (we will not cover Circuits for Computer Addition 61-63) wo s Complement and the Computer Representation of Negative Integers Computer Addition with Negative Integers Hexadecimal Notation-Conversions Representation of loating Point Numbers: IEEE