Predicate_Calculus__Chapter4_
Predicate_Calculus__Chapter4_
Structures
Course Code: MA 201
Instructor: Divya.Jain
Chapter 4
Mathematical Logic
Mathematical Logic
:
tion or statement, is any declarative
which is either true (T) or false (F).
T or F as the truth value of the statement.
Example 1 Propositions
The sentence "2+2 = 4" is a statement,
since it can be either true or false.
value is T.
truth value is F.
p q p q
¬(p q)
T T T F
T F F T
F T F T
F F F T
Example: Construct the truth table for ¬(p q) (¬r)
Solution:
Here, there are three variables: p, q and r. Thus we start with
three initial columns showing all eight possibilities:
Tautology Contradiction
p q ~p ~q p q (~p) (~q) q)
(p [( ~p) ( ~q)]
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T F
OK
Remarks:
1. In common usage we sometimes say that two statement are
contradictory. By this we mean that their conjunction is a
contradiction: they cannot both be true. For example, the
statements p q and (~p) (~q) are contradictory, since
we've just shown that their conjunction is a contradiction. In
other words, no matter what the truth values of p and q, it is
never true that both p q and (~p) (~q) are true at the
same time.
2. Note that most statements are neither tautologies nor
contradictions, as in the first three examples in this section.
Sometimes we can "recognize" a tautology or contradiction
immediately. Roughly speaking, tautologies are statements
that are "obviously true" while contradictions are "obviously
false".
$3.3 LOGICAL EQUIVALENCE
Definition: Two propositions P(p,q,…..) and Q(p,q,…..) are
said to be logically or tautologically equivalent or simply
equivalent or equal, denoted by
P(p,q,…………..)
If they have identical truth tables.
Q(p,q,…………..)
For Example:
Consider P(p,q,……) = ¬( p q) and Q(p,q,……..) = (¬p) (¬q)
then verify that truth table for P and truth table for Q are same.
T T T F
T T F F F
T F T F
T F F T F
F T T F
F T T F F
F F F T
Showing that P Q, which is DeMorgan’s law.
F F T T T
$. 4.Other logical Operators:
4.1. Implication or Conditional Statement:
Definition: A conditional statement is obtained by using the
connective “ If ……..then …….” which is called an implication.
Example: Let p and q are two given propositions.
By using the above connective we get “ If p then q”
which can be denoted by p q. (read as p implies q).
In the implication p q, p is called hypothesis or antecedent
and q is called the conclusion or consequent.
p q p q
T T T
T F F
F T T
F F T
4.2. Double Implication or Biconditional statements:
( Ai : i I ) {x : i I , x Ai }
Logic - Quantifiers
– Existential Quantification of a proposition:
– If there exists an element x in the universe of discourse
such that P(x) is true i.e. there is AN x, or at least ONE
x, such that P(x) is true, x P(x) is true and
is called Existential Quantifier
– If P(x) is a propositional function defined on a set, then
Tp {x : x A, p( x)}
If {x : p ( x)} thenxp( x)istrue
otherwise it is false
• For example, if P(x) was the statement x > 89, and your
data set included test scores of 65, 72, 85, 88, and 95 what
would be the existential quantification of P(x)?
– TRUE!
Predicate calculus