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.
An ideal $I$ of $\Bbb{Z}$ generated by $a,b \in \Bbb{Z}$ consists of all possible integer linear combinations of $a$ and $b$ (similar to the notion of a span in a vector space). As an example, $a,b, a+2b, -a+3b, 5a-7b, \ldots \in \langle a,b\rangle$. Thus, $$\langle a,b\rangle=\{ax+by \, | \, x,y \in \Bbb{Z}\}.$$
Q1). The reason $\langle a,b\rangle$ must contain a positive integer (assuming at least one of $a$ or $b$ is nonzero) is say if $a\neq 0$, then either $a>0$ or $a<0$. If $a>0$, then we already have $a \in \langle a,b\rangle$, otherwise $-a \in \langle a,b\rangle$ will give us a positive element.
Q2). If $d \in \langle a,b\rangle$, this means $\exists x,y \in \Bbb{Z}$ such that $d=ax+by$. Consequently $nd=a(nx)+b(ny)$, which is a linear combination of $a$ and $b$. Thus $nd \in \langle a,b\rangle$.
Q3). The division algorithm states that for $c,d \in \Bbb{Z}$ with $d \neq 0$, $\exists$ integers $q$ (quotient) and $r$ (remainder) such that $c=dq+r$ with $0 \leq r < d$. There are no other restrictions on $q$.
Q4). Since $r=c-dq$, we already have $c,d \in \langle a,b\rangle$ so by closure under ring operations $r \in \langle a,b\rangle$. If $r>0$, then we have a positive integer $r \in \langle a,b\rangle$ which is smaller than $d$. This violates the fact that $d$ was the least positive integer in $\langle a,b\rangle$. Thus the only possibility is that $r=0$. This means $c=dq+0=dq$. Since the ideal generated by $d$ contains all multiples of $d$, therefore $c \in \langle d \rangle$. This proves that $\langle a,b\rangle \subseteq \langle d \rangle$.