Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Propositional Equivalences
CSE 311: Foundations of Computing Fall 2013 Lecture 3: Logic and Boolean algebra.
Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
CS128 – Discrete Mathematics for Computer Science
Logic 1 Statements and Logical Operators. Logic Propositional Calculus – Using statements to build arguments – Arguments are based on statements or propositions.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Introduction to Logic Logical Form: general rules
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Discussion #10 1/16 Discussion #10 Logical Equivalences.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Adapted from Discrete Math
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Propositional Equivalences
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Tautologies, contradictions, contingencies
Reading: Chapter 4 (44-59) from the text book
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Thinking Mathematically
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
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.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
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.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
3/6/20161 Let’s get started with... Logic !. 3/6/20162 Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Chapter 1 Logic and proofs
Introduction to Logic © 2008 Pearson Addison-Wesley.
2. The Logic of Compound Statements Summary
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 01/23/17
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
Discrete Mathematics Logic.
Thinking Mathematically
Truth Tables and Equivalent Statements
Citra Noviyasari, S.Si, MT
Logical Equivalence of Propositions
(CSC 102) Discrete Structures Lecture 2.
Discrete Mathematics Lecture # 2.
Mathematics for Computing
Chapter 8 Logic Topics
Propositional Equivalences
Information Technology Department
Propositional Equivalence (§1.2)
CS201: Data Structures and Discrete Mathematics I
Propositional Equivalences
CSE 311 Foundations of Computing I
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Logic.
Foundations of Discrete Mathematics
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
CS201: Data Structures and Discrete Mathematics I
Concepts of Computation
Presentation transcript:

Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete mathematics With Applications Third Edition By Susanna S. Epp

Symbolic Logic The main purpose of logic is to build the thinking methods. The main purpose of logic is to build the thinking methods. Provide rules,techniques, for making decision in an argument, validating a deduction. Provide rules,techniques, for making decision in an argument, validating a deduction. In classical logic, only phrases, assertions with one truth value are allowed: TRUE or FALSE, without ambiguity In classical logic, only phrases, assertions with one truth value are allowed: TRUE or FALSE, without ambiguity Such boolean assertions are called propositions. Such boolean assertions are called propositions.

Symbolic Logic A proposition is a statement that is either true or false. A proposition is a statement that is either true or false. The purpose of propositional logic is to provide complex construction of rules, from anonymous propositions called propositional variables The purpose of propositional logic is to provide complex construction of rules, from anonymous propositions called propositional variables If p is a proposition,the negation of p, denoted by ¬p, is a proposition which means " it is false that". Then if p is true, ¬p is false, and if p is false, ¬p is true. If p is a proposition,the negation of p, denoted by ¬p, is a proposition which means " it is false that". Then if p is true, ¬p is false, and if p is false, ¬p is true.

Symbolic Logic A proposition consisting of only a single propositional variable or single constant (true or false) is called an atomic proposition. A proposition consisting of only a single propositional variable or single constant (true or false) is called an atomic proposition. All nonatomic propositions are called compound propositions. All compound propositions contain at least one logical connective. All nonatomic propositions are called compound propositions. All compound propositions contain at least one logical connective.

Symbolic Logic If p and q are propositions, the conjunction of p and q is the proposition " p and q” denoted by p  q. If p and q are propositions, the conjunction of p and q is the proposition " p and q” denoted by p  q. The proposition p  q is true if p and q are both true, and false otherwise; this is describe by the following truth table: The proposition p  q is true if p and q are both true, and false otherwise; this is describe by the following truth table: pq pqpqpqpq

Symbolic Logic The disjunction of p and q is the proposition " p or q” denoted by p  q. The disjunction of p and q is the proposition " p or q” denoted by p  q. The proposition p  q is true if at least one of the two propositions p and p is true, and false when p and q are both false; this is described by the following truth table: The proposition p  q is true if at least one of the two propositions p and p is true, and false when p and q are both false; this is described by the following truth table: pq pqpqpqpq

Symbolic Logic By combining,¬, ,  we can build compound propositions and construct their truth tables. By combining,¬, ,  we can build compound propositions and construct their truth tables. Truth table for: (p  q )  ¬r Truth table for: (p  q )  ¬r

pqr p  q ¬r¬r¬r¬r (p  q )  ¬r

Logical equivalence Two statements are logically equivalent if they have equivalent truth tables. Two statements are logically equivalent if they have equivalent truth tables. The symbol for Logical equivalence is  The symbol for Logical equivalence is  Example: p    Example: p  q  q  p PQ p  q q  p

Double negative property The negation of the negation of a statement is logically equivalent to the statement The negation of the negation of a statement is logically equivalent to the statement ¬(¬p)  p ¬(¬p)  p p ¬p¬p¬p¬p ¬(¬p)

Showing nonequivalence Show that the statement forms ¬(p  q) and ¬p  ¬q are not logically equivalent. Show that the statement forms ¬(p  q) and ¬p  ¬q are not logically equivalent. pq ¬p¬p¬p¬p ¬q¬q¬q¬q pqpqpqpq ¬(p  q) ¬p¬q¬p¬q¬p¬q¬p¬q

De Morgan’s laws The negation of a conjunction of two statements is logically equivalent to the disjunction of their negations. The negation of a conjunction of two statements is logically equivalent to the disjunction of their negations. ¬(p  q)  ¬p  ¬q ¬(p  q)  ¬p  ¬q The negation of the disjunction of two statements is logically equivalent to the conjunction of their negation. The negation of the disjunction of two statements is logically equivalent to the conjunction of their negation. ¬(p  q)  ¬p  ¬q ¬(p  q)  ¬p  ¬q

pq ¬p¬p¬p¬p ¬q¬q¬q¬q pqpqpqpq ¬(p  q) ¬p  ¬q De Morgan’s laws

pq ¬p¬p¬p¬p ¬q¬q¬q¬q pqpqpqpq ¬(p  q) ¬p¬q¬p¬q¬p¬q¬p¬q De Morgan’s laws

Tautologies and Contradiction A tautology is a statement form that is always true regardless of the truth values of individual statements substituted for its statement variables. A tautology is a statement form that is always true regardless of the truth values of individual statements substituted for its statement variables. A contradiction is a statement form that is always false regardless of the truth values of individual statements substituted for its statement variables. A contradiction is a statement form that is always false regardless of the truth values of individual statements substituted for its statement variables.

Tautologies and Contradiction p ¬p¬p¬p¬p p¬pp¬pp¬pp¬p p¬pp¬pp¬pp¬p Tautology Contradiction

Logical Equivalences Given any statement variables p, q, and r, a tautology t and a contradiction c the following logical equivalences hold. Given any statement variables p, q, and r, a tautology t and a contradiction c the following logical equivalences hold. 1. Commutative law p  q  q  p p  q  q  p 2. Associative law (p  q)  r  p  (q  r ) (p  q)  r  p  (q  r ) 3. Distributive law p  (q  r)  (p  q)  (p  r ) p  (q  r)  (p  q)  (p  r ) 4. Identity p  t  pp  c  p

Logical Equivalences 5. Negation laws p  ¬p  t p  ¬p  c 6. Double negative law ¬ (¬ p)  p 7. Idempotent pp p pp ppp p pp ppp p pp ppp p pp p 8. Universal bounds laws pt t pc cpt t pc cpt t pc cpt t pc c 9. De Morgan’s laws ¬(p  q)  ¬p  ¬q¬(p  q)  ¬p  ¬q

Logical Equivalences 10. Absorption laws p  (p  q)  p p  (p  q)  p 11. Negations of t and c ¬t  c¬c  t¬t  c¬c  t¬t  c¬c  t¬t  c¬c  t

Simplifying statements Verify the equivalence Verify the equivalence ¬(¬p  q)  (p  q)  p ¬(¬p  q)  (p  q)  p By De Morgan’s By De Morgan’s  (¬(¬p)  ¬q)  (p  q)  (¬(¬p)  ¬q)  (p  q) By double negative law By double negative law  (p  ¬q)  (p  q)  (p  ¬q)  (p  q) By distributive law By distributive law  p  (¬q  q)  p  (¬q  q) By negation law By negation law  p  c  p  c By identity law By identity law  p  p

Simplifying statements Verify the equivalence Verify the equivalence ¬(p  ¬q)  (¬p  ¬ q)  ¬p ¬(p  ¬q)  (¬p  ¬ q)  ¬p

Simplify the following expressions. State the rule you are using at each stage.  ((  p  q)  (  p  q))  (p  q)  ((  p  q)  (  p  q))  (p  q)  (  (  p  q)  (  p  q))  (p  q) De Morgan’s law  (  (  )p  q)  (  (  )p  (  )q))  (p  q)De Morgan’s law  (p  q)  (p  q)  (p  q)Double negative law  p  (  q  q)  (p  q)Distributive laws  (p  t)  (p  q)Negation laws  p  (p  q)Universal bounds laws  pq pq pq pq