Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Logic and Proofs: Understanding Statements, Connectives, and Quantifiers, Exercises of Logic

An excerpt from a university course on Logic and Proofs, designed for mathematics majors. It introduces the fundamental concepts of statements, logical connectives, universal and existential quantifiers, and negation. Students will learn how to manipulate statements using logical connectives and quantifiers, and understand the concept of conditional statements and their contrapositives.

Typology: Exercises

2021/2022

Uploaded on 09/12/2022

ekaant
ekaant 🇺🇸

4.6

(34)

270 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LECTURE 1
Proofs and Logic
The primary purpose of this course is to introduce you, most of whom are mathematics majors, to the most
fundamental skills of a mathematician; the ability to read, write, and understand proofs. Indeed, this is a
course where
proofs
matter more than results.
That said, I should also stress that this is
not
supposed to be a killer course. Yes, we are going to be
rigorous and meticulous; but we will take our time to cover the material. And while we will be often dealing
in abstractions; our purpose shall be to develop concrete ways of handling far reaching concepts.
1. Logic
In order to get our bearings, let us begin with a discussion of logic and proof. Much of this discussion
will appear as common sense. However, not all common sense is logical, nor does every common sensical
argument constitute a proof. For this reason, we must delineate from the start, exactly what constitutes a
logical argument.
1.1. Statements.
Definition
1.1
.
A
statement
is a declarative sentence that is either true or false.
Each of the following sentences is a statement:
Every square has four sides.
π
is a rational number.
Orange is the best color.
Note that the first statement is true, the second is false and the third is merely an opinion.
Let us now lay out the means by which we manipulate statements in a
logical
manner.
1.2. Compound Statements.
Suppose
P
and
Q
are statements which are either true or false. Then
there are several ways we can create new statements which are also either true or false.
1.2.1.
Logical Connectives.
Definition
1.2
.
If
P
and
Q
are statements, then
P
and
Q
is a true statement only if
P
and
Q
are both true; otherwise
P
and
Q
is false.
Thus,
P
is true and
Q
is true.
}⇒
P
and
Q
is true
P
is true and
Q
is false.
Q
is true and
P
is false.
Q
is false and
P
is false.
P
and
Q
is false
1
pf3
pf4
pf5

Partial preview of the text

Download Logic and Proofs: Understanding Statements, Connectives, and Quantifiers and more Exercises Logic in PDF only on Docsity!

LECTURE 1

Proofs and Logic

The primary purpose of this course is to introduce you, most of whom are mathematics majors, to the most fundamental skills of a mathematician; the ability to read, write, and understand proofs. Indeed, this is a course where proofs matter more than results.

That said, Ishould also stress that this is not supposed to be a killer course. Yes, we are going to be rigorous and meticulous; but we will take our time to cover the material. And while we will be often dealing in abstractions; our purpose shall be to develop concrete ways of handling far reaching concepts.

  1. Logic

In order to get our bearings, let us begin with a discussion of logic and proof. Much of this discussion will appear as common sense. However, not all common sense is logical, nor does every common sensical argument constitute a proof. For this reason, we must delineate from the start, exactly what constitutes a logical argument.

1.1. Statements.

Definition 1.1. A statement is a declarative sentence that is either true or false.

Each of the following sentences is a statement:

Every square has four sides. π is a rational number. Orange is the best color.

Note that the first statement is true, the second is false and the third is merely an opinion.

Let us now lay out the means by which we manipulate statements in a logical manner.

1.2. Compound Statements. Suppose P and Q are statements which are either true or false. Then there are several ways we can create new statements which are also either true or false.

1.2.1. Logical Connectives.

Definition 1.2. If P and Q are statements, then “P and Q” is a true statement only if P and Q are both true; otherwise “P and Q” is false.

Thus,

P is true and Q is true.} ⇒ “P and Q” is true

P is true and Q is false. Q is true and P is false. Q is false and P is false.

⇒ “P and Q” is false

1

In standard English the conjunction “or” can be used in two distinct ways depending on the context: first of all it can be used to exclude one or the other of two possibilities:

The result of a coin toss is either head or tails.

We refer to this usage as the exclusive or. The word “or” can also be used to include two possibilities:

Ineed 6 or 7 dollars.

In mathematics, one always uses the logical connective “or” in the inclusive sense.

Definition 1.3. If P and Q are statements, then “P or Q” is a true statement only if P , Q is true, or P and Q are both true; otherwise “P or Q” is false.

So there are always three possibilities for “P or Q” to be a true mathematical statement and only one possibility for it to be false:

P is true and Q is true. P is true and Q is false. Q is true and P is false.

⇒ “P or Q” is true

P is false and Q is false.} ⇒ “P or Q” is false

1.2.2. Universal Quantifiers. The following statements contain universal quantifiers.

For all real numbers x, x^2 = −1.

All triangles have three sides.

For each real number a, a^2 ≥ 0.

Notice that in each of the statements above, a property is attributed to all members of a set; this is what

we mean by a universal quantifier.

Notation 1.4. As a short hand for the phrase “for all” we shall use the symbol ∀ (an up-side-down A).

1.2.3. Existential Quantifiers. The following statements contain existential quantifiers

Some integers are prime.

There exists a integer between 7.5 and 9.1.

The exists an irrational real number.

Notice that in each of these statements a property is attributed to at least one element of a set; this is

what one means by a existential quantifier.

Notation 1.5. As a short hand for the phrase “there exists”, we shall often use the symbol ∃ (a backwards

E).

Notation 1.6. As a short hand for the phrase “such that”, we shall often use the abbreviation “s.t.”.

As an example of our notational short-hand we note that

∀x, ∃y s.t. y = x^2

translates as “for all x, there exists a y such that y equals x^2 ”.

The statement P is called the hypothesis, or premise, and the statement Q is called the conclusion. Here are some examples:

If x and y are integers, then x + y is an integer. x = 0 ⇒ x^2 > 0.

There are several ways of phrasing a conditional statement, all of which mean the same thing:

If P , then Q. P implies Q. P is sufficient for Q. Q provided that P. Q whenever P.

∼ P ⇒ Q

1.4. The Contrapositive of a Conditional Statement. The contrapositive of a conditional state- ment

If P , then Q.

is the conditional statement

If not-Q , then not-P

For example, the contrapositive of

If x < 6, then x < 8

is

If x is not less than 8, then x is not less than 6

or, equivalently,

If x ≥ 8 , then x ≥ 6.

In this example, the truth of the original conditional statement seems to guarantee the truth of its contra- positive. In fact,

The conditional statement “P ⇒ Q” is equivalent to its contrapositive “not-Q ⇒ not-P ”.

Let’s prove

“ P ⇒ Q” implies “not-Q ⇒ not-P ”.

By hypothesis, if P is true, then Q is true. Suppose not-Q is true. Then Q is false. But then P can not be true, since that would contradict our hypothesis. So not-P must be true.

Example 1.8. Prove that

“not-Q ⇒ not-P ” implies “P ⇒ Q”.

1.5. The Converse of a Conditional Statement. The converse of the conditional statement

P ⇒ Q

is the conditional statement

Q ⇒ P.

It is important to note that the truth of a conditional statement does not imply the truth of its

converse. For example, it is true that

If x is an integer, then x is a real number;

but the converse of this statement

If x is a real number, then x is an integer,

is certainly not true.

However, there are some situations in which both a conditional statement and its converse are true. For

example, both

If the integer x is even, then the integer x + 1 is odd

and its converse

If integer x + 1 is odd, then the integer x is even

are true. We can state this fact more succinctly by saying

The integer x is even if and only if the integer x + 1 is odd.

More generally, the statement

P if and only if Q

which may be abbreviated

P iff Q

or

P ⇔ Q

means

“P ⇒ Q” and “Q ⇒ P ”.

“P if and only if Q” is called a biconditional statement. When “P ⇔ Q” is a true biconditional

statement, P is true exactly when Q is true, and so the statements P and Q can be regarded as equivalent

statements (when inserted in other statements).