Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.

Slides:



Advertisements
Similar presentations
Truth Tables Presented by: Tutorial Services The Math Center.
Advertisements

1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Chapter 9: Boolean Algebra
EE1J2 – Discrete Maths Lecture 5
Discussion #10 1/16 Discussion #10 Logical Equivalences.
Truth Tables for Negation, Conjunction, and Disjunction.
3.2 – Truth Tables and Equivalent Statements
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
Propositions and Truth Tables
The Foundations: Logic and Proofs
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Review I Rosen , 3.1 Know your definitions!
MATH 102 Contemporary Math S. Rook
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
Normal Forms, Tautology and Satisfiability 2/3/121.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
(CSC 102) Lecture 3 Discrete Structures. Previous Lecture Summary Logical Equivalences. De Morgan’s laws. Tautologies and Contradictions. Laws of Logic.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
The Foundations Logic and Proofs by raedRASHEED 2014.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Boolean Algebra. Logical Statements A proposition that may or may not be true:  Today is Monday  Today is Sunday  It is raining.
Chapter 7 Logic, Sets, and Counting
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
How do I show that two compound propositions are logically equivalent?
Thinking Mathematically
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
CS203 Discrete Mathematical Structures
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
Assign Yourself and Do Now Thursday, January 10, 2013.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
2. The Logic of Compound Statements Summary
AND.
Truth Tables and Equivalent Statements
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
Discussion #10 Logical Equivalences
Chapter 8 Logic Topics
Information Technology Department
Propositional Equivalences
Lecture 2: Propositional Equivalences
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 2: Propositional Logic
Presentation transcript:

Normal or Canonical Forms Rosen 1.2 (exercises)

Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive or (p   q)  (  p  q)  - Biconditional p  q  (p  q)  (q  p)  (  p  q)  (  q  p) Do we need all these?

Functionally Complete A set of logical operators is called functionally complete if every compound proposition is logically equivalent to a compound proposition involving only this set of logical operators. , , and  form a functionally complete set of operators.

Are  (p  (  p  q)) and (  p   q) equivalent?  (p  (  p  q))   p   (  p  q)DeMorgan  p  (  p  q)DeMorgan  p  (p  q)Double Negation  (  p  p)  (  p  q)Distribution  (p  p)  (  p  q)Commutative  F  (  p  q)And Contradiction  (  p  q)  F Commutative  (  p  q) Identity

Are  (p  (  p  q)) and (  p   q) equivalent? Even though both are expressed with only , , and , it is still hard to tell without doing a proof. What we need is a unique representation of a compound proposition that uses , , and . This unique representation is called the Disjunctive Normal Form.

Disjunctive Normal Form A disjunction of conjunctions where every variable or its negation is represented once in each conjunction (a minterm) –each minterm appears only once Example: DNF of p  q is (p  q)  (  p  q).

pqp  q (p  q)  (  p  q) TTFF TFTT FTTT FFFF Truth Table

Method to construct DNF Construct a truth table for the proposition. Use the rows of the truth table where the proposition is True to construct minterms –If the variable is true, use the propositional variable in the minterm –If a variable is false, use the negation of the variable in the minterm Connect the minterms with  ’s.

How to find the DNF of (p  q)  r pqr (p  q)  r(p  q)  r TTTTFF TTFTTT TFTTFF TFFTTT FTTTFF FTFTTT F FTFFT FFFFTT There are five sets of input that make the statement true. Therefore there are five minterms.

pqr (p  q)  r(p  q)  r TTTTFF TTFTTT TFTTFF TFFTTT FTTTFF FTFTTT FFTFFT FFFFTT From the truth table we can set up the DNF (p  q)  r  (p  q  r)  (p  q  r)  (  p  q  r)  (  p  q  r)  (  p  q  r)

Can we show that just  and  form a set of functionally complete operands ? It is sufficient to show that p  q can be written in terms of  and . Then using DNF, we can write every compound proposition in terms of  and . (p  q)  (  p   q)Double negation (2)   (  p  q )DeMorgan

pqp  q TTT TFF FTT FFT The DNF of p  q is (p  q)  (  p  q)  (  p   q). Then, applying DeMorgan’s Law, we get that this is equivalent to  [  (p  q)   (  p  q)   (  p   q)]. Find an expression equivalent to p  q that uses only conjunctions and negations. How many minterms in the DNF?

Now can we write an equivalent statement to p  q that uses only disjunctions and negations? pqpq  [  (p  q)   (  p  q)   (  p   q)]From Before  [(  p  q)  (  p  q)  (  p   q)]DeMorgan  [(  p  q)  (p  q)  (p  q)]Doub. Neg.  [  (  p  q)   (p  q)   (p  q)]DeMorgan