Skip to main content

Discrete Mathematical Structures

Subsection 1.4.2 Direct proof

Recall that the conditional \(p\implies q\) has the following truth table.
\begin{equation*} \begin{array}{|*{2}{c|}|*{1}{c|}} \hline p\amp q\amp p \implies q\\ \hline \true \amp \true \amp \true \\ \true \amp \false \amp \false \\ \false \amp \true \amp \true \\ \false \amp \false \amp \true \\ \hline \end{array} \end{equation*}
It follows that if we want to prove that \(p\implies q\) is true, we need to show that the second row ( \(p = \true\) , \(q = \false\)) does not occur.
In the approach called the direct proof we start by assuming \(p\) is true and then show that \(q\) is true.

Example 1.4.2.2. The sum of two odd integers is even.

We prove that the sum of two odd integers is even.
Answer.
Let \(a\) and \(b\) be odd integers.
Since \(a\) is odd, there exists an integer \(k\) such that \(a = 2k + 1\text{.}\)
Since \(b\) is odd, there exists an integer \(\ell\) such that \(b = 2\ell + 1\text{.}\)
Compute \(a + b\) and simplify.
\begin{align*} a + b \amp = 2k + 1 + 2 \ell + 1 \\ \amp =2k + 2 \ell + 2 \\ \amp =2(k + \ell + 1). \end{align*}
Since \(k\) and \(\ell\) are integers, we have \(k + \ell + 1\) is an integer, and so \(a + b\) is even.
Solution.
We first develop a proof and the write down the actual proof as the answer to this problem.
  1. First, we rewrite what we want to show in the form β€œif \(p\) , then \(q\text{.}\)” Additionally, we will give friendly names to objects.
     1 
    Fear of a name only increases fear of the thing itself. --Dumbledore
    Let’s name our odd integers \(a\) and \(b\text{.}\) Then the statement we wish to prove is:
    β€œIf \(a\) and \(b\) are odd integers, then \(a + b\) is even.”
  2. When we want to prove a statement of the form β€œif \(p\) , then \(q\)” directly, we assume \(p\) is true and try to show \(q\text{.}\) This is commonly where we set some notation as well. Let \(a\) and \(b\) be odd integers.
  3. Next we need to recall what an odd integer is. An integer \(n\) is odd if there exists an integer \(k\) such that \(n = 2k + 1\) .
  4. Now apply the definition to our situation. Since \(a\) is odd, there exists an integer \(k\) such that \(a = 2k + 1\text{.}\)
  5. Since \(b\) is odd, there exists an integer \(\ell\) such that \(b = 2\ell + 1\text{.}\)
  6. Check back above to be sure that the two integers whose existence is guaranteed have different names. They need different names because they need not be the same integer.
  7. Now look back to the goal that we set in 1. Since we want to say something about \(a+b\) , it makes sense to compute \(a + b\) and simplify.
    \begin{align*} a + b \amp = 2k + 1 + 2 \ell + 1 \\ \amp =2k + 2 \ell + 2 \\ \amp =2(k + \ell + 1). \end{align*}
  8. The line above should prove \(a+b\) is even, provided the bit in the parentheses is an integer. Make some remark noting that, and we are done. Since \(k\) and \(\ell\) are integers, we have \(k + \ell + 1\) is an integer, and so \(a + b\) is even.
Putting all that together yields the following.

Example 1.4.2.3. The product of two even integers is even.

Prove that the product of two even integers is even.
Answer.
Let \(m\) and \(n\) be even integers.
Then there exist integers \(k\) and \(\ell\) such that \(m = 2k\) and \(n= 2\ell\text{.}\)
With the above we get
\begin{equation*} mn = 2k \cdot 2 \ell = 4k \ell = 2(2k \ell). \end{equation*}
Since \(k\) and \(\ell\) are integers, \(2k\ell\) is an integer. Thus \(mn\) is even.

Example 1.4.2.4. Squares.

Let \(m\) and \(n\) be real numbers. Prove that \(m^2 = n^2\) if and only if \(m = n\) or \(m = -n\text{.}\)
Answer.
To prove
β€œ\(m^2 = n^2\) if and only if \(m = n\) or \(m = -n\text{.}\)”
we first prove
β€œIf \(m^2 = n^2\) then \(m = n\) or \(m = -n\text{.}\)”
and then
β€œIf \(m = n\) or \(m = -n\) then \(m^2 = n^2\text{.}\)”
Suppose \(m\) and \(n\) are integers such that \(m^2 = n^2\text{.}\) Then
\begin{equation*} 0= m^2 - n^2 = (m + n)(m - n). \end{equation*}
It follows that \(m + n = 0\) or \(m - n = 0\text{.}\) Thus \(m = -n\) or \(m = n\text{,}\) which proves that β€œif \(m^2 = n^2\) then \(m = n\) or \(m = -n\)” is true.
Clearly, if \(m = n\) then \(m^2 = n^2\text{.}\)
Also, if \(m = -n\) then \(m^2=(-n)^2=n^2\text{.}\)
Thus β€œif \(m = n\) or \(m = -n\) then \(m^2 = n^2\)” is true.
Figure 1.4.2.5. Proof without Content by Randal Muroe (https://xkcd.com/3201). There’s also a proof without content of a conjecture without content, but it’s left as an exercise for the reader