I have a problem understanding a proof about ideals, which states that every ideal in the integers can be generated by a single integer. And with that I realized that I also don't really understand ideals in general and the intuition behind them.
So let me start by the definition of an ideal. For $a, b \in \mathbb{Z}$, the ideal generated by $a$ is the set $ (a) := \{ua : u \in \mathbb{Z}\} $ while the ideal generated by $a$ and $b$ is the set $(a, b) := \{ua + vb : u,v \in \mathbb{Z}\}$. Here comes my first question: Are those "multiples" of the generators ($u$ and $v$) all possible integers? Or does this apply only to a specific amount of predefined integers?
And now comes the proof in question. I added the questions in parenthesis where I had problems following:
The lemma states that for $a, b \in \mathbb{Z}$ (not both 0), $ \exists d \in \mathbb{Z}: (a,b) = (d) $. This means in my understanding that every ideal in the integers, no matter how many integers were used to generate it, can be generated only by a single integer.
Proof: The set $(a,b)$ must contain some positive numbers (why? The definition of the ideal doesn't state that). By the well-ordering principle, we know that those positive numbers must have a smallest positive number. Let $d$ be that number. Because $d \in (a,b)$, every multiple of $d$ must also be in $(a,b) $ (why? Is there any definition or lemma or theorem that states that?). Therefore, we have $(d) \subseteq (a,b)$. And now to prove the other side $\supseteq$: For any $c \in (a,b) $ , $\exists q,r $ (are those elements of the integers or of the set $(a,b)$? and do any restrictions apply to $q$?) where $0 \leq r < d$ such that $c = qd + r$ (as far as my understanding goes, this comes from the fact that any integer can be divided by another integer yielding a remainder). Since both $c$ and $d$ are in $(a,b)$, so is $r=c−qd$ . Since $0≤r<d$ and $d$ is (by assumption) the smallest positive element in $(a, b)$, we must have $r = 0$. Thus $ c = qd ∈ (d)$ (how did we conclude that last step?).
Thank you for the clarifications.