How to prove a disjunction [01B4]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
The primary proof strategy for disjunction [01BC]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
To prove goal of the form P\lor Q, you have two choices:
- You try to prove P, and if you succeed, you are done.
- You try to prove Q, and if you succeed, you are done.
In the above, you have to make a choice. Sometimes you do not yet have enough assumptions to know whether you should attempt to prove P or attempt to prove Q! This is similar to our experience with existentials: before making an irrevocable choice, you may want to see if you can use any of your assumptions to get more information that would inform your choice.
Proposition [01BA]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
The square of any integer is congruent to either 0 or 1 modulo 4.
Interpretation.
- September 25, 2026
- Marcelo Fiore, Jon Sterling
Scratch work.
- September 25, 2026
- Marcelo Fiore, Jon Sterling
Given an integer n, we might try to prove the goal (n^2\equiv 0\mod 4) \lor (n^2\equiv 1\mod 4) right away. Unfortunately, we just don’t have enough information to proceed! Indeed, if we try to open “door #1” and prove n^2\equiv 0\mod 4, we are definitely going to go wrong because it’s not the case that 1^2 \equiv 0\mod 4. On the other hand, if we try to open “door #2” and prove n^2\equiv 1\mod 4, we are going to go wrong because it is not the case that 0^2 \equiv 1\mod 4.
So we need some additional information before we can make our choice. In the examples we considered, we note that 0 is even and 1 is odd. Could it be that we need to branch on whether n is even or odd?
We know, indeed, that every integer is either even or odd; so we may assume \mathsf {isEven}(n)\lor \mathsf {isOdd}(n) and then we may use this assumption and proceed by cases on whether n is even or odd: then, perhaps, when n is even we should try to show its square is congruent to 0, and when n is odd we should try to show that its square is congruent to 1. Before we try and write out the whole proof, let’s just try these cases and see if they work out.
Lemma [01B5]
- September 25, 2026
- Jon Sterling
The square of any even integer is congruent to 0 modulo 4.
Proof.
- September 25, 2026
- Jon Sterling
Let n be even so that we have some integer k with n=2k. We want to see that n^2\equiv 0\mod 4, which is to say that 4\mid n^2. We compute:
n^2 = (2k)^2 = 4k^2Evidently 4\mid 4k^2, so we are done.
Lemma [01B6]
- September 25, 2026
- Jon Sterling
The square of any odd integer is congruent to 1 modulo 4.
Proof.
- September 25, 2026
- Jon Sterling
Let n be odd so that we have some integer k with n=2k+1. We want to see that n^2 \equiv 1 \mod 4, which is to say that 4\mid n^2-1. We compute:
\begin {aligned} n^2-1 &= (2k+1)^2 - 1 \\ &= 4k^2 + 4k + 1 - 1 \\ &= 4k^2 + 4k \\ &= 4(k^2 + k) \end {aligned}4(k^2+k) is evidently divisible by 4, so we are done.
Since that worked, we can now proceed to write out a proper proof of the whole proposition.
Proof.
- September 25, 2026
- Marcelo Fiore, Jon Sterling
The “classical” proof strategy for disjunction [01BB]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
The primary proof strategy for disjunction requires us to choose between P and Q to prove P\lor Q. We have seen in Proposition [01BA] that sometimes we do not yet have enough information to make that choice, and we must split our proof on some assumptions before we know what to do. In classical logic, there is a general version of that strategy which relies on the fact that we always know that either P holds or its negation \lnot P holds. We haven’t studied negation formally yet, but we will work intuitively with it for now.
The classical strategy to prove a disjunction P\lor Q is to simply assume that P is false and then prove Q; or, equivalently, to assume that Q is false and then prove P. First we justify the strategy:
Justification.
- September 25, 2026
- Marcelo Fiore, Jon Sterling
We want to prove P\lor Q. We know that P\lor \lnot P, so we proceed by cases on this assumption. In the first case, we deduce P\lor Q trivially from an assumption P. The remaining case is to prove P\lor Q by assuming \lnot P.
Although the classical strategy can be very convenient, proofs that don’t use it end to be more elegant that proofs that do. Often times you reach for it prematurely and give a far more complicated proof than necessary. So we advise that you only use this strategy if nothing else works.