Logic: Chapter 11 P 1
Logic: Chapter 11 P 1
. p q
, p q
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p38
11.3 Implications; The Biconditional Connective; Tautologies
To arrive at the truth table for implication, consider the
following example. Suppose we make the statement
If IBM common stock reaches $180 per share, it will be sold.
When is the statement true and when is it false?
Clearly, if IBM stock reaches $180 per share and it is not
sold, the implication is false.
It is also clear that if IBM stock reaches $180 per share and it
is sold, the implication is true.
In other words, if the hypothesis and conclusion are both
true, the implication is true; if the hypothesis is true and the
conclusion false, the implication is false.
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p39
11.3 Implications; The Biconditional Connective; Tautologies
But what happens when the hypothesis is false?
If IBM stock does not reach $180 a share, the stock might be
sold or it might not be sold.
In either case we would not say that a person making the
above statement was wrong. That is, we would not accuse
the person of making a false statement.
For this reason we say that an implication with a false
hypothesis is not false and, therefore, is true.
The truth table for implication is given in Table 13.
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p40
11.3 Implications; The Biconditional Connective; Tautologies
TABLE 13
p q
T T T
T F F
F T T
F F T
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p41
Definition
Converse
The implication if q, then p is called the converse of the
implication if p, then q. That is, is the converse of
11.3 Implications; The Biconditional Connective; Tautologies
q p
. p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p42
Definition
Contrapositive
The implication If not q, then not p, written as
is called the contrapositive of the implication
11.3 Implications; The Biconditional Connective; Tautologies
. p q
, q p
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p43
Definition
Inverse
The implication If not p, then not q, written as
is called the inverse of the implication If p, then q.
11.3 Implications; The Biconditional Connective; Tautologies
, p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p44
TABLE 16
Statements Implication Converse Inverse Contrapositive
p q ~p ~q
T T T T F F T T
T F F T F T T F
F T T F T F F T
F F T T T T T T
EXAMPLE 4 Constructing a Truth Table
11.3 Implications; The Biconditional Connective; Tautologies
The truth tables for , , , are given in Table 16. p q q p p q q p ~ ~ ~
p q
q p p q q p
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p45
Definition
Biconditional Connective
The connective if and only if is called the biconditional
connective and is denoted by the symbol
The compound proposition
is equivalent to
11.3 Implications; The Biconditional Connective; Tautologies
.
( if and only if ) p q p q
( ) ( ) p q q p .
The statement also may be read as p is necessary
and sufficient for q or as p implies q and q implies p.
(The abbreviation iff for if and only if is also
sometimes used.)
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p46
We can restate the definition of the biconditional connective
by using its truth table, Table 17.
TABLE 17
p q
T T T T T T
T F F T F F
F T T F F F
F F T T T T
11.3 Implications; The Biconditional Connective; Tautologies
p q q p
( ) ( ) . p q q p p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p47
Definition
Tautology
A tautology is a compound proposition P(p, q, ) that is
true in every possible case.
11.3 Implications; The Biconditional Connective; Tautologies
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p48
Examples of tautologies are
Tables 18 and 19 show the truth tables of these tautologies.
TABLE 18 TABLE 19
p q
T T T T
T F T T
F T T T
F F F T
11.3 Implications; The Biconditional Connective; Tautologies
( ) v p p q
( ) p p p p q v v
v p q p ~p
T F T
F T T
v p p
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.3 p49
Definition
The Law of Substitution
Suppose p and h are propositions and h p. If h is
substituted for p in the compound proposition P(p, q, ), a
logically equivalent proposition is obtained:
P(p, q, ) P(h, q, )
The law of substitution is often used to obtain new versions
of existing tautologies.
It is particularly useful in mathematics for constructing
tautologies of a certain kind, known as valid arguments or
proofs.
11.3 Implications; The Biconditional Connective; Tautologies
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.4 Arguments
Section 11.4 p50
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.4 p51
Definition
Argument
An argument or proof consists of a set of propositions p
1
, p
2
,
, p
n
called the premises or hypotheses, and a proposition
q, called the conclusion.
An argument is valid if and only if the conclusion is true
whenever the premises are all true.
An argument that is not valid is called a fallacy or an
invalid argument.
11.4 Arguments
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.4 p52
In a direct proof we go through a chain of propositions,
beginning with the hypotheses and leading to the desired
conclusion.
11.4 Arguments
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.4 p53
Law of Detachment
11.4 Arguments
If the implication is true and is true, then must
be true.
p q p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.4 p54
Law of Syllogism
Let p, q, r be three propositions. If
11.4 Arguments
and p q q r
are both true, then is true. p r
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.4 p55
In any valid proof one shows that an implication
is a tautology.
To do this by the method of indirect proof, we tentatively
suppose that q is false (equivalently, that ~q is true) and
show that we are thereby led to a contradictionthat is, a
logically impossible situation.
This contradiction can be resolved only by abandoning the
supposition that the conclusion is false.
Therefore, it must be true.
An indirect proof is also called a proof by contradiction.
11.4 Arguments
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.5 Logic Circuits
Section 11.5 p56
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p57
A logic circuit is a type of electrical circuit widely used in
computers and other electronic devices (such as calculators,
cell phones, and mp3 players). The simplest logic circuits,
called gates, have the following properties.
1. Current flows to the circuit through one or two connectors
called input lines and from the circuit through a connector
called the output line.
2. The current in any of the input or output lines may have
either of two possible voltage levels. The higher level is
denoted by 1 and the lower level by 0. (Level 1 is sometimes
referred to as On or True; Level 0 may be referred to as Off
or False.)
3. The voltage level of the output line depends on the voltage
level(s) of the input line(s), according to rules of logic similar
to the principles discussed in Section 11.2.
11.5 Logic Circuits
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p58
The three most basic types of gates are the inverter (or NOT
gate), the AND gate, and the OR gate.
The standard symbols for inverters, AND gates, and OR
gates appear in Figure 1.
In each case, the input lines appear at the left of the diagram
and the output line at the right.
11.5 Logic Circuits
FIGURE 1
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p59
The label on each line denotes the voltage level or truth value
of that line; the symbols ~p, pq (or p q), and p q (or p q)
are defined by the output tables in Tables 21, 22, and 23.
Note that ~p = 1 p and
TABLE 21 TABLE 22 TABLE 23
11.5 Logic Circuits
{ }
if
max ,
if
p p q
p q p q
q q p
>
= =
`
<
)
p q
1 1 1
1 0 1
0 1 1
0 0 0
p q pq
1 1 1
1 0 0
0 1 0
0 0 0
p ~p
1 0
0 1
(~p = 1 p)
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p60
Since the output tables for circuits have the same form as
the truth tables for propositions (with 1 and 0
corresponding to T and F, pq corresponding to p q, and
corresponding to p q), the principles of logic
formulated in Section 11.2 apply.
We can translate these principles as follows:
11.5 Logic Circuits
p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p61
1. Idempotent properties
pp = p
2. Associative properties
(pq)r = p(qr)
3. Commutative properties
pq = qp
4. Distributive properties
5. De Morgans properties
6. Absorption properties
11.5 Logic Circuits
p p p =
( ) ( ) p q r p q r =
p q q p =
( )( ) p qr p q p r = ( ) p q r pq pr =
( ) ( )( ) p q p q = ( ) pq p q =
p pq p = ( ) p p q p =
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p62
These properties are often useful in simplifying the design
of circuits.
If two circuits perform the same function and one has fewer
gates and connectors than the other, the simpler circuit is
preferred because it is less expensive to manufacture or
purchase, and also because it is less likely to fail due to
overheating or physical stress.
Very often it will also be more efficient in terms of power
consumption and speed of operation.
11.5 Logic Circuits
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Section 11.5 p63
The standard symbols for NAND,NOR, and XOR gates,
and their outputs, are shown in Figure 6. (The names are
abbreviations for NOT-AND, NOT-OR, and Exclusive-OR,
respectively.) Table 25 is the output table for XOR.
FIGURE 6 TABLE 25
11.5 Logic Circuits
p q
1 1 0
1 0 1
0 1 1
0 0 0
v p q
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
Select the best answer
for each of the following
multiple choice questions.
Chapter 11.MC p64
11.Extra Multiple Choice Questions
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.Extra Multiple Choice Questions
1. Formulate the contrapositive of the following
statement: If it is raining, then the roads are
slippery.
A. If it is not raining, then the roads are
slippery.
B. If it is not raining, then the roads are not
slippery.
C. If the roads are not slippery, then it is not
raining.
D. If the roads are slippery, then it is raining.
Chapter 11.MC p65
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.Extra Multiple Choice Questions
2. If proposition p has a truth value of T and
proposition q has a truth value of F, find the
truth value of each of the following:
(a) ~(p ~q) (b) (~p ~q) (p q)
A. (a) T (b) T
B. (a) T (b) F
C. (a) F (b) T
D. (a) F (b) F
Chapter 11.MC p66
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.Extra Multiple Choice Questions
3. Which of the following statements is a
tautology?
(a) (p ~p) (q ~q) (b)
A. (a) is a tautology and (b) is a tautology.
B. Only (a) is a tautology.
C. Only (b) is a tautology.
D. Neither (a) nor (b) is a tautology.
Chapter 11.MC p67
( ) ( ) p q q p v
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.Extra Multiple Choice Questions
4. Which of the statements below are
logically equivalent to the statement,
~p q?
(a) q ~p (b) p q
(c) p ~q (d) ~(p ~q)
A. (a) and (b)
B. (a) and (c)
C. (a) and (d)
D. (a), (c) and (d)
Chapter 11.MC p68
Finite Mathematics: An Applied Approach by Michael Sullivan
Copyright 2011 by John Wiley & Sons. All rights reserved.
11.Extra Multiple Choice Questions
Answers for the Multiple Choice Questions
1. C. If the roads are not slippery, then it
is not raining.
2. C. (a) F (b) T
3. C. Only (b) is a tautology.
4. C. (a) and (d)
Chapter 11.MC p69