




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































on
Eusebius Doedel
Introduction.
First we introduce some basic concepts needed in our
A discussion of logic. These will be covered in more detail later.
set
is a collection of “objects” (or “elements”).
the infinite set of
all integers
the infinite set of
all positive integers
≡ {
the infinite set
of
all real numbers
the finite set
, where
denotes “
True
” and
False
the finite set of alphabetic characters :
a, b, c,
(^) , z
Let
n
denoet the infinite set of all polynomial functions
p ( x ) of degree
n
or less with integer coefficients.
The derivative operator
restricted to elements of
n
can be
viewed as a function from
n
to
n − 1 ,
n
P n − 1 , D : p 7
dx dp
For example, if
p ( x ) = x 3
x (^) + 1, then
x 3
x (^) + 1
x 2
i.e.
x 3
x (^) + 1)
x 2
We can also define functions of
several variables
e.g.
f (^) ( x, y
x (^) +
(^) y ,
can be viewed as a function “from
cross
into
”.
We write
f
×
(^) Z
.
Let
. Then we can view
, and
, as functions
We can also view the arithmetic operators
, +, and
, as functions
defined by value tables, for example,
x
x
A Logical expressions.
logical expression
(or “
proposition
p, q,
is a function
For example,
1 ( p, q
p (^) ∨ ¬
q
and
2 ( p, q, r
p (^) ∧
(^) ( q ∨ (^) r )
Here are logical expressions.
1
:
B (^) ×
and
2
Analogously,
arithmetic expressions
such as
1 ( x, y
x (^) + (
y )
and
2 ( x, y, z
x (^) ×
y (^) +
(^) z )
can be considered as functions
1
and
2
or, equivalently,
1
2
and
2
3
Two propositions are
equivalent
if they always have the same values.
p (^) ∨
(^) q )
is equivalent to
p (^) ∧ ¬
q ,
(one of
de Morgan’s laws
), as can be seen in the table below :
p
q
p (^) ∨
(^) q
p (^) ∨
(^) q ) ¬ p ¬ q ¬ p
q
The three basic logical operators
and
are all we need.
However, it is very convenient to introduce some
additional operators
much like in arithmetic, where we write
x 3 to denote
x (^) ×
x (^) ×
(^) x
).
Three such additional operators are
exclusive or
“conditional”
if then
“biconditional”
if and only if
“iff”
defined as :
p
q
p (^) ⊕
(^) q
p → q p ↔ q
Suppose two persons, P and Q, are suspected of committing a crime.
Let
denote the statement by P that
“Q did it, or we did it together”.
Let
denote the statement by Q that
“P did it, or if I did it then we did it together”.
Suppose we know P always tells the truth and Q always lies.
NOTEWho committed the crime?
By “did it” we mean “was involved”.
of As an analogy from arithmetic, consider the problem of finding the values
x
and
y
in
so that
the value of the arithmetic expression
x 2
(^) y
is 5 ,
and such that
the value of
x (^) +
(^) y
is 3 ,
i.e.
, we want to find all solutions of the the simultaneous equations
x 2
(^) y
x (^) +
(^) y
(How many solutions are there ?)
For the “crime problem” we have the truth table
p q ¬ ( p ∨ ( q → ( p ∧ q )
∧ ( q ∨ ( p
(^) q ) )
We observe that the expression isThe values of the entire expression are in column (9). The order of evaluation has been indicated at the bottom of the table.
True
only if
p
=
and
q
=
Therefore Q was involved in the crime, but P was not.
Suppose three persons, P, Q, and R, are suspects in a crime.
P states that “Q or R, or both, were involved”.
Q states that “P or R, or both, were involved”.
R states that “P or Q, but not both, were involved”.
Suppose P and Q always tell the truth, while R always lies.
NOTEWho were involved in the crime?
there may be more than one solution
Construct a truth table for the logical expression
p (^) ∧
(^) ( ¬ ( ¬ p (^) ∨
(^) q )))
p (^) ∧
(^) q ) .
Based on the truth table find a simpler,
equivalent
logical expression.