Professional Documents
Culture Documents
Proposistional Logic
Proposistional Logic
Proposistional Logic
Presented at
CKPCET, SURAT, INDIA.
Quantifiers
Predicate Formulas
Free and Bound Variables
13 References
Introduction:-
Definition (Statements)
All the declarative statements to which it is possible to assign one and
only one of the two possible truth values are called statements. These
statements which do not contain any of the connectives are called atomic
(primary, primitive) statements.
Illustrations:
1 Canada is a country.
2 Moscow is a capital of Spain.
3 This statement is false.
4 1 + 101 = 110.
5 Close the door.
6 Toronto is an old city.
7 Man will reach Mars by 1980.
Capital letters A, B, C, . . . , P, Q, . . . with the exception of T and F as well
as subscripted capital letters to represent statements in symbolic logic.
Dr. M. S. Joshi DMS April 27, 2021 4 / 61
Connectives
Connectives
Definition
The statements that we consider initially are simple statements called
atomic or primary statements. New statements that are formed from these
atomic statements with the help of sentential connectives are called
molecular or compound statements.
Negation:
P: London is a city.
P ¬P
T F
F T
Conjunction:
P Q P ∧Q
T F F
F T F
F F F
T T T
Illustration:-
1 Roses are red and violets are blue.
2 He opened the book and started to read.
3 Jack and Jill are cousins.
Disjunction:
P Q P ∨Q
T F T
F T T
F F F
T T T
Illustration:-
1 I shall watch the game on television or go to the game.
2 There is something wrong with the bulb or with the wiring.
3 Twenty or thirty animals were killed in the fire today.
Example
Construct the truth table for the statement formula P ∨ ¬Q.
P Q ¬Q P ∨ ¬Q
T F T T
F T F F
F F T T
T T F T
Example
Construct the truth table for the statement formula P ∧ ¬P .
The truth table is given by,
P ¬P P ∧ ¬P
T F F
F T F
Example
Construct the truth table for the statement formula (P ∨ Q) ∨ ¬P .
P Q P ∨Q ¬P (P ∨ Q) ∨ ¬P
T F T F T
F T T T T
T T T F T
F F F T T
Dr. M. S. Joshi DMS April 27, 2021 12 / 61
Conditional and Bi-conditional statements
Conditional statement:
P Q P →Q
T F F
F T T
F F T
T T T
Example
Express in English the statement P → Q where
Example
Write in symbolic form the statement
If either Jerry takes calculus or Ken takes sociology, then Larry will take
English.
(J ∨ K) → L.
Example
Write in symbolic form the statement
F → C.
P Q P →Q Q→P (P → Q) ∧ (Q → P )
T T T T T
T F F T F
F T T F F
F F T T T
P Q P Q
T F F
F T F
F F T
T T T
Example
Construct the truth table for ¬(P ∧ Q) (¬P ∨ ¬Q).
Definition (Tautology)
A statement formula which is true regardless of the truth value of the
statements which replace in it is called universally valid formula or
tautology or a logical truth.
Definition (Contradiction)
A statement formula which is false regardless of the truth values of the
statements which replaces the variables in it is called a contradiction.
Remarks:
1 The negation of a contradiction is tautology.
2 A statement formula which is tautology is identically true and a
formula which is a contradiction is identically false.
3 Conjunction of two tautologies is a tautology.
Illustrations:
1 ¬¬P is equivalent to P.
2 P ∨ P is equivalent to P.
3 (P ∧ ¬P ) ∨ Q is equivalent of Q.
4 P ∨ ¬P is equivalent to Q ∨ ¬Q.
Remark: Equivalence of two statements A and B can be displayed as
A ⇐⇒ B or ”A” ⇐⇒ ”B”.
Example
Prove that (P → Q) ⇐⇒ (¬P ∨ Q).
P Q P →Q ¬P ¬P ∨ Q (P → Q) (¬P ∨ Q)
T T T F T T
T F F F F T
F T T T T T
F F T T T T
Example
Show that P → (Q → R) ⇐⇒ P → (¬Q ∨ R) ⇐⇒ (P ∧ Q) → R.
LHS = P → (Q → R)
⇐⇒ ¬P ∨ (¬Q ∨ R)
⇐⇒ (¬P ∨ ¬Q) ∨ R
⇐⇒ ¬(P ∧ Q) ∨ R
⇐⇒ (P ∧ Q) → R.
Equivalent Formulas
1 P ∨ P = P, P ∧ P = P . (Idempotent Laws)
2 (P ∨ Q) ∨ R ⇐⇒ P ∨ (Q ∨ R), (P ∧ Q) ∧ R ⇐⇒ P ∧ (Q ∧ R).
(Associative Laws)
3 P ∨ Q ⇐⇒ Q ∨ P, P ∧ Q ⇐⇒ Q ∧ P (Commutative Law)
4 P ∨ (Q ∧ R) ⇐⇒ (P ∨ Q) ∧ (P ∨ R), P ∧ (Q ∨ R) ⇐⇒
(P ∧ Q) ∨ (P ∧ R) (Distributive Law)
5 P ∨ F ⇐⇒ P, P ∧ T ⇐⇒ P
6 P ∨ T ⇐⇒ T, P ∧ F ⇐⇒ F
7 P ∨ ¬P ⇐⇒ T, P ∧ ¬P ⇐⇒ F
8 P ∨ (P ∧ Q) ⇐⇒ P, P ∧ (P ∨ Q) ⇐⇒ P (Absorption Law)
9 ¬(P ∨ Q) ⇐⇒ ¬P ∧ ¬Q, ¬(P ∧ Q) ⇐⇒ ¬P ∨ ¬Q
(DeMorgan’s Law)
Example
Show that (¬P ∧ (¬Q ∧ R)) ∨ (Q ∧ R) ∨ (P ∧ R) ⇐⇒ R
Solution:
Example
Show that ((P ∨ Q) ∧ ¬(¬P ∧ (¬Q ∨ ¬R))) ∨ (¬P ∧ ¬Q) ∨ (¬P ∧ ¬R) is
a tautology.
Also,
(P ∨ Q) ∧ (P ∨ R) ∨ ¬((P ∨ Q) ∧ (P ∨ R))
Example
Write the duals of
(a) (P ∨ Q) ∧ R,
(b) (P ∧ Q) ∨ R
(c) ¬(P ∨ Q) ∧ (P ∨ ¬Q(Q ∧ ¬S)).
Expression Duals
(P ∨ Q) ∧ R (P ∧ Q) ∨ R
(P ∧ Q) ∨ R (P ∨ Q) ∧ R
¬(P ∨ Q) ∧ (P ∨ ¬Q(Q ∧ ¬S)) ¬(P ∧ Q) ∨ (P ∧ ¬Q(Q ∨ ¬S))
Theorem
Let A and A∗ be dual formulas and let P1 , P2 , . . . , Pn be all the atomic
variables that in A and A∗ . That is to say, we may write A as
A(P1 , P2 , . . . , Pn ) and A∗ as A∗ (P1 , P2 , . . . , Pn ). Then through the use of
De Morgans law
and
A(¬P1 , ¬P2 , . . . , ¬Pn ) ⇐⇒ ¬A∗ (P1 , P2 , . . . , Pn ) (3)
Example
Verify equivalence of if A(P, Q, R) = ¬P ∧ ¬(Q ∨ R).
Solution:
Theorem
Let P1 , P2 , . . . , Pn be all the atomic variables appearing in the formulas A
and B. Given that A ⇐⇒ B means ”A B” is a tautology, then the
following are also tautologies.
Example
Show that
(a) ¬(P ∧ Q) → (¬P ∨ (¬P ∨ Q)) ⇐⇒ (¬P ∨ Q)
(b) (P ∨ Q) ∧ (¬P ∧ (¬P ∧ Q)) ⇐⇒ (¬P ∧ Q)
Solution:
It follows that
Definition (Implications)
A statement A is said to tautologically imply a statement B and only if
A → B is a tautology. We shall denote this idea A ⇒ B which is read as
”A implies B”. Similarly, A ⇐⇒ B states that A and B are equivalent or
that A B is a tautology.
Theorem
If H1 , H2 , . . . , Hm and P imply Q, then H1 , H2 , . . . , Hm imply P → Q.
Proof.
From our assumption we have
H1 ∧ H2 ∧ . . . , ∧Hm ∧ P ⇒ Q (8)
H1 ∧ H2 ∧ . . . , ∧Hm ∧ P → Q (9)
The Predicates I
The Predicates II
M (x): ”x is man.
H(x): ”x is a mortal. ”
M (x) ∧ H(y): x is a man and y is a mortal.
G(x, y): x is taller than y.
From the basic simple statement functions M (x) and H(x) using the
logical connectives we can form another statements as
Quantifiers I
Quantifiers II
Quantifiers III
C(x) : x is clever.
R1 (x) : x is a real number.
R2 (x) : x is a rational.
Using the existence quantifier, we can expressed the above statements can
be expressed as,
(∃x)(M (x))
(∃x)(M (x) ∧ C(x))
(∃x)(R1 (x) ∧ R2 (x))
Example
Let
P (x) : x is a person.
F (x, y) : x is a father of y.
M (x, y) : x is a mother of y.
Write the predicate ”x is the father of the mother of y”.
Solution
We name a person z as the mother of y. We want to say that x is a father
of z and z is the mother of y.
Example
Symbolize the expression ”All the world loves a lover.”
Solution
First note that the quotation really means that everybody loves a lover.
Now let
P (x) : x is a person.
L(x) : x is a lover.
R(x, y) : x loves y.
The required expression is
Example
Symbolize the statement ”All men are giants”.
Solution
Define two statements as
(x)G(x)
Example
Symbolize the statement ”Given any positive integer, there is greater
positive integer” with and without using the set of positive integers as the
universe of discourse.
Solution
Define two statements as
(x)(∃y)G(y, x)
Example
Consider the predicate Q(x) : x is less than 5 and the statements (x)Q(x)
and (∃x)Q(x). If the universe of discourse is given by
1 E = {−1, 0, 1, 2, 4}
2 {3, −2, 7, 8, −2}
3 {15, 20, 24}
Find the truth values of the above statements.
Solution
The statement (x)Q(x) is true for universe of discourse (1) and false
for (2) and (3).
The statement (∃x)Q(x) is true for both (1) and (2) and false for (3).
Example
All cats are animals. Symbolize this statement.
Solution
This statement is true for any universe of discourse. Define two
statements as
Example
Some cats are black. Symbolize this statement.
Solution
Consider the universe of discourse as E = {Cuddle, Ginger, 0, 1}. and
define two statements as,
Definition
Let the universe of discourse be denoted by a finite set S given by,
S = {a1 , a2 , . . . . . . , an }, we have
Hence, from the above two equations De’ Morgans law can be stated as,
¬((x)A(x) ⇔ (∃x)¬A(x)
¬((∃x))A(x)) ⇔ (x)¬A(x)
Following are the four implications that are used in the the theory of
inference of predicate calculus and will allows us to remove or add
quantifiers during the course of the derivation.
1 Let A(x) be the predicate formula where x is particular object
variable of interest then,
References: