Mathematical Logic
Mathematical Logic
• A statement that has a truth value . Which of the following are propositions?
The Washington State flag is red It snowed in Whistler, BC on January 4, 2008. Hillary
Clinton won the democratic caucus in Iowa Space aliens landed in Roswell, New Mexico
Ron Paul would be a great president
Turn your homework in on Wednesday Why are we taking this class? If n is an integer greater
than two, then the equation an + bn = ch has no solutions in non-zero integers a, b, and c.
Every even integer greater than two can be written as the sum of two primes
This statement is false - Propositional variables: p, q, r, s, ... - Truth values: T for
true, F for false
Mathematical Logic Conjunction
Let P and Qbe statements. The conjunction of Pand Q,
written P Q , is the statement formed by joining statements
P and Q using the word "and" . The statement P^ Q is true
if both p and q are true;
otherwise P Q is false
• Truth Table for Conjunction:
I PAO
F I FT F
F
F
L
E
L
T
E
Mathematical Logic
o Disjunction
• Let P and Q be statements. The disjunction of P and
Q, written PVQ, is the statement formed by joining
statements P and Q using the word "or"
• The statement P v Q is true if at least one of the
statements P and Q is true; otherwise PV Q is false
• The symbol v is read "or" . Truth Table for Disjunction:
Р
Q
Pyo
F
т
LEE
ELE
FE
Mathematical Logic
Implication
Let P and Q be statements. The statement "if P then Q" is called
an implication or condition.
The implication "if P then Q" is written P→
• Pis called the hypothesis, Q is called the conclusion Truth Table
for Implication:
PO
o
LLEE
LELE
ELEE
Mathematical Logic
Implication
Let P: Today is Sunday and Q: I will wash the car. .
P→Q:
If today is Sunday, then I will wash the car
• The converse of this implication is written Q→ P
If I wash the car, then today is Sunday
• The inverse of this implication is P →-Q
If today is not Sunday, then I will not wash the car
• The contrapositive of this implication is -Q -P
If I do not wash the car, then today is not Sunday
Mathematical Logic Biimplication
Let P and Q be statements. The statement "Pif and only if
Q" is called the biimplication or biconditional of P and Q
The biconditional "P if and only if Q" is written P Q "Pif and
only if Q" Truth Table for the Biconditional:
LL
P
Q PAQ FT F TFF
т
T
F
E
10
Mathematical Logic
o Precedence of logical
connectives is:
o
highest
0 A second highest
o v third highest o fourth highest o fifth highest
11
o Logically Implies
• A statement formula A is said to logically imply a
statement formula B if the statement formula A B is a tautology. If
A logically implies B, then symbolically we
write A + B o Logically Equivalent
A statement formula A is said to be logically equivalent to a
statement formula B if the statement formula
A + B is a tautology. If A is logically equivalent to B,
then symbolically we write A B
14
Fundamental Logical Equivalences
De Morgan's Laws
PVO [(-) A(-01
PAQ] - [(-) V(-01 Distributivity (Vover ) [P (QAR)] - [(PVO) (PVR)] [(PAO) VR]
[(PVR) AO VR)] Law of Contradiction [PA(P)] of Law of Addition [P (PVO) →T
"Am aleinpotentiam algehac ekment (or which
Logical Equivalences and Rules of Inference for Implication and the Biconditional
16
o Universal Quantifier
• Let P(x) be a predicate and let D be the domain of
the discourse. The universal quantification of P(x) is the
statement:
o For all x, P(x) or o For every x, P(x) o The symbol is read
as "for all and every"
Vx, P(x) or Vxe D, P(x) o Two-place predicate: Vx, Vy,
P(x, y)
Quantifiers and First Order Logic
o Existential Quantifier
• Let P(x) be a predicate and let D be the universe of
discourse. The existential quantification of P(x) is the statement:
o There exists x, P(x) - The symbol 3 is read as "there
exists" o 3xED, P(x) or 3x, P(x) o Bound Variable
The variable appearing in:Vx, P(x) or 3x, P(x)
Quantifiers and First Order Logic