intro to proof lecture notes - revised draft › ... › math299 › math-299-lecture.pdf ·...

79
Intro to Proof Lecture Notes -Revised Draft Dr.Monks -University of Scranton 1 What is a proof? Simply stated A proof is an explanation of why a statement is objectively correct. Thus, we have two goals for our proofs. Veracity - we want to verify that a statement is objectively correct. Exposition - we want to be able to eectively and elegantly explain why it is correct. But these two goals are sometimes in conflict. So how to achieve both? The Proof Spectrum In order to be absolutely certain our proof is correct, we need to be exceedingly careful and rigorous. In order to be clear in our exposition we need to be succinct and elegant. In order to obtain elegant clarity without sacrificing correctness, we will begin with proofs that are objectively correct by virtue of the fact that they can be verified by a machine. This style of proof is called a formal proof. Then we will use a well defined set of proof shortcuts to eliminate tedious, repetitive, and uninteresting parts of our proofs. Thus we will construct a bridge between our formal proofs and the more traditional proofs found in journals, textbooks, and problem solutions. Figure 1: The Proof Spectrum c 2020 KEN MONKS PAGE 1 of 79

Upload: others

Post on 04-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes - Revised DraftDr. Monks - University of Scranton

1 What is a proof?

Simply stated

A proof is an explanation of why a statement is objectively correct.

Thus, we have two goals for our proofs.

• Veracity - we want to verify that a statement is objectively correct.

• Exposition - we want to be able to effectively and elegantly explain why it is correct.

But these two goals are sometimes in conflict. So how to achieve both?

The Proof Spectrum

In order to be absolutely certain our proof is correct, we need to be exceedingly careful andrigorous. In order to be clear in our exposition we need to be succinct and elegant.

In order to obtain elegant clarity without sacrificing correctness, we will begin with proofs that areobjectively correct by virtue of the fact that they can be verified by a machine. This style of proofis called a formal proof. Then we will use a well defined set of proof shortcuts to eliminate tedious,repetitive, and uninteresting parts of our proofs. Thus we will construct a bridge between ourformal proofs and the more traditional proofs found in journals, textbooks, and problem solutions.

Figure 1: The Proof Spectrum

c© 2020 KEN MONKS PAGE 1 of 79

Page 2: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rigor and Elegance

On the one hand mathematical proofs need to be rigorous. Whether submitting a proof to a mathcontest or submitting research to a journal or science competition, we naturally want it to becorrect. One way to ensure our proofs are correct is to have them checked by a computer. (Notethat checking to see if a proof is correct is much easier for a computer to do than finding a proof inthe first place.)

There is much discussion in mathematics today about the value of computer verified proofs, andtheir counterparts - rigorous, detailed, formal proofs. Mathematicians and computer scientistssuch as Vladimir Voevodsky and Leslie Lamport have been making a strong case for formal,rigorous, computer-verified proofs.

On the other hand, most mathematicians are attracted to mathematics because of its intrinsicbeauty. A proof that communicates the key ideas of a proof to the reader in a succinct andbeautiful way is very effective for its expository properties, even if it is not as rigorous as a formalproof. The legendary mathematician Paul Erdös always spoke of “The Book”, an imaginary bookin which God had written down the best and most elegant proofs for mathematical theorems.When he saw any particularly inspiring proof he would exclaim “That proof is from ‘The Book’!”

We will strive for both rigor and elegance in our proofs by building a bridge between highlyrigorous formal proofs and more elegant traditional proofs. We begin with formal proofs.

"Math is a cross between art and law. Law is about the reasoning and proving. Andthe art is because what we’re trying to prove are statements that are somehow elegant.That’s where the artist decides what is art." - US IMO Coach Po-Shen Loh, after histeam won the 2015 IMO

Formal Proof Systems

Definition 1. A Formal Proof System (or Formal Axiom System) consists of

1. A set of expressions S, called the statements.

2. A set of rules R, called the rules of inference.

Each rule of inference has zero or more inputs called premises and one or more outputs calledconclusions. Most premises and all conclusions of a rule of inference are statements in the system.1

There also may be conditions on when a particular rule of inference can be used.

Definition 2. An axiom is a conclusion of a rule of inference that has no premises.

Definition 3. A statement Q in a formal axiom system is provable from premises Q1, . . . ,Qn if

1. Q is a conclusion of a rule of inference when P1, . . . ,Pk are the premises, and

2. for each 1 ≤ i ≤ k, if Pi is a statement, then Pi is provable from a (possibly empty) subcollectionof Q1, . . . ,Qn.

In particular, if Q is an axiom, then Q is provable from no premises at all!

1Other common premises are variable declarations, constant declarations, and subproofs.

c© 2020 KEN MONKS PAGE 2 of 79

Page 3: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definition 4. If Q follows from no premises in a formal axiom system, we say that Q is provable inthe system. A provable statement is called a theorem.

And finally, the definition we’ve all been waiting for!

Definition 5. A proof of a statement in a formal axiom system is a sequence of applications of therules of inference (i.e., inferences) that show that the statement is a theorem in that system.

Notation. If Q is provable from premises P1, . . . ,Pn in a formal system we can denote this symbol-ically as

P1, . . . ,Pn ` Q

It is also commonplace to refer to such an expression as a theorem. To prove such a theorem is togive a proof of Q in the same formal system where additionally the premises are ‘Given’ as axioms.Such theorems can also have multiple conclusions, Q1, . . . ,Qm, in which case we can write them as

P1, . . . ,Pn ` Q1, . . . ,Qm

Toys Proofs and Lurch

There are several examples of simple Formal Proof Systems available online at

proveitmath.org/toyproofs

Scrambler is a formal proof system where the statements are finite sequences of colors. The Rulesof Inference are permutations of these sequences (and so have one premise and one conclusioneach). The goal is to apply the Rules to show that a given sequence of colors is provable fromanother given sequence of colors. Warning: it can be both addictive and hard!

Trix Game is a formal proof system where the statements are positive integers. There are only twoRules of Inference, both of which take a single positive integer as a premise, and return a singlepositive integer as their conclusion. This system illustrates a rule that has a condition on whenyou can use it. The goal is to show that a given positive integer is provable from the premise 1 inthe system. Warning: if you can prove that you will always win this game no matter what integeryou have for the goal, you will win money and be famous forever!

Circle-Dot is a formal proof system where the statements are just finite sequences of one or morecircles and dots. This formal system has many of the features of actual mathematical formal axiomsystems. There are five rules of inference, two of which are axioms. The goal is to prove variouscircle-dot strings in the system.

Finally, Lurch is a word processor that allows you to define your own formal axiom systems, andcheck your proofs in that system! Check it out at

lurchmath.org

2 The Language of Mathematics

We write our proofs in the language of mathematics. The building blocks of this language aredescribed by the following terms.

c© 2020 KEN MONKS PAGE 3 of 79

Page 4: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

2.1 Variables, Expressions, and Statements

Expressions and Statements As in any language, each topic in mathematics defines certain ar-rangements of symbols to be valid expressions about that topic. Each expression can optionallyhave an associated property called its type, which describes the kinds of mathematical objects thatthe expression might represent. A statement is an expression whose type is Boolean which means itcan represent either true or false.

Constants and Variables An identifier is a name or label for something. Several identifiers canalso be combined to form larger expressions called compound expressions (but identifiers are notcompound expressions themselves). An identifier that refers to a unique, specific object is calleda constant. An identifier that refers to a single, but unspecified, object is called a variable.

Term Description

set A set is a collection of items.

element The items in a set are called its elements (or members).

expression An expression is an arrangement of symbols which represents an element of aset

type The set of elements that an expression can represent is called the type ordomain of the expression.

value The element of the domain that the expression represents is called a value ofthat expression.

variable A variable is an expression consisting of a single symbol

constant A constant is an expression whose domain contains a single element.

statement A statement (or Boolean expression) is an expression whose domain is{ true, false}.

truth value The value of a statement is called its truth value.

solve To solve a statement is to determine the set of all elements for which thestatement is true.

solution set The set of all solutions of a statement is called the solution set.

equation An equation is a statement of the form A = B where A and B are expressions.

inequality An inequality is a statement of the form A ⋆ B where A and B are expressionsand ⋆ is one of ≤, ≥, >, <, or ,.

Remarks:

• An element is either in a set or it is not in a set, it cannot be in a set more than once.

• It is not necessary that we know specifically which element of the domain an expressionrepresents, only that it represents some unspecified element in that set.

• We do not have to know if a statement is true or false, just that it is either true or false.

• If a statement contains n variables, x1, . . . xn, then to solve the statement is to find the set ofall n-tuples (a1, . . . , an) such that each ai is an element of the domain of xi and the statement

c© 2020 KEN MONKS PAGE 4 of 79

Page 5: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

becomes true when x1, . . . , xn are replaced by a1, . . . , an respectively. In this situation, eachsuch n-tuple is called a solution of the statement.

• In formal mathematics, ‘true’ means ‘provable’.

Substitution and Lambda Expressions

We can prefix an expression E to form the expression “λx,E” (or “x 7→ E”) to indicate that alloccurrences2 of x in E are a variable that represents the same unspecified object of the same typeas x. These prefixed expressions are called lambda expressions (or anonymous functions).

Such expressions can be applied to an expression a having the same type as x to form a newexpression, (λx,E)(a) which has the same type as E. These can be further simplified to the expressionobtained by replacing all occurrences3 of x in E with a. If we give a name to a lambda expression,e.g., define f to be λx,E then the expression (λx,E)(a) is just the usual notation for functionapplication f (a).4

3 Rules of Inference in Mathematics

In the Circle-Dot system Axiom A is a rule of inference that says from no premises we can conclude#•. Rule 1, however, is technically not a rule of inference, but rather an infinite family of rulesof inference, one for each choice of circle-dot strings we can substitute for the variables W and V.From this perspective we can think of Rule 1 as the lambda expression,

λW, λV, (WV,VW `W)

So that, for example, substituting # for W and • for V produces the rule

(λW, λV, (WV,VW `W))(#)(•) = (λV, (#V,V# ` #))(•)= (#•, •# ` #)

which allows us to conclude # from the premises •# and #•.Most rules of inference in mathematics are more similar to Rule 1 than to Axiom A in this sense –they are really lambda expressions which generate an entire family of specific rules of inference,one for each choice of variable in the statement of the rule. Because this is so common, we usuallyomit the lambda prefixes, and use the convention that any variable W that appears in the premisesor conclusion of a rule of inference can be replaced with an expression of the same type to form aparticular instance of that rule of inference.

Template Notation for Rules of Inference

Notation. A rule of inference having premises P1, . . . ,Pk and conclusions Q1, . . . ,Qn can be ex-pressed in template notation or recipe notation as

2These refer to free occurrences - see the quantifiers handout for details.3Also no free identifier in a should become bound as a result of the substitution.4Indeed, in precalculus they usually write f (x) = x3 instead of writing f = (λx, x3), but the latter is usually what they

mean.

c© 2020 KEN MONKS PAGE 5 of 79

Page 6: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rule Name Here

P1 (show)...

Pk (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Q1 (conclude)...

Qn (conclude)

In this notation, the rule looks like a template that we can fill in to create our proofs. In particular,the lines marked with a (show) need to be justified with a rule of inference that is supplied asa reason for that line, and those marked with (conclude) can be justified with the given rule ofinference.

Some rules of inference have a premise of the form

(P1, . . . ,Pk ` Q)

This is not a statement in the formal system itself, but rather the assertion that Q can be provenfrom P1, . . . ,Pk in the formal system. We call an expression of this form a subproof or environment.Such a premise is satisfied by including a subproof in a proof that shows that Q can be provedfrom the given premises (which do not need to be justified by a rule of inference). We denote thisin recipe notation as an indented ‘assume-block’ as illustrated below.

Example 6. Suppose we have a rule of inference that justifies the following.

W or V, (W ` U), (V ` U) ` U

where W, V, and U are any mathematical statements. Then we would express this rule in recipenotation as

Proof by Cases

W or V (show)Assume WU (show)←Assume VU (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .U (conclude)

In this, everything between an Assume and the following ← (the ‘end assumption’ symbol) is a

c© 2020 KEN MONKS PAGE 6 of 79

Page 7: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

subproof that demonstrates the corresponding premise in the rule of inference. We indent suchassumption blocks in our proofs. Subproofs can be nested, and the level of indentation correspondsto the level of nesting. Assumptions (lines that start with Assume) do not need to be justified bya rule of inference. We say that they are given. Lines marked with (show) must be justified. Linesmarked with (conclude) are justified by the rule itself.

Note that we do include the word "Assume " in the proof itself, but not the words "show" or"conclude" which are just instructions to the proof author (as opposed to the reader) for how tojustify the indicated lines.

4 Propositional Logic

4.1 Natural Deduction

We now turn our attention to a formal axiom system that is based on one first formulated byGerhard Gentzen in 1934 as a formal system that closely imitates the way mathematicians actuallyreason when writing traditional expository proofs.

4.2 Propositional Logic

The Statements of Propositional Logic

Definition. Let φ,ψ be statements. Then the five expressions “¬φ”, “φ and ψ”, “φ or ψ”, “φ ⇒ψ”, and “φ⇔ψ” are also statements whose truth values are completely determined by the truthvalues of W and ψ as shown in the following table:

φ ψ ¬φ φ and ψ φ or ψ φ⇒ψ φ⇔ψ

T T F T T T T

T F F F T F F

F T T F T T F

F F T F F T T

We can also write ’not’ for ¬, ’if and only if’ for⇔, and ’implies’ for⇒. A statement of the form’φ⇒ ψ’ is called a conditional statement or an implication, and can be written in English as ’φ impliesψ’, ’if φ then ψ’, ’ψ follows from φ’, or ’ψ, if φ’.

Definition. The statements S, of Propositional Logic consists of1. Atomic Statements that do not contain any of the five logical operators, and2. Compound Statements that are one of the five forms, ¬φ, φ and ψ, φ or ψ, φ⇒ψ, or φ⇔ψ

where φ and ψ are any elements of S.

Note: In compound statements we usually put parentheses around the statementsφ orψ involved.For instance if φ is the statement ‘P or Q’ and ψ is the statement ‘R and S’ then φ⇒ψ should bewritten

(P or Q)⇒(R and S)

c© 2020 KEN MONKS PAGE 7 of 79

Page 8: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

in order to avoid the confusion that ‘P or Q⇒R and S’ might actually mean something likeP or (Q⇒(R and S)). In order to cut down on parentheses, we assign a precedence order forour operators, meaning we apply the operators in the following order (from highest to lowest).

Precedence of Notation

parentheses, brackets, (), {}, [] etc.

arithmetic operations∗ ∧, ·,+, . . . etc.

set operations ×,−,∩,∪, . . . etc.

arithmetic and set relations =,⊆,≤,,, . . . etc.

not

and , or

⇒⇔∀,∃,∃!

∗ with the usual precedence among them

The Rules of Propositional Logic

Natural deduction generally defines a pair of rules for each definition. A ’plus’ rule is used toprove statements that contain the thing being defined from statements that do not, while ’minus’rules do the opposite.

Rules of Propositional Logic

Name Rule

and+ W,V ` (W and V)

and− (W and V) `W,V

or+ W ` (W or V), (V or W)

or− (proof by cases) (W or V), (W ⇒ U), (V ⇒ U) ` U

⇒+ (W ` V) ` (W ⇒ V)

⇒− (modus ponens) (W ⇒ V),W ` V

⇔+ (W ⇒ V), (V ⇒W) ` (W ⇔ V)

⇔− (W ⇔ V) ` (W ⇒ V), (V ⇒W)

not+ (proof by contradiction) (W ` →←) ` not W

not− (proof by contradiction) (not W ` →←) `W

→←+ W, (not W) ` →←

We can also list these rules in template notation that mirrors how they are used in proofs.

c© 2020 KEN MONKS PAGE 8 of 79

Page 9: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Propositional Logic

and + and −W (show)V (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W and V (conclude)

W and V (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W (conclude)V (conclude)

⇒+ ⇒− (modus ponens)

Assume WV (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W⇒V (conclude)

W (show)W⇒V (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .V (conclude)

⇔+ ⇔−W⇒V (show)V⇒W (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W⇔V (conclude)

W⇔V (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W⇒V (conclude)V⇒W (conclude)

or + or − (proof by cases)

W (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W or V (conclude)V or W (conclude)

W or V (show)W⇒U (show)V⇒U (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .U (conclude)

not+ (proof by contradiction) not− (proof by contradiction)

Assume W→← (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .¬W (conclude)

Assume ¬W→← (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W (conclude)

→←+ copy

W (show)¬W (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .→← (conclude)

W (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W (conclude)

Remarks:

• The symbol← is an abbreviation for “end assumption”.

• The symbol→← is called “contradiction” and represents the logical constant false.

• The word Assume is actually entered as part of the proof itself, it is not just an instruction inthe recipe like ’(show)’ and ’(conclude)’.

c© 2020 KEN MONKS PAGE 9 of 79

Page 10: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

• The inputs Assume - and “←” are not themselves statements that you prove or are given,but rather are inputs to rules of inference that may be inserted into a proof at any time. Thereis no useful reason however, to insert such statements unless you intend to use one of therules of inference that requires them as an input.

• The statement following an Assume is the same as any other statement in the proof and canbe used as an input to a rule of inference.

• Statements in an Assume-← block can be used as inputs to rules of inference whose conclu-sion is also inside the same block only. Once a Assume is closed with a matching←, only theentire block can be used as an input to a rule of inference. The individual statements withina block are no longer valid outside the block. We usually indent and Assume-← block tokeep track of what statements are valid under which assumptions.

Definition. A compound statement of propositional logic is called a tautology if it is true regardlessof the truth values the atomic statements that comprise it. (Its "truth table" contains only T’s.)

It can be shown that a statement can be proved with Propositional Logic if and only if the statementis a tautology.

4.3 Formal Proof Style

One way to write down the proof of a theorem is called a formal proof. This style of proof consistsof a sequence of numbered lines containing statements, reasons, and references to premises. Everyline contains exactly one statement (or declaration - see below), and the reason given on that lineis the name of a rule of inference for which the statement on that line is the conclusion. If the ruleof inference has premises, the reason is followed by the line numbers containing the statements(or variable declarations) which are the premises that the rule is being applied to. References topremises can only refer to lines which appear earlier in the same proof which are not contained ina subproof that has been closed. Subproofs used as a premise are cited by listing the range of linenumbers comprising the subproof.

Example 7. Let P and Q be statements. Prove the following case of DeMorgan’s Law, namely that

¬P or ¬Q⇒¬(P and Q)

Proof.

1. Assume ¬P or ¬Q -

2. Assume ¬P -

3. Assume P and Q -

4. P by and−; 3

5. →← by→←+; 2,4

6. ← -

7. ¬(P and Q) by not+; 3,5,6

8. ← -

c© 2020 KEN MONKS PAGE 10 of 79

Page 11: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

9. ¬P⇒¬(P and Q) by⇒+; 2,7,8

10. Assume ¬Q -

11. Assume P and Q -

12. Q by and−; 11

13. →← by→←+; 10,12

14. ← -

15. ¬(P and Q) by not+; 11, 13, 14

16. ← -

17. ¬Q⇒¬(P and Q) by⇒+; 10,15,16

18. ¬(P and Q) by or−; 1,9,17

19. ← -

20. ¬P or ¬Q⇒ ¬(P and Q) by⇒ +; 1,18

2Notice that when a rule of inference has a subproof for a premise, we indicate this by citing theline numbers for the assumption, the conclusion, and the end of assumption block indicator (←)e.g., as shown in line 7 above.

Exercise 8. Give a formal proof for the reverse case of DeMorgan’s Law, namely that

¬(P and Q)⇒¬P or ¬Q

Exercise 9. Give a formal proof for yet another case of DeMorgan’s Law, namely that

¬(P or Q)⇔¬P and ¬Q

Problems

Prove the following tautologies using formal proofs. In all of the following P,Q,R,S are statements.Sometimes we add additional parentheses for legibility.

Famous Tautologies

1. (a contradiction implies anything) →←⇒ P

2. (double negation) ¬¬P⇔ P

3. (modus tollens) ((P⇒ Q) and ¬Q)⇒ ¬P

4. (transitivity of⇒) (P⇒ Q) and (Q⇒ R)⇒ (P⇒ R)

5. (contrapositive) (P⇒ Q)⇔ (¬Q⇒ ¬P)

6. (true!) ¬→←7. (excluded middle) P or ¬P

c© 2020 KEN MONKS PAGE 11 of 79

Page 12: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

8. (Pierce’s Law) ((P⇒ Q)⇒ P)⇒ P

9. (alternate or −) ((P or Q) and ¬P)⇒ Q

10. (exclusive or) ¬(P⇔Q)⇔ (¬P and Q) or (P and ¬Q)

11. (alternate⇒) (P⇒ Q)⇔ (¬P or Q)

12. (shunting) ((P and Q)⇒R)⇔ (P⇒ (Q⇒ R))

Atomic statements aren’t just letters

13.(g is upper semi-computable

)⇒ (g is a finite simplicial complex

)or

(g is upper semi-computable

)14.

((0 < x⇒ 0 < x3

)and

(x < 0⇒ x3 < 0

))and (0 < x or x < 0)⇒

(0 < x3 or x3 < 0

)15. The claim "If you like pizza and pizza is available then you will eat pizza" is true if and only if

the claim "If you like pizza, then if pizza is available then you will eat pizza" is true.

16. It is not the case that (M is representable over F2 or M has an empty cokernal) if and only if(M is not representable over F2) and (M does not have an empty cokernal)

Commutativity

17. P and Q⇔ Q and P

18. P or Q⇔ Q or P

19. (P⇔ Q)⇔ (Q⇔ P)

20. Give examples of statements, P and Q such that (P⇒ Q)⇒ (Q⇒ P) is false.

Associativity

21. ((P and Q) and R)⇔ (P and (Q and R))

22. ((P or Q) or R)⇔ (P or (Q or R))

23. ((P⇔ Q)⇔ R)⇔ (P⇔ (Q⇔ R))

Distributivity

24. P and (Q or R)⇔ (P and Q) or (P and R)

25. P or (Q and R)⇔ (P or Q) and (P or R)

5 Predicate Logic

We can extend Propositional Logic by adding more statements and rules of inference to those wealready have in our formal system. This extended formal system is called Predicate Logic.

c© 2020 KEN MONKS PAGE 12 of 79

Page 13: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

5.1 Quantifiers

The symbol λ in the lambda expression (λx,E) is an example of a quantifier. The thing that allquantifiers have in common is that they bind variables. If W is an expression that does not containany quantifiers, then every occurrence of every identifier that appears in the expression is said tobe a free occurrence of that identifier.

If a quantifier appears in an expression, there are one or more variables that it binds. All occurrencesof the variables that are in the scope of the quantifier (usually everything to the right of it until ascope delimiter for that quantifier is encountered) are called bound variables.

Predicate logic extends propositional logic by defining two additional quantifiers.

Definition. The symbols ∀ and ∃ are quantifiers. The symbol ∀ is called “for all”, “for every”, or“for each”. The symbol ∃ is called “for some” or “there exists”.

We will encounter more quantifiers beyond just these two and λ.

5.2 Statements

Every statement of Propositional Logic is still a statement of Predicate Logic. In addition we definethe following statements.

Definition. If x is any variable and W is a lambda expression5 that simplifies to a statement whenapplied to any expression having the same type as x, then (∀x,W(x)) and (∃x,W(x)) are bothstatements.

We say that the scope of the quantifier in (∀x,W(x)) and (∃x,W(x)) is everything inside the outerparentheses. Sometimes these parentheses are omitted when the scope is clear from context. Alloccurrences if x throughout the scope are said to be bound by the quantifier.

5.3 Declarations

Before using a free identifier for the first time in any expression in our proofs we should tell thereader what that identifier represents. There are four ways to introduce a new free identifier.

1. It can be declared to be a variable (a variable declaration).

2. It can be declared to be a constant (a constant declaration).

3. It can be defined as temporary new notation, usually as an abbreviation for a larger expression(a notational definition).

4. It can occur free in an expression preceding the proof itself, such as in the statement of thetheorem, in a premise that is given, or declared globally prior to the start of the proof (globallydeclared).

Bound variables do not have to be declared. They can be any identifier you like, as long as thatidentifier is not in the scope of a constant declaration or more than one quantifier that binds it.

5Not containing x.

c© 2020 KEN MONKS PAGE 13 of 79

Page 14: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

5.4 Rules of Inference

The rules of inference for these two quantifiers are as follows.

Rules of Inference for Predicate Logic

Name Rule

∀+ (Let s be arbitrary `W(s)) ` (∀x,W(x))

∀− (∀x,W(x)) `W(t)

∃+ W(t) ` (∃x,W(x))

∃− (∃x,W(x)) ` For some constant c,W(c)

These can also be expressed in template notation.

Predicate Logic∗

∀+ ∀−Let s be arbitrary (variable declaration)W(s) (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∀x,W(x) (conclude)

∀x,W(x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W(t) (conclude)

∃+ ∃−W(t) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∃x,W(x) (conclude)

∃x,W(x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some c, (constant declaration)W(c) (conclude)

∗Restrictions and Remarks• In∀+, s must be a new variable in the proof, cannot appear as a free variable in any assumption

or premise, and W(s) cannot contain any constants which were produced by the ∃− rule. Theindentation and← symbol indicate the scope of the declaration of s. Variables s and x musthave the same type.

• In ∀− and ∃+, no free variable in t may become bound when t is substituted for x in W(x).Variable x and expression t must have the same type.

• In ∃+, t can be an expression, and W(x) can be the expression obtained by replacing one ormore of the occurrences of t with x. The identifier x cannot occur free in W(t). Variable x andexpression t must have the same type.

• In ∃−, c must be a new identifier in the proof. Also W(c) must immediately follow theconstant declaration for c in the proof. The scope of the declaration continues indefinitely oruntil the end of the scope of any subproof block or variable declaration scope that containsthe constant declaration. Variable x and constant c must have the same type.

c© 2020 KEN MONKS PAGE 14 of 79

Page 15: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

One consequence of this is that it enforces the restriction on ∀+ that prohibits any constantdeclared with ∃− to appear in W(s) because after the application of ∀+ any free occurrenceof c is no longer in the scope of the original declaration (and therefore undeclared).

5.5 Equality

Finally, we can complete our definition of logic by adding the rules of inference for equality.

Definition. The equality symbol, =, is defined by the following two rules of inference.

Rules of Inference for Equality

Name Rule

reflexivity ` (x = x)

substitution (x = y), W ` (W with one or more free occurrences of x replaced by y)

Equality

Reflexivity Substitution∗

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x = x

x = y (show)W (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .W with any free occurrences of x replaced byy. (conclude)

∗Restrictions and Remarks• Note that in the Reflexive rule there are no inputs, so you can insert a statement of the form

x = x into your proof at any time.• No free variable in y can become bound when y is substituted for x.

We can also use equality to define a useful variation of the ∃ quantifier.

Definition 10. If x, y are any variables of the same type and W is a lambda expression not containingx or y that simplifies to a statement when applied to any expression having the same type as x andy, we define

(∃!x,W(x))⇔ ∃x,(W(x) and ∀y,W(y)⇒ y = x

)The statement ∃!x,W(x) is read “There exists a unique x such that W(x).”

Rules of Inference for Unique Existence∗

Name Definition

∃!+ (∃x,W(x) and ∀y,W(y)⇒ y = x) ` (∃!x,W(x))

c© 2020 KEN MONKS PAGE 15 of 79

Page 16: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Unique Existence∗ (cont.)

Name Definition

∃!− (∃!x,W(x)) ` ∃x,W(x) and ∀y,W(y)⇒ y = x

Rules of Inference for Unique Existence∗

∃!+ ∃!−W(s) (show)

Let y be arbitrary (variable declaration)Assume W(y)y = s (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∃!x,W(x) (conclude)

∃!x,W(x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∃x,W(x) and ∀y,W(y)⇒ y = x (conclude)

, + , −¬(x = y) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x , y (conclude)

x , y (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .¬(x = y) (conclude)

Problems

1. Prove each of the following theorems with a formal proof in our system of Natural Deduction.In all of these, P,Q,R are statements (or lambda expressions that return a statement) and thevariables x, y, z etc. are of the same unspecified type.

(a) x = y⇒ y = x

(b) ∀x,∀y,P(x, y)⇒ ∀y,∀x,P(x, y)

(c) ∃x,∃y,P(x, y)⇒ ∃y,∃x,P(x, y)

(d) (∃x, x = x) and (∀y,P(y))⇒ ∃z,P(z)

(e) (∀x,∀y,P(x, y))⇒ ∀z,P(z, z)

(f) (∀x,P(x) or Q(x)) and (∃y,¬P(y))⇒ (∃z,Q(z))

(g) (∀x,P(x)⇒ Q(x))⇒ ((∀z,P(z))⇒ (∀w,Q(w)))

(h) (yet another DeMorgan!)¬(∃x,P(x))⇔ (∀x,¬P(x))

(i) (alternate definition of unique existence)

(∃!x,P(x))⇔ (∃x,P(x) and ∀y,¬(y = x)⇒ ¬P(y))

c© 2020 KEN MONKS PAGE 16 of 79

Page 17: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

(j) (∀x,¬P(x, x)) and (∀x,∀y,∀z,P(x, y) and P(y, z)⇒ P(x, z))⇒ (∀x,∀y,¬(P(x, y) and P(y, x)))

(k) If x is not free in Q then

(∀x, (P(x)⇒ Q))⇔ (∃x,P(x))⇒ Q

(l) (∃x,P(x)⇒ Q(x))⇔ (∀y,P(y))⇒ (∃z,Q(z))

2. Let L(x, y) be the statement “x loves y” and the domain of discourse of all quantified variablesbe the set of all people. Write each of the following English statements using only ‘and’, ‘or’,¬,⇒,⇔, ∀, ∃, ∃!, L, =, the bound variables x and y and the constants (names of people) givenin the sentences. For example, we could express “Everyone loves Bob.” as “∀x,L(x,Bob)”.

(a) Alice loves everyone.

(b) Someone loves Alice.

(c) Bob loves Alice, but she does not love him.

(d) Everyone loves someone.

(e) There is only one person who loves everyone.

(f) Someone loves everyone.

(g) There is a person who is loved by only one person.

(h) Some people do not love themselves.

(i) Some people only love themselves.

(j) Nobody loves everybody.

(k) If everyone loves themselves, then everyone loves someone.

(l) If two people love each other, then everyone loves them both. (Note: In English, when“two” is used in this context it usually means “two distinct”.)

3. (a) Prove the following with a formal proof.

(∀x,∃!y,P(x, y)) and ¬(a = b)⇒ ¬(P(c, a) and P(c, b))

(b) Suppose we are talking about people, and P(x, y) means “y is the mother of x”, and a, b, care “Alice”, “Beth”, and “Carl”. What does the theorem in part (a) say in English withthis interpretation?

4. Given the first two statements, is the conclusion valid? If not, describe a situation where theconclusion is false. If it is, formalize the argument and give a formal proof.

Everyone fears Dracula.Dracula only fears me.Therefore, I am Dracula!

c© 2020 KEN MONKS PAGE 17 of 79

Page 18: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

5. A function f that maps the positive real numbers to other positive real numbers is said to becontinuous (C) if and only if

∀ε,∀x,∃δ,∀y,∣∣∣x − y

∣∣∣ < δ⇒ ∣∣∣ f (x) − f (y)∣∣∣ < ε

Similarly, f is said to be uniformly continuous (UC) if and only if

∀ε,∃δ,∀x,∀y,∣∣∣x − y

∣∣∣ < δ⇒ ∣∣∣ f (x) − f (y)∣∣∣ < ε

(all identifiers other than f have type "positive real").

(a) Give a formal proof that every uniformly continuous function is continuous.

(b) Find an example of a function f that is continuous but not uniformly continuous.

(You can use the fact that the real numbers are closed under multiplication, that constants like, 3, π,√

2, 4/5 are realnumbers and properties of real number arithmetic, like 1 + 1 = 2, or x + x = 2x, justifying these with the black-boxreason ‘by arithmetic’.)

6 Proof Shortcuts and Semiformal Proofs

When writing formal proofs we quickly find that the perfect rigor they provide is quickly offsetby the extreme length and tediousness of the proofs. Indeed, this aspect of formal proofs is oftencounter to our goal of elegant and effective exposition. So how can we retain the objective validityand rigor of a formal proof and make our proofs more elegant and expository at the same time?

One way is to use well-defined shortcuts that eliminate the tedious, obvious aspects of our proofs,while retaining the rigor and important concepts. In this book we will list some of the shortcutsthat mathematicians use in writing their proofs in order to shorten the proofs, make them morereadable, and eliminate parts of the proof that are repetitive or uninteresting.

A proof that utilizes one or more shortcuts, but still has (a) at most one statement per line withoptional justification as needed and (b) does not have to be written in complete, grammaticallycorrect, English sentences, is called a semiformal proof.

6.1 Use Theorems as Rules of Inference

Once we have proved a theorem we can use it to make new Rules of Inference. To use a theoremor definition as a rule of inference, we can just insert it as a line in our proof, and justify it with thename of the theorem and no premises. Doing so leaves the set of provable statements unaltered,i.e., no statement that could be proved with the new rules of inference could be proved withoutthem, because we can always replace the new rule of inference with its proof.

So for example, if we prove the following simple theorem

Theorem 11. P⇒ P

Then in a proof we can simply insert a line such as

12. P⇒ P by Theorem 1.

c© 2020 KEN MONKS PAGE 18 of 79

Page 19: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

But we can do better.

A free variable that appears in a premise or conclusion of a Rule of Inference is called a metavariable.Metavariables in a rule can be replaced with any statement of the appropriate type before usingthe rule.

Similarly we can interpret the free variables in any Theorem as metavariables, and allow them tobe replaced by an expression of the same type before inserting the theorem into our proof.

Interpreting Theorem 1 as a Rule of Inference in this way, we can thus insert a line in our prooflike this

18. ¬(Q or R)⇒ ¬(Q or R) by Theorem 1.

This shortcut can also be applied to formal definitions, which can be thought of as a theorem whoseproof is one line. These theorems can be used as a rule of inference in several ways.

6.2 Substitute Logically Equivalent Expressions

Whenever we have a theorem or definition that is an equivalence of the form P ⇔ Q, we cansubstitute occurrences of P with Q and vice versa whenever they appear as a subexpression in astatement in our proof. Equivalent statements have the same truth value, so replacing one withthe other does not affect the validity of the statement where the substitution takes place.

For example, since we can prove that ¬¬P⇔ P, if we have a statement such as

∀x,∃y,¬¬¬(y = x) and f (y) = f (x)

We can immediately simplify this to

∀x,∃y,¬(y = x) and f (y) = f (x)

by substituting the subexpression ¬(y = x) for the equivalent subsexpression ¬¬¬(y = x).

6.3 Use Famous Logic Theorems Freely

The following theorems about logic are quite well-known, and can usually be used in an expositoryproof without proving them or even justifying them with a reason (although you should in aformal or semi-formal proof). Since most of these are equivalences, they are frequently usefulwhen combined with the previous shortcut.

Theorems of Logic

excluded middle P or not P

double negative ¬¬P⇔P

idempotency P and P⇔PP or P⇔P

c© 2020 KEN MONKS PAGE 19 of 79

Page 20: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Theorems of Logic (cont.)

commutativity P and Q⇔Q and PP or Q⇔Q or P(P⇔ Q)⇔ (Q⇔ P)(∀x,∀y,P(x, y))⇔ (∀y,∀x,P(x, y))(∃x,∃y,P(x, y))⇔ (∃y,∃x,P(x, y))

associativity (P and Q) and R⇔P and (Q and R)(P or Q) or R⇔P or (Q or R)((P⇔ Q)⇔ R)⇔ (P⇔ (Q⇔ R))

distributivity P and (Q or R)⇔ (P and Q) or (P and R)P or (Q and R)⇔ (P or Q) and (P or R)(∀x,P(x)) and (∀x,Q(x))⇔ (∀x,P(x) and Q(x))(∃x,P(x)) or (∃x,Q(x))⇔ (∃x,P(x) or Q(x))

transitivity (P⇒Q) and (Q⇒R)⇒ (P⇒R)(P⇔Q) and (Q⇔R)⇒ (P⇔R)

alpha substitution (∀x,P(x))⇔ (∀y,P(y))(∃x,P(x))⇔ (∃y,P(y))

alternate implies (P⇒Q)⇔ (not P or Q)

alternate or- (P or Q) and not P⇒Q(P or Q) and not Q⇒P

not implies not (P⇒Q)⇔ (P and not Q)

contrapositive (P⇒Q)⇔ (¬Q⇒¬P)

DeMorgan’s Law ¬ (P and Q)⇔ (¬P or ¬Q)¬ (P or Q)⇔ (¬P and ¬Q)(¬∀x,P(x))⇔ ∃x,¬P(x)(¬∃x,P(x))⇔ ∀x,¬P(x)

contradiction →←⇒Q

alternate substitution x = y and W⇒W with the nth free occurrence of y replaced byx.

alternate ∃! (∃!x,W(x))⇔∃c,∀z,W(z)⇔ z = c

6.4 Identify Certain Statements

In some cases even using Shortcut 6.2 can still be too tedious. For example, if we have P and Qin our proof, but require Q and P as a premise, we might skip the substitution as a separate step,and instead do something like this:

c© 2020 KEN MONKS PAGE 20 of 79

Page 21: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

...

11. P and Q for some reason

12. (Q and P)⇒ R for some other reason

13. R by ⇒ − ; 11,12...

Statements that typically can be identified without much trouble are given in the following table.

the statement can be identified with

P and Q Q and P

P or Q Q or P

P⇔ Q Q⇔ P

¬¬P P

x = y y = x

x , y ¬(x = y)

x > y y < x

x ≥ y y ≤ x

6.5 Skip Some Logical Rules of Inference

While proof by contradiction, proof by cases, and other methods of proof are usually explicitlystated in a proof, some rules of inference are often skipped in an expository proof because theyare so obvious to the reader. This can be accomplished by allowing an expression to be used as apremise in place of some statement that can be logically derived from it.

For example, we usually skip the ‘ and +’ or ‘ and −’ rules by allowing P and Q to be used as apremise whenever P or Q are required, e.g.,

...

11. P and Q for some reason

12. P⇒ R for some other reason

13. R by ⇒ − ; 11,12...

Similar shortcuts can be used to avoid ‘ and +’, e.g.,

...

10. P for some reason

c© 2020 KEN MONKS PAGE 21 of 79

Page 22: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

11. Q for some other reason

12. (P and Q)⇒ R for yet another reason

13. R by ⇒ − ; 10,11,12...

Notice that in this case we can specify three premises even though the ‘⇒ +’ only normally requirestwo premises. These examples can naturally be extended to expressions such as P and Q and R,and so on, even when using such an expression in place of, say, Q would normally require morethan one application of the ‘ and −’ rule.

A particularly common use of this shortcut is with the ‘⇔ +’ rule. This is frequently abbreviatedas follows.

Example 12. Suppose we have a theorem in this form (for some appropriate P and Q).

Theorem 13. P⇔ Q

Then we will frequently abbreviate the proof like this.

Proof

(⇒)

1. Assume P -...

......

11. Q for some reason

12. ← -

(⇐)

13. Assume Q -...

......

33. P for some other reason

34. ← -

35. P⇔ Q by ⇔ + ; 1,11,12,13,33,34□

The notation (⇐) and (⇒) are just comments to indicate to the reader that we are proving anequivalence.

Another common use of this shortcut is to eliminate the use of the reflexivity of = rule of inference.In particular, if we have a = b and want to conclude P(a) = P(b) for some expression P(x) we canprove it without this shortcut like this.

c© 2020 KEN MONKS PAGE 22 of 79

Page 23: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

......

...

11. a = b for some reason

12. P(a) = P(a) by reflexivity of =

13. P(a) = P(b) by substitution; 11, 12...

......

But using this shortcut we can simply omit the application of reflexivity.

......

...

11. a = b for some reason

12. P(a) = P(b) by substitution; 11...

......

6.6 Omit Most Premise Citations, Line Labels, and End-of-Subproof Symbols

A somewhat sophisticated mathematical reader who is familiar with the premises needed to justifya statement with a given reason, can simply look for the required premises in the proof. Indeed,quite frequently one or more of the premises required immediately precede the line being justifiedin the proof.

We can thus remove some of the clutter by omitting references to premises that are obvious andeasy to find. Similarly, this reduces or eliminates the need to label or number each line in the proof.

Mathematicians do label important statements and equations in their proofs and do refer to themwhen justifying statements. The rule of thumb to follow when deciding whether to explicitly labelor reference a particular statement in your proof is whether it makes it improves the exposition forthe reader. A non-obvious, or important statement that is referred to later on as a premise shouldstill be labeled and referenced in order to make the proof easier to follow for the reader.

In traditional mathematical writing it is also not common to indicate the end of a subproof,assumption scope, or ’Let’ declaration scope with the symbol← that we have been using in ourproofs. Instead, in semi-formal proofs, careful indentation can be used to indicate this to the reader,and comment lines can be inserted to show the reader where the end of an assumption occurs, tomake it more legible.

6.7 Eliminate Extra Parentheses for Associative Binary Operators

A special case of Shortcut 6.4 is that we can eliminate extra parentheses for associative binaryoperators and allow the expression represent all possible ways of including the parentheses.

For example, if we writeP or Q or R or S

c© 2020 KEN MONKS PAGE 23 of 79

Page 24: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

this expression can be identified with any of the expressions

P or (Q or (R or S))P or ((Q or R) or S)(P or Q) or (R or S)(P or (Q or R) or S((P or Q) or R) or S

6.8 Combine consecutive ∀+ rules

Frequently we would like to use the ∀+ rule consecutively several times in a row. For example wemight be asked to prove something like

∀x,∀y,∀z, x = y and y = z⇒ x = z

A full formal proof of that might look like this:

Proof.

1. Let x be arbitrary. -

2. Let y be arbitrary. -

3. Let z be arbitrary. -

4. Assume x = y and y = z -

5. x = y by and -; 4

6. y = z by and -; 4

7. x = z by substitution; 6,5

8. ← -

9. x = y and y = z⇒ x = z by⇒+; 4,7

10. ← -

11. ∀z, x = y and y = z⇒ x = z by ∀+; 3,9

12. ← -

13. ∀y,∀z, x = y and y = z⇒ x = z by ∀+; 2,11

14. ← -

15. ∀y,∀z, x = y and y = z⇒ x = z by ∀+; 1,13

2But no rigor would be lost if we allow the shortcut of doing all three of the declarations and ∀+rules at the same time. Using this shortcut would simplify the proof like this.

c© 2020 KEN MONKS PAGE 24 of 79

Page 25: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Proof.

1. Let x, y, z be arbitrary. -

2. Assume x = y and y = z -

3. x = y by and -; 2

4. y = z by and -; 2

5. x = z by substitution;4,3

6. ← -

7. x = y and y = z⇒ x = z by⇒+; 2,5

8. ← -

9. ∀x,∀y,∀z, x = y and y = z⇒ x = z by ∀+; 1,7

2Indeed, applying several of the shortcuts above results in a much more compact semiformal proof.

Proof.

Let x, y, z be arbitrary.

Assume x = y and y = z

x = z by substitution

∀x,∀y,∀z, x = y and y = z⇒ x = z by ∀+26.9 Use Transitive Chains!

Let 〈r1, r2, . . . , rn〉 be a sequence of binary operators on a set A. We say such a sequence is mutuallytransitive if and only if for every a, b, c ∈ A, and for every 1 ≤ i ≤ j ≤ n,

arib and br jc⇒ ar jc

and

ar jb and bric⇒ ar jc

Examples of mutually transitive operator sequences on the set of integers include: 〈=〉, 〈=,≤〉,〈=, <〉, 〈=,≤, <〉, 〈>,≥〉, 〈=,≡〉 and 〈=, |〉. An example of a sequence of mutually transitive logicaloperators is 〈⇔,⇒〉.

c© 2020 KEN MONKS PAGE 25 of 79

Page 26: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Given such a sequence we can often shorten our proofs by using the transitive chain notation

x1 ri1 x2

ri2 x3

ri3 x4

...

rik xk+1

which is defined to be an abbreviation for

x1 ri1 x2

x2 ri2 x3

x3 ri3 x4

...

xk rik xk+1

Because the operators are mutually transitive we can use this entire block as a single premise tojustify for any s, t such that 1 ≤ s ≤ k and any s < t ≤ k+1 that xirαx j where α is the largest subscriptamong is, . . . , it−1. As a shortcut, any such deduction can be omitted and the entire block of linesused as in its place in the proof.

Example 14. In the following transitive chain, the sequence of operators, 〈=,≤, <〉, is mutuallytransitive.

0 ≤ (a + 1)2

= a2 + 2a + 1

< (a2 + 2a + 1) + 1

= a2 + 2(a + 1)

Thus, we can conclude from this transitive chain that 0 < a2 + 2(a + 1) (and other things, like0 ≤ a2 + 2a + 1).

6.10 Use Derived Rules of Inference

A more advanced way to avoid tedious repetitive steps of logic is to derive rules of inferencefrom a theorem or definition. Frequently a useful rule of inference is one that eliminates as manyoccurrences of quantifiers and logical operators as possible.

For example, if the theorem is an implication, i.e. of the form

Theorem (some famous implication). P⇒Q

then we can use it to justify the rule of inference P ` Q. (Can you see why?) Then instead of usingthe theorem directly like this

c© 2020 KEN MONKS PAGE 26 of 79

Page 27: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

some famous implication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

P⇒ Q (conclude)

we obtain a new rule

some famous implication

P (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Q (conclude)

which is frequently more useful. Similarly if a theorem is a logical equivalence, i.e. has the form

Theorem (some famous equivalence). P⇔Q

then we can use it to justify two rules of inference, namely

some famous equivalence some famous equivalence

P (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Q (conclude)

Q (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .P (conclude)

We say such rules of inference are derived or expanded from the theorem.

There are other useful ways to expand rules of inference. It is frequently useful to make thefollowing replacements.

Deriving Rules from Definitions and Theorems

If the ROI has: Replace that with:

P and Q (show) P (show)Q (show)

P⇒Q (show) Assume PQ (show)←

P⇔Q (show) Assume PQ (show)←Assume QP (show)←

c© 2020 KEN MONKS PAGE 27 of 79

Page 28: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

∀x,P(x) (show) Let s be arbitraryP(s) (show)←

P⇒Q (conclude) P (show)Q (conclude)

P⇔Q (conclude) P (show)Q (conclude)

Q (show)P (conclude)

P and Q (conclude) P (conclude)Q (conclude)

∀x,P(x) (conclude) P(z) (conclude)

∃x,P(x) (conclude) For some constant c,P(c) (conclude)*these lines must be consecutive in the proof

Similarly if we have a Show P in our ROI for which P is the conclusion of a previously expandedROI, we can replace that line with the premises needed to conclude P. Continuing in this waywe can expand our theorems and definitions into useful rules of inference that omit unnecessaryrepetitive steps in our proofs.

7 The Natural Numbers

Together, the formal system that includes Propositional Logic, Predicate Logic, and Equality willbe simply called Logic. We can extend the Logic mathematical system by adding the definition ofthe natural numbers.

7.1 The Peano Postulates

It is possible to define the Natural Numbers and addition, multiplication, and < for those numbersfrom scratch. One famous way of doing that is with the following axioms which were developedby Giuseppe Peano at the end of the 19th century.

Peano Axioms

Axiom Name Definition

(N0) existence of zero 0 is a natural number (constant declaration)

(N1) existence of successors ∀n, σ(n) is a natural number

(N2) uniqueness of predecessor ∀n,∀m, σ(n) = σ(m)⇒ m = n

(N3) zero is first ∀n, 0 , σ(n)

(N4) induction P (0) and (∀k,P (k)⇒P (σ(k)))⇒∀n,P (n)

c© 2020 KEN MONKS PAGE 28 of 79

Page 29: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Peano Axioms (cont.)

Axiom Name Definition

(A0) additive identity ∀n,n + 0 = n

(A1) successor addition ∀n,∀m,m + σ(n) = σ(m + n)

(M0) multiplication by zero ∀n,n · 0 = 0

(M1) successor multiplication ∀n,∀m,m · σ(n) = m +m · n(I) order ∀n,∀m,m ≤ n⇔ ∃k,m + k = n

The symbols 0 and σ are constants. Zero is a constant of natural number type, and sigma is alambda expression which returns a natural number when applied to a natural number, i.e., σ(n) isa natural number whenever n is. In all of the axioms the quantified variables have natural numbertype, so that in particular we can only apply the ∀− rule for expressions which also are type naturalnumber. In N4 above and in the following, P (n) is a statement about a natural number variable n(i.e., P is a lambda expression that returns a statement when applied to a natural number variablen). Axiom N4 is called mathematical induction, or simply induction. While not strictly necessary, thefollowing definitions are useful.

Definition (base ten representation). We define the usual base ten representations of naturalnumbers such that 1 = σ(0), 2 = σ(1), 3 = σ(2), 4 = σ(3),. . . and so on.

Definition (less than). ∀m,∀n,m < n⇔m ≤ n and m , n.

Definition (positive). ∀m,∀n,m < n⇔m ≤ n and m , n.

7.2 Strong Induction

Another form of induction is called strong induction. It is stated as follows:

Theorem (Strong Induction). Let P (n) be any statement about a natural number variable n. Then(P (0) and ∀k,

(∀ j ≤ k,P( j))⇒ P (σ(k))

)⇒ ∀n,P (n) .

It can be shown that Strong Induction and ordinary Induction are logically equivalent. Namely,we can prove Strong Induction as a theorem in the axiom system defined above, and also if wereplace the induction axiom with strong induction, we can prove ordinary induction holds as atheorem.

7.3 Number Theory

Once we have determined the basic properties that follow from our definitions, we can move on todeeper theorems that provide us with important non-obvious insights into the nature of the naturalnumbers. The study of such theorems is called Number Theory. We begin with some definitions.All variables are arbitrary natural numbers.

c© 2020 KEN MONKS PAGE 29 of 79

Page 30: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definitions for Number Theory

Name Definition

divides m | n⇔ ∃k,n = m · knot divides m ∤ n⇔ ¬∃k,n = m · kprime n is prime⇔ n > 1 and ¬∃k, (1 < k < n and k | n)

Templates for Number Theory

We can use our shortcuts of expanding theorems and definition to derived rules of inference tomake useful rules in template format for the Peano axioms and related definitions.

Peano Axioms

uniqueness of predecessor (N2) zero is first (N3)

σ(n) = σ(m) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m = n (conclude)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 , σ(n) (conclude)

additive identity (A0) successor addition (A1)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n + 0 = n (conclude)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m + σ(n) = σ(m + n) (conclude)

multiplication by zero (M0) successor multiplication (M1)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n · 0 = 0 (conclude)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m · σ(n) = m +m · n (conclude)

inequality+ (I) inequality− (I)

∃k,m + k = n (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m ≤ n (conclude)

m ≤ n (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some k,m + k = n (conclude)

induction (N4)

P(0) (show)Let k be arbitrary (variable declaration)

Assume P(k)P(σ(k)) (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∀n,P(n) (conclude)

We also have some useful variants of induction.

c© 2020 KEN MONKS PAGE 30 of 79

Page 31: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Flavors of Induction

induction strong induction

P(0) (show)Let k be arbitrary (variable declaration)

Assume P(k)P(k + 1) (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∀n,P(n) (conclude)

P(0) (show)Let k be arbitrary (variable declaration)

Assume ∀ j, j ≤ k⇒ P( j)P(k + 1) (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∀n,P(n) (conclude)

We can also make some useful definitions about natural numbers. Note that these rules only applyto natural numbers, i.e., the variables that appear all have natural number type.

Divisibility

divides divides

n = m · k (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m | n (conclude)

m | n (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some k, (constant declaration)n = m · k (conclude) (conclude)

not divides not divides

∀k,n , m · k (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m ∤ n (conclude)

m ∤ n (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n , m · k (conclude)

prime prime

n > 1 (show)¬∃k, 1 < k < n and k | n. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n is prime (conclude)

n is prime (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n > 1 (conclude)¬∃k, 1 < k < n and k | n (conclude)

7.4 Basic Results

One of the most important results in Number Theory is the Division Algorithm Theorem. We willstate and prove it in two parts. First we need a result that effectively says that the difference of twomultiples of a nonzero natural number is also a multiple of that number.

Theorem 15. Let n,m be natural numbers with m , 0. There exists unique numbers natural numbers qand r such that

n = q ·m + r and 0 ≤ r < m

In this section we will start to use the usual convention of using concatenation to represent the

c© 2020 KEN MONKS PAGE 31 of 79

Page 32: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

product of two numbers, e.g., we will write mn instead of m · n wherever it makes sense. Allvariable names will be single letters.

7.5 Applications: Cardinal and Ordinal Numbers

The natural numbers have two very different but very useful applications in mathematics (andoutside of mathematics in general).

On the one hand, they are useful for counting. For that we use natural numbers to indicate howmany items are in some collection. Natural numbers used in this way are examples of cardinalnumbers, which are used to measure the relative sizes, or cardinality of collections of items. Thebranch of mathematics that studies cardinality and counting is called Combinatorics. We willdiscuss that in detail in later in the course.

On the other hand, natural numbers are useful for numbering items to put them in some order,a first item, second item, and so on. Natural numbers used in this way are examples of ordinalnumbers and are used to indicate the relative positions of items in an ordered list of items. Suchordered lists are called sequences, which we study next.

Problems

Doing a completely formal proof of even a simple mathematical fact can be extremely tedious. Forthis reason mathematicians use lots of shortcuts and shorthand in their proofs to focus on the mainideas, and leave the boring or repetitive parts out by mutual agreement. We discussed some ofthese proof shortcuts above. You should master these shortcuts before attempting the followingproblems.

Basic Properties

The following theorems can be proved in the order shown, therefore you can use an earlier theoremas a rule of inference in the proof of a later theorem but not vice versa. These should be provedwith a semi-formal proof using the shortcuts described in the next handout.

Strong Induction

1. Prove that the original statement of the principle of induction is equivalent to strong induction.

Properties of the successor function

2. (Nonzero implies successor) ∀n,n , 0⇒∃m,n = σ(m)

3. (No number is its own successor) ∀n,n , σ(n)

Properties of addition

4. (Alternate definition of σ) ∀m, σ(m) = m + 1

5. (Associativity of addition) ∀m,∀n,∀p,m + (n + p) = (m + n) + p

6. (Additive Identity) ∀m, 0 +m = m = m + 0

7. (Commutativity of Adding 1) ∀m, 1 +m = m + 1

c© 2020 KEN MONKS PAGE 32 of 79

Page 33: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

8. (Commutativity of addition) ∀m,∀n,m + n = n +m

9. (Zero sums) ∀m,∀n,m + n = 0⇒m = n = 0

10. (Cancellation Law of addition) ∀p,∀m,∀n,m + p = n + p⇒m = n

Properties of multiplication

11. (Left multiplication by 0) ∀m, 0 ·m = 0

12. (Multiplicative identity) ∀m, 1 ·m = m = m · 113. (Left Distributive Law) ∀n,∀m,∀p, p · (m + n) = p ·m + p · n14. (Right Distributive Law) ∀p,∀n,∀m, (m + n) · p = m · p + n · p15. (Commutativity of multiplication) ∀m,∀n,m · n = n ·m16. (Associativity of multiplication) ∀p,∀m,∀n, (m · n) · p = m · (n · p)

17. (Zero divisors) ∀m,∀n,m , 0 and m · n = 0⇒n = 0

18. (Cancellation Law of multiplication) ∀p, p , 0⇒∀m,∀n, p ·m = p · n⇒m = n

Properties of order

19. (Nonzero is positive) ∀n, 0 ≤ n and (0 < n⇔n , 0)

20. (Successors are bigger) ∀n,n < σ(n).

21. (Alternate definition of <) ∀m,∀n,m < n⇔∃k, k , 0 and m + k = n

22. (Minimum difference) ∀m,∀n,m < n⇔ σ(m) ≤ n

23. (Reflexivity of ≤) ∀n,n ≤ n

24. (Antisymmetry of ≤) ∀m,∀n,m ≤ n and n ≤ m⇒ m = n

25. (Transitivity of ≤) ∀m,∀n,∀p,m ≤ n and n ≤ p⇒ m ≤ p

26. (Irreflexivity of <) ∀n,¬(n < n)

27. (Transitivity of <) ∀m,∀n,∀p,m < n and n < p⇒ m < p

28. (Trichotomy) ∀m,∀n,m < n or m = n or n < m

29. (Translation) ∀m,∀n,∀p,m < n⇔ m + p < n + p

This also holds if < is replaced by ≤ or if m + p < n + p is replaced by p +m < p + n.

30. (Scaling) ∀m,∀n,∀p, p , 0⇒ (m < n⇔ p ·m < p · nThis also holds if < is replaced by ≤ or if p ·m < p · n is replaced by

m · p < n · p

.

Some Number Theory

c© 2020 KEN MONKS PAGE 33 of 79

Page 34: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

31. (Divisibility of differences) ∀b, b , 0⇒∀m,∀n,∀r, bm = bn + r⇒∃p, r = bp.

32. (Division Algorithm - existence) ∀b, b , 0⇒∀a,∃q,∃r, a = b · q + r and 0 ≤ r < b

Note that technically we do not need to state that 0 ≤ r since every natural number is greater than orequal to zero, but we include it here because the theorem also holds for the set of integers.

33. (Division Algorithm - Uniqueness) For all b , 0 and all a, q, r, s, t, if

1. a = bq + r and 0 ≤ r < b

2. a = bs + t and 0 ≤ t < b

then q = s and r = t.

34. (Everything divides zero) ∀m,m | 035. (Every number divides itself ) ∀m, 1 | m and m | m36. (Divisors are smaller) ∀m,∀n,n , 0 and m | n⇒ m ≤ n

37. (Divisors divide products) ∀m,∀n,∀p,m | n⇒ m | n · p38. (Common divisors divide sums) ∀m,∀n,∀p, p | m and p | n⇒ p | (m + n)

39. (Common divisors divide differences) ∀m,∀n,∀p, p | m and p | m + n⇒ p | n40. (Divisibility is transitive) ∀m,∀n,∀p,m | n and n | p⇒ m | p41. (Mutual divisors are equal) ∀m,∀n,m | n and n | m⇔ m = n

8 Sequences

8.1 Finite and Infinite Sequences

Just as the concept of a number is fundamental in mathematics, so is the concept of an ordered listof items. We extend the system of logic an natural numbers defined thus far by adding to it theconcept of two basic kinds of ordered lists.

A finite sequence of length n (also called an n-tuple) is a numbered list of items, one for each of thenatural numbers less than n. A infinite sequence is numbered list of items, one for each of the naturalnumbers. In both cases, we will refer to the number assigned to a given item in the sequence as itsstandard index. Thus, the first item in a sequence will always have a standard index of 0.

The items in a sequence are called its terms. The the same item can appear more than once, i.e.,terms with different standard indices can be equal. Two sequences are equal if and only if all oftheir corresponding terms (those with the same standard index) are equal. The length of a finitesequence is the same as the number of terms.

One consequence of this is that every sequence that has terms must have a term with index 0 whichmust come before every other term in the sequence. This is called the first (1st) term. Similarlyif there is a term with index 1, we call it the second (2nd) term, and so on with a term of index kcalled the (k + 1)st term of the sequence.

c© 2020 KEN MONKS PAGE 34 of 79

Page 35: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Thus, every sequence that has terms has a first term. Additionally, no term of an infinite sequencecan be preceded in the list by infinitely many terms. Indeed, every term has an index m and musthave exactly m terms that precede it (one for each natural number less than m).

8.2 Representations of Sequences

Listing Terms

Finite sequences are frequently denoted by simply listing their terms in order from left to rightseparated by commas, with the whole thing enclosed in parenthesis.

For example,(S,E,Q,U,E,N,C,E)

is a sequence of length 8 whose first term is S, second term is E, and so on. These can be numberedin order from left to right with the natural numbers less than 8 as shown:

(S0,E

1,Q

2,U

3,E

4,N

5,C

6,E

7)

Infinite sequences cannot be completely denoted in this manner, but are often informally (andsomewhat ambiguously) written by writing their first few terms followed by an ellipsis. Forexample we might write the infinite sequence of odd natural numbers as

(1, 3, 5, 7, . . .)

This sequence can be numbered in order with the natural numbers as indicated

(10, 3

1, 5

2, 7

3, . . .)

Infinite sequences written in this manner are ambiguous because the reader must make assump-tions about what terms are omitted, and so this notation is only used informally.

A similar informal notation can be used for finite sequences when there are too many terms toconveniently list them all, by using an ellipses in place of missing terms. For example, we mightdenote the sequence of even integers less than 100 as

(0, 2, 4, 6, . . . , 96, 98)

which are indexed(0

0, 2

1, 4

2, 6

3, . . . , 96

48, 98

49)

Note that the ellipsis can represent as many terms as we like since the notation is informal. Sincethe sequence of length 0 has no terms it can be denoted ( ). For sequences with one or moreterms the surrounding parentheses are frequently omitted when it is clear from context that it is asequence, for example,

S,E,Q,U,E,N,C,Eor

x1, x3, x5, x7, . . .

or0, 2, 4, . . . , 96, 98

c© 2020 KEN MONKS PAGE 35 of 79

Page 36: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Lambda Expressions

Another way to represent a sequence is with a lamba expression λk,E where k is either a naturalnumber or a natural number less than some natural number n. If a = (λk,E) is such an expressionit defines a sequence such that a(k) is the term of the sequence with index k.

One big advantage to this representation is that it allows us to represent infinite sequences un-ambiguously. It is so useful that we define several special new expressions to represent suchsequences.

Notation 16. If n is a natural number and a = (λk,E) we define ak = a(k). We write (ak)∞k=0 for theinfinite sequence whose term with index k is ak. Similarly, we write (ak)n

k=0 for the finite sequenceof length n whose term with index k is ak.

Comparing this notation to the listing notation we have

(ak)nk=0 = (a0, a1, a2, . . . , an)

and(ak)∞k=0 = (a0, a1, a2, . . .)

In particular, we can express the sequence of all odd integers both rigorously and unambigouslyas

(2k + 1)∞k=0 = (1, 3, 5, 7, . . .)

and the sequence of even numbers less than 100 as

(2k)49k=0 = (0, 2, 4, . . . , 96, 98)

8.3 Reindexing

In everyday use, and in mathematics in particular, we often place items in order by numberingthem with consecutive natural numbers that do not necessarily start with zero. For example it isfrequently natural to index the first element of sequence with 1 instead of zero so that the kth termhas index k.

Thus, while we always use a sequence of consecutive natural number for the indices of a sequence,it is sometimes convenient to reindex a sequence so that its first term has an index other than 0.

Notation 17. Let m,n be a natural numbers. Then

(ak)∞k=m = (am, am+1, am+2, . . .) = (am+k)∞k=0

Furthermore, if m + j = n then

(ak)nk=m = (am, am+1, . . . , an) = (am+k) j

k=0

Finally if n < m then (ak)nk=m = ( ).

c© 2020 KEN MONKS PAGE 36 of 79

Page 37: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Reindexing and Induction

Sometimes a statement is not true for all naturals but rather is true for all sufficiently large naturalnumbers.

Exercise 18. Prove the following for of induction is equivalent to the original form in which westated induction. Let a be a natural number and P be some statement about natural numbers. Then

(P(a) and ∀k, k ≥ a⇒ (P(k)⇒ P(k + 1)))⇒ (∀n,n ≥ a⇒ P(n))

We can expand this to a more useful rule of inference.

Induction from a

Induction from a

P(a) (show)Let k be arbitrary (variable declaration)

Assume k ≥ aAssume P(k)P(k + 1) (show)←

←←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .∀n,n ≥ a⇒ P(n) (conclude)

The situation in the previous recipe comes up quite often, namely where we declare an arbitraryvariable and then immediately assume it has some property.

Notation 19 (Let-assume). We define the proof block starting with

Let k ≥ a

to be an abbreviation for the nested blocks starting with

Let k be arbitraryAssume k ≥ a

and similarly for any property of x that starts with x (so it is clear what is being declared).

8.4 Recursive Definitions and Sequences

One kind of definition that frequently goes hand-in-hand with such sequences and induction, arerecursive definitions in which some sequence of entities is defined for some base case(s) first, andthen new entities are defined in terms of previously defined objects of the same kind.

c© 2020 KEN MONKS PAGE 37 of 79

Page 38: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

One convenient way to write such definitions is to use cases notation.

E =

v1 if P1

v2 if P2...

...

vk otherwise

(1)

where E is the expression being defined, v1, . . . , vk are the values of the expression, and P1, . . . ,Pkare statements which specify the conditions for which E has the given values. The final condition’otherwise’ is optional and is an abbreviation for Pk = ¬(P1 or P2 or · · · or Pk−1). The entire equationgiven in (1) is an abbreviation for the statement

(P1 ⇒ E = v1) and (P2 ⇒ E = v2) · · · (Pk ⇒ E = vk)

Similarly, we can define sequences recursively by lambda expressions, a for which an is defined interms of one or more values of ak for k < n.

Here are a few common definitions related to recursively defined sequences. In the followingtable, a is a lambda expression which produces terms which are themselves natural numbers, andk,m,n, z are natural numbers.

Sequences and Recursive Definitions

Name Definition

Subscript notation: an = a(n)

Finite Sequence: (ak)nk=0 = (a0, a1, . . . , an)

Reindexed Finite Sequence: (ak)n+mk=m = (ak+m)n

k=0

Infinite Sequence: (ak)∞k=0 = (a0, a1, a2, . . .)

Reindexed Infinite Sequence: (ak)∞k=m = (ak+m)∞k=0

Summation:0∑

k=0

ak = a0 andn+1∑k=0

ak = an+1 +

n∑k=0

ak

Reindexed Summation:m∑

k=m

ak = am andn+1+m∑

k=m

ak = an+1+m +

n+m∑k=m

ak

Powers: z0 = 1 and zn+1 = z · zn

Factorial: 0! = 1 and (n + 1)! = (n + 1) · n!

Fibonacci Numbers: F0 = 0, F1 = 1 and Fn+2 = Fn+1 + Fn

c© 2020 KEN MONKS PAGE 38 of 79

Page 39: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Sequences and Recursive Definitions (cont.)

Name Definition

Binomial coefficients(horizontal):

( n 0 ) = ( 0 m ) = 1 and( n + 1 m + 1 ) = ( n + 1 m ) + ( n m + 1 )

Binomial coefficients:(n+m

n)= ( n m )

Note that∑

has higher precedence than +, but lower than ·. For example,

n∑k=0

ak · bk +

m∑j=0

c j · d j

means n∑k=0

ak · bk

+ m∑

j=0

c j · d j

Also factorial has a higher precedence that multiplication, so that e.g., m · n! means m · (n!) and not(m · n)!

Shortcut: by arithmetic

From now on we will allow ’by arithmetic’ as a shortcut for justifying facts about natural numberconstants that could be checked on an ordinary calculator. Thus we can justify facts like 2 + 3 = 5or 5 < 13 with the reason ’by arithmetic’ and no premises. This shortcut only applies to constants,not variables or expressions involving variables.

Problems

Prove the following theorems.

1. The natural number k! is always positive.

2. (Power laws) If m,n,w, z are natural numbers then

(a) z1 = z

(b) zm · zn = zm+n

(c) (zm)n = zm·n

(d) (w · z)n = wn · zn

3. For all natural numbers n ≥ 5,n2 < 2n

c© 2020 KEN MONKS PAGE 39 of 79

Page 40: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

4. (Distributing∑

over sums) Suppose n is a natural number, and (a)nk=0 and (b)n

k=0 are finitesequences of natural numbers. Then

n∑k=0

(ak + bk) =n∑

k=0

ak +

n∑k=0

bk

5. Let n be a natural number. ThenFn+3 + Fn = 2 · Fn+2

6. (Symmetry of binomial coefficients) For any natural numbers n and m,(n +m

n

)=

(n +m

m

).

7. For all natural numbers n ≥ 4,2n < n!

8. (Gauss’s Formula) For every natural number n,

2 ·n∑

k=0

k = n · (n + 1)

.

9. (Closed formula for binomial coefficients) For all natural numbers n and m,

n! ·m! ·(n +m

n

)= (n +m)!

.

10. (Transposing summations) Given natural numbers m,n, and sequences (a)mk=0 and (b)n

j=0,

m∑k=0

n∑j=0

akb j =

n∑j=0

m∑k=0

akb j

11. For all natural numbers n,F2(n+1) = Fn+1 · (Fn+2 + Fn)

12. Let n be a natural number. Then

1 +n∑

k=0

Fk = Fn+2

13. (Row sum in Pascal’s triangle) Given a natural number n,

n∑k=0

(nk

)= 2n

c© 2020 KEN MONKS PAGE 40 of 79

Page 41: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

14. Let n be a natural number and define a to be the infinite sequence satisfying

a0 = 1 and an+1 = an + 8n

Then for all n , 0,an+1 = (2n + 1)2

15. Suppose n is a natural number. Then

n∑k=0

(nk

)· Fk = F2n

16. If n is a natural number and k ≤ n, then

(k + 1) ·(n + 1k + 1

)= (n + 1) ·

(nk

)

17. For any natural number n,

1 +n∑

k=0

k · k! = (n + 1)!

18. For any natural number n,n+1∑k=0

k2 · (k + 1)! = n · (n + 3)! + 2

19. (Hockey Stick identity) For all natural number n,

n∑k=m

(km

)=

(n + 1m + 1

)

20. For any natural numbers x and n,

(1 + x)n =

n∑k=0

(nk

)· xk

c© 2020 KEN MONKS PAGE 41 of 79

Page 42: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

9 Integer, Rational, and Real Numbers

9.1 Notation

We have defined the natural numbers via the Peano Postulates, and now would like to turn ourattention to other famous sets of numbers, namely the integers, rationals, and real numbers.

Natural numbers, integers, and rational numbers all turn out to be special kinds of real numbersso it suffices to define the real numbers first, and then specify which real numbers are consideredto be natural, integers, and rational numbers.

In addition to defining the real numbers themselves, we would like our real numbers to be orderedso that we can tell when one real number is less than another. If x, y are real numbers, we willwrite x < y as usual to indicate that x is less than y.

We would also like to be able to add and multiply any two real numbers. As usual, if x, y are realnumbers, we will write x + y for their sum and x · y as their product. With this notation in handwe can now define the real numbers.

9.2 The Axioms for Real Numbers

In the following axioms, 0 and 1 are constants, the variables x, y, z,m,M are real numbers, and a isan infinite sequence of real numbers.

The Axioms for Real Numbers

Axiom Name Definition

Axioms of Addition

closure of + x + y is a real number

identity of + 0 is a real number and x + 0 = 0 + x = xinverse for + −x is a real number and x + (−x) = −x + x = 0

commutativity of + x + y = y + xassociativity of + (x + y) + z = x + (y + z)

Axioms of Multiplication

closure of · x · y is a real number

identity of · 1 is a real number, 1 , 0, and 1 · x = x · 1 = xinverse for · if x , 0 then x− is a real number and x · x− = x− · x = 1

commutativity of · x · y = y · xassociativity of · (x · y) · z = x · (y · z)

c© 2020 KEN MONKS PAGE 42 of 79

Page 43: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

The Axioms for Real Numbers (cont.)

Axiom Name Definition

Axioms of Order

irreflexive ¬(x < x)

transitive x < y and y < z⇒ x < zsemiconnex x , y⇒ x < y or y < xcomplete Every sequence of real numbers which has an upper bound

has a least upper bound. 6

Axioms Relating +, ·, and <

distributivity x · (y + z) = x · y + x · z and (y + z) · x = y · x + z · xtranslation x < y⇒ x + z < y + zproduct of positives 0 < x and 0 < y⇒ 0 < x · y

It is also helpful to make some convenient definitions. In the following definitions, let x, y, z bereal numbers.

Definitions for Real Numbers

Name Definition

≤ x ≤ y⇔ x < y or x = y> y > x⇔ x < y≥ x > y or x = ypositive x is positive⇔ 0 < xnegative x is negative⇔ x < 0

nonnegative x is nonnegative⇔ 0 ≥ xnonzero x is nonzero⇔ x , 0

subtraction x − y = x + (−y)

quotient if y , 0 then x/y = x · y−)

absolute value |x| =x if 0 ≤ x−x otherwise

distance the distance from x to y is |x − y|increasing (an)∞n=0 is increasing⇔∀k, ak < ak+1

nondecreasing (an)∞n=0 is nondecreasing⇔∀k, ak ≤ ak+1

decreasing (an)∞n=0 is decreasing⇔∀k, ak > ak+1

6(∃M,∀k, ak ≤M)⇒ (∃m, (∀k, ak ≤ m) and ∀M, (∀k, ak ≤M)⇒ m ≤M)

c© 2020 KEN MONKS PAGE 43 of 79

Page 44: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definitions for Real Numbers (cont.)

Name Definition

nonincreasing (an)∞n=0 is nonincreasing⇔∀k, ak ≥ ak+1

We also interchangeably use the abbreviations x ≮ y, x ≰ y, x ≯ y, and x ⩾̸ y to say that x is not lessthan y, not less than or equal to y, not greater than y, and not greater than or equal to y respectively.As before, we will also use the shortcut of identifying the statements x ≤ y with y ≥ x, and x < ywith y > x, without the need to justify it as a separate step.

9.3 Basic Properties of Real Numbers

Armed with the axioms and definitions above we can now prove a lot of properties of real numbers.

Problems

Prove each of the following facts about the real numbers.

1. (Product with zero) x · 0 = 0 · x = 0

2. (Warm up facts) We know from the axioms that 0 , 1. Now prove the following.

(a) −0 = 0

(b) −1 , 1

(c) 0 < 1

3. (Cancellation for addition) If x + z = y + z then x = y.

4. (Cancellation for multiplication) If z , 0 and z · x = z · y then x = y.

5. (Additive inverses are unique) If z + x = 0 and z + y = 0 then x = y.

6. (Multiplicative inverses are unique) If z · x = 1 and z · y = 1 then x = y.

7. (Inverse of additive inverse) If x is a real number then −(−x) = x.

8. (Reciprocals are nonzero) If x , 0 then x− , 0.

9. (Inverse of multiplicative inverse) If x is a real number and x , 0 then (x−)− = x.

10. (Alternate additive inverse) If x is a real number then −x = −1 · x.

11. (Alternate multiplicative inverse) If x is a real number and x , 0 then (x−) = 1x .

12. (Generalized additive inverse) If x, y are any real numbers then there exists a unique real numberz such that x + z = y.

13. (Generalized multiplicative inverse) If x, y are any nonzero real numbers then there exists aunique nonzero real number z such that x · z = y.

c© 2020 KEN MONKS PAGE 44 of 79

Page 45: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

14. Signed products For any real numbers x, y,

−x · y = x · −y = −(x · y)

and−x · −y = x · y

15. Signed quotients For any real numbers x, y, z

−xy=

x−y=− (

xy

)and −x

−y=

xy

16. (Trichotomy) For every real number x exactly one of the following is true:

a. x < 0b. x = 0c. 0 < x

17. (Asymmetry) If x < y then y ≮ x.

18. (Product of signs) For all nonzero real numbers x, y

a. 0 < x and 0 < y⇒ 0 < x · yb. x < 0 and y < 0⇒ 0 < x · yc. 0 < x and y < 0⇒ x · y < 0d. x < 0 and 0 < y⇒ x · y < 0

19. (Inverses are opposite) (−x < 0⇔ 0 < x) and (x < 0⇔ 0 < −x)

20. (Negating an inequality) x < y if and only if −y < −x.

21. (Scaling by a positive) If 0 < z and x < y then z · x < z · y.

22. (Scaling by a negative) If z < 0 and x < y then z · y < z · x.

23. (Properties of ≤) For all real numbers x, y, z,

a. connexive x ≤ y or y ≤ xb. antisymmetric x ≤ y and y ≤ x⇒ x = yc. transitive x ≤ y and y ≤ z⇒ x ≤ zd. negating If x ≤ y then −y ≤ −x.e. multiplying by a positive If 0 ≤ z and x < y then z · x < z · y.f. multiplying by a negative If z < 0 and x < y then z · y < z · x.

24. (Squares are nonnegative) If x is a real number then 0 ≤ x2.

25. (Zero divisors) If x · y = 0 then x = 0 or y = 0.

c© 2020 KEN MONKS PAGE 45 of 79

Page 46: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

9.4 Integers

Every natural number can be considered to be a real number. To see this, define the successor σ(x)of a real number x to be the real number x + 1 and recursively define the sequence (Nk)∞k=0 by

N0 = 0 and Nk+1 = σ(Nk)

It can be shown that the terms of N, σ, 0, +, ·, and < satisfy the Peano Axioms (see problem#5 below). Therefore, anything we can prove about the natural numbers is true about the realnumbers of the form Nk for some k. This prompts the following new (but equivalent) definition ofthe natural numbers as a collection of certain real numbers.

Definition (Natural Numbers). A real number n is said to be a natural number if and only if n = Nkfor some natural number k.

Notice that the natural number we called 1 is σ(N0) = 0 + 1 = 1 in the reals. So both 0 and 1 in thereals correspond to what we refer to as 0 and 1 in natural numbers. Similarly, we can refer to therest of the natural numbers in the reals as we did before, namely N0 = 0 σ(0) = 1, σ(1) = 2, σ(2) = 3,σ(3) = 4, and so on.

But there are many more real numbers than just the natural numbers. For example, there is nonatural number that when added to 2 gives 1. But there is such a real number. This allows us todefine the integers.

Definition (Integers). A real number is an integer if and only if it is either (a) a natural number or(b) the additive inverse of a natural number.

These are the ordinary integers that we have all come to know and love. But there are many morereal numbers besides the integers. For example, there is no integer that you can multiply by 5 toget 3. But there is such a real number. This allows us to define the rational numbers.

Definition (Rational Numbers). A real number is rational if and only if some integer multiple ofit is an integer, i.e., a real number r is rational if and only if there is some nonzero integer m suchthat r ·m is an integer.

Indeed, in this definition if we define k = r · m then we can show that r = km , i.e., the quotient of

two integers. Thus, once again, the rational numbers are the familiar quotients of integers we allknow and love.

Problems

Prove each of the following facts about the real numbers.

1. (Unnatural integers) There exist integers which are not natural numbers.

2. (Additive inverses in the integers) For every integer m there exists a unique integer n such thatm + n = n +m = 0.

3. (Closure in the integers) For any integers m,n both m + n, m − n, and m · n are integers.

c© 2020 KEN MONKS PAGE 46 of 79

Page 47: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

4. (Closure in the rationals) For any rational numbers m,n, both m + n and m · n are also rationalnumber. Furthermore, if n , 0 then m

n is also a rational number.

5. (Every natural is real) Show that the terms of the sequence N, 0, and σ together satisfy thePeano Axioms.

6. (Every natural is an integer) Show that the terms of the sequence N, 0, and σ together satisfythe Peano Axioms.

7. (Every integer is rational) Show that the terms of the sequence N, 0, and σ together satisfy thePeano Axioms.

8. (Alternate definition of rational) A real number r is rational if and only if for some integer mand some nonzero integer n,

r =mn

9. (Equivalent fractions) If k,m,n are nonzero integers, the

k ·mk · n =

mn

10. (No gaps) There is a rational number strictly between any two distinct rational numbers, i.e.,if s, t are rational number with s < t then there exists a rational number r such that

s < r < t

11. (Completeness for lower bounds) Every infinite sequence of real numbers that has a lower boundhas a greatest lower bound.

9.5 Infinite Series and Decimal Representation

As we have seen above, natural numbers can be expressed in the form 0, 1, 2, 3, . . .. Similiarly,integers can be expressed as . . . , −3, −2, −1, 0, 1, 2, 3, . . .. As seen above, the rational numbers can allbe represented as quotients of integers. But what about arbitrary real numbers?

For these we have their decimal or base ten representations. These can be defined in terms as aspecial kind of infinite series.

Definition 20. Let (a)∞k=0 be a sequence of nonnegative real numbers such that the sequence ofpartial sums n∑

k=0

ak

n=0

= a0, a0 + a1, a0 + a1 + a2, . . .

is bounded above. For such sequences we define the infinite series

∞∑n=0

ak

to be the least upper bound of the sequence of partial sums.

c© 2020 KEN MONKS PAGE 47 of 79

Page 48: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

This allows us to define the decimal representation of any real number.

Definition 21. Let x be a nonnegative real number. A digit is one of the numbers 0, 1, 2, . . . , 9. If(dn−k)∞k=0 is a sequence of digits such that

x = Σ∞k=0dn−k · 10n−k

then the expressiondndn−1 · · · d0.d−1d−2d−3 · · ·

is called a decimal representation of x. In this situation a decimal representation of −x is just

−dndn−1 · · · d0.d−1d−2d−3 · · ·

Problems

Prove the following theorems about the real numbers.

1. ( Finite Geometric Series) For every natural number n and every read number r other than 1,

n∑k=0

rk =1 − rn+1

1 − r

2. ( Geometric Series) For every every real number r, if −1 < r < 1 then

∞∑k=0

rk =1

1 − r

3. (One third) The decimal representation of 13 is 0.333333..., i.e., d0 = 0 and dk = 3 for all negative

integers k.

10 Sets, Functions, Numbers

10.1 Basic Definitions from Set theory

The symbol ∈ is formally undefined, but it means “is an element of”. The expression x ∈ A is astatement that is true if and only if A is a set and x is an element of A. The constant ∅ is set calledthe empty set. Many of the definitions below are informal definitions that are sufficient for ourpurposes.

c© 2020 KEN MONKS PAGE 48 of 79

Page 49: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Basic set notation and operations

Basic Set Notation and Operations

Name Definition

Finite set notation x ∈ {x1, . . . , xn} ⇔ x = x1 or · · · or x = xn

Set builder notation x ∈ {y : P

(y) }⇔ P (x)

Subset A ⊆ B⇔ ∀x, x ∈ A⇒ x ∈ B

Set equality A = B⇔ A ⊆ B and B ⊆ A

Def. of < x < A⇔ ¬ (x ∈ A)

Empty set A = ∅⇔∀x, x < A

Power set P (A) = {B : B ⊆ A}Intersection x ∈ A ∩ B⇔ x ∈ A and x ∈ B

Union x ∈ A ∪ B⇔ x ∈ A or x ∈ B

Relative Complement x ∈ B − A⇔ x ∈ B and x < A

Complement x ∈ A′ ⇔ x < A

Indexed Intersection x ∈ ⋂i∈I

Ai ⇔ ∀i, i ∈ I⇒ x ∈ Ai

Indexed Union x ∈ ⋃i∈I

Ai ⇔ ∃i, i ∈ I and x ∈ Ai

Two convenient abbreviations(∀x ∈ A,P (x))⇔∀x, x ∈ A⇒ P(x)(∃x ∈ A,P (x))⇔∃x, x ∈ A and P(x)

As usual, in addition to using the above definitions in our proofs, we can also derive many usefulrules of inference from them.

Basic Set Theory

Finite set notation+ Finite set notation−x = a1 or x = a2 or · · · or x = an (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ {a1, . . . , an} (conclude)

x ∈ {a1, . . . , an} (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x = a1 or x = a2 or · · · or x = an (conclude)

Set builder+ Set builder−P (x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ {

y : P(y)}

(conclude)

x ∈ {y : P

(y) }

(show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .P (x) (conclude)

c© 2020 KEN MONKS PAGE 49 of 79

Page 50: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Basic Set Theory (cont.)

Subset+ Subset−Let x ∈ A (variable declaration)x ∈ B (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A ⊆ B (conclude)

A ⊆ B (show)x ∈ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ B (conclude)

Set equality+ Set equality−Let x ∈ A (variable declaration)x ∈ B (show)←Let x ∈ B (variable declaration)x ∈ A (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A = B (conclude)

(see Substitution)

Empty Set+ Empty Set−Let x (variable declaration)x < A (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A = ∅ (conclude)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x < ∅ (conclude)

Power Set+ Power Set−B ⊆ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B ∈ P (A) (conclude)

B ∈ P (A) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B ⊆ A (conclude)

Intersection+ Intersection−x ∈ A (show)x ∈ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ A ∩ B (conclude)

x ∈ A ∩ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ A (conclude)x ∈ B (conclude)

Union+ Union−x ∈ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ A ∪ B (conclude)x ∈ B ∪ A (conclude)

x ∈ A ∪ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ A or x ∈ B (conclude)

c© 2020 KEN MONKS PAGE 50 of 79

Page 51: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Basic Set Theory (cont.)

Relative Complement+ Relative Complement−x ∈ B (show)x < A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ B − A (conclude)

x ∈ B − A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ B (conclude)x < A (conclude)

Complement+ Complement−x < A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ A′ (conclude)

x ∈ A′ (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x < A (conclude)

Indexed Intersection+ Indexed Intersection−Let k ∈ I (variable declaration)x ∈ Ak (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ ⋂

i∈IAi (conclude)

x ∈ ⋂i∈I

Ai (show)

k ∈ I (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ Ak (conclude)

Indexed Union+ Indexed Union−∃k ∈ I, x ∈ Ak (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ ⋃

i∈IAi (conclude)

x ∈ ⋃i∈I

Ai (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some k ∈ I, (constant declaration)x ∈ Ak (conclude)

Remarks:

• The expression “Let x ∈ A” is an abbreviation for “Let x be arbitrary. Assume x ∈ A.”. Thus thereis a hidden assumption to keep track of when using this shortcut. See the Section 6 abovefor details.

• As usual we will just use x < A and not x ∈ A interchangeably in our proofs without invokingseparate “Not an element of” rules.

10.2 Famous Sets of Numbers

Famous Sets of Numbers

Name Notation

The Natural Numbers N = {0, 1, 2, 3, 4, . . .}The Integers Z = {. . . ,−3,−2,−1, 0, 1, 2, 3, . . .}The Rational Numbers Q =

{ab : a, b ∈ Z and b , 0

}c© 2020 KEN MONKS PAGE 51 of 79

Page 52: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Famous Sets of Numbers (cont.)

Name Notation

The Real Numbers R ={x : x can be expressed as a decimal number

}The Complex Numbers C =

{x + yi : x, y ∈ R}

where i2 = −1

The positive real numbers R+ = {x : x ∈ R and x > 0}The negative real numbers R− = {x : x ∈ R and x < 0}The positive reals in a set A A+ = A ∩R+

The negative reals in a set A A− = A ∩R−

The first n positive integers In = {1, 2, . . . , n}The first n + 1 natural numbers On = {0, 1, 2, . . . , n}

Remarks: The sets N, Z, Q, R, and C are all closed under addition and multiplication, and allexceptN are closed under subtraction (i.e., there is an additive inverse for every number). Thus,for example, if you know that a, b ∈ C you can say that a · b ∈ C by closure of multiplication. All ofthe nonzero numbers in Q, R, and C are invertible, i.e., they have a reciprocal.

10.3 Quotient, Remainder, Divisibility, and Mod

Many of the definition about natural numbers can be extended to the integers, and some newdefinitions are possible since the integers are closed under subtraction. In the following all singleletter variables have type integer unless otherwise specified.

Definitions for Integers

Name Definition

Division Algorithm7 ∀a,∀b > 0,∃!q,∃!r, a = qb + r and 0 ≤ r < b

Quotient ∀a,∀b , 0,∀q,∀r, a = qb + r and 0 ≤ r < b⇔ q =(a quo b

)Remainder ∀a,∀b , 0,∀q,∀r, a = qb + r and 0 ≤ r < b⇔ r = (a mod b)

Divides ∀a, b ∈ Z, a | b⇔∃q ∈ Z, b = qa

Divisor (or factor) a is a divisor (or factor) of b⇔ a | bEven a is even ⇔ 2 | aOdd a is odd ⇔ a is not even

Prime p is prime⇔ p > 1 and ∀a > 0, a | p⇒ a = 1 or a = p

7this is actually a theorem

c© 2020 KEN MONKS PAGE 52 of 79

Page 53: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definitions for Integers (cont.)

Name Definition

Composite n is composite⇔∃a, a | n and 1 < a < n

Greatest Common Divisor d = gcd (a, b)⇔d > 0 and d | a and d | b and ∀c > 0, c | a and c | b⇒ c ≤ d

Least Common Multiple d = lcm (a, b)⇔d > 0 and a | d and b | d and ∀c > 0, a | c and b | c⇒ d ≤ c

GCD (alt version) d = gcd (a, b)⇔d > 0 and d | a and d | b and ∀c > 0, c | a and c | b⇒ c | d

LCM (alt version) d = lcm (a, b)⇔d > 0 and a | d and b | d and ∀c > 0, a | c and b | c⇒ d | c

Relatively Prime a, b are relatively prime⇔gcd (a, b) = 1

Congruent mod m ∀m ∈N,∀a, b, a ≡m

b⇔m | (a − b)

Remarks: It is also possible to define prime and composite for negative integers by removing therestriction that they be positive from their respective definitions.

Rules of Inference for Divisibility

Division Algorithm (existence) Division Algorithm (uniqueness)

b > 0 (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some q ∈ Z and r ∈N, (constant declaration)a = qb + r (conclude)0 ≤ r < b (conclude)

b , 0 (show)a = qb + r (show)0 ≤ r < b (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .q =

(a quo b

)(conclude)

r = (a mod b) (conclude)

Quotient Remainder

q =(a quo b

)(show)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a = qb + r for some 0 ≤ r < b (conclude)

r = (a mod b) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a = qb + r for some q (conclude)

Divides+ Divides−b = aq (show)q ∈ Z (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a | b (conclude)

a | b (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .b = aq for some q ∈ Z (conclude)

c© 2020 KEN MONKS PAGE 53 of 79

Page 54: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Divisibility (cont.)

Divisor+ Divisor−b = aq (show)q ∈ Z (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a is a divisor of b (conclude)

a is a divisor of b (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .b = aq for some q ∈ Z (conclude)

Prime+ Prime−p > 1 (show)

Let a > 0 (variable declaration)Assume a | pa = 1 or a = p (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .p is prime (conclude)

p is prime (show)a > 0 (show)a | p (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a = 1 or a = p (conclude)

Composite+ Composite−n>0 (show)n = ab (show)1 < a < n (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n is composite (conclude)

n is composite (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .n>0 (conclude)n = ab for some 1 < a, b < n (conclude)

gcd+ gcd−d > 0 (show)d | a (show)d | b (show)

Let c > 0 (variable declaration)Assume c | a and c | bc ≤ d (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d = gcd (a, b) (conclude)

d = gcd (a, b) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d > 0 (conclude)d | a (conclude)d | b (conclude)∀c > 0, c | a and c | b⇒ c ≤ d (conclude)

c© 2020 KEN MONKS PAGE 54 of 79

Page 55: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Divisibility (cont.)

gcd+(alt) gcd−(alt)

d > 0 (show)d | a (show)d | b (show)

Let c > 0 (variable declaration)Assume c | a and c | bc | d (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d = gcd (a, b) (conclude)

d = gcd (a, b) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d > 0 (conclude)d | a (conclude)d | b (conclude)∀c > 0, c | a and c | b⇒ c | d (conclude)

lcm+ lcm−d > 0 (show)a | d (show)b | d (show)

Let c > 0 (variable declaration)Assume a | c and b | cd ≤ c (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d = lcm (a, b) (conclude)

d = lcm (a, b) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d > 0 (conclude)a | d (conclude)b | d (conclude)∀c > 0, a | c and b | c⇒ d ≤ c (conclude)

lcm+(alt) lcm−(alt)

d > 0 (show)a | d (show)b | d (show)

Let c > 0 (variable declaration)Assume a | c and b | cd | c (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d = lcm (a, b) (conclude)

d = lcm (a, b) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .d > 0 (conclude)a | d (conclude)b | d (conclude)∀c > 0, a | c and b | c⇒ d | c (conclude)

Relatively prime+ Relatively prime −gcd (a, b) = 1 (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a, b are relatively prime (conclude)

a, b are relatively prime (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .gcd (a, b) = 1 (conclude)

c© 2020 KEN MONKS PAGE 55 of 79

Page 56: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Divisibility (cont.)

Congruent mod m+ Congruent mod m−m | a − b (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .a ≡

mb (conclude)

a ≡m

b (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .m | a − b (conclude)

Remarks: Keep in mind that all single letter variables in these recipes have type natural number, soyou can’t use these recipes on expressions that don’t have the correct type.

10.4 Shortcuts involving sets

10.4.1 Use Typed Declarations

We define "Let x ∈ A" to be an abbreviation for:

Let x be arbitrary.Assume x ∈ A

Notice that this destroys our careful indentations because there is a hidden assumption in thestatement. Usually this is not a problem.

We also define "∀x ∈ A,P(x)" as an abbreviation for "∀x, x ∈ A ⇒ P(x)" and "∃x ∈ A,P(x)" as anabbreviation for "∃x, x ∈ A and P(x)". Once again, these are used interchangeably in the proof, i.e.treated as if they are the same statement. Thus there is no need to convert form one form to theother. We can think of this as declaring the type of the bound variable in the quantifier in eachcase.

Thus, in particular if you have the statement ∃x ∈ A,P(x) in your proof, you can apply the ∃− ruledirectly as shown.

......

5. ∃x ∈ A,P(x) for some reason

6. For some c ∈ A -

7. P(c) by ∃− ; 5...

...

which in turn is equivalent to

......

c© 2020 KEN MONKS PAGE 56 of 79

Page 57: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

5. ∃x ∈ A,P(x) for some reason

6. For some c -

7. c ∈ A and P(c) by ∃− ; 5...

...

Note that a line such as "For some c ∈ A is both a statement and a constant declaration.

This idea can be extended to other predicates after the quantifier, i.e., "∀Q(x),P(x)" as an abbrevia-tion for "∀x,Q(x)⇒ P(x)" and "∃Q(x),P(x)" as an abbreviation for "∃x,Q(x) and P(x)". For example,we might say something like ∀ f : A→ B,∀x ∈ A, f (x) = 1. (For what set B would this be true?)

Finally, we often combine multiple quantifiers into one by defining "∀x0, . . . , xn,P(x0, . . . , xn)" asan abbreviation for "∀x0,∀x1, · · · ∀xn,P(x0, . . . , xn)" and "∃x0, . . . , xn,P(x0, . . . , xn)" as an abbreviationfor "∃x0,∃x1, . . .∃xn,P(x0, . . . , xn)".

10.4.2 Use Extended Set-Builder Notation

In addition to set builder notation, {x : P(x)} where P is a predicate, it is quite common practice inmathematics to write sets in the form

{E(x0, . . . , xn) : P(x0, . . . , xn)}

where E(x0, . . . , xn) is an expression containing the free variables x0, . . . , xn and P is a predicate.This is defined to be a shorthand for

{x : ∃x0, . . . , xn, x = E(x0, . . . , xn) and P(x0, . . . , xn)} .

Example 22. When we writeC = {a + bi : a, b ∈ R}

this is an abbreviation forC = {x : ∃a, b, x = a + bi and a, b ∈ R}

or equivalentlyC = {x : ∃a, b ∈ R, x = a + bi} .

Thus, if you need to pick an arbitrary element of C in your proof you should do it like this:

......

5. C = {a + bi : a, b ∈ R} given

6. Let z ∈ C -

7. For some a, b ∈ R -

8. z = a + bi by the definition of C;5,6...

...

c© 2020 KEN MONKS PAGE 57 of 79

Page 58: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

10.5 Cartesian products

Cartesian products

Name Definition

Ordered Pairs(x, y

)= (u, v)⇔ x = u and y = v

Ordered n-tuple (x1, . . . , xn) =(y1, . . . , yn

)⇔ x1 = y1 and · · · and xn = yn

Cartesian Product A × B ={(

x, y)

: x ∈ A and y ∈ B}

Cartesian Product A1×· · ·×An = {(x1, . . . , xn) : x1 ∈ A1 and · · · and xn ∈ An}Power of a Set An = A × A × · · · × A where there are n “A’s” in the

Cartesian product

Remark: Each such definition can be used as a line in a proof directly, with any of the free variablesreplaced by any expression of the same type. As such, each represents a rule of inference withno inputs and only the entire definition as a conclusion. However, in practice, it is usually quiteuseful to use rules of inference that are derived from these definitions. Some of the more usefulones are listed in the following table.

Cartesian products

Ordered pair+ Ordered pair−x = u (show)y = v (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x, y

)= (u, v) (conclude)

(x, y

)= (u, v) (show)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x = u (conclude)y = v (conclude)

Ordered n-tuple+ Ordered n-tuple−Let k ∈ {1, 2, . . . , n} (variable declaration)xk = yk (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x1, . . . , xn) =

(y1, . . . , yn

)(conclude)

(x1, . . . , xn) =(y1, . . . , yn

)(show)

k ∈ {1, 2, . . . , n} (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xk = yk (conclude)

Cartesian Product+ Cartesian Product−x ∈ A (show)y ∈ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x, y

) ∈ A × B (conclude)

z ∈ A × B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x ∈ A and some y ∈ B, (constantdeclaration)z =

(x, y

)(conclude)

c© 2020 KEN MONKS PAGE 58 of 79

Page 59: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Cartesian products (cont.)

Cartesian Product+(n sets) Cartesian Product−(n sets)

Let k ∈ {1, 2, . . . , n} (variable declaration)xk ∈ Ak (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x1, . . . , xn) ∈ A1 × A2 × · · · × An (conclude)

z ∈ A1 × A2 × · · · × An (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x1 ∈ A1, x2 ∈ A2, . . . , xn ∈ An, (constantdeclaration)z = (x1, . . . , xn) (conclude)

Power of a set+ Power of a Set−Let k ∈ {1, 2, . . . , n} (variable declaration)xk ∈ A (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x1, . . . , xn) ∈ An (conclude)

z ∈ An (conclude). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x1, . . . , xn ∈ An, (constant declaration)z = (x1, . . . , xn) (conclude)

Remark: The expression “For some x ∈ A and y ∈ B” is an abbreviation for two applications of the∃− rule, namely it is declaring two constants x, y and further declaring that they are elements ofset A and set B respectively.

10.6 Functions

In the following definitions, A,B,C,S are sets and f , g, h are the lambda expressions in an orderedtriple that is a function. We write λx : A,E : B to denote a lambda expression whose bound variablex has type ’element of A’ for which E evaluates to an expression of type ’element of B’ wheneverthe lambda expression is applied to an element of A.

Functions

Name Definition

Def of function: ( f ,A,B) is a function ⇔ f = λx : A,E : B and ∀a ∈ A, f (a) ∈ B

Mapping notation: f : A→ B⇔ ( f ,A,B) is a function

Graph of a function: f : A→ B⇒ G f ={

(x, y) ∈ A × B : y = f (x)}

G ⊆ A × B and(∀x ∈ A,∃!y ∈ B, (x, y) ∈ G)⇒ ∃ f : A→ B,G = G f

Alt. function notation Xf→ Y⇔ f : X⇒ Y

Alt. def of f (x): f (x) = y⇔ (x, y

) ∈ f

Domain & Codomain: Domain(

f)= A and Codomain

(f)= B⇔ f : A⇒ B

Image (of a subset of thedomain):

y ∈ f (S)⇔∃x ∈ S, y = f (x)

Range (or Image of f ): Range(

f)= f

(Domain

(f))

c© 2020 KEN MONKS PAGE 59 of 79

Page 60: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Functions (cont.)

Name Definition

Identity Map: idA : A→ A and ∀x, idA (x) = x

Composition: Af→ B and B

g→ C⇒ Ag◦ f−→ C and ∀x,

(g ◦ f

)(x) = g

(f (x)

)Injective (one-to-one): f is injective⇔ ∀x,∀y, f (x) = f

(y)⇒ x = y

Surjective (onto): f is surjective⇔∀y,∃x, y = f (x)

Bijective: f is bijective⇔ f is injective and f is surjective

Inverse: f−1 : B⇒ A⇔ f : A⇒ B and f ◦ f−1 = idB and f−1 ◦ f = idA

Inverse Image: f : A→ B and S ⊆ B⇒ f inv (S) ={x ∈ A : f (x) ∈ S

}When deriving rules of inference from these definitions, it is helpful to note the following importanttheorem about inverse functions and bijections.

Theorem. A function has an inverse function if and only if it is bijective.

Functions

Mapping notation+ Mapping notation−( f ,A,B) is a function (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f : A→ B (conclude)

f : A→ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .( f ,A,B) is a function (conclude)

Function+ Function−f = λx : A,E(x) : B (show)

Let a ∈ A (variable declaration)f (a) ∈ B (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f : A→ B (conclude)

f : A→ B (show)a ∈ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f (a) ∈ B (conclude)

Graph of a function+ Graph of a function−G ⊆ A × B (show)

Let x ∈ A (variable declaration)∃!y ∈ B,

(x, y

) ∈ G (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some f : A→ B, (constant declaration)G = G f (conclude)

f : A→ B (show)z ∈ G f (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x ∈ A, (constant declaration)z =

(x, f (x)

)(conclude)

c© 2020 KEN MONKS PAGE 60 of 79

Page 61: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Functions (cont.)

Alternate function application+ Alternate function application−f : A→ B (show)(x, y

) ∈ G f (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f (x) = y (conclude)

f : A→ B (show)y = f (x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(x, y

) ∈ G f (conclude)

Domain and Codomain+ Domain and Codomain−f : A→ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Domain

(f)= A (conclude)

Codomain(

f)= B (conclude)

Domain(

f)= A (show)

Codomain(

f)= B (show)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f : A→ B (conclude)

Function equality+ Function equality−f : A→ B (show)g : A→ B (show)

Let x ∈ A (variable declaration)f (x) = g(x) (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f = g (conclude)

(see Substitution Rule)

Image+ Image−∃x ∈ S, y = f (x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .y ∈ f (S) (conclude)

y ∈ f (S) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x ∈ S, (constant declaration)y = f (x) (conclude)

Range+ Range−y = f (x) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .y ∈ Range

(f)

(conclude)

f : A→ B (show)y ∈ Range

(f)

(show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x ∈ A, (constant declaration)y = f (x) (conclude)

Identity map+ Identity map−f : A→ A (show)

Let x ∈ A (variable declaration)f (x) = x (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f = idA (conclude)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .idA (x) = x (conclude)f : A→ A (conclude)

c© 2020 KEN MONKS PAGE 61 of 79

Page 62: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Functions (cont.)

Composition+ Composition−f : A→ B (show)g : B→ C (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(g ◦ f

): A→ C (conclude)(

g ◦ f)

(x) = g(

f (x))

(conclude)

h = (g ◦ f ) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .h (x) = g

(f (x)

)(conclude)

Domain (h) = Domain(

f)

(conclude)Codomain (h) = Codomain

(g)

(conclude)

Injective+ Injective−f : A→ B (show)

Let x, y ∈ A (variable declaration)Assume f (x) = f

(y)

x = y (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f is injective (conclude)

f is injective (show)f (x) = f

(y)

(show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x = y (conclude)

Surjective+ Surjective−f : A→ B (show)

Let y ∈ B (variable declaration)x ∈ A (show)y = f (x) (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f is surjective

f : A→ B is surjective (show)y ∈ B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .For some x ∈ A, (constant declaration)y = f (x) (conclude)

Bijective+ Bijective−f is injective (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f is surjective (show) f is bijective(conclude)

f is bijective (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f is injective (conclude)f is surjective (conclude)

Inverse function+ Inverse function−f : A→ B (show)g : B→ A (show)g ◦ f = idA (show)f ◦ g = idB (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .g = f−1 (conclude)

f−1 : B→ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f is bijective (conclude)f−1 (

f (x))= x (conclude)

f(

f−1 (y))= y (conclude)

c© 2020 KEN MONKS PAGE 62 of 79

Page 63: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Functions (cont.)

Inverse image+ Inverse image−f (x) ∈ T (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ f inv (T) (conclude)

x ∈ f inv (T) (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .f (x) ∈ T (conclude)

Remarks: The alternate function notation Af→ B and standard function notation f : A → B can be

used interchangeably without a rule of inference as a shortcut.

10.7 Relations

Relations

Name Definition

Def of , x , y⇔ ¬ (x = y

)Def of relation R is a relation from A to B⇔R ⊆ A × B

Relation on a set R is a relation on A⇔R ⊆ A × A

Infix notation xRy⇔ (x, y

) ∈ R

Prefix notation R(x, y

)⇔ (x, y

) ∈ R

Reflexive relation R ⊆ A × A is reflexive⇔∀x ∈ A, xRx

Symmetric relation R ⊆ A × A is symmetric⇔∀x ∈ A,∀y ∈ A, xRy⇒ yRx

Transitive relation R ⊆ A × A istransitive⇔∀x ∈ A,∀y ∈ A,∀z ∈ A, xRy and yRz⇒ xRz

Irreflexive relation R ⊆ A × A is irreflexive⇔∀x ∈ A,not xRx

Antisymmetric relation R ⊆ A × A is antisymmetric⇔∀x ∈ A,∀y ∈ A, xRy and yRx⇒ x = y

Total relation R ⊆ A × A is total⇔∀x ∈ A,∀y ∈ A, xRy or yRx

Partial order R ⊆ A × A is a partial order⇔R is reflexive,antisymmetric, and transitive.

Strict Partial order R ⊆ A × A is a strict partial order⇔R is nonreflexive,antisymmetric, and transitive.

Total Order R ⊆ A × A is total order⇔R is antisymmetric,transitive, and total.

Equivalence Relation R ⊆ A × A is an equivalence relation⇔R is reflexive,symmetric, and transitive.

c© 2020 KEN MONKS PAGE 63 of 79

Page 64: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Relations (cont.)

Name Definition

Equivalence Class R ⊆ A × A is an equivalence relation anda ∈ A⇒ [a]R = {x ∈ A : xRa}

Partition of a set P is a partition of A⇔P ⊆ P(A) and ∅ < P and A =⋃

S∈PS

and ∀S ∈ P,∀T ∈ P,S = T or S ∩ T = ∅congruent mod m if m ∈N+ and a, b ∈ Z then a ≡

mb⇔ k | b − a

Rules of Inference for Relations

Not equal+ Not an element of−not x = y (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x , y (conclude)

x , y (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .not x = y (conclude)

Relation+ Relation−R ⊆ A × B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is a relation from A to B (conclude)

R is a relation from A to B (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R ⊆ A × B (conclude)

Relation on a set+ Relation on a set−R ⊆ A × A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is a relation on A (conclude)

R is a relation on A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R ⊆ A × A (conclude)

Reflexive+ Reflexive−Let x ∈ A (variable declaration)xRx (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is reflexive (conclude)

R is reflexive (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xRx (conclude)

Symmetric+ Symmetric−Let x, y ∈ A (variable declaration)

Assume xRyyRx (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is symmetric (conclude)

R is symmetric (show)xRy (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .yRx (conclude)

c© 2020 KEN MONKS PAGE 64 of 79

Page 65: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Relations (cont.)

Transitive+ Transitive−Let x, y, z ∈ A (variable declaration)

Assume xRy and yRzxRz (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is transitive (conclude)

R is transitive (show)xRy (show)yRz (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xRz (conclude)

Nonreflexive+ Nonreflexive−Let x ∈ A (variable declaration)not xRx (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is nonreflexive (conclude)

R is nonreflexive (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .not xRx (conclude)

Antisymmetric+ Antisymmetric−Let x, y ∈ A (variable declaration)

Assume xRy and yRxx = y (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is antisymmetric (conclude)

R is antisymmetric (show)xRy (show)x , y (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .not yRx (conclude)

ORR is antisymmetric (show)xRy (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x = y or not yRx (conclude)

Total relation+ Total relation−Let x, y ∈ A (variable declaration)xRy or yRx (show)←

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is total (conclude)

R is total (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xRy or yRx (conclude)

Partial order+ Partial order−R is reflexive (show)R is antisymmetric (show)R is transitive (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is a partial order (conclude)

R is a partial order (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is reflexive (conclude)R is antisymmetric (conclude)R is transitive (conclude)

c© 2020 KEN MONKS PAGE 65 of 79

Page 66: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Rules of Inference for Relations (cont.)

Strict partial order+ Strict partial order−R is nonreflexive (show)R is antisymmetric (show)R is transitive (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is a strict partial order (conclude)

R is a strict partial order (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is nonreflexive (conclude)R is antisymmetric (conclude)R is transitive (conclude)

Total order+ Total order−R is antisymmetric (show)R is transitive (show)R is total (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is a total order (conclude)

R is a total order (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is antisymmetric (conclude)R is transitive (conclude)R is total (conclude)

Equivalence relation+ Equivalence relation−R is reflexive (show)R is symmetric (show)R is transitive (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is an equivalence relation (conclude)

R is an equivalence relation (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R is reflexive (conclude)R is symmetric (conclude)R is transitive (conclude)

Equivalence class+ Equivalence class−xRa (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ [a]R (conclude)

x ∈ [a]R (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xRa (conclude)

Partition+ Partition−P ⊆ P(A) (show)

Let x ∈ A (variable declaration)∃S ∈ P, x ∈ S (show)←Let S ∈ P (variable declaration)S , ∅ (show)←Let S,T ∈ P (variable declaration)

Assume x ∈ S and x ∈ TS = T (show)←

←. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .P is a partition of A (conclude)

P is a partition of A (show)S,T ∈ P (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .S , ∅ (conclude)S ⊆ A (conclude)S ∩ T = ∅ or S = T (conclude)

OR

P is a partition of A (show)x ∈ A (show). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x ∈ S for some S ∈ P (conclude)

c© 2020 KEN MONKS PAGE 66 of 79

Page 67: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Notation. We often abbreviate [a]R by [a] when the relation R is clear from context.

Theorem. Let R ⊆ A × A be an equivalence relation and a, b ∈ A. Then

[a] = [b]⇔ aRb.

Corollary. Let R ⊆ A×A be an equivalence relation. Then A is a disjoint union of equivalence classes, i.e.

A =⋃a∈A

[a]

and∀a, b ∈ A, [a] = [b] or [a] ∩ [b] = ∅.

Note. Thus, the set of equivalence classes of an equivalence relation on A is a partition of A.Furthermore, every partition P of A is the set of equivalence classes for the equivalence relation Ron A defined by ∀x, y ∈ A, xRy⇔∃S ∈ P, x ∈ S and y ∈ S.

Problems

1. (Order doesn’t matter) {a, b} = {b, a}2. (A set of sets) {1, 2} ∈ {A : {1} ⊆ A}3. (Cartesian calculation) {2} × {3, 5} = {(2, 3), (2, 5)}4. (Transitivity of ⊆) A ⊆ B and B ⊆ C⇒ A ⊆ C

5. (Double negative) A − (B − A) = A

6. (Substraction lessens) A − B ⊆ A

7. (Contravariance of complement) A ⊆ B⇔ B′ ⊆ A′

8. (Idempotency of ∩) A ∩ A = A

9. (Idempotency of ∪) A ∪ A = A

10. (Commutativity of ∩) A ∩ B = B ∩ A

11. (Commutativity of ∪) A ∪ B = B ∪ A

12. (Associativity of ∩) (A ∩ B) ∩ C = A ∩ (B ∩ C)

13. (Associativity of ∪) (A ∪ B) ∪ C = A ∪ (B ∪ C)

14. (Distributivity of ∩ over ∪) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C))

15. (Distributivity of ∪ over ∩) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C))

16. (DeMorgan) (A ∩ B)′ = A′ ∪ B′

17. (DeMorgan) (A ∪ B)′ = A′ ∩ B′

18. (More DeMorgan) A − (B ∩ C) = (A − B) ∪ (A − C)

c© 2020 KEN MONKS PAGE 67 of 79

Page 68: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

19. (More DeMorgan) A − (B ∪ C) = (A − B) ∩ (A − C)

20. (Even more DeMorgan)

⋂i∈I

Ai

=⋃j∈I

A′j

21. (Even more DeMorgan)

⋃i∈I

Ai

=⋂j∈I

A′j

22. (Not a subset) ¬(A ⊆ B)⇔ ∃x, x ∈ A ∩ B′

23. (Always in the powerset) ∅ ∈ P(A) and A ∈ P(A)

24. (Power sets of complements) A ⊆ B⇒ P(B′) ⊆ P(A′)

25. (Subsets are contagious) A ⊆ C and B ⊆ D⇒ A × B ⊆ C ×D

26. (Alt. def of subset) A ⊆ B if and only if ∀x, x < A or x ∈ B

27. (Relative complement is not associative) If x ∈ A∩ B∩C then x ∈ A− (B−C) and x < (A− B)−C

28. (Powerset and union) P(A) ∪ P(B) ⊆ P(A ∪ B)

29. (Image of subsets) If f : A→ B and S ⊆ T and T ⊆ A then f (S) ⊆ f (T).

30. (Composition of surjective is surjective) If f : A → B and g : B are both surjective then g ◦ f issurjective.

31. (Identity maps are bijective) The function idA is bijective.

32. (Inverse image of codomain) If f : A→ B then f inv(B) = A.

33. (Identity maps are identities) If f : A→ B then f ◦ idA = f

34. (A simple function) If A = {1} and f = {(1, 1)} then f : A→ A.

11 Expository Proofs

We are now ready to make the final transition to the traditional expository proofs found in mosttextbooks and articles about mathematics.

In Section 1 we introduced formal proofs. These proofs satisfy the first goal of a proof - they areobjectively verifiable by a computer.

In practice, formal proofs of all but the most trivial theorems can be very long and tedious, and notas easy to read or understand by a human as we might like. As a result, we introduced a number ofshortcuts in Section 6 to eliminate tedious, repetitive steps, shorten the proofs, and emphasize theaspect of the proof that would make it more readable to a human without sacrificing the objectivecorrectness of the proof. This gave us what we refer to as semi-formal proofs.

It is now time to make the final transition to the far right end of the proof spectrum illustratedby the bridge in Figure 1. We will refer to these proofs as expository proofs or traditional proofs orinformal proofs.

c© 2020 KEN MONKS PAGE 68 of 79

Page 69: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

11.1 Traditional Proofs

Because they are informal by design, and their goal is exposition, it is not easy to define preciselywhat constitutes a traditional proof as distinct from a formal or semi-formal proof. Indeed, since themain goal of a traditional proof is exposition for human readers, defining it precisely is equivalentto defining what constitutes good expository writing in general.

That having been said, a traditional proof can be thought of as a proof obtained if you start with asemi-formal proof, and modify it to conform to the following principles.

Requirements of a Traditional Proof

1. The proof must conform to all of the usual rules of grammar, punctuation, and spelling, forwriting in English (or whatever language you are writing the proof in).

2. The proof should be written at the appropriate level for the intended audience. In particular,premises may be omitted or left unjustified if the intended reader will be able to fill them inthemselves.

3. The wording of the proof should have an unambiguous meaning.

4. The proof can contain extra explanations and commentary that is not required for the proofto be objectively correct, but aid the reader in understanding the proof.

11.2 Specific Rules for Mathematical Writing

Mathematical writing has many features that distinguish it from other types of writing. Thefollowing is a list of guidelines to keep in mind that will help you to express your mathematicalideas in ways that will help others to more easily understand what you’re trying to say.

11.3 Notation

An important part of making mathematical writing unambiguous and easy to understand is tochoose good notation for the things you’re writing about, and to carefully explain this notation toyour readers. Some guidelines to keep in mind concerning mathematical notation are:

• Always clearly define new notation as it’s introduced. Even if the notation seems obvious to you,it’s not a good idea to assume that your reader knows what you mean by it.

Bad: We can see that n is odd, so n = 2k + 1.

Good: We can see that n is odd, so n = 2k + 1 for some integer k.

Bad: If a continuous function f satisfies f (nx) = f (x)n for all x,n, is it true that f isan exponential function?

Good: If a continuous function f satisfies f (nx) = f (x)n for all real x and all positiveintegers n, is it true that f is an exponential function?

• Use standard notations for common types of objects. For instance, m and n are often used todenote integers, p denotes a prime, x can be a real number, f and g describe functions, andso on.

c© 2020 KEN MONKS PAGE 69 of 79

Page 70: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

The standard notation may depend on the context of your writing. For instance, in complexanalysis, z is often used to denote a complex number, while in analytic number theory, s ismore common. Use the notation that your readers will most readily recognize.

• Use consistent symbols for similar objects.

Bad: Let x,u, ξ be real numbers.

Good: Let x, y, z be real numbers.

One exception to this guideline is that inconsistent symbols can be useful to denote objectsthat you want to distinguish in meaning to the reader:

Okay: Let m, b be real numbers. Then the function f (x) = mx + b is linear.

• Don’t use the same notation for different objects in a single proof. Aside from being confusing tothe reader, this can result in incorrect proofs.

Bad: To show that the product of any two even integers is divisible by 4, supposea and b are even. Then a = 2k and b = 2k for some integer k. Thus ab = 2k · 2k = 4k2

is divisible by 4.

Good: To show that the product of any two even integers is divisible by 4, supposea and b are even. Then a = 2 j for some integer j and b = 2k for some integer k. Thusab = 2 j · 2k = 4 jk is divisible by 4.

Notice that the first ‘proof’ could likewise be used to prove that the product of any two evenintegers is a square, a claim that is obviously not true.

• Avoid convoluted or overloaded notation. Use several simple expressions rather than a singleconvoluted expression to increase clarity. Sometimes written prose can be more clear thansymbolic expressions.

Bad: Let 0 < n ∈ Z.

Good: Let n ∈ Zwith n > 0.

Better: Let n be a positive integer.

11.4 Syntax

Mathematical symbols are a short and precise way to express mathematical ideas, but it’s importantto use them in ways that don’t interfere with communication:

• Don’t begin a sentence with a symbol.

Bad: x is a global maximum of f , so we have f (x) ≥ f (y) for every y ∈ R.

Good: Since x is a global maximum of f , we have f (x) ≥ f (y) for every y ∈ R.

Bad: Let a be a quadratic residue. a = b2 for some b ∈ Z/nZ.

Good: Let a be a quadratic residue. Then we can write a = b2 for some b ∈ Z/nZ.

• Don’t needlessly mix symbols with prose. Many mathematical symbols have a spoken Englishequivalent, so it can be tempting to cleverly substitute the symbol for the corresponding

c© 2020 KEN MONKS PAGE 70 of 79

Page 71: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

English word in mathematical writings. However, this usually distracts from the meaningof the sentence and makes writing less understandable.

Bad: Each solution satisfies x2 + y2 = 1 ∨ x + y = 0.

Good: Each solution satisfies either x2 + y2 = 1 or x + y = 0.

Bad: There are exactly eight primes < 20.

Good: There are exactly eight primes less than 20.

The logical connectors and quantifiers ∨, ∧, ¬, ⇒, ⇔, ∀, ∃ are very easy to misuse in thisway. In general, use these only in contexts where you are discussing mathematical logic, oras part of longer symbolic expressions.

Bad: It is true ∀ integers that ∃ an even larger integer.

Okay: Thus we can express this in formal logic as ∀x,P(x) ∧ ¬Q(x).

Okay: Let Z = {n ∈ Z : ∀k ∈ Z, k | n }.• Don’t use unnecessary variable names in theorem statements. If an object needs a name in a proof,

declare it in the body of the proof rather than in the theorem statement.

Bad: Any continuous function f on the interval [0, 1] is uniformly continuous.

Good: Any continuous function on the interval [0, 1] is uniformly continuous.

This also applies for claims made in the middle of a proof.

• When possible, use words to separate symbols which are not in a list. This can often make statementsmore readable.

Bad: If the congruence equation n2 ≡ a (mod p) has a solution n = b, n = p − b isthe only other solution of the equation.

Good: If the congruence equation n2 ≡ a (mod p) has a solution n = b, then n = p−bis the only other solution of the equation.

• Write out integers used as adjectives, and use Arabic numerals to write integers describing numericalvalues.

There are exactly twenty-four elements in the symmetric group on four symbols.

The first three positive powers of 2 are 2, 4, and 8.

The set of prime numbers less than 20 has eight elements.

11.5 Equations and Formulas

Equations and formulas play an important role in many types of mathematical writing, so it is agood idea to present them in as clear a manner as possible. Some considerations to keep in mindare to:

c© 2020 KEN MONKS PAGE 71 of 79

Page 72: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

• Place important equations or formulas on their own line. This makes the expression more visible,and indicates its importance in the writing. Such typesetting is sometimes called a ‘display’style. If you need to reference the expression later in the text, give it a numbered label, as in:

x =−b ±

√b2 − 4ac

2a(2)

In general, don’t label an expression like this if you don’t plan to reference it later in thewriting. If you only reference an expression in the few preceding or following lines, considerinstead using language such as ‘in the following expression’ or ‘by the above equation’.

• When writing out extended computations in a display style, use transitive chain notation.

Bad:

(a + b)3 = (a + b)(a + b)2 = (a + b)(a2 + 2ab + b2) = a3 + 3a2b + 3ab2 + b3

Bad:

(a + b)3 = (a + b)(a + b)2

(a + b)3 = (a + b)(a2 + 2ab + b2)

(a + b)3 = x3 + 3x2 + 3x + 1

Bad:

(a + b)3 = (a + b)(a + b)2

(a + b)(a + b)2 = (a + b)(a2 + 2ab + b2)

(a + b)(a2 + 2ab + b2) = x3 + 3x2 + 3x + 1

Good:

(a + b)3 = (a + b)(a + b)2

= (a + b)(a2 + 2ab + b2)

= a3 + 3a2b + 3ab2 + b3

• Use consistent punctuation after display style expressions. Some mathematicians treat displaystyle expressions as part of the surrounding sentence structure, ending with a comma or aperiod as appropriate in the writing, while others omit all punctuation after display styleexpressions. In this writing guide, for instance, we chose to omit punctuation. Either way isacceptable, but be consistent with your choice in a given piece of writing.

• Avoid pointless parentheses in mathematical expressions.

Bad: (x − 1)2 = (x2 − 2x + 1)

Good: (x − 1)2 = x2 − 2x + 1

c© 2020 KEN MONKS PAGE 72 of 79

Page 73: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Extra parentheses are fine if they are serving to emphasize a part of the expression to thereader as being special or grouped together. For instance, the following example indicatesto the reader that the grouping of the terms on the right side deserves special attention:

Okay: (a + b)3 = (a3 + b3) + 3(a2b + ab2)

• Use parentheses to clarify between subtraction and negative signs.

Bad: (x + y) · −z = −xz − yz

Good: (x + y)(−z) = −xz − yz

11.6 Writing Technique

Writing mathematics is similar in many ways to any other type of writing you might do! It’s aboutdistilling your ideas down into a simple and organized form, and communicating these ideas toyour readers clearly and efficiently. This is, by its nature, a somewhat messy process, but somethings to keep in mind include:

• Tell the reader where you are going. As you are explaining the steps of your proof, include a fewwords to describe the bigger picture of your argument or the strategy you are using. Thisallows the reader to anticipate the specifics of your proof more accurately, and can greatlyincrease their understanding of how the pieces of your proof fit together to form a cohesiveargument.

Good: We will prove this claim by induction on n.

Good: We now consider the converse direction.

Good: The following will make use of compactness of the space X.

• Use key phrases to explain your reasoning. Expressions like ‘since’, ‘because’, ‘on the other hand’,‘observe’, and ‘note’ help guide the reader’s attention and elaborate on the relations betweendifferent statements. Vary your word choices to avoid monotonous writing. Notice thatunlike semi-formal or formal proofs, we generally do not usually cite the rules of inferencefor logic in traditional expository proofs, although we may refer to the overall strategy beingused (induction, proof by contradiction, proof by cases, etc.).

Bad: Suppose 5 divides b3 and 3 divides b3. We showed that if a prime p divides apower ak, then p divides a. Thus, 5 divides b. Thus, 3 divides b. Thus, 15 divides b.

Good: Suppose 3 divides b3 and 5 divides b5. We showed that any prime thatdivides a power of a natural number, n, must also divide n. Thus, as 3 and 5 areboth prime, they both divide b. Therefore their product, 15, must also divide b.

• Plan enough time to write. Any form of writing takes time, and the rigor and attention to detailneeded in mathematical writing only magnifies this requirement.

• Outline your ideas before you begin writing. When writing down a mathematical proof ormathematical exposition in general, it helps to have a clear idea of what you want to say, andin what order. This gives you an opportunity to look at the big picture and make changes instructure before you spend a lot of time hammering out the little details. Although it might

c© 2020 KEN MONKS PAGE 73 of 79

Page 74: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

feel better to just dive right into the writing phase, you’ll save time and produce significantlybetter exposition by planning ahead.

• Proofread! When time is short, it may be tempting to finish the last line of your proof, throwon a quick Q.E.D., and hand in your writing, but this is a terrible idea. Math is hard to write,and it is nearly impossible to write it without at least a few typos. When you look back onwhat you’ve written, you’ll be able to correct any small errors that you made, and you mightalso gain some additional insight into the math you were writing about, or come up with abetter way of expressing the solution. Writing is an iterative process, so make sure to giveyour work at least a second look over to improve its quality.

• Check your spelling, grammar, and punctuation. People reading mathematical proofs are usuallyintelligent and easily bothered by spelling errors, improper use of contractions, incorrecthomophones, and general grammatical sloppiness. These sorts of flaws can distract from thecontent of your proof, so make sure you pay attention to these kinds of errors as well whenyou’re proofreading your work!

11.7 Mathematical Typesetting

In addition to the special rules for mathematical writing mentioned in the previous section, therequirements of correctly typesetting mathematical expressions are a challenge for most modernword processors and text editors. As a result, the de facto standard for mathematical typesettingthat all mathematicians use is based on a language called LATEX.

There are many great LATEX tutorials on the internet, and in most cases doing a search for the thingyou are trying to do will immediately answer any question that comes up. (See our course websitefor details.)

There are many do’s and don’t when using LATEX itself, which you will learn with time andexperience (usually because what you typed ends up looking terrible). But there is one beginnermistake that we will mention for you to be aware of. Resist the urge to manually format yourcompiled document by hand.

12 Combinatorial Proofs

12.1 Combinatorics

Combinatorics (or more precisely enumerative combinatorics is the branch of mathematics that studiescounting. One way to try to integrate this topic into the mathematical infrastructure of logic andset theory we have discussed so far is to define the number of elements in a finite set S to be n ifand only if there exists a bijection between S and In.

Definition 23. Let S be a set and n ∈N. We say that S has cardinality n if and only if there exists abijection f : {1, 2, . . . , n} → S. In this case we write #S or |S| for the cardinality of S.

Note that In = {1, 2, . . . , n} is the empty set when n = 0.

Example 24. With this definition we can formally prove that # {,} = 1.

c© 2020 KEN MONKS PAGE 74 of 79

Page 75: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

This definition leaves a bit to be desired, however. One of the first things that any preschoolerlearns about mathematics is the difference between none, one, and several. Fortunately there isanother kind of mathematical proof that is accepted in journals and by mathematicians as a validproof, that is better suited to this task.

12.2 Combinatorical Collections and Expressions

We begin by defining the language of a different kind of proof system that is distinct from theformal axiom system kinds of proofs that we have discuss so far. This form of proof will be basedon counting, and so we need something to count.

Definition 25. A combinatorial collection is anything that can be counted. Each combinatorialcollection has a property called its count (or cardinality or size) which represents the number ofentities comprising the collection. Two combinatorial collections are said to be equivalent if theyhave the same count. If A is a combinatorial collection then we write #A or |A| for the count of A.

Anything we can count is an example of a combinatorial collection. For example, we can countthe number of elements in a finite set, or the number of ways we can accomplish some task, thenumber of possible outcomes from some activity, or the number of choices we have in makingsome decision. In each case the count can be represented by a symbolic expression.

Definition 26. A combinatorial expression is an expression that represents the cardinality of a com-binatorial collection.

Naturally, we can define an expression for any combinatorial collection we might have. Here aresome common combinatorial expressions that we will use in what follows.

c© 2020 KEN MONKS PAGE 75 of 79

Page 76: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Expression Combinatorial definition (what it counts)

0, 1, 2, 3, . . . Any collection of one, two, three, . . . things respectively.

n A collection of n things where n is one of 0, 1, 2, 3, . . .

a + b A collection that can be partitioned into two disjoint collections having size aand b respectively.

a1+a2+ · · ·+an A collection that can be partitioned into n disjoint collections of sizea1, a2, . . . , an respectively.

a · b The number of ways of choosing two things in order if there are a ways tochoose the first and b ways to choose the second.

a1 · a2 · a3 · · · an The number of ways of choosing n things in order if there are a1 ways tochoose the first, a2 ways to choose the second and so on.

n! The number of ways to permute (rearrange) n distinct things in some order

nk The number of ways to choose k things from n things where repetition isallowed and order matters.

(n)k The number of ways to choose k things from n things where repetition is notallowed and order matters(n

k)

The number ways to choose k things from n things where repetition is notallowed and order doesn’t matter((

nk

))The number of ways of choosing k things from n things where repetition isallowed and order doesn’t matter

Some of the combinatorial expressions given in the previous table have common names andalternate notation in mathematics. The expression n! is called “n-factorial”. The expression (n)k issometimes denoted nPk is read “n permute k” and counts the number of k-permutations of n things.The expression

(nk)

is called a binomial coefficient and is sometimes denoted nCk. It is read “n choosek” and counts the number of k-combinations of n things.

Finally, we need some statements that we can prove with our new kind of proof. The simplestsuch statements are called combinatorial identities.

Definition 27. A combinatorial identity is a expression of the form

A = B

where A and B are combinatorial expressions.

12.3 Combinatorial Proofs

The fundamental assumption on which the validity of all counting relies, is that no matter howyou count the same collection, if you do it correctly, you will obtain the same result. This simpleidea is the foundation for a kind of mathematical proof called a combinatorial argument.

c© 2020 KEN MONKS PAGE 76 of 79

Page 77: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definition 28. A combinatorial proof (or combinatorial argument) is proof of a combinatorial identityobtained by counting the same thing (or two equivalent things) in two different ways.

It is truly amazing the extent to which we can build up much of algebra from a combinatorialperspective, and give combinatorial proofs of many algebraic identities. Often, combinatorialinterpretations are considered to be easier and more intuitive explanations of a given fact thanalgebraic or inductive proofs.

Example 29. The fact that

5 · (3 + 2) = 3 · 5 + 2 · 5can be verified by invoking the distributive law and commutative law of multiplication, but thatdoesn’t give us a sense of what the identity says about counting.

Using a combinatorial argument, however, we can say that the left hand side counts the totalnumber of squares in a collection consisting of 5 collections, each of which is comprised of twodisjoint collections having 3 things and 2 things respectively (as illustrated in the left figure below),and the right hand side counts the same collection of squares partitioned into two collections, oneconsisting of 3 collections of 5 squares (the blue ones) and another consisting of 2 collections of 5squares (the orange ones, as illustrated in the right figure below). Since we are counting the samecollection of little squares in two different ways, this is a combinatorial proof of the identity above.

Proofs similar to the one in the above example can be generalized to give combinatorial proofs ofthe algebraic properties of numbers given in the axioms for the real numbers.

In this context, rather than starting with algebraic axioms such as the distributive law, we can startwith tactile meanings of numbers, addition, multiplication, division, and so on. These argumentscan then be pasted together to deduce all the algebraic axioms we usually work with.

While it is possible to give purely combinatorial proofs of many combinatorial identities, it isalso commonplace to use both combinatorial and axiomatic algebraic arguments in the samemathematical proof. Thus, we can use combinatorial arguments even as just one part of a largerproof involving many techniques.

12.4 Combinatorial subtraction, division, and inequality

Just as in algebra, it is often convenient to be able to discuss the difference or quotient of twocombinatorial expressions. The problem with doing that from a combinatorial perspective isthat the difference or quotient of two combinatorial expressions is not always a combinatorialexpression. So we have to take some care when defining them to take that into account.

c© 2020 KEN MONKS PAGE 77 of 79

Page 78: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

Definition 30. Let k, m, and n be combinatorial expressions.

1. If k +m = n then k ≤ n. Also, if k ≤ n and k , n then k < n.

2. If k +m = n then we define n − k to be m.

3. If k ·m = n and k , 0 then we define n/k to be m.

In general, whenever we use such an expression we are assuming it is defined for the expressionto make sense. Thinking of these expressions as natural numbers for a moment, we can say thatn− k to be defined it is sufficient for k to be less than n. But for n/k to be defined k must be a divisorof n. In order to avoid this problem we avoid using division and subtraction wherever possible incombinatorial proofs, except when we need to refer to arbitrary sequences like 1, 2, . . . , n−2,n−1,n.

12.5 Some Basic Combinatorial Identities

The following combinatorial identities can all be proved using a combinatorial proof using onlythe definitions given in Section 12.2. If we were defining combinatorics in an algebraic setting (asyou might find in a course on discrete mathematics or combinatorics) these identities are oftentaken to be the definition of the symbols defined in Section 12.2.

Theorem (basic identities). Let n, k be combinatorial expressions. Then the following hold (whenever theexpressions are defined).

1. k · n = n + n + · · · + n︸ ︷︷ ︸k summands

= k + k + · · · + k︸ ︷︷ ︸n summands

= n · k

2. n! = n · (n − 1) · · · 3 · 2 · 1

3. nk = n · n · · · n︸ ︷︷ ︸k factors

4. (n)k · (n − k)! = n!

5.(n

k) · k! · (n − k)! = n!

6.((

nk

))=

(n−1+kk

)Note that in the algebraic axiomatic setting the above formulas are usually taken to be the definitionof the expression on the left hand side in Theorem 12.5 parts 1-4 and 6, and similarly, in an algebraicsetting w define

(nk)= n!

k!(n−k)! . From the perspective of combinatorial proofs, these formulas are alltheorems that we prove by counting the same collection in two different ways.

Some of the usual properties of these expressions that can be derived from these by inductionand/or algebra often have interesting combinatorial proofs as well.

Example 31. Give combinatorial proofs of the following identities without resorting to any algebraor substitution. Assume the given expressions are defined.

c© 2020 KEN MONKS PAGE 78 of 79

Page 79: Intro to Proof Lecture Notes - Revised Draft › ... › Math299 › math-299-lecture.pdf · 2020-05-14 · Intro to Proof Lecture Notes Definition 4. If Q follows from no premises

Intro to Proof Lecture Notes

1. n! = n · (n − 1)!

2. nk = n · nk−1

3.(n

k)=

(n−1k−1

)+

(n−1k)

4. (n)k = n · (n − 1) · (n − 2) · · · (n − k + 1)

We can also define new combinatorial expressions that count a certain collection, and then proveidentities using that new expression with combinatorial proofs.

c© 2020 KEN MONKS PAGE 79 of 79