We last time we began introducing equivalency laws.

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

CSC Discrete Math I, Spring Propositional Logic

2.2: Logical Equivalence: The Laws of Logic

Compound Propositions

CSC165 Mathematical Expression and Reasoning for Computer Science

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

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

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

Propositional Equivalence

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

Recitation Week 3. Taylor Spangler. January 23, 2012

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

CS 486: Lecture 2, Thursday, Jan 22, 2009

Equivalence and Implication

The Logic of Compound Statements cont.

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

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

Solutions to Homework I (1.1)

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

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

CISC-102 Winter 2016 Lecture 17

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

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

AMTH140 Lecture 8. Symbolic Logic

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Boolean Logic. CS 231 Dianna Xu

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

Truth-Functional Logic

Tautologies, Contradictions, and Contingencies

Proofs. Joe Patten August 10, 2018

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

1.1 Statements and Compound Statements

PROPOSITIONAL CALCULUS

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

The least element is 0000, the greatest element is 1111.

CISC-102 Fall 2018 Week 11

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

Chapter 4: Classical Propositional Semantics

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Chapter 1, Section 1.1 Propositional Logic

Logic, Sets, and Proofs

CSE 20: Discrete Mathematics

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

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

software design & management Gachon University Chulyun Kim

Chapter 1: Formal Logic

EECS 1028 M: Discrete Mathematics for Engineers

1.3 Propositional Equivalences

Propositional Logic. Spring Propositional Logic Spring / 32

Logic: Propositional Logic (Part I)

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

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

Learning Goals of CS245 Logic and Computation

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

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

CSE 20 DISCRETE MATH WINTER

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

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

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

Definition 2. Conjunction of p and q

Math.3336: Discrete Mathematics. Propositional Equivalences

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.

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

Propositional natural deduction

Chapter 1 Elementary Logic

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

DISCRETE STRUCTURES WEEK5 LECTURE1

Propositional logic ( ): Review from Mat 1348

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

CSE 20 DISCRETE MATH WINTER

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


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

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

Unit 2: Logic and Reasoning. start of unit

Logic and Propositional Calculus

Section 1.1: Logical Form and Logical Equivalence

Introduction to Decision Sciences Lecture 2

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

02 Propositional Logic

Introduction to Sets and Logic (MATH 1190)

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

Logic and Truth Tables

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Lecture 02: Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic

UNIT-I: Propositional Logic

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

Discrete Mathematics and Its Applications

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

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

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Packet #1: Logic & Proofs. Applied Discrete Mathematics

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

Propositional Logic and Semantics

1.1 Language and Logic

MAT2345 Discrete Math

Transcription:

Monday, January 14 MAD2104 Discrete Math 1 Course website: www/mathfsuedu/~wooland/mad2104 Today we will continue in Course Notes Chapter 22 We last time we began introducing equivalency laws Today we will eventually continue with that, but first we will get sidetracked with a topic for tomorrow s quiz (we began this topic on Friday): Disjunctive Normal Form Along with your quiz in recitation tomorrow, you also have an online quiz, due by 11:59 pm tomorrow See the announcement on Canvas for details

Disjunctive Normal Form (DNF) Toward the end of Section 2, Chapter 2 of the course notes, we are introduced to two methods for representing any compound statement in a canonical or standard form These two structures are called the disjunctive normal form (DNF) and the conjunctive normal form In this course, we will omit discussion of conjunctive normal form, and focus on disjunctive normal form

(This page was covered on Friday) First, two preliminary definitions: literal, minterm A literal is a logic variable, or the negation of a logic variable Examples: A minterm in two variables (p, q) is a conjunction in which a literal of each variable appears exactly once, with the p literal first Examples and are minterms in two variables, but and are not minterms

(This page was covered on Friday) Likewise, a minterm in three variables (p, q, r) is a conjunction in which a literal of each of the three variables appears one time, with the p literal first, the q literal second, and the r literal third Examples p q r and p q r are minterms in three variables Example p q r r p q is a properly formatted minterm in three variables, but is formatted incorrectly Minterms in four variables, five variables, and so on, are defined similarly Important: this context (writing minterms) is the only case in which we will not use grouping symbols when we write a compound statement having more than one binary operator

Disjunctive Normal Form Any well-formed symbolic statement s, in n variables, is equivalent to exactly one properly formatted statement formed by the disjunction of minterms in n variables This unique representation is called the Disjunctive Normal Form for the statement s EXAMPLES of Disjunctive Normal Form These examples a presented to show what disjunctive normal form is supposed to look like, in the case of a 2-variable or 3-variable proposition After this, we will show how to use a truth table to derive disjunctive normal form Proposition Disjunctive Normal Form q p ( p q) ( p q) ( p q) q ( p q) ( p q) ( p q) p ( p q) [q (r p)] (q r) (r p) ( r p) q (r p) q ( p q) ( p q) (p q r) (p q r) ( p q r) ( p q r) ( p q r) (p q r) (p q r) ( p q r) ( p q r) ( p q r) (p q r) (p q r) ( p q r) ( p q r) ( p q r)

Lexicographic ordering In defining minterm, we specified that within a minterm, the literals must be listed in a certain order If you examine the previous examples of more closely, you will see that in each case the minterms themselves are also arranged in a special way; this ordering of minterms, and of literals within the minterms, is known as lexicographic (or dictionary) ordering For a two-variable proposition, this means: 1 Any minterm with a p must be listed before a minterm with a p 2 If two minterms have the same first term literal, then a minterm with a q is listed before a minterm with a q For a three-variable proposition, this means: 1 Any minterm with a p must be listed before a minterm with a p 2 If two minterms have the same first term, then a minterm with a q is listed before a minterm with a q 3 If two minterms have the same first term and the same second term, then a minterm with an r is listed before a minterm with a r

EXAMPLE (lexicographic ordering) The five propositions below are all equivalent, but only one them is formatted properly according to lexicographic order Which one? A (p q r) (p q r) ( p q r) ( p q r) ( p q r) B (q p r) ( p r q) ( r q p) ( r p q) (q p r) C (p q r) (p q r) ( p q r) ( p q r) ( p q r) D (p q r) ( p q r) (p q r) ( p q r) ( p q r) E (q p r) ( r q p) (q p r) ( p r q) ( r p q) Note: the correct answer is the disjunctive normal form for the proposition r ( q p)

Use a truth table to derive disjunctive normal form In this course, we will focus on writing the Disjunctive Normal Form for statements in two or three variables This is easy to do, using a truth table The disjunctive normal form for a compound proposition s is derived from the truth table rows in which s is true Each row in which s is true contributes one minterm to the DNF If we set up the truth table in the standard way, then the lexicographic ordering is automatic EXAMPLE We will use a truth table to derive the disjunctive normal form for r ( q p)

Now, we return to Friday s topic: EQUIVALENCY LAWS Last week we introduced the following equivalency laws: DeMorgan's Laws Double Negation Law Implication Law Contrapositive Law Negation of Implication Law (p q) p q (p q) p q ( p) p p q p q p q q p (p q) p q

There are several other laws for logical equivalence that are analogous to, and have the same names as, familiar properties from algebra: Identity Laws Commutative Laws Associative Laws Distributive Laws

EXAMPLE Use equivalency laws to prove p (q r) (r p) (p q) The proof should be formatted as a sequence of equivalencies Do not skip or combine steps in the proof Justify each step

Constructing a formal equivalency proof Suppose r, s, are compound propositions When we write a formal proof of the equivalency r s, the proof will be formatted in this way: r p 1 (L 1 ) p 2 (L 2 ) p 3 (L 3 ) p n (L n ) s (L n+1 ) where r p 1 because of equivalency law L 1, p 1 p 2 because of equivalency law L 2, and so on In summary: Your formal proof should be a sequence of equivalencies, each of which is justified by the application of an equivalency law

Counterexamples and disproof To disprove a claim of equivalence (that is, to show that a proposed equivalence is false), we find a counterexample In this case, counterexample is an assignment of truth values to variables that causes the two propositions to have opposite truth values EXAMPLE Find a counterexample to show that a conditional p q is not equivalent to its converse q p EXAMPLE Find a counterexample to show that (p q) is not equivalent to p q

EXAMPLE Decide whether the following claim is true or false: (p q) r p (q r) A True B False If the claim is true, write the proof If the claim is false, provide a counterexample

EXAMPLE Decide whether the following claim is true or false: p (q r) q (p r) A True B False If the claim is true, write the proof If the claim is false, provide a counterexample

One last batch The following equivalence laws are especially helpful for piecing together the details needed for some equivalence proofs Tautology law Contradiction law Domination laws Idempotent laws Absorption laws Biconditional equivalency