Cpe Dma Lec06
Cpe Dma Lec06
Lecture 06
PROPOSITIONAL
CALCULUS
CPE-DMA
Engr. Christopher B. Escarez, PCpE
OUTLINE
LOGIC AND PROPOSITIONAL CALCULUS
Introduction
Proposition and Compound Statements
Basic Logical Operations
Propositions and Truth Tables
Tautologies and Contradictions
Logic Equivalence
Algebra of Propositions
Conditional and Biconditional Statements
Arguments
Propositional Functions, Quantifiers
Negation of Quantified Statements
INTRODUCTION
LOGIC
Proof
PROPOSITIONAL CALCULUS
Logic using a formal system
Finite set of symbols
Grammar (syntax)
Set of rules
PROPOSITIONS AND COMPOUND STATEMENTS
PROPOSITION (Statement)
Declarative statement which is TRUE or FALSE
but not both
(a) Ice floats in water. (b) China is in Europe.
(c) 2 + 2 = 4 (d) 2 + 2 = 5
(e) Where are you going? (f ) Do your homework.
Only the first four are propositions
(a) and (c) are TRUE, but (b) and (d) are FALSE
PROPOSITIONS AND COMPOUND STATEMENTS
CONTRADICTIONS
Propositions whose truth values in the truth table
are all FALSE
TAUTOLOGIES ANG CONTRADICTIONS
TAUTOLOGIES CONTRADICTIONS
FALLACY
CONDITIONAL AND BICONDITIONAL STATEMENTS
CONDITIONAL STATEMENTS
p→q p only if q
false only when the first part p is true
and the second part q is false
BICONDITIONAL STATEMENTS
p↔q p if and only if q
true whenever p and q have the same
truth values and false otherwise
PROPOSITIONAL FUNCTIONS, QUANTIFIERS
PROPOSITIONAL FUNCTION
Function p(x) that has a truth value whenever an element
a ∈ A is substituted for the variable x
EXAMPLE
Let p(x) be “x + 2 > 7” True for all integers > 5
“x + 5 < 3” Not true for any integer in N
“x + 5 > 1” True for every element in N
“x + 1 = 2” True if and only if x is 1
PROPOSITIONAL FUNCTIONS, QUANTIFIERS
UNIVERSAL QUANTIFIER ( ∀ )
For every x in A, p(x) is a true statement
( ∀ x ∈ A)p(x) or ( ∀ x ∈ A)p(x)
EXAMPLE
Proposition ( ∀ n ∈ N)(n + 4 > 3)
True since {n | n + 4 > 3} = {1, 2, 3,...} = N.
( ∀ n ∈ N)(n + 2 > 8)
False since {n | n + 2 > 8} = {7, 8, 9,...} ≠ N.
PROPOSITIONAL FUNCTIONS, QUANTIFIERS
EXISTENTIAL QUANTIFIER ( ∃ )
There exist an x in A such that p(x) is true
Tp = {x | x ∈ A, p(x)} ≠ Ø
EXAMPLE
Proposition ( ∃ n ∈ N)(n + 4 < 7)
True since {n | n + 4 < 7} = {1, 2} ≠ Ø.
( ∃ n ∈ N)(n + 6 < 4)
False since {n | n + 6 < 4} = Ø.
NEGATION OF QUANTIFIED STATEMENTS
DEMORGAN’S LAW
¬( ∀ x ∈ A)p(x) (∃ x ∈ A)¬p(x)
It is not true that, for all a ∈ A, p(a) is true.
There exists an a ∈ A such that p(a) is false .
1)(p ∨ ¬q)∧ ¬r
2)¬(¬a ∧ b) ∨ (c ∧ d)