I'm investigating Euclid's Lemma and the standard proofs I've come across invoke Bezout's identity or use induction. There is nothing wrong with both of these methods, but I was seeking a proof that was more elementary as I'm just starting out with proof-based math. I saw a few proofs posted on this site but I'm struggling to understand those, so I thought I'd just give it a go myself.
Euclid's Lemma: If a prime $p$ divides the product ab of two integers $a$ and $b$, then $p$ must divide at least one of those integers $a$ or $b$.
I state the Lemma as:
$Prime(p) \land (p \mid ab) \Rightarrow (p \mid a) \lor (p \mid b) \text{ for any integers } a,b$
If $p | ab$, then by definition $ab$ can be expressed as $ab = qp$ where $q$ is an integer. Restated in terms of $q$: $q = ab/p$.
Let's assume $p$ does not divide $a$. Then $a$ and $p$ are coprime because $p$ is prime. In other words, $a$ does not divide $p$.
Then let's investigate the possibilities for the value of $b$ for $q$ to be an integer:
$q = (a/p)\cdot b$
$a/p$ is expressed as a fraction in lowest terms because $p$ only divides itself and we assumed $p$ does not divide $a$ earlier. We need to multiple this fraction by some integer $b$ so that the product is no longer a fraction.
There are two possibilities here such that $q$ is an integer: 1) $b$ is some integer multiple of $p$, or 2) $ab = p$ or $-p$, rendering $(a\cdot b)/p = 1$ or $-1$. However, it cannot be the case that $ab = p$ because that would imply $p$ is composite (not prime). So it must be that $b$ is some integer multiple of $p$, or in other words, $p$ divides $b$. This clearly applies vice versa as well; assuming $p$ does not divide $b$ implies $p$ divides $a$.
I sense I've made an error here as I don't think the proof could be so simple, as that would obviate the need for more elaborate proofs. Thoughts or corrections?
solution-verificationquestion to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be used as a proof checking machine. – Bill Dubuque Nov 10 '24 at 18:10