Unit 2 The Propositional Logic: Structure Page Nos
Unit 2 The Propositional Logic: Structure Page Nos
2.0 Introduction 21
2.1 Objectives 23
2.2 Logical Study of Valid and Sound Arguments 23
2.3 Non-Logical Operators 25
2.4 Syntax of Propositional Logic 26
2.5 Semantics/Meaning in Propositional Logic 27
2.6 Interpretations of Formulas 29
2.7 Validity and Inconsistency of Propositions 30
2.8 Equivalent forms in the Prepositional Logic (PL) 32
2.9 Normal Forms 33
2.10 Logical Deduction 35
2.11 Applications 37
2.12 Summary 38
2.13 Solutions/Answers 38
2.14 Further/Readings 43
2.0 INTRODUCTION
Symbolic logic may be thought of as a formal language for representing facts about
objects and relationships between objects of a problem domain alongwith a precise
inferencing mechanism for reasoning and deduction. An inferencing mechanism
derives the knowledge, which is not explicitly/directly available in the knowledge
base, but can be logically inferred from what is given in the knowledge base.
The reason why the subject-matter of the study is called Symbolic Logic is that
symbols are used to denote facts about objects of the domain and relationships
between these objects. Then the symbolic representations and not the original facts
and relationships are manipulated in order to make conclusions or to solve problems.
Also, we mentioned that a Symbolic Logic, apart from having other characteristics, is
a formal language. As a formal language, there must be clearly stated unambiguous
rules for defining various constituents or constructs, viz. alphabet set, words, phrases,
sentences etc. of the language and also for associating meaning to each of these
constituents.
The study of Symbolic Logic is significant, specially, for academic pursuits, in view
of the fact that it is not only descriptive (i.e., it tells how the human beings reason)
but it is also normative (i.e., it tells how the human beings should reason).
In this unit, we shall first study the simplest form of symbolic logic, viz, the
Propositional Logic (PL). In the next unit, we consider a more general form of logic
called the First-Order Predicate Logic (FOPL). Subsequently, we shall consider other
symbolic systems including Fuzzy systems and some Non-monotonic systems.
For a given declarative sentence, its being „True‟ or „False‟ is called its Truth-value.
Thus, truth-value of (i) above is False and that of (ii) is True.
On the other hand, none of the following sentences can be assigned a truth-value, and
hence none of these, is a statement or a proposition:
(i) Who was the first Prime Minister of India? (Interrogative sentence)
(ii) Please, give me that book. (Imperative sentence)
(iii) Ram must exercise regularly. (Imperative, rather Deontic)
(iv) Hurrah! We have won the trophy. (Exclamatory sentence)
The symbols, such as P, Q, and R, that are used to denote propositions, are called
atomic formulas, or atoms. As discussed earlier, in this case, the truth-value of P is
False, the truth-value of Q is True and the truth-value of R, though not known yet, is
exactly one of „True‟ or „False‟, depending on whether Ram is actually a Ph. D or
not.
At this stage, it may be noted that once symbols are used in place of given statements
in, say, English, then the propositional system, and, in general, a symbolic system is
aware only of symbolic representations, and the associated truth values. The system
operate only on these representations. And, except for possible final translation, is not
aware of the original statements, generally given in some natural language, say,
English.
We can build, from atoms, more complex propositions, sometimes called compound
propositions, by using logical connectives.
(i) Sun rises in the east and the sky is clear, and
(ii) If it is hot then it shall rain.
The logical connectives in the above two propositions are “and” and “if…then”. In the
propositional logic, five logical operators or connectives, viz., ~ (not), (and),
(or), (if… then), and (if and only if), are used. These five logical connectives can
be used to build compound propositions from given atomic formulas. More generally,
they can be used to construct more complicated compound propositions from
compound propositions by applying the connectives repeatedly. For example, if each
of the letters P, Q, C is used as a symbol for the corresponding statement, as follows:
2.1 OBJECTIVES
Valid Argument: A valid argument is one in which it would be contradictory for the
premises to be true but the conclusion false.
(This argument is invalid, because despite not having overslept, one may be late
because of some other engagements or lazyness.)
(i) If we are close to the top of Mt. Everest then we have magnificent view.
(ii) We are having a magnificent view.
Therefore,
(iii) We are the near the top of Mt. Everest.
(This argument is invalid, because, we may have a magnificent view even if we are not
close to the top of Mt. Everest. The two given statements do not falsify this claim)
We have already discussed invalidity of some arguments, but invalidity above was
based on our intuition. However, intuition may also lead us to incorrect conclusion.
To be sure about the validity of our argument, we need some formal method. In
Section 1.5, we discuss how a Truth table (a formal tool) can be used to establish the
validity/invalidity of an argument.
Sound Argument
We may note that, in the case of a valid argument, it is not required that the
premises/axioms or assumed statements must be True. The assumptions may not be
True, and still the argument may be valid. For example, the following argument is
valid, but its premises and conclusion both are false:
24
Example of Invalid Argument The Propositional
Logic
I (i) If you overslept, you are late.
(ii) you are late.
Therefore, you overslept.
II (i) If you are in Delhi, you are in India.
You are in India.
Therefore, you are in Delhi (invalid argument, though conclusion may be True)
(though the word and joins two words Ram & Mohan, but can not be equivalently
broken into two statements viz. (i) Ram is a friend (ii) Mohan is a friend)
(iii) Mohan drove a car to reach home, met an accident and got slightly injured.
(Here, the use of the word ‘and’ is not in a logical sense, but, it is in temporal sense of
‘and then’ because statement (iii) has different sense from the statement given in (iv)
below)
(iv) Mohan met an accident, got slightly injured and drove a car to reach home.
Thus from the above statements, it can be seen that the natural language word and
may have many senses, both logical and non-logical. Similarly, the words since,
hence and because are frequently used in arguments to establish some facts. But as
shown from the following two arguments, their use in logical arguments is risky in
the sense that some of the arguments involving any of these words may lead to
incorrect conclusions:
Argument (1): Using the word because, we get correct conclusion from
True statements.
Let
Q: Congress party and its allies commanded majority in Indian Parliament in the year
2006 (True statement)
Argument ( 2)
In the following using the word, because, we get incorrect/false conclusion from
True statements
Let
However to say
P because R, i.e., to say
Dr. Man Mohan Singe was Prime Minster of India in 2006, because Chirapoonji, a
town in north-east India, received maximum average rainfall in the world during
1901-2000.
is at least incorrect, if not ludicrous.
Thus from two True statements, P and R and by using connective „because‟, in this
case, the conclusion is incorrect.
Thus, by using connective because, in one argument we get a correct conclusion from
two True statements and, on the other hand, we get an incorrect conclusion from True
statements.
1. An atom is a wff.
2. If A is a wff, then (~A) is a wff.
3. If A and B are wffs, then each of (A B), (A B), (A B), and (A B) is a
wff.
4. Any wff is obtained only by applying the above rules.
From the above recursive definition of a wff it is not difficult to see that expression:
(( P ( Q ( ~ R))) S) is a wff; because , to begin with, each of P, Q , ( ~ R) and
S, by definitions is a wff. Then, by recursive application, the expression: (Q ( ~ R))
is a wff. Again, by another recursive application, the expression: (P (Q ( ~ R)))
is a wff. And, finally the expression given initially is a wff.
Further, it is easy to see that according to the recursive definition of a wff, each of the
expressions: (P (Q )) and (P ( Q R )) is not a wff.
For example: Let us be given the wff P Q ~ R without parenthesis. Then among
the operators appearing in wff, the operator „~‟ has highest priority. Therefore, ~ R is
replaced by (~R). The equivalent expression becomes P Q (~ R). Next, out of the
two operators viz „‟ and „‟, the operators „‟ has higher priority. Therefore, by
applying parentheses appropriately, the new expression becomes P (Q (~ R)).
Finally, only one operator is left. Hence the fully parenthesized expression becomes (P
(Q (~ R)))
Next, we define the rules of finding the truth value or meaning of a wff, when truth
values of the atoms appearing in the wff are known or given.
1. The wff ~ A is True when A is False, and ~ A is False when A is true. The wff
~ A is called the negation of A.
2. The wff (A B) is True if A and B are both True; otherwise, the wff A B is
False. The wff (A B) is called the conjunction of A and B.
3. The wff (A B) is true if at least one of A and B is True; otherwise, (A B) is
False. (A B) is called the disjunction of A and B.
4. The wff (A B) is False if A is True and B is False; otherwise, (A B) is True.
The wff (A B) is read as “If A, then B,” or “A implies B.” The symbol „‟ is
called implication.
5. The wff (A B) is True whenever A and B have the same truth values;
otherwise (A B) is False. The wff (A B) is read as “A if and only if B.”
Table 1.5
A B ~A (A B) (A B) (A B) (A B)
(i) T T F T T T T
(ii) T F F F T F F
(iii) F T T F T T F
(iv) F F T F F T T
This table, shall be used to evaluate the truth values of a wff in terms of the truth
values of the atoms occurring in the formula.
Now, we discuss the issue, raised in Section 1.2, of how to check validity/invalidity of
an argument through formal means.
27
Introduction to A.I Validity through Truth-Table.
S L SL ~L ~S
F F T T T
F T T F T
T F F T F
T T T F F
There is only one row, viz., first row, in which both the premises viz. S L and ~ L
are True. But in this case the conclusion represented by ~ S is also True. Hence, the
conclusion is valid.
S L (S L) ~ S ~L
F F T T T
F T T T F
T F F F T
T T T F F
The invalidity of the argument is established, because, for validity last column must
contain True in those rows for which all axioms/premises are True. But in the second
row both S L and ~ S are True but ~ L is False
Ex. 2: Let
P : He needs a doctor, Q : He needs a lawyer,
R : He has an accident, S : He is sick,
U : He is injured.
28
State the following formulas in English. The Propositional
Logic
a) (S P) (R Q) b) P (S U)
c) (P Q) R d) (P Q) (S U)
In order to find the truth value of a given formula G, the truth values for the atoms of
the formula are either given or assumed. The set of initially given/assumed values of
all the atomic formulas occurring in a formula say G, is called an interpretation of
the formula G. Suppose that A and B are two atoms and that the truth values of A and
B are T and F respectively. Then, according to third row of Table 1.5, when A is F
and B is T we find that the truth values of (~A), (A B),
(A B), (A B), and (A B) are T, F, T, T and F, respectively. By developing a
Truth-table of a(ny) formula, its truth value can be evaluated in terms of its
interpretation, i.e., in terms of the truth values associated with the constituent atoms.
Example
G : ((A B) (R (~ S))).
(Please note that the string, in this case G, before the symbol ‘:’, is the name of the
formula which is the name of the string of symbols after ‘:’. Thus, G is the name of the
formula ((A B) (R (~ S))).
The atoms in this formula are A, B, R and S. Suppose the truth values of A, B, R, and
S are given as T, F, T and T, respectively. Then (in the following and elsewhere also,
if there is no possibility of confusion, we use T for ‘True’ and F for ‘False’.)
(A B) is F since B is F;
(~S) is F since S is T;
(R (~ S)) is F since R is T and (~S) is F; and hence,
(A B) (R (~S)) is T since (A B) is F (and (R (~S)) is F, which
does not matter).
Note: In view of the fact that when ( A B) is F, the truth-value of
(A B) Any Formula
must be T and, hence, we need not compute the value of (R (~ S)).
Therefore, the formula G is T if A, B, R, and S are assigned truth values T, F, T and T,
respectively.
The above procedure may be repeated to find truth value of any formula from any
interpretation, i.e., from any assignment to the atomic formulas occurring in the given
formula.
29
Introduction to A.I
Table 1.6 Truth Table of (A B (R ( ~ S)
A B R S ~S (A B) (R (~S)) (A B) (R
( ~ S)
T T T T F T F F
T T T F T T T T
T T F T F T T T
T T F F T T F F
T F T T F F F T
T F T F T F T T
T F F T F F T T
T F F F T F F T
F T T T F F F T
F T T F T F T T
F T F T F F T T
F T F F T F F T
F F T T F F F T
F F T F T F T T
F F F T F F T T
F F F F T F F T
A table, such as given above, that displays the truth values of a formula G for all
possible assignments of truth values to atoms occurring in G is called a Truth table
of G.
NOTATION: If A1,….An are all the atoms in a formula, it may be more convenient to
represent an interpretation by a set (m1,….mn), where mi is either Ai or ~Ai. mi is
written as Ai if T is assigned to Ai. But mi is written as ~ Ai if F is assigned to Ai.
For example, the set {A, ~B, ~R,S} represents an interpretation of a formula in which
A, B, R, and S are the only atoms and which are, respectively, assigned T, F, F, and T.
We will use the notation throughout.
It may noted that in Section 1.2, we discussed the concept of valid Argument. Here,
we study formulas or propositions. Next, we shall consider wff that are true under
all possible interpretations and wff that are false under all possible interpretations.
Example
G : (((A B) A) B).
The formula G has 22 = 4 possible interpretations in view of the fact it has two atoms
viz A and B. It can be easily seen from the following table that the wff G is True
under all its interpretations. Such as a wff which is True under all interpretation is
called a valid formula (or a tautology).
30
Truth Table of (((A B) A) B) The Propositional
A B (A B) (A B) A ((A B) A) B Logic
T T T T T
T F F F T
F T T F T
F F T F T
G : ((A B) (A ~ B))
The truth table of the formula G given below shows that G is False under all its
interpretations. Such a formula which is False under all interpretations is called an
inconsistent formula (or a contradiction).
Definition: A formula is said to be valid if and only if it is true under all its
interpretations. A formula is said to be invalid if and only if it is not true under at
least one interpretation. A valid formula is also called a Tautology. A formula is
invalid if there is at least one interpretation for which the formula has a truth value
False.
31
Introduction to A.I Examples:
(i) A Valid Formula:
(a) Even True is a wff which is always True and, hence, True is a valid formula.
(b) G1: A (~A) is True for all its interpretations. As G1 has only one atom viz. A,
terefore, it has only two interpretations. Let one interpretation of G1 be : A is
True. But then G1 assumes the value (True (~ True)) = True. The other
interpretation of G1 is : A is False. Then G1 assumes the value (False ~ False) =
True.
(ii) Consistent (True for at least one interpretation) but not valid Formula (i.e. is
invalid, i.e., False for at least one interpretation):
(a) The simplest example of such a formula is the formula G2: A. Then, for the
assignment A as True, G2 is True. Therefore G2 is consistent. On the other
hand, the interpretation of G2 with A as False, makes G2 false. Therefore, G2:
A is not valid.
(b) Both G3 : A B and G4 : A B are consistent but not valid. Both G3 and G4
are True under the assignment A as True and B as True. On the other hand,
both are False under the interpretation A as False and B as False.
(iii) Invalid (False for at least one interpretation) but not inconsistent (not False
for all interpretations): Any one of the examples in (ii) above
(a) Even „False‟ is a wff; which is always False, and hence is inconsistent.
(b) G5 : A (~A) is False, for all interpretations of G5. Actually, there are only
two interpretations of G5. One is : A is True. The other is : A is False. In both
cases G5 is False.
It will be shown later that the proof of the validity or inconsistency of a formula is a
very important problem. In the propositional logic, since the number of interpretations
of a formula is finite, one can always decide whether or not a formula in the
propositional logic is valid (inconsistent) by exhaustively examining all of its possible
interpretations.
Ex. 4: For each of the following formulas, determine whether it is valid, inconsistent,
consistent or some combination of these.
(i) E: ~ (~A) B
(ii) G: (A B) (~ B ~ A)
(iii) H: (A ~ A) (A B ) ( ~ A)
(iv) J: (A B) (~ A) ( B ~ B)
Example
Table of Equivalences of PL
(1.1) E G = (E G) (G E)
(1.2) EG=~EG
(1.3)(a) E G = G E; (b) E G = G E
(1.4)(a) (E G) H = E (G H); (b) (E G) H = E (G H)
(1.5)(a) E (G H) = (E G) (E H); (b) E (G H) = (E G) (E H)
(1.6)(a) E False = E; (b) E True = E
(1.7)(a) E True = True (b) E False = False
(1.8)(a) E ~ E = True; (b) E E = E
(1.9) ~ (~ E) = E
(1.10)(a) ~ (E G) = ~ E ~ G; (b) ~ (E G) = ~ E ~ G
In the table given above, True denotes the fact that the wff is True under all
interpretations and False denotes the wff that is False under all interpretations.
Laws (1.3a), (1.3b) are often, called commutative laws; (1.4a), (1.4b) associative
laws; (1.5a), (1.5b), distributive laws: and (1.10a), (1.10b), De Morgan’s laws.
(i) (~ A B) (A ~ B C)
(ii) ( A B) ( ~ B ~ A)
Using table of equivalent formulas given above, any valid Propositional Logic
formula can be transformed into CNF as well as DNF.
Step 1: Use the equivalences to remove the logical operators „‟ and „‟:
(i) E G = (E g) (G E)
(ii) E G = ~ E G
(iii) ~ (~E) = E
(v) ~(E G) = ~ E ~ G
(vi) ~(E G) = ~ E ~ G
(vii) E (G H) = (E G) (E H)
(viii) E (G H) = (E G) (E H)
Example
= (A B) (A (~ C)) (Using E (F G) =
(E F) (E G))
However, if we are to obtain CNF of ~ A ( (~ B C)), in the last but one step, we
obtain
~ (A (~ B C)) = A (B ~ C), which is in CNF, because, each of A and
( B ~ C) is a disjunct.
34
Consider The Propositional
D (A (B C)) (using E F = ~ E F for the inner implication) Logic
= D (~ A (B C)) (using E F = ~ E F for the outer implication)
= ~ D (~ A (B C))
= ( ~ D ~ A) (B C) (using Associative law for disjunction)
= (( ~ D ~ A B) (~ D ~ A C)
(i) ~ (A ~ B) (S T) (ii) (A B) R
(ii) (~A B) (A ~ B)
(i) (A B) (A B) = (~ A B) (B A)
(ii) A B (~A ~ B) = ~ A ~ B (A B)
Next, we state without proof two very useful theorems for establishing logical
derivations:
The above two theorems are very useful. They show that proving a particular
formula as a logical consequence of a finite set of formulas is equivalent to
proving that a certain single but related formula is valid or inconsistent.
Note: Significance of the above two theorems lies in the fact that logical consequence
relates two formulas, where as validity/inconsistency is only about one formula. Also,
there are a number of well-known methods, including truth-table method, for
35
Introduction to A.I establishing inconsistency/validity of a formula. Thus, formula G logically follows
from a given set of formulas, we check validity of single formula. And, for checking
validity of a single formula, we already have some methods including Truth-table
method.
Definition: If the formula G is a logical consequence of the formula E1,….En, then the
single formula ((E1 …. En) G) is called a theorem, and G is also called the
conclusion of the theorem.
According to second method, using Theorem 1, we should show that the formula:
(E1 E2 ….. En) G
is valid, i.e., True for each of its interpretations. Again validity can be shown either
through a truth table or otherwise.
The last of the three methods uses Theorem 2. According to this method, in order to
show, G as a logical consequence of E1, E2,…En, it should be established that the
formula (E1 E2 ….. En ~ G) is inconsistent, i.e., is False under all its
interpretations. Next, we apply these methods through an example.
E1 : (A B), E2 : ~B , G : ~ A
Method 1: From the following Table, it is clear that whenever E1: A B and
E2: ~ B both are simultaneously True, (which is true only in the last row of the table)
then G: ~ A is also True. Hence, the proof.
A B AB ~B ~A
T T T F F
T F F T F
F T T F T
F F T T T
(A B) ~ B) ~ A = ~ (( A B) ~ B) ~ A (using E F = (~ E F))
= ~ (( ~ A B) ~ B) ~ A
= ~ ((~ A ~ B) (B ~ B)) ~ A
= ~ ((~ A ~ B) False) ~ A
= ~(( ~ A ~ B)) ~ A (using De Morgan’s Laws)
= (A B) ~ A =
= (B A) ~ A
= B (A ~ A)
= B True
36
= True (always) The Propositional
Thus, ((A B) B) ~ A is valid. Logic
2.11 APPLICATIONS
Example
Suppose the stock prices go down if the interest rate goes up. Suppose also that most
people are unhappy when stock prices go down. Assume that the interest rate goes up.
Show that we can conclude that most people are unhappy.
To show the above conclusion, let us denote the statements are as follows:
(1) A S
(2) S U
(3) A
(4) U. (to conclude)
In order to establish the conclusion, we should show that (4) is logical consequence
of (1) , (2) and (3). For this purpose, we show that (4) is true whenever (1) (2)
(3) is true.
37
Introduction to A.I = (((A ~A) (A S)) (~ S U)) (by using associative
laws and then using
distributivity of
‘A ’ over the next
disjunct (~ A S))
= ((False (A S)) (~ S U)) (using False
E = E)
= (A S ) ( ~ S U)
= (A S ~ S) (A S U)
= (A False) (A S U) (using A False =
False)
= False (A S U)
=ASU
Therefore, if ((A S) (S U ) A) is true, then (A S U) is true. Since
(A S U) is true then each of A, S, and U is true, we conclude that U is true. Hence,
U is a logical consequence of 1), 2) and 3) given above.
Ex. 10:Given that if the Parliament refuses to enact new laws, then the strike will not
be over unless it lasts more than one year and the president of the firm resigns, will
the strike not be over if the Parliament refuses to act and the strike just starts?
2.12 SUMMARY
In this unit, to begin with, we discuss what is Symbolic Logic and why it is it is
important to study it. The subject matter of symbolic logic consists of arguments,
where an argument consists of a number of statements — one of which is called
the conclusion and is supposed to be logically drawn from the others. Each one of the
other is called a premise, To be more specific, the subject of Symbolic Logic is the
study of how to develop tools and technique to draw correct conclusions from a given
set of premisses or to verify whether a conclusion is correct or not. A conclusion is
correct in the sense: Whenever all the premisses are True then conclusion is
necessarily True. An argument with correct conclusion is called a valid argument.
Next, a sound argument is defined as a valid argument in which premises also have to
be True.
(in some world).
In this unit, we study only a specific branch of symbolic logic, viz. Propositional
Logic (PL).
Next, we discuss how a statement, also called a well-formed formula (wff) and also a
Proposition, which is the basic unit of an argument in PL, is appropriately denoted
and how it is interpreted, i.e., how a wff is given meaning. The meaning of a wff in
PL is only in terms of True or False. The wffs are classified as valid, invalid,
consistent and inconsistent.
Then tools and techniques in the form of Truth-table, logical deduction, normal forms
etc are discussed to test these properties of wffs and also to test validity of arguments.
Finally a number of applications of these concepts, tools and techniques of PL are
used to solve problems that involve logical reasoning of PL systems.
2.13 SOLUTIONS/ANSWERS
Ex. 1
(a) Let H: He campaigns hard ; E: He will be elected
38 Then the statement becomes the formula:
HE The Propositional
(b) Let H: The Humidity is high, RTY: It will rain today Logic
RTW: It will rain tomorrow.
Then
H RTY RTW
(c) Let C: Cancer will be cured
D: Cancer‟s cause will be determined
F: A new drug for cancer will be found
Then the statement becomes the formula:
(~ C) (D F). This formula may also be written as:
CDF
(d) Let C: One has courage
S: One has skill
M: One climbs mountain
Then the statement becomes the formula:
MCS
Ex 2: (a) If he is sick then he needs a doctor, but, if he has an accident then he needs a
lawyer
(b) If One requires a doctor then one must be either sick or injured.
(c) If he needs both a doctor and a lawyer then he has an accident.
(d) One requires a doctor and also a lawyer if and only if one is sick and also
injured.
Ex. 3:
(i) Truth table of the formula: P: (~ A B) ( ~ (A ~ B)) is as given below.
A B ~A ~B ~A B A~B ~ (A ~B) P
T T F F T F T T
T F F T F T F F
F T T F T F T T
F F T T T F T T
Ex. 4:
(i) Consistent but not valid, because, for For B as T and A as F, the formula
is T. But, for A as T and B as F the formula is F.
(ii) It can be easily that ~ B ~ A has same truth-value as (A B) for any
interpretation. Therefore, in stead of the given formula, we may consider
the formula
(A B) (A B)
which can be further written as P P, writing (A B) as P. Even P
can be written as P P P (A B), The last formula is F when F and
A is T. The formula is T when A is F and B is T. Hence, the formula is
neither valid nor inconsistent.
Therefore, the formula is consistent but not valid
(iii) For all truth assignments to A and B, L. H.S. of the formula is always T
and R. H.S. is always F. Hence the formula is inconsistent, i.e., always F
(iv) The L. H. S. of the given formula is F under all interpretations. Hence, the
formula is T under all interpretation. Therefore, the formula is valid.
Ex. 6:
(i) Using distributive law in the last formula of 5 (ii) above, we get
(A R) (~ B R)
which is the required CNF
Ex. 9: (i) From the following table, ((A B) ~ B A) being False for all
interpretations, is inconsistent.
Truth Table of (A B) ~ B A
A B AB ~B (A B) ~ B A
T T T F F
T F F T F
F T T F F
F F T T F
(A B) ~ B A = (~ A B) ( ~ B A )
= (~ A ~ B A) (B ~ B A) (Distributive Law)
= (~ A A ~ B) (F A)
= False False = False
Thus (A B) ~ B A is inconsistent.
Ex. 10:
Let us symbolize the statements in the problem state of above as follows:
A: The Parliament refuses to act.
B: The strike is over.
R: The president of the firm resigns.
S: The strike lasts more than one year.
Then the facts and the question to be answered in the problem can be symbolized as:
E1: (A (~ B (R S))) represents the statement „If the congress refuses to enact
new laws, then the strike will not be over unless it lasts more than one year and the
president of the firm resigns.’
41
Introduction to A.I E3: ~ S represent the statement „The strike just starts.’
Ex. 10: We solve the problem by showing that the formula P: ((A (~ B (R S)))
A ~ S) ~ B is valid by two methods: (i) by reducing to CNF/DNF
(ii) by constructing truth-table of the formula.
Method (ii)
The solution of the problem lies in showing that ~ B logical follows from E 1, E2, and
E3. This is equivalent to showing that P: ((A (~B (R S ))) A ~ S) ~ B is
a valid formula. The truth values of the above formula under all the interpretations are
shown in given table
A B R S ~B ~ B (R S)
T T T T F T
T T T F F F
T T F T F F
T T F F F F
T F T T T T
T F T F T T
T F F T T T
T F F F T T
F T T T F T
F T T F F F
F T F T F F
F T F F F F
F F T T T T
F F T F T T
F F F T T T
F F F F T T
42
A B R S E1 E2 E3 ~B ~ B (R E1 (E1 E2 E3) The Propositional
S) ~B Logic
T T T T T T F F T T T
T T T F F T T F F F T
T T F T F T F F F F T
T T F F F T T F F F T
T F T T T T F T T T T
T F T F T T T T T T T
T F F T T T F T T T T
T F F F T T T T T T T
F T T T T F F F T T T
F T T F T F T F F T T
F T F T T F F F F T T
F T F F T F T F F T T
F F T T T F F T T T T
F F T F T F T T T T T
F F F T T F F T T T T
F F F F T F T T T T T
Under all interpretations formula is True. Hence, the formula P a valid formula. ~ B is
a logical consequence of E1, E2 and E3. Hence, the “The strike will not be over” is a
valid conclusion.
43