1

Euclid's Lemma: Let $p$ be a prime number, and let $a,b\in \mathbb{Z}$. Then $$p\mid ab\implies p\mid a\vee p\mid b$$

I know that there are proofs available in the websites. I'd like to get some feedbacks what you think about the proof i made here.

Proof: If $a,b=0$, the implication is clear. Now suppose $a,b\neq 0$. Suppose $p\mid ab$. We know that $(a,p)\mid a$ and $(a,p)\mid p$, which implies that $(a,p)\mid p$ (by Specialization). But $$(a,p)\mid p\iff (a,p)=1 \vee (a,p)=p.$$ Checking the cases $(a,p)=1$ and $(a,p)=p$, we see that $$(a,p)=1\implies p\mid b\implies p\mid b\vee p\mid a$$ where the first implication is used by the Bezout's lemma, and $$(a,p)=p\iff p\mid a\wedge p\mid p\implies p\mid a\implies p\mid a\vee p\mid b.$$ Altogether, $$(a,p)=1 \vee (a,p)=p\implies p\mid a\vee p\mid b.$$ QED. Is this a valid proof? If there are mistakes in some directions, please let me know.

UnknownW
  • 2,008
  • 1
    Why does $(a,p)=1$ imply that $p\mid b$? This is what we want to prove. – Dietrich Burde Jul 05 '17 at 12:34
  • @DietrichBurde If $(a,p)=1$, then $1=ax + py$ for some integers $x,y$. Multiply the equation by $b$ on both sides, and since $p\mid ab$, you get $p\mid b$, – UnknownW Jul 05 '17 at 12:36
  • 3
    @UnknownW What you just wrote as a comment should be part of your proof. – 5xum Jul 05 '17 at 12:37
  • 1
    But this is the usual proof anyway, so it is a duplicate. – Dietrich Burde Jul 05 '17 at 12:37
  • @DietrichBurde As I have written in the post, there are are different proofs out there. I do not know how they can help me managing the proof I made. If you can see any mistakes I made, I would be appreciated. – UnknownW Jul 05 '17 at 12:45
  • @UnknownW I think, your proof is just what you wrote in the comment, i.e., using Bezout's Lemma. So it is correct, but really a duplicate. – Dietrich Burde Jul 05 '17 at 12:51
  • @DietrichBurde I do not find this link useful as it is somehow assumed $p\nmid b$, which is not I wished to begin with. The proof(s) in that link is incomparable to mine. I'm going to delete this post if you really think this is a duplicate. – UnknownW Jul 05 '17 at 12:55
  • @UnknownW On the contrary, you were also beginning with $p\nmid a$ by considering the case $(a,p)=1$, which just says that $p\nmid a$. Jorik's proof is just yours. He starts with $(p,b)=1$. You can rename $a$ to $b$ and $b$ to $a$, if you want. – Dietrich Burde Jul 05 '17 at 12:58
  • @DietrichBurde I see this as a question on how to write proofs more than anything. Thus, I don't think this is a duplicate. OP asked whether their proof was correct. It technically is, but it has many flaws (such as being the "standard" prof in disguise). A useful way to interpret this question to help OP would be to show them why their proof is less than ideal. – aras Jul 05 '17 at 13:02
  • 1
    @aras Yes, I agree that everyone could post a question with his own variant of a well-known standard proof. This would create, e.g., a multitude of posts to Euclid's lemma, which would become very tedious (Oh god, not again), I think, and not in the sense of this forum. But clearly, this is more a discussion for meta. – Dietrich Burde Jul 05 '17 at 13:14
  • @aras Yes, you are right. But if you see the linked questions to Euclid's lemma on MSE, you can perhaps also understand, that we have so many very similar questions on this, which are basically all done if you just read the standard proof carefully in a book, or on MSE, instead of asking again. – Dietrich Burde Jul 05 '17 at 13:29
  • For some other proofs of Euclid's Lemma see here. – Bill Dubuque Jul 05 '17 at 16:05

1 Answers1

6

In terms of logic, your proof is technically correct. It's essentially equivalent to the "standard" proof using Bezout's lemma.

However, from a mathematical writing standpoint, the way you presented this proof is less than ideal. Whenever writing proofs, you should be asking yourself: What ideas are important?

The important idea behind Euclid's lemma is the following step:

$p\not\mid a \implies p|b$

As you pointed out in the comments, this can be proven using Bezout's Lemma. It's a nice little gem of number theory.

What is not important for the proof of Euclid's lemma is the mundane "logic" steps. The first few sentences in your proof are needlessly wordy. It would suffice to say:

By definition of the gcd, $(a,p) | p$. Since $p$ is prime and the gcd is positive, there are two cases: $(a,p) = 1$ and $(a,p) = p$.

Here, we're emphasizing the important part of this step: The fact that because $p$ is prime, $(a,p)$ can only be equal to $1$ or $p$.

Next, in your proof you look at the two cases $(a,p) = 1$ and $(a,p) = p$. Once again, you skipped the justifications involving number theory and kept fiddling around with logical symbols instead. The important part of these cases is that $(a,p) = 1$ implies $p | b$ and $(a,p) = p$ implies $p | a$. So, let's write that:

If $(a,p) = p$, then by definition of the gcd, $p | a$.

If $(a,p) = 1$, then by Bezout's Lemma there exist integers $x,y$ such that $ax + py = 1$. Multiplying by $b$, we have $abx + pyb = b$. Since $p | ab$, there exists an integer $k$ such that $ab = pk$. So $p(k + yb) = b$. Thus $p | b$.

Note the parts that I skipped: Using the commutative and associative properties to write $(ax)b = a(xb) = a(bx) = (ab)x$, using the distributive property to immediately conclude $pkx + pyb = p(kx+yb)$, using closure of the integers to assert that $k + yb$ is an integer. These steps are technically parts of the proof, but I skipped them because they're not important to the number theory. We know how to manipulate the integers using the commutative, associative, and distributive properties. So we can skip these steps, just like we skip the excessive "logic" steps.

Finally, you can conclude that your initial assumption $p | ab$ (with $p$ prime) implies $p|a$ or $p|b$:

Therefore, $p | a$ or $p | b$.


Note that my "rewritten" bits of your proof are essentially the same as what you wrote in your post and in the comments. Like I said, your proof was technically correct. It just emphasized the unimportant facts (e.g. logical manipulations) instead of the important facts (e.g. precisely citing relevant results in number theory).

The point of writing mathematical proofs is not verifying the result. A well-written proof should also convey why it should make sense for the result to be true.

That's why it's ok to leave off details such as

$p|a \implies (p|a \vee p|b)$

but why it's not ok to leave off justifications for

$(a,p) = 1 \implies p | b$.

The first statement is "obviously" true by logic. When doing math that isn't logic, it's ok to assume basic logic facts. But the second statement is not at all obvious (in the context of elementary number theory). In fact, it's 90% of what you're trying to prove! So you should explicitly prove this step, and emphasize that it is important.

aras
  • 5,649