Sie sind auf Seite 1von 12

5-Arguments

VU

Lecture No.5

Argument

Before we discuss in detail about the argument, we first consider the following argument:
An interesting teacher keeps me awake. I stay awake in Discrete Mathematics class.
Therefore, my Discrete Mathematics teacher is interesting.
Is the above argument valid?
ARGUMENT:
An argument is a list of statements called premises (or assumptions or
hypotheses) followed by a statement called the conclusion.
P1 Premise
P2 Premise
P3 Premise
. . . . .. . . . .
Pn Premise
______________
C Conclusion
NOTE: The symbol read therefore is normally placed just before the conclusion.
VALID AND INVALID ARGUMENT:
An argument is valid if the conclusion is true when all the premises are true.
Alternatively, an argument is valid if conjunction of its premises imply conclusion.
That is (P1 P2 P3 . . . Pn) C is a tautology.
An argument is invalid if the conclusion is false when all the premises are true.
Alternatively, an argument is invalid if conjunction of its premises does not imply
conclusion.
Critical Rows: The critical rows are those rows where the premises have truth value T.
EXAMPLE:Show that the following argument form is valid:
pq
p
q
SOLUTION
premises
conclusion

pq

critical row

Copyright Virtual University of Pakistan

5-Argument

VU

Since the conclusion q is true when the premises pq and p are True. Therefore, it is a
valid argument.
EXAMPLE

Show that the following argument form is invalid:


pq
q
p

SOLUTION

premises

conclusion

pq

critical row

In the second critical row, the conclusion is false when the premises pq and q are true.
Therefore, the argument is invalid.
EXERCISE:
Use truth table to determine the argument form
pq
p ~q
pr
r
is valid or invalid.
premises

conclusion

pq

p~q

pr

critical rows

30
Copyright Virtual University of Pakistan

5-Argument

VU

In the third critical row, the conclusion is false when all the premises are true. Therefore,
the argument is invalid.

The argument form is invalid


WORD PROBLEM
If Tariq is not on team A, then Hameed is on team B.
If Hameed is not on team B, then Tariq is on team A.
Tariq is not on team A or Hameed is not on team B.
SOLUTION
Let
t = Tariq is on team A
h = Hameed is on team B
Then the argument is
~th
~ht
~t~h
t
T
T
F
F

h
T
F
T
F

~t h
T
T
T
F

~h t
T
T
T
F

~t ~h
F
T
T
T

Argument is invalid because there are three critical rows.


( Remember that the critical rows are those rows where the premises have truth value T)
and in the first critical row conclusion has truth value F.
(Also remember that we say an argument is valid if in all critical rows conclusion has
truth value T)
EXERCISE
If at least one of these two numbers is divisible by 6, then the product of these two
numbers is divisible by 6.
Neither of these two numbers is divisible by 6.
The product of these two numbers is not divisible by 6.
SOLUTION
Let
d=
at least one of these two numbers is divisible by 6.
p=
product of these two numbers is divisible by 6.
Then the argument become in these symbols
dp
~d
~p
We will made the truth table for premises and conclusion as given below

31
Copyright Virtual University of Pakistan

5-Argument

VU
~d

~p

dp
T

In the first critical row, the conclusion is false when the premises are true. Therefore, the
argument is invalid.
EXERCISE
If I got an Eid bonus, Ill buy a stereo.
If I sell my motorcycle, Ill buy a stereo.
If I get an Eid bonus or I sell my motorcycle, then Ill buy a stereo.
SOLUTION:
Let
e = I got an Eid bonus
s = Ill buy a stereo
m = I sell my motorcycle
The argument is
es
ms
e m s
e
T
T
T
T
F
F
F
F

s
T
T
F
F
T
T
F
F

m
T
F
T
F
T
F
T
F

e s
T
T
F
F
T
T
T
T

m s
T
T
F
T
T
T
F
T

em
T
T
T
T
T
F
T
F

em s
T
T
F
F
T
T
F
T

The argument is valid because in the five critical rows, the conclusion is true.
EXERCISE
An interesting teacher keeps me awake. I stay awake in Discrete Mathematics class.
Therefore, my Discrete Mathematics teacher is interesting.
Solution:
t = My teacher is interesting
a = I stay awake
m = I am in Discrete Mathematics class
The argument to be tested is
32
Copyright Virtual University of Pakistan

5-Argument

VU
t a,
am
mt

Therefore

t
T
T
T
T
F
F
F
F

a
T
T
F
F
T
T
F
F

m
T
F
T
F
T
F
T
F

ta
T
T
F
F
T
T
T
T

am
T
F
F
F
T
F
F
F

mt
T
F
T
F
F
F
F
F

In the second critical row, the conclusion is false when the premises are true. Therefore,
the argument is invalid.

33
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

Lecture No.6

Applications of Logic

SWITCHES IN SERIES

Q
Switches
P

Light bulb

open

Light Bulb

State

Closed

Closed

On

Closed

Open

Off

Open

Closed

Off

Open

Open

Off

closed
SWITCHES IN PARALLEL:

Switches
P

Q
Light bulb

Light Bulb

State

Closed Closed

On

Closed Open

On

Open

Closed

On

Open

Open

Off

SWITCHES IN SERIES:

Switches
P

Light Bulb
State

Closed

Closed

On

Closed

Open

Off

Open

Closed

Off

Open

Open

Off

P Q

34
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

SWITCHES IN PARALLEL:

Switches
P

Light Bulb

State

Closed

Closed

On

Closed

Open

On

Open

Closed

On

Open

Open

Off

PQ

1. NOT-gate
A NOT-gate (or inverter) is a circuit with one input and one output signal. If the
input signal is 1, the output signal is 0. Conversely, if the input signal is 0, then the output
signal is 1.
P
R
NOT

Input

Output

2. AND-gate
An AND-gate is a circuit with two input signals and one output signal.
If both input signals are 1, the output signal is 1. Otherwise the output signal is 0.
Symbolic representation & Input/Output Table

Input

AND
Q

Output

3. OR-gate
An OR-gate is a circuit with two input signals and one output signal. If both input signals
are 0, then the output signal is 0. Otherwise, the output signal is 1.
Symbolic representation & Input/Output Table

35
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

P
Q

Input

OR

Output

COMBINATIONAL CIRCUIT:
A Combinational Circuit is a compound circuit consisting of the basic logic
gates such as NOT, AND, OR.

P
AND

OR
R

NOT

DETERMINING OUTPUT FOR A GIVEN INPUT:


Indicate the output of the circuit below when the input signals are P = 1, Q = 0 and R = 0

P
Q

AND

NOT

OR

SOLUTION:

Output S = 1
CONSTRUCTING THE INPUT/OUTPUT TABLE FOR A CIRCUIT
Construct the input/output table for the following circuit.
36
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

P
AND

NOT

S
OR

R
LABELING INTERMEDIATE OUTPUTS:

AND
Q

NOT

S
OR

R
P

FINDING A BOOLEAN EXPRESSION FOR A CIRCUIT

P
Q

OR
AND

OR

37
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

SOLUTION:
Trace through the circuit from left to right, writing down the output of each logic gate.

PQ

P
OR

(PQ) (PR)
PR

AND

OR

Hence (PQ) (PR) is the Boolean expression for this circuit.


CIRCUIT CORRESPONDING TO A BOOLEAN EXPRESSION

EXERCISE

Construct circuit for the Boolean expression (PQ) ~R


SOLUTION

PQ

(P Q) ~R

AND

~R
R

OR

NOT

CIRCUIT FOR INPUT/OUTPUT TABLE:

OUTPU

INPUTS

0
38

Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

SOLUTION:

INPUTS

OUTPUT

P Q ~R

~P Q R

CIRCUIT DIAGRAM:

P
Q
R

AND

S
OR

P
Q
R

AND

~P Q R

EXERCISE:

AND

Q
NOT

AND

OR

AND
NOT
SOLUTION:
We find the Boolean expressions for the circuits and show that they are logically
equivalent, when regarded as statement forms.

39
Copyright Virtual University of Pakistan

6-Applicition of Logic

VU

P Q
AND

Q
NOT

AND

AND

(P Q) (~P Q) (P ~ Q)
~P Q

OR

P ~Q

NOT
STATEMENT
REASON
(P Q) (~P Q) (P ~ Q)
(P Q) (~P Q) (P ~ Q)
(P ~P) Q (P ~ Q)
Distributive law
t Q (P ~Q)
Negation law
Q (P ~Q)
Identity law
(Q P) (Q ~Q)
Distributive law
(Q P) t
Negation law
(Q P) t
QP
identity law
PQ
Commutative law
Thus (P Q) (~P Q) (P ~ Q) P Q
Accordingly, the two circuits are equivalent

40
Copyright Virtual University of Pakistan

Das könnte Ihnen auch gefallen