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

Similar documents
COM S 330 Homework 02 Solutions. Type your answers to the following questions and submit a PDF file to Blackboard. One page per problem.

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

CSC Discrete Math I, Spring Propositional Logic

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

COMP Intro to Logic for Computer Scientists. Lecture 3

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

The Logic of Compound Statements cont.

Announcements CompSci 102 Discrete Math for Computer Science

1.3 Propositional Equivalences

Math.3336: Discrete Mathematics. Propositional Equivalences

Introduction to Sets and Logic (MATH 1190)

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

Propositional Logic: Semantics

Definition 2. Conjunction of p and q

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

Tautologies, Contradictions, and Contingencies

Discrete Mathematics and Its Applications

Math.3336: Discrete Mathematics. Applications of Propositional Logic

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

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

Propositional Logic 1

Propositional Equivalence

2.2: Logical Equivalence: The Laws of Logic

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

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

Section 1.1: Logical Form and Logical Equivalence

Compound Propositions

Homework assignment 1: Solutions

Homework 2: Solutions

PHIL12A Section answers, 16 February 2011

The Foundations: Logic and Proofs. Part I

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

1.1 Language and Logic

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

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

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

ICS141: Discrete Mathematics for Computer Science I

Chapter 1, Section 1.1 Propositional Logic

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

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

EECS 1028 M: Discrete Mathematics for Engineers

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

UNIT-I: Propositional Logic

Introduction to Decision Sciences Lecture 2

PROPOSITIONAL CALCULUS

AMTH140 Lecture 8. Symbolic Logic

1.1 Language and Logic

Reading: EC 1.3. Peter J. Haas. INFO 150 Fall Semester 2018

CSE 20: Discrete Mathematics

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

Logic: Propositional Logic (Part I)

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

Propositional Language - Semantics

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

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

Solutions to Homework I (1.1)

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

CS 220: Discrete Structures and their Applications. Propositional Logic Sections in zybooks

MAT 101 Exam 2 Logic (Part I) Fall Circle the correct answer on the following multiple-choice questions.

Propositional logic ( ): Review from Mat 1348

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

Proving logical equivalencies (1.3)

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

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

Propositional Logic: Equivalence

Mathematical Reasoning (Part I) 1

Propositional Logic Not Enough

CITS2211 Discrete Structures. Propositional Logic

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Equivalence and Implication

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form

Propositional Logic Logical Implication (4A) Young W. Lim 4/11/17

Discrete Structures of Computer Science Propositional Logic I

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

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

software design & management Gachon University Chulyun Kim

Examples. Example (1) Example (2) Let x, y be two variables, and denote statements p : x = 0 and q : y = 1. Solve. x 2 + (y 1) 2 = 0.

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

Boolean Logic. CS 231 Dianna Xu

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

LOGIC & PROPOSITIONAL EQUIVALENCE

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

Chapter 1: Formal Logic

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

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Truth-Functional Logic

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

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

THE LOGIC OF COMPOUND STATEMENTS

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

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logic and Proofs. (A brief summary)

The statement calculus and logic

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

We last time we began introducing equivalency laws.

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Transcription:

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: I met my ex-girlfriend today and either she grew taller or I got shorter. p = I met my ex-girlfriend today. q = She grew taller. r = I got shorter. p (q r) p q r would mean something else: I got shorter or I met my ex-girlfriend today and she grew taller p (q r) would also mean something else...

COT3100: Propositional Equivalences 3 EXAMPLE. Translate the following sentence into a logical expression: HW. You get an A only if you score at least 50% on the midterm or you submit a p = You get an A. q = You score at least 50% on the midterm. r = You submit a HW. p (q r) (q r) p would mean something else: You get an A if you score at least 50% on the midterm or you submit a HW.

COT3100: Propositional Equivalences 4 2 Solving Puzzles using Propositional Logic EXAMPLE. An island has two types of inhabitants: knights, who always tell the truth, and knaves, who always lie. You meet two people from this island: Alice and Bob. Alice says Bob is a knight and Bob says The two of us are opposite types. Let p= Alice is a knight. p= Alice is a knave. Let q= Bob is a knight. q= Bob is a knave. Alice said q and Bob said p q. Island Rule: Alice is a knight iff what she said is true and Bob is a knight iff what he said is true. (p q) (q (p q))

COT3100: Propositional Equivalences 5 Let p= Alice is a knight. p= Alice is a knave. Let q= Bob is a knight. q= Bob is a knave. Alice said q and Bob said p q. Island Rule: Alice is a knight iff what she said is true and Bob is a knight iff what he said is true. (p q) (q (p q)) Alice said Bob said Island rule p q p q p q (p q) (q (p q)) T T F F F F T F F T T F F T T F T F F F T T F T Hence, Both Alice and Bob are knaves.

COT3100: Propositional Equivalences 6 3 Tautology and Contradiction A compound statetement that is always true is called a tautology. A compound statetement that is always false is called a contradiction. A compound proposition that is neither a tautology nor a contradiction is called a contingency

COT3100: Propositional Equivalences 7 4 Equivalence The compound propositions p and q are called logically equivalent, denoted by p q, if p q is a tautology. Remark: The symbol is not a logical connective and p q is not a compound proposition but rather is the statement that p q is a tautology. Use truth tables to determine logical equivalences. Two compound propositions are equivalent if their columns in the truth table are the same.

COT3100: Propositional Equivalences 8 5 Proving De Morgan Laws EXAMPLE. State the negation of I am a doctor or a lawyer. I am not a doctor and I am not a lawyer.

COT3100: Propositional Equivalences 9 EXAMPLE. State the negation of She is rich and beautiful. She is either not rich or not beautiful.

COT3100: Propositional Equivalences 10 6 Equivalence Example EXAMPLE. If you are a freshman you can get a free ticket Either you are not a freshman or you can get a free ticket.

COT3100: Propositional Equivalences 11 7 Distributive Law p (q r) (p q) (p r) p (q r) (p q) (p r)

COT3100: Propositional Equivalences 12 Equivalence p T p p F p p T T p F F p p p p p p ( p) p p q q p p q q p Name Identity Laws Domination Laws Idempotent Laws Double Negation Law Commutative Laws

COT3100: Propositional Equivalences 13 Equivalence p (q r) (p q) r p (q r) (p q) r p (q r) (p q) (p r) p (q r) (p q) (p r) (p q) p q (p q) p q p (p q) p p (p q) p p p T p p F Name Associative Laws Distributive Laws De Morgan Laws Absorption Laws Negation Laws

COT3100: Propositional Equivalences 14

COT3100: Propositional Equivalences 15

COT3100: Propositional Equivalences 16 8 Constructing new equivalences EXAMPLE. Show that (p q) and p q are logically equivalent. (p q) ( p q) (See page 10 of these slides) ( p) q (De Morgan s Law) p q (Double negation)

COT3100: Propositional Equivalences 17 9 Proving a Tautology EXAMPLE. Show that (p q) (p q) is a tautology. (p q) (p q) (p q) (p q) (See page 10 of these slides) ( p q) (p q) (De Morgan s Law) ( p q p) q (Associative Law) ( p p q) q (Commutative Law) ( p p) ( q q) (Associative Law) T T (Negation Law) T