Understanding disjunction [01B3]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
Disjunctive statements are of the form “P or Q”, which is written symbolically as P\lor Q.
Note: When a mathematician says “P or Q” they do not mean to rule out the possibility that both P and Q hold.
How to use a disjunctive assumption [01B7]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
To use a disjunctive assumption P_1\lor P_2 to establish a goal Q, you consider two cases in turn:
- You assume P_1 and then try to establish Q.
- You assume P_2 and then try to establish Q.
The idea of the above is that you are showing that Q holds if either P_1 holds or P_2 holds. You have to check both cases.
Using disjunctive assumptions in written proofs [01B8]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
In order to prove Q from some assumptions amonst which there is P_1\lor P_2, you should write something like the following:
We consider the following two cases licensed by our assumption P_1\lor P_2.
- Suppose on the one hand that P_1 holds. Then to prove Q we [blah blah blah]...
- Suppose on the other hand that P_2 holds. Then to prove Q we [blah blah blah]...
Lemma [01B9]
- September 25, 2026
- Marcelo Fiore, Jon Sterling
For all positive integers p and natural numbers m, if m = 0 or m=p then {p \choose m} = 1.
Please attempt this yourself first, and once you’ve done that you may click here to reveal a possible proof.
Proof.
- September 25, 2026
- Marcelo Fiore, Jon Sterling
Fix a positive integer p and natural number m such that either m=0 or m=p. We will establish {p\choose m} = 1 by cases on our assumption.
- Suppose first that m=0. Then {p\choose m}={p\choose 0}=1 because there is exactly one way to choose zero elements from a set. It follows, immediately, that {p\choose m}\equiv 1\mod p.
- Suppose on the other hand that m=p. Then {p\choose m} = {p\choose p} = 1 because there is exactly one way to choose p elements from a set with p elements.
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.