# Ideal Theory and Quadratic Fields (Lec. 6, Tuesday, February 02) ## Prime Factorization in $\Id(\ZZ_K)$ :::{.remark} Today: roughly chapter 6. Recall that if $R$ is a domain, we defined $\Id(R)$ as the set of nonzero ideals of $R$, which is a monoid. We want to get to the following theorem: ::: :::{.theorem title="Fundamental Theorem of Ideal Theory (for Quadratic Fields)"} Let $K$ be a quadratic field, then $\Id(\ZZ_K)$ is a UFM. ::: :::{.remark} This means that everything factors into irreducibles, and when you have unique factorization, irreducible is the same as prime. Note that "prime" here means in this monoidal sense -- does this match up with the existing notion of a prime ideal? I.e. that \( \mathfrak{p} \) is prime if and only if \( R/ \mathfrak{p} \) is a domain, or $ab\in \mathfrak{p}\implies a,b \in \mathfrak{p}$? ::: :::{.proposition title="Prime in monoids equals prime in rings for $\Id(\ZZ_K)$"} "Prime" in the usual ring-theoretic sense is equivalent to "prime" in the monoidal sense for $\Id(\ZZ_K)$. ::: :::{.remark} Recall though that $\Id(\ZZ_K)$ is a reduced monoid, so the only unit is the identity, so uniqueness is just up to ordering and doesn't involve additional units. We can restart the unique factorization theorem: ::: :::{.proposition title="$\Id(\ZZ_K)$ has prime factorization"} Every nonzero ideal of $\ZZ_K$ factors uniquely as a product of prime ideals in $\ZZ_K$. ::: :::{.remark} Can we explicitly understand what ideals of $\ZZ_K$ look like for quadratic fields? ::: :::{.definition title="Standard Bases of Ideals"} Let $K = \QQ(\sqrt{d})$, so $\ZZ_K = \ZZ[\sqrt d]$ if $d=2,3 \mod 4$ or $\ZZ\left[ {1 + \sqrt{d} \over 2} \right]$ if $d=1 \mod 4$. Define $\tau = \sqrt{d}$ or $(1 + \sqrt{d}) /2$ accordingly and write $\ZZ_k = \ZZ[\tau]$. ::: :::{.remark} Note that \( \ts{ 1, \tau } \) is a \( \ZZ\dash \)basis of $\ZZ_K$. An ideal of $\ZZ_K$ is a submodule as a $\ZZ\dash$module, which is free, so any ideal is free of rank at most 2. Can we write down such a basis? ::: :::{.lemma title="Existence of $\tau$"} Let $I$ be a nonzero ideal of $\ZZ_K$, then $I$ contains a nonzero integer and an element of the form $a + b \tau$ where $b\neq 0$. ::: :::{.proof title="of lemma"} How to produce a nonzero rational integer: let \( \alpha\in I \) be nonzero and take the norm. Then \( N \alpha \) is a nonzero integer, and since \( \bar{\alpha}\in \ZZ_K \) we have \( N \alpha = \alpha \bar{ \alpha} \in I \). Now since \( \tau\in \ZZ_K \) and $I$ absorbs multiplication we can set $b \da N \alpha(\tau) \in I$. ::: :::{.remark} We wanted a nice description of bases for ideals -- here it is! ::: :::{.proposition title="Existence of a standard basis for an ideal"} Let $I \normal \ZZ_K$ be a nonzero ideal. Choose $n\in \ZZ^+$ such that $I \intersect\ZZ = n\ZZ$.[^why_intersect_z] Choosing \( B \in \ZZ^+ \) such that \( \ts{ b\in \ZZ \st a + b \tau\in I \text{ for some } a \in \ZZ} = B\ZZ \).[^why_B_exists] Since $B$ is in the LHS, pick $A\in \ZZ$ with $A + B\tau \in I$. Then $\ts{n, A+B\tau}$ is a $\ZZ\dash$basis for $I$. \ Any such basis is referred to as a **standard basis** for $I$ [^why_B_exists]: The LHS is the set of coefficients of \( \tau \), which is an ideal of $\ZZ$, and we can take it to be positive since the LHS is not the zero ideal by the lemma. [^why_intersect_z]: Why does this $n$ exist? Every ideal in $\ZZ$ is of the form $n\ZZ$, and it's easy to check $I \intersect\ZZ$ is an ideal in $\ZZ$ since its an ideal of $\ZZ_K$ intersected with $\ZZ$. How do we know it's not the zero ideal? This is exactly given by the last lemma. ::: :::{.remark} Note that this is only determined up to $A \mod n$. ::: :::{.proof title="of proposition"} Take any element in $I$, which can be represented as \( a + b \tau \), we want to show that this can be expressed in terms of the proposed basis. Note that $B\divides b$ by its definition, since $B$ generated the ideal of \( \tau \) coefficients. So write \( b = Bs \), then \[ ( a + b \tau) - (A + b \tau)s \in \ZZ \intersect I = \gens{ n } .\] So write this difference as $nr$ for some $r\in \ZZ$, then rearranging yields \[ a + b \tau = nr + (A + B \tau)s ,\] which is a $\ZZ\dash$linear combination of the standard basis elements. Uniqueness is easy and follows from the fact that every element in $\ZZ_K$ has a unique representation in terms of $1, \tau$. ::: ## Ideal Norms :::{.remark} In the previous section, we used the fact that for $a\in \ZZ_k$, the number of elements in $\ZZ_K / \gens{ n }$ is $\abs{ N a }$. That will be a consequence of the theory we develop here. ::: :::{.definition title="Norm of an ideal"} If $I\normal \ZZ_K$ is a nonzero ideal, define the **norm of $I$** as $N(I) = \abs{\ZZ_K / I}$. ::: :::{.remark} It's not completely obvious, but this quotient is always finite. We can use the fact that $I\leq \ZZ_K$ is a $\ZZ\dash$submodule of rank exactly 2. It's then a general fact from algebra that $A/B$ is finite when $\rank(A) = \rank(B)$, and there are ways of figuring out the number of elements (see normal forms). ::: :::{.proposition title="Norms can be computed in terms of a basis with respect to $\tau$"} Suppose that $I\normal \ZZ_K$ is a nonzero ideal and let $n, A+B \tau$ be a standard basis for $I$. Then $N(I) = nB \in \ZZ^+$. ::: :::{.proof title="of proposition"} Check that $\ts{ a + b \tau \st 0\leq a \leq n,\, 0 \leq b \leq B}$ is a complete and irredundant set of representatives for $\ZZ_K/I$. ::: :::{.remark} So given a standard basis, it's easy to compute norms! What does this have to do with the previous notion of norms for elements? ::: :::{.theorem title="The ideal that the norm generates"} Let $I \normal \ZZ_K$ be nonzero and define $\bar{I} = \ts{ \bar\alpha \st \alpha \in I } \normal \ZZ_K$. Then $I \bar I = \gens{ N(I) }$. ::: :::{.lemma title="The $\tau$ coefficient divides the remaining coefficient"} Let $n$ be as above and let $A + B \tau$ be a standard basis for $I$. Then $B\divides n$ and $B\divides A$. ::: :::{.proof title="of lemma"} Recall that $B$ was a generator for \( \tau \) components of elements of $I$, so we just need to find an element of $I$ with \( \tau \) component $n$, and \( n \tau \in I \) works. Now compute $(A + B \tau) \tau\in I$. This is equal to \[ A \tau + B \tau^2 .\] Note that this could in principle be done in cases: if $\tau = \sqrt{d}$, the quantity $Bd$ would be an integer and $A$ would be the \( \tau \) coordinate. Then since $B$ divides every \( \tau \) coefficient, we'd be done. But let's try this in a more unified way: we know \( \tau \) is a root of a monic degree 2 polynomial, namely \( (x - \tau) (x - \bar{\tau}) = x^2 - \Tr( \tau)x + N( \tau) \), and thus we can write \[ \tau^2 = \Tr( \tau) \tau - N( \tau) .\] Substituting yields \[ (A + B \tau) \tau &= A \tau + B \tau^2 \\ &= A \tau + B ( \Tr( \tau) \tau - N( \tau) ) \\ &= - B N( \tau) + (A + B \Tr( \tau ) ) \tau .\] The coefficient of \( \tau \) must be a multiple of $B$, which forces $B\divides A$. ::: :::{.proof title="of theorem"} Let $n, A + B \tau$ be a standard basis for $I$. Then $I = \gens{ n, A+ B \tau }$, which is a generating set as a $\ZZ_K\dash$module since they generate $I$ over $\ZZ$ and subset containment both ways can be readily checked. We can then write $\bar{I} = \gens{ n, A+B \bar \tau }$, since conjugating ordinary integers doesn't change them. Using the lemma, we can write \[ I &= \gens{ Bn', BA' + B \tau }\\ \bar{I} &= \gens{ Bn', BA' + B \bar{\tau} } .\] We can factor out a $B$ to get \[ I &= \gens{ B } \gens{ n', A' + \tau} \\ \bar{I} &= \gens{ B } \gens{ n', A' + \bar{\tau} } .\] Now multiplying the two yields \[ I \bar{I} = \gens{ B^2 } \gens{ (n')^2, n'(A' + \bar{ \tau} ), n'(A' + \tau), N(A' + \tau) } .\] It's tempting to factor out $n'$, but it isn't obviously in the last factor. But it is! Note that $N(A' + \tau) \in \gens{ A' + \tau, n' }$ and thus \( B N(A' + gt) \in \gens{ B } \gens{ A' + \tau, n' } = I \). But the first expression is an ordinary integer, i.e. in $I \intersect\ZZ = \gens{ n }$ and thus a multiple of $n$. So $Bn' = n \divides BN(A' + \tau)$, and thus $n' \divides N(A' + \tau)$. So we can rewrite \[ I \bar{I} &= \gens{ B^2 } \gens{ n' } \gens{ n', A' + \bar{ \tau} , A' + \tau, { N(A' + \tau) \over n'} } \\ &= \gens{ B^2 n' } \gens{ n', A' + \bar{ \tau} , A' + \tau, { N(A' + \tau) \over n'} } .\] We can now note that $B^2 n' = B^2(n/B) = nB = N(I)$. We've thus shown that \[ I \bar{I} = \gens{ N(I) } \gens{ n', A' + \bar{ \tau} , A' + \tau, { N(A' + \tau) \over n'} } .\] We'd really like the second term to just be \( \gens{ 1 } \). Note that this factor contains some integers: $n', N(A' + \tau)/n'$, and $(A' + \bar \tau) + (A' + \tau) = \Tr(A' + \tau)$. So let \[ J \da \gens{ n, N(A' + \tau)/n', \Tr(A' + \tau) } \normal \ZZ ,\] then it's enough to show $J = \gens{ 1 } \normal \ZZ$. Why? If so, $1$ is a $\ZZ\dash$linear combination of these elements, but every $\ZZ\dash$linear combination is also a $\ZZ_K\dash$linear combination. Every such combination will be in the original ideal appearing in $I \bar{I}$, which we want to show is the unit ideal. We can write $J = d\ZZ$ where $d\in \ZZ^+$ and suppose toward a contradiction that $d>1$. \ Consider \( \alpha \da (A' + \tau) / d \in K \). Taking the trace is $\QQ\dash$linear, so $\Tr( \alpha) = (1/d) \Tr(A' + \tau) \in \ZZ$. This follows because the trace $\Tr(A' + \tau)$ is in $J$, thus a multiple of $d$. We can also compute \( N \alpha = N(A' + \tau) / d^2 \) using that $d\bar{d} = d^2$ since $d$ is rational. \ The claim is that $N \alpha$ is also an integer: since $N(A' + \tau)/n', \Tr(A' + \tau)$ are in $J$, $d$ divides both. So we know that $d^2 \divides (n') (N(A' + \tau) / n') = N(A' + \tau)$, which forces $N \alpha\in \ZZ$. So we know $N \alpha, \Tr \alpha \in \ZZ$, which forces \( \alpha\in \ZZ_K \) since \( \alpha \) is a root of $x^2 - \Tr(\alpha) + N \alpha$. But \( \alpha \) can't be in \( \ZZ_K \), since these consist only of $\ZZ\dash$linear combinations of $1, \tau$ -- however here the coefficient of \( \tau \) is $1/d \not \in \ZZ$, and thus \( \alpha = A'/d + (1/d) \tau \not\in \ZZ_K \). ::: :::{.remark} This is a long proof! It's nice in that it's direct, but less nice in that it required some clever steps. When we do the case for general number fields, we'll be able to use a more conceptual approach that avoids some of these computations. Many other facts fall out of these theorem -- in fact, there are nice results as long as $I \bar I$ is a principal ideal. :::