Professional Documents
Culture Documents
MAT1014 - Discrete Mathematics and Graph Theory Module 1: Mathematical Logic and Statement Calculus
MAT1014 - Discrete Mathematics and Graph Theory Module 1: Mathematical Logic and Statement Calculus
MAT1014 - Discrete Mathematics and Graph Theory Module 1: Mathematical Logic and Statement Calculus
srvprasad.bh@gmail.com
srvprasad.bh@vit.ac.in
Theory of Inference for Statement Calculus
1
I Important difference between the reasoning used in any general discussion and that
used in mathematics is that the premises used are believed to be true:
I either from experience or from faith
I If proper rules are followed, then one excepts the conclusion to be true.
I In mathematics, one is solely concerned with the conclusion which is obtained by
following the rules of logic.
I This conclusion, called a theorem, can be inferred from a set of premises, called the
axioms of the theory.
I The truth value plays no part in the theory.
I The rules of inference are criteria for determining the validity of an argument.
I These rules are stated in terms of the forms of the statements (premises and
conclusions) involved rather than in terms of actual statements or their truth values.
I Thus, the rules will be given in terms of statement formulas rather than in terms of
any specific statements.
I In any argument, a conclusion is admitted to be true provided that the premises,
(assumptions, axioms, hypotheses) are accepted as true and the reasoning used in
deriving the conclusion from the premises follows certain accepted rules of logical
inference.
I Such an argument is called Sound.
I In any argument, we are always concerned with its soundness.
I In logic we concentrate our attention on the study of the rules of inference by which
conclusions are derived from the premises.
I Any conclusion which is arrived at by following these rules is called a valid
conclusion, and the argument is called a valid argument.
I The actual truth values of the premises do not play any part in the determination of
the validity of the argument.
I In other words, in logic we are concerned with the validity but not necessarily with
the soundness of an argument.
H1 ∧ H2 ∧ . . . ∧ Hm ⇒ C (1)
We can prove that whether a conclusion logically follows (or simply follows) from the
given premises by constructing the truth tables as follows:
I Let P1 , P2 , . . . , Pm be all the atomic variables appearing in the premises H1 , H2 , . . . , Hn
and the conclusion C.
I Enter all possible combinations of truth values that are assigned to P1 , P2 , . . . , Pm and
all the truth values of H1 , H2 , . . . , Hn and C in a table.
I Look for rows in which H1 , H2 , . . . , Hn have the value Y.
I If, for every such row, C also has the value Y, then (1) holds.
I Alternatively, we may look for the rows in which C has the value F.
I If, in every such row, at least one of the values of H1 , H2 , . . . , Hn is F, then (1) also
holds.
We call the above method as a “truth table technique” for the determination of the
validity of a conclusion.
Dr. B.S.R.V. Prasad | MAT1014 - Discrete Mathematics and Graph Theory
Truth Table Technique
Example 7
Example
Determine whether the conclusion C follows logically from the premises H1 and H2 .
(a) H1 : P → Q H2 : P C:Q
(b) H1 : P → Q H2 : ¬P C:Q
(c) H1 : P → Q H2 : ¬(P ∧ Q) C : ¬P
(d) H1 : ¬P H2 : P ↔ Q C : ¬(P ∧ Q)
(e) H1 : P → Q H2 : Q C:P
Truth Table
P Q P→Q ¬P ¬Q ¬(P ∧ Q) P↔Q
T T T F F F T
T F F F T T F
F T T T F T F
F F T T T T T
Truth Table
P Q P→Q ¬P ¬Q ¬(P ∧ Q) P↔Q
T T T F F F T
T F F F T T F
F T T T F T F
F F T T T T T
Observe that for (a) H1 : P → Q; H2 : P; C : Q, the first row is the only row in which both
the premises have the T value. The conclusion also has the value T in that row. Hence it is
valid.
Truth Table
P Q P→Q ¬P ¬Q ¬(P ∧ Q) P↔Q
T T T F F F T
T F F F T T F
F T T T F T F
F F T T T T T
In (b) H1 : P → Q; H2 : ¬P; C : Q, observe that the premises are true in the third and
fourth row. But, the conclusion Q is true only in the third row, but not in the fourth. Hence
it is not valid.
Truth Table
P Q P→Q ¬P ¬Q ¬(P ∧ Q) P↔Q
T T T F F F T
T F F F T T F
F T T T F T F
F F T T T T T
Similarly, we can prove that the conclusions in (c) H1 : P → Q; H2 : ¬(P ∧ Q); C : ¬P and
(d) H1 : ¬P; H2 : P ↔ Q; C : ¬(P ∧ Q) are valid but not the conclusion in (e) H1 : P → Q;
H2 : Q; C : P
The conclusion P in (e) does not follow logically from the premises P → Q and Q, no
matter which statement in English are translated as P and Q or what the truth value of the
conclusion P may be. To illustrate this, consider the argument: H1 : If Canada is a country,
then New York is a city. (P → Q)
H2 : New York is a city. (Q)
Conclusion C : Canada is a country. (P)
The conclusion P in (e) does not follow logically from the premises P → Q and Q, no
matter which statement in English are translated as P and Q or what the truth value of the
conclusion P may be. To illustrate this, consider the argument: H1 : If Canada is a country,
then New York is a city. (P → Q)
H2 : New York is a city. (Q)
Conclusion C : Canada is a country. (P)
Note that both the premises and the conclusion have the truth value T. However, the
conclusion does not follow logically from the premises.
The conclusion P in (e) does not follow logically from the premises P → Q and Q, no
matter which statement in English are translated as P and Q or what the truth value of the
conclusion P may be. To illustrate this, consider the argument: H1 : If Canada is a country,
then New York is a city. (P → Q)
H2 : New York is a city. (Q)
Conclusion C : Canada is a country. (P)
Note that both the premises and the conclusion have the truth value T. However, the
conclusion does not follow logically from the premises.
This example emphasises that we are not much concerned with the conclusion’s being
true or false as we are determining whether the conclusion follows from the premises,
i.e., whether the argument is valid or invalid.