230 likes | 811 Views
Symbolic Logic. 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.
E N D
Symbolic Logic • 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 buildthe thinking methods. • Provide rules,techniques, for makingdecision in an argument,validating a deduction. • Inclassical logic, only phrases , assertions with one truthvalue are allowed: TRUE or FALSE, without ambiguity • Such boolean assertions are called propositions.
Symbolic Logic • A proposition is a statement that is either true orfalse. • The purpose of propositionallogic is to provide complex construction of rules, from anonymouspropositions calledpropositional variables • If p is a proposition ,the negation of p, denoted by ¬p, is a proposition which means " itis false that". Then if p is true , ¬p is false, andif p is false , ¬p is true.
Symbolic Logic • A propositionconsisting of only a single propositional variable or singleconstant (true or false) is called an atomic proposition. • All nonatomic propositions are called compoundpropositions. All compound propositions contain at least onelogical connective.
Symbolic Logic • If p and q are propositions, the conjunction of pand q is the proposition " p and q” denoted by pq. • The proposition pq is true if p and q areboth true, and false otherwise; this is describe by the followingtruth table:
Symbolic Logic • The disjunction of pand q is the proposition " p or q” denoted by pq. • The proposition pq is true if at least one ofthe two propositions p and p is true, and false when p and q areboth false; this is described by thefollowing truth table:
Symbolic Logic • By combining,¬,, we can buildcompound propositions and construct their truth tables. • Truth table for: (pq )¬r
Logical equivalence • Two statements are logically equivalent if they have equivalent truth tables. • The symbol for Logical equivalence is • Example: p q q p
Double negative property • The negation of the negation of a statement is logically equivalent to the statement • ¬(¬p) p
Showing nonequivalence • Show that the statement forms ¬(pq) and ¬p¬q are not logically equivalent.
De Morgan’s laws • The negation of a conjunction of two statements is logically equivalent to the disjunction of their negations. • ¬(pq) ¬p ¬q • The negation of the disjunction of two statements is logically equivalent to the conjunction of their negation. • ¬(p q) ¬p ¬q
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 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 Tautology Contradiction
Logical Equivalences • Given any statement variables p, q, and r, a tautology t and a contradiction c the following logical equivalences hold. • Commutative law pq qp p q q p • Associative law (pq)r p (qr ) (pq)r p(qr ) • Distributive law p(qr)(pq)(pr ) p(q r)(pq) (pr ) • Identity p t p p c p
Logical Equivalences • Negation laws p¬p t p ¬p c • Double negative law ¬ (¬ p)p • Idempotent pp p pp p • Universal bounds laws pt t pc c • De Morgan’s laws ¬(pq) ¬p ¬q ¬(p q) ¬p ¬q
Logical Equivalences • Absorption laws p(pq) p p (pq) p • Negations of t and c ¬t c¬c t
Simplifying statements • Verify the equivalence • ¬(¬pq)(p q) p • By De Morgan’s • (¬(¬p)¬q)(p q) • By double negative law • (p¬q)(p q) • By distributive law • p(¬qq) • By negation law • pc • By identity law • p
Simplifying statements • Verify the equivalence • ¬(p¬q)(¬p¬q) ¬p
Simplify the following expressions. State the rule you are using at each stage. ((pq) (pq))(pq) ( (pq) (pq))(pq) De Morgan’s law ( ()pq)( ()p()q))(pq) De Morgan’s law (pq)(pq)(pq) Double negative law • p (qq)(pq) Distributive laws • (pt )(pq) Negation laws • p(pq) Universal bounds laws pq