Professional Documents
Culture Documents
2.prop - Logic 2 Kode Dosen
2.prop - Logic 2 Kode Dosen
MZI
School of Computing
Telkom University
SoC Tel-U
September-October 2023
Contents
Interpretation
Interpretation
An interpretation of a propositional formula is an assignment of truth value for
that formula. The formula can be a compound proposition. For an atomic
proposition, an interpretation is simply a mapping from a propositional variable to
its truth. We denote the interpretation with following symbol: I, I1 , I2 , . . . .
Interpretation
Interpretation
An interpretation of a propositional formula is an assignment of truth value for
that formula. The formula can be a compound proposition. For an atomic
proposition, an interpretation is simply a mapping from a propositional variable to
its truth. We denote the interpretation with following symbol: I, I1 , I2 , . . . .
Interpretation
Interpretation
An interpretation of a propositional formula is an assignment of truth value for
that formula. The formula can be a compound proposition. For an atomic
proposition, an interpretation is simply a mapping from a propositional variable to
its truth. We denote the interpretation with following symbol: I, I1 , I2 , . . . .
Interpretation
Interpretation
An interpretation of a propositional formula is an assignment of truth value for
that formula. The formula can be a compound proposition. For an atomic
proposition, an interpretation is simply a mapping from a propositional variable to
its truth. We denote the interpretation with following symbol: I, I1 , I2 , . . . .
Interpretation
Interpretation
An interpretation of a propositional formula is an assignment of truth value for
that formula. The formula can be a compound proposition. For an atomic
proposition, an interpretation is simply a mapping from a propositional variable to
its truth. We denote the interpretation with following symbol: I, I1 , I2 , . . . .
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) =
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
=
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
=
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
=
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
=
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F =
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F =
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F = T.
I (p ^ q ! r) =
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F = T.
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F = T.
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F = T.
Example
Suppose A is the formula p ^ q ! r and I is an interpretation de…ned as:
I (p) = F, I (q) = T, and I (r) = F. The interpretation of A under I, i.e., I (A)
is determined as follows:
I (A) = I (p ^ q ! r)
= I ((p ^ q) ! r)
= I (p ^ q) ! I (r)
= (I (p) ^ I (q)) ! I (r)
= (F ^ T) ! F = F ! F = T.
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T!F=
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
4 J ((p ! q) _ (p ! r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
4 J ((p ! q) _ (p ! r)) = J (p ! q) _ J (p ! r) =
(J (p) ! J (q)) _ (J (p) ! J (r)) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
4 J ((p ! q) _ (p ! r)) = J (p ! q) _ J (p ! r) =
(J (p) ! J (q)) _ (J (p) ! J (r)) = (F ! F) _ (F ! T) =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
4 J ((p ! q) _ (p ! r)) = J (p ! q) _ J (p ! r) =
(J (p) ! J (q)) _ (J (p) ! J (r)) = (F ! F) _ (F ! T) = T _ T =
Exercise
Suppose I and J are two interpretations de…ned for atomic propositions as
follows: I (p) = T, I (q) = F, I (r) = F, J (p) = F, J (q) = F, J (r) = T.
Determine the interpretation of p ! q _ r and (p ! q) _ (p ! r) under I and J .
Solution:
1 I (p ! q _ r) = I (p ! (q _ r)) = I (p) ! (I (q) _ I (r)) = T ! (F _ F) =
T ! F = F.
2 J (p ! q _ r) = J (p ! (q _ r)) = J (p) ! (J (q) _ J (r)) = F !
(F _ T) = F ! T = T.
3 I ((p ! q) _ (p ! r)) = I (p ! q) _ I (p ! r) =
(I (p) ! I (q)) _ (I (p) ! I (r)) = (T ! F) _ (T ! F) = F _ F = F.
4 J ((p ! q) _ (p ! r)) = J (p ! q) _ J (p ! r) =
(J (p) ! J (q)) _ (J (p) ! J (r)) = (F ! F) _ (F ! T) = T _ T = T.
where k = 1; 2; 3; 4.
Problem
where k = 1; 2; 3; 4.
Problem
How many lines are there in a truth table for verifying the truth of proposition with
1 3 di¤erent atomic propositions;
where k = 1; 2; 3; 4.
Problem
How many lines are there in a truth table for verifying the truth of proposition with
1 3 di¤erent atomic propositions;
2 4 di¤erent atomic propositions;
where k = 1; 2; 3; 4.
Problem
How many lines are there in a truth table for verifying the truth of proposition with
1 3 di¤erent atomic propositions;
2 4 di¤erent atomic propositions;
3 n di¤erent atomic propositions.
MZI (SoC Tel-U) Propositional Logic 2 September-October 2023 11 / 43
Propositional Formulas Based on Their Semantics
Contents
De…nition
Let A be a propositional formula:
De…nition
Let A be a propositional formula:
1 A is valid i¤ A is always true (T) for every interpretation applied to A. In
this case, A is also called a tautology.
De…nition
Let A be a propositional formula:
1 A is valid i¤ A is always true (T) for every interpretation applied to A. In
this case, A is also called a tautology.
2 A is satis…able i¤ there exists at least one interpretation I which makes A is
true (T).
De…nition
Let A be a propositional formula:
1 A is valid i¤ A is always true (T) for every interpretation applied to A. In
this case, A is also called a tautology.
2 A is satis…able i¤ there exists at least one interpretation I which makes A is
true (T).
3 A is contradictory/ unsatis…able i¤ A is always false (F) for every
interpretation applied to A. In this case, A is also called a contradiction.
De…nition
Let A be a propositional formula:
1 A is valid i¤ A is always true (T) for every interpretation applied to A. In
this case, A is also called a tautology.
2 A is satis…able i¤ there exists at least one interpretation I which makes A is
true (T).
3 A is contradictory/ unsatis…able i¤ A is always false (F) for every
interpretation applied to A. In this case, A is also called a contradiction.
4 A is a contingency i¤ A is neither valid nor contradictory.
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution:
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p q) _ (p :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :q p q p :q A
T T F F T T
T F T T F T
F T F T F T
F F T F T T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution:
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T F T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T F T F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T F T F F
F F
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
T T F F T F F
T F F T T F F
F T T F T F F
F F T
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ (:p ^ :q) is valid, satis…able, or
contradictory.
Solution: using truth table, consider that
p q :p :q p_q :p ^ :q A
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
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) =
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) =
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) = F.
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) = F.
4 Since there is an interpretation which makes A is false, then A
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) = F.
4 Since there is an interpretation which makes A is false, then A is not valid.
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) = F.
4 Since there is an interpretation which makes A is false, then A is not valid.
5 Since A is satis…able, then A is not a contradiction.
Exercise
Verify whether formula A de…ned as (p _ q) ^ :r is satis…able. Is A valid? Is A a
contradiction? Is A a contingency?
Solution:
1 Observe that for I (p) = I (q) = T and I (r) = F, then I ((p _ q) ^ :r) = T.
2 Since there is an interpretation which makes A is true, then A is satis…able.
3 Observe that for I (p) = I (q) = F and I (r) = T, then I ((p _ q) ^ :r) = F.
4 Since there is an interpretation which makes A is false, then A is not valid.
5 Since A is satis…able, then A is not a contradiction.
6 Since A is neither valid nor contradictory, then A is a contingency.
Remark
In order to determine whether a formula A is satis…able or not, we do not always
need to write down its truth table.
Problem
Is every valid formula also satis…able?
Problem
Given a formula A := : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s), to determine
whether A is valid, do we need to construct its truth table?
Problem
Given a formula A := : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s), to determine
whether A is valid, do we need to construct its truth table?
Problem
Given a formula A := : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s), to determine
whether A is valid, do we need to construct its truth table?
Truth table method is not always e¢ cient. The above formula A requires
24 = 16 rows in its truth table.
Problem
Given a formula A := : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s), to determine
whether A is valid, do we need to construct its truth table?
Truth table method is not always e¢ cient. The above formula A requires
24 = 16 rows in its truth table.
We can prove the validity of a formula using falsi…cation or contradiction
method.
Problem
Given a formula A := : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s), to determine
whether A is valid, do we need to construct its truth table?
Truth table method is not always e¢ cient. The above formula A requires
24 = 16 rows in its truth table.
We can prove the validity of a formula using falsi…cation or contradiction
method.
In this method, we …rst assume that the formula is not valid, and then we try
to derive that this assumption leads to contradictory statements (and
therefore, our previous assumption is false).
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) = F, which makes
I (:p _ :q) =
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) = F, which makes
I (:p _ :q) = F.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) = F, which makes
I (:p _ :q) = F. This result contradicts to the previous I (:p _ :q) = T in
step (3).
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) = F, which makes
I (:p _ :q) = F. This result contradicts to the previous I (:p _ :q) = T in
step (3).
6 Accordingly, our assumption that (:p _ :q) ! : (p ^ q) is not valid was
wrong.
Example
We want to prove that (:p _ :q) ! : (p ^ q) is valid by contradiction method.
1 Suppose that (:p _ :q) ! : (p ^ q) is not valid, then there exists an
interpretation I such that I ((:p _ :q) ! : (p ^ q)) = F.
2 For convenience, we write A := :p _ :q and B := : (p ^ q). Our formula
can be rewritten as A ! B.
3 Recall that I (A ! B) = F precisely when I (A) = T and I (B) = F,
therefore we obtain I (:p _ :q) = T and I (: (p ^ q)) = F.
4 Since I (: (p ^ q)) = F, then I (p ^ q) = T, therefore it must be the case
that I (p) = T and I (q) = T.
5 From step (4), we get I (:p) = F and I (:q) = F, which makes
I (:p _ :q) = F. This result contradicts to the previous I (:p _ :q) = T in
step (3).
6 Accordingly, our assumption that (:p _ :q) ! : (p ^ q) is not valid was
wrong.
7 Therefore, (:p _ :q) ! : (p ^ q) is a valid formula.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid,
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) =
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that (p ! q) $ (:p _ q) is valid without using its truth table.
Solution:
Suppose that (p ! q) $ (:p _ q) is not valid, then there exists an interpretation
I such that I ((p ! q) $ (:p _ q)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid,
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) =
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Show that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is valid without using its
truth table.
Solution:
Suppose that : (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s) is not valid, then there
exists an interpretation I such that
I (: (p ^ q ^ r ^ s) ! (:p _ :q _ :r _ :s)) = F.
Exercise
Determine whether each of these formulas is valid, satis…able, a contradiction, or
a contingency.
1 (p ! q _ p ! r) $ (p ! q ^ r)
2 (p ^ q _ :r) ! (: (p $ r) ^ :q)
3 ((:p ^ q) ^ (r ! p) ^ (r ! s) ^ (s ! t)) ! t
4 ((p ! q) ^ (:p ! r) ^ (r ! s)) ! (:q ! s)
5 ((p ! q) ^ (r ! s) ^ (:p ! :s)) ! (r ! q)
6 p q ! (p ^ :q) _ (:p ^ q)
7 p q ! (p _ q) ^ (:p ^ :q)
8 p q ! : (p $ q)
9 : (p $ q) $ (p ^ :q) _ (:p ^ q)
10 (p _ q) ^ (:p ^ :q) $ (p ^ :q) _ (:p ^ q)
Contents
In order to not prove each formula individually, we can investigate the formula
schema A _ :A instead.
In order to not prove each formula individually, we can investigate the formula
schema A _ :A instead.
In order to not prove each formula individually, we can investigate the formula
schema A _ :A instead.
In order to not prove each formula individually, we can investigate the formula
schema A _ :A instead.
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is,
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A =
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A = p ^ q and B =
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A = p ^ q and B = r ^ s, and for the last formula
A=
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A = p ^ q and B = r ^ s, and for the last formula
A = p ^ q ^ r and B =
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A = p ^ q and B = r ^ s, and for the last formula
A = p ^ q ^ r and B = s ^ t ^ u.
Exercise
Show that following formulas are valid:
1 : (p ^ q) ! :p _ :q
2 : (p ^ q ^ r ^ s) ! : (p ^ q) _ : (r ^ s)
3 : (p ^ q ^ r ^ s ^ t ^ u) ! : (p ^ q ^ r) _ : (s ^ t ^ u).
Solution:
Observe that each of these formulas can be considered as formulas with identical
schema, that is, : (A ^ B) ! :A _ :B. For the …rst formula, A = p and B = q,
for the second formula A = p ^ q and B = r ^ s, and for the last formula
A = p ^ q ^ r and B = s ^ t ^ u.
Accordingly, to prove that each of these formulas is valid, it is su¢ cient to prove
that formula schema : (A ^ B) ! :A _ :B is valid. The prove can be carried
out using contradiction method.
De…nition
Suppose A and B are two propositional formulas.
Formula A and B are (logically) equivalent if the formula
A$B
A!B
Exercise
Show that ((p ! q) ^ p) ) q.
Solution:
Exercise
Show that ((p ! q) ^ p) ) q.
Exercise
Show that ((p ! q) ^ p) ) q.
Exercise
Show that ((p ! q) ^ p) ) q.
Exercise
Show that ((p ! q) ^ :q) ) :p.
Solution:
Exercise
Show that ((p ! q) ^ :q) ) :p.
Solution: we will show that ((p ! q) ^ :q) ! :p is a tautology by its truth table,
observe that
p q :p :q p!q (p ! q) ^ :q ((p ! q) ^ :q) ! :p
T T
Exercise
Show that ((p ! q) ^ :q) ) :p.
Solution: we will show that ((p ! q) ^ :q) ! :p is a tautology by its truth table,
observe that
p q :p :q p!q (p ! q) ^ :q ((p ! q) ^ :q) ! :p
T T F F T F T
T F F T F F T
F T T F T F T
F F T T T T T
Exercise
Show that ((p ! q) ^ :q) ) :p.
Solution: we will show that ((p ! q) ^ :q) ! :p is a tautology by its truth table,
observe that
p q :p :q p!q (p ! q) ^ :q ((p ! q) ^ :q) ! :p
T T F F T F T
T F F T F F T
F T T F T F T
F F T T T T T
Exercise
Show that p ! q :p _ q.
Solution:
Exercise
Show that p ! q :p _ q.
Solution: we will show that (p ! q) $ (:p _ q) is a tautology by its truth table,
observe that
p q :p p!q :p _ q (p ! q) $ (:p _ q)
T T
Exercise
Show that p ! q :p _ q.
Solution: we will show that (p ! q) $ (:p _ q) is a tautology by its truth table,
observe that
p q :p p!q :p _ q (p ! q) $ (:p _ q)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
Exercise
Show that p ! q :p _ q.
Solution: we will show that (p ! q) $ (:p _ q) is a tautology by its truth table,
observe that
p q :p p!q :p _ q (p ! q) $ (:p _ q)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
Note that p ! q and :p _ q have identical truth value in every row of the above
truth table.
Exercise
Show that : (p ^ q) :p _ :q.
Solution:
Exercise
Show that : (p ^ q) :p _ :q.
Exercise
Show that : (p ^ q) :p _ :q.
Exercise
Show that : (p ^ q) :p _ :q.
Note that : (p ^ q) and :p _ :q have identical truth value in every row of the
above truth table. The logical equivalence : (p ^ q) :p _ :q is also known as
De Morgan’s law.
Contents
(p ^ q) ^ r p ^ (q ^ r) Associative laws
(p _ q) _ r p _ (q _ r)
p _ (q ^ r) (p _ q) ^ (p _ r) Distributive laws
p ^ (q _ r) (p ^ q) _ (p ^ r)
: (p ^ q) :p _ :q De Morgan’s laws
: (p _ q) :p ^ :q
p _ (p ^ q) p Absorption laws
p ^ (p _ q) p
p _ :p T Negation laws
p ^ :p F
p!q :p _ q
p!q :q ! :p
: (p ! q) p ^ :q
(p ! q) ^ (p ! r) p ! (q ^ r)
(p ! r) ^ (q ! r) (p ^ q) ! r
(p ! r) _ (q ! r) (p _ q) ! r
(p ! q) _ (p ! r) p ! (q _ r)
p$q (p ! q) ^ (q ! p)
p$q :p $ :q
p$q (p ^ q) _ (:p ^ :q)
: (p $ q) p $ :q
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
: (p ^ q) _ r (equivalence A ! B :A _ B)
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
: (p ^ q) _ r (equivalence A ! B :A _ B)
(:p _ :q) _ r (De Morgan’s law)
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
: (p ^ q) _ r (equivalence A ! B :A _ B)
(:p _ :q) _ r (De Morgan’s law)
:p _ (:q _ r) (associative law for _)
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
: (p ^ q) _ r (equivalence A ! B :A _ B)
(:p _ :q) _ r (De Morgan’s law)
:p _ (:q _ r) (associative law for _)
:p _ (q ! r) (equivalence :A _ B A ! B)
Exercise
Show that p ^ q ! r p ! (q ! r) using the laws of logical equivalences.
Solution:
p^q !r (p ^ q) ! r (precedences of ^ and !)
: (p ^ q) _ r (equivalence A ! B :A _ B)
(:p _ :q) _ r (De Morgan’s law)
:p _ (:q _ r) (associative law for _)
:p _ (q ! r) (equivalence :A _ B A ! B)
p ! (q ! r) (equivalence :A _ B A ! B)
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
: (p _ (:p ^ q))
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that : (p _ (:p ^ q)) and :p ^ :q are equivalent using the laws of logical
equivalences.
Solution:
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q)
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q) : (p ^ q) _ (p _ q) (equivalence A ! B :A _ B)
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q) : (p ^ q) _ (p _ q) (equivalence A ! B :A _ B)
(:p _ :q) _ (p _ q) (De Morgan’s law)
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q) : (p ^ q) _ (p _ q) (equivalence A ! B :A _ B)
(:p _ :q) _ (p _ q) (De Morgan’s law)
(:p _ p) _ (:q _ q) (commutative and
associative law for _)
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q) : (p ^ q) _ (p _ q) (equivalence A ! B :A _ B)
(:p _ :q) _ (p _ q) (De Morgan’s law)
(:p _ p) _ (:q _ q) (commutative and
associative law for _)
T_T (commutative and
negation law for _)
Exercise
Show that (p ^ q) ! (p _ q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ^ q) ! (p _ q) is equivalent to T.
(p ^ q) ! (p _ q) : (p ^ q) _ (p _ q) (equivalence A ! B :A _ B)
(:p _ :q) _ (p _ q) (De Morgan’s law)
(:p _ p) _ (:q _ q) (commutative and
associative law for _)
T_T (commutative and
negation law for _)
T (domination law)
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ! q ^ r) ! (p ! q) is equivalent to T.
(p ! q ^ r) ! (p ! q)
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ! q ^ r) ! (p ! q) is equivalent to T.
(p ! q ^ r) ! (p ! q)
: (p ! q ^ r) _ (p ! q) (equivalence A ! B :A _ B)
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ! q ^ r) ! (p ! q) is equivalent to T.
(p ! q ^ r) ! (p ! q)
: (p ! q ^ r) _ (p ! q) (equivalence A ! B :A _ B)
: (:p _ (q ^ r)) _ (:p _ q) (equivalence A ! B :A _ B)
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ! q ^ r) ! (p ! q) is equivalent to T.
(p ! q ^ r) ! (p ! q)
: (p ! q ^ r) _ (p ! q) (equivalence A ! B :A _ B)
: (:p _ (q ^ r)) _ (:p _ q) (equivalence A ! B :A _ B)
(: (:p) ^ : (q ^ r)) _ (:p _ q) (De Morgan’s law)
Exercise
Show that (p ! q ^ r) ! (p ! q) is valid using the laws of logical equivalences.
Solution:
We must show that (p ! q ^ r) ! (p ! q) is equivalent to T.
(p ! q ^ r) ! (p ! q)
: (p ! q ^ r) _ (p ! q) (equivalence A ! B :A _ B)
: (:p _ (q ^ r)) _ (:p _ q) (equivalence A ! B :A _ B)
(: (:p) ^ : (q ^ r)) _ (:p _ q) (De Morgan’s law)
(p ^ (:q _ :r)) _ (:p _ q) (De Morgan’s law
and double negation law)