5. More about proofs
We will state and prove some simple theorems about division as an illustration of some techniques of proof (Methods 5.1.2 and 5.3.3 below.)
5.1 Theorem
Every integer divides itself.
Proof Let $m$ be any integer. We must prove that $m|m$. By Definition 4.1, that means we must find an integer $q$ for which $m =qm$. By first grade arithmetic, we can use $q= 1$.
5.1.1 How to write a proof (1) In the preceding proof, we start with what is given (an arbitrary integer $m$), we write down what must be proved (that $m|m$), we apply the definition (so we must find an integer $q$ for which $m =qm$), and we then write down how to accomplish our goal (which is one step in this simple proof – let $q= 1$).
We will continue this discussion in Section 5.3.7.
The proof of Theorem 5.1 also illustrates a method:
5.1.2 Method: Universal Generalization
To prove a statement of the form “Every $x$ with property $P$ has property $Q$”, begin by assuming you have an $x$ with property $P$ and prove without assuming anything special about $x$ (other than its given properties) that it has property $Q$.
5.1.3 Example Theorem 5.1 asked us to prove that every integer divides itself. Property $P$ is that of being an integer and property $Q$ is that of dividing itself. So we began the proof by assuming $m$ is an integer. (Note that we chose a name, $m$, for the integer. Sometimes the theorem to be proved gives you a name; see for example Theorem 5.4 on page 8.) The proof then proceeds without assuming anything special about $m$. It would have been wrong, for example, to say something like “Assume $m= 5$” because then you would have proved the theorem only for 5.
5.2 Theorem
Every integer divides $0$.
Proof Let $m$ be an integer (Method 5.1.2!). By Definition 4.1, we must find an integer $q$ for which $0 =qm$. By first grade arithmetic, we can use $q= 0$.
5.2.1 Remark Theorem 5.2 may have surprised you. You can even find texts in which the integer $q$ in the definition of division is required to be unique. For those texts, it is false that every integer divides 0.
This illustrates two important points:
a) The definition of a mathematical concept determines the truth of every statement about that concept. Your intuition and experience don’t count in determining the mathematical truth of a statement. Of course they do count in being able to do mathematics effectively!
b) There is no agency that standardizes mathematical terminology. (There are such agencies for physics and chemistry.)
5.3 Theorem
$1$ divides every integer.
Proof Let $m$ be any integer. By Definition 4.1, we must find an integer $q$ for which $m =q\cdot 1$. By first grade arithmetic, we can use $q =m$.
5.3.1 Exercise Prove that if $m|n$ and $a$ and $b$ are nonnegative integers such that $a\leq b$, then $m^{a}|n^{b}$.
5.3.2 Worked Exercise Prove that 42 is a factor of itself.
Proof Theorem 5.1 says that every integer is a factor of itself. Since 42 is an integer, it is a factor of itself.
This worked exercise uses another proof method:
5.3.3 Method: Universal Instantiation
If a theorem says that a certain statement is true of every object of a certain type, and $c$ is an object of that type, then the statement is true of $c$.
5.3.4 Example In Example 5.3.2, the theorem was Theorem 5.1, the type of object was “integer”, and $c$ was 42.
5.3.5 Remark Make sure you understand the difference between Method 5.1.2 and Method 5.3.3.
5.3.6 Worked Exercise Prove that 0 is even.
Answer Bu definition of even, we must show that $2|0$. By Theorem 5.15.2, every integer divides 0. Hence 2 divides 0 (Method 5.3.3).
5.3.7 How to write a proof (2) Worked Exercise 5.3.8 below illustrates a more complicated proof. In writing a proof you should normally include all these steps:
PS.1 Write down what is given, and translate it according to the definitions of the terms involved in the statement of what is given. This translation may involve naming some of the mathematical objects mentioned in the statement to be proved.
PS.2 Write down what is to be proved, and translate it according to the definitions of the terms involved.
PS.3 Carry out some reasoning that, beginning with what is given, deduces what is to be proved.
The third step can be quite long. In some very simple proofs, steps PS-1 and PS-2 may be trivial. For example, Theorem 5.3 is a statement about every integer. So for step PS-1, one merely names an arbitrary integer: “Let $m$ be any integer.” Even, here, however, we have named what we will be talking about.
Another very important aspect of proofs is that the logical status of every statement should be clear. Each statement is either:
a) Given by the hypothesis of the theorem.
b) A statement of what one would like to prove (a goal). Complicated proofs will have intermediate goals on the way to the final goal.
c) A statement that has been deduced from preceding known statements. For each of these, a reason must be given, for example “Universal Instantiation” or “high school algebra”.
5.3.8 Worked Exercise Prove that any two nonnegative integers which divide each other are the same.
Answer First, we follow PS-1 and write down what we are given and translate it according to the definition of the words involved (“divides” in this case): Assume we are given integers $m$ and $n$. Suppose $m|n$ and $n|m$. By Definition 4.1, the first statement means that for some $q, n =qm$. The second statement means that for some $q', m =q'n$. Now we have written and translated what we are given.
PS-2: We must prove that $m =n$. (This translates the phrase “are the same” using the names we have given the integers.)
PS-3: We put these statements that we have assumed together by simple algebra: $m =q'n =q'qm$. Now we have two cases: either $m= 0$ or $m \neq 0$.
a) If $m= 0$, then $n =qm =q \times 0 = 0$, so $m =n$.
b) If $m \neq 0$, then also $n\neq 0$, since $m =q'n$. Then the fact that $m =q'n =q'qm$ means that we can cancel the $m$ (because it is nonzero!) to get $qq'= 1$. This means either $q =q'= 1$, so $m =n$, or $q =q' =-1$, so $m =-n$. But the latter case is impossible since $m$ and $n$ are both positive. So the only possibility that is left is that $m =n$.
We give another illustration of writing a proof by rewriting what is given and what is to be proved using the definitions by proving this proposition:
5.4 Theorem
For all integers $k$, $m$ and $n$, if $k|m$ and $k|n$ then $k|m +n$.
Proof What we are given is that $k|m$ and $k|n$. If we rewrite these statements using Definition 4.1, we get that there are integers $q$ and $q'$ for which $m =qk$ and $n =q'k$. What we want to show, rewritten using the definition, is that there is an integer $q''$ for which $m +n =q''k$. Putting the hypotheses together gives
$$m +n =qk +q'k = (q +q')k$$
so we can set $q'' =q +q'$ to prove the theorem.
5.4.1 Usage In the preceding paragraph, I follow common mathematical practice in putting primes on a variable like $q$ or $r$ in order to indicate another variable $q'$ of the same type. This prime has nothing to do with the concept of derivative used in the calculus.
5.4.2 Existential Bigamy In the proof of Theorem 5.4, we were given that $k|m$ and $k|n$. By using the definition of division, we concluded that there are integers $q$ and $q'$ for which $m =qk$ and $n =q'k$. It is a common mistake called existential bigamy to conclude that there is one integer $q$ for which $m =qk$ and $n =qk$.
Consider that the phrase “Thurza is married” by definition means that there is a person $P$ to whom Thurza is married. If you made the mistake just described you would assume that if Amy and Thurza were both married, then they would be married to the same person. That is why it is called “existential bigamy”.
Mrs. Thurza Golightly White was the author’s great great grandmother, and Mrs. Amy Golightly Walker was her sister. They were very definitely married to different people.
5.5 Exercise set
In problems 5.5.1 through 5.5.5, you are asked to prove certain statements about integers and division. Your proofs should involve only integers — no fractions should appear. This will help insure that your proof is based on the definition of division and not on facts about division you learned in high school. As I mentioned before, you may use algebraic facts you learned in high school, such as that fact that for any integers, $a (b +c ) =ab +ac$.
5.5.1 Exercise Prove that $37|333$. (Answer on page 243.)
5.5.2 Exercise Prove that if $n >0$, then any nonnegative integer less than $n$ which is divisible by $n$ must be 0. (Answer on page 243.)
5.5.3 Exercise Prove that if $k$ is an integer which every integer divides, then $k= 0$.
5.5.4 Exercise Prove that if $k$ is an integer which divides every integer, then $k= 1$ or $k =-1$.
5.5.5 Exercise Prove that if $k|m$ and $m |n$ then $k|n$.
5.6 Factors in Mathematica
The DmFuncs package contains the function DividesQ[k,n]. It returns True if $k|n$ and False otherwise. For example, DividesQ[3,12] returns True but DividesQ[5,12] returns False.
You can get a list of all the positive factors of $n$ by typing AllFactors[n]. Thus AllFactors[12] returns {1,2,3,4,6,12}. As always, lists in Mathematica are enclosed in braces.
5.6.1 Remark AllFactors returns only the positive factors of an integer. In this text, however, the phrase “all factors” includes all the positive and all the negative factors.
Pages 6–9 of the book (PDF).