\bullet Let us firstly note that if h_2(K)=2 and d is odd, then the rank of the 2-class group of K equals 1; and so,
according to [ChemseddinGreenbergConjectureI, Lemma 3.1], d is in one of the following forms:
d=r is a prime number such that r\equiv1\pmod 8 and \left(\frac{r}{q}\right)=1,
d=rs where r and s are two distinct prime numbers.
Assume that d takes the first form (i.e. as in a)). So the extension K/\mathbb{Q}(\sqrt{qr}) is an unramified quadratic extension. Since the 2-class group of
\mathbb{Q}(\sqrt{qr}) is cyclic (cf. [conner88, Corollary 18.6]), it follows that
h_2(K)=2 if and only if
h_2(qr)=4 (this justifies the form A)).
Now assume that d takes the second form (i.e. as in b)). Let us characterize the integers d such that h(K)=2. Put k=\mathbb{Q}(\sqrt{qrs}). We distinguish the following two cases:
229 Assume that K/k is ramified, i.e., rs\equiv 3\pmod4. So h_2(k) divides h_2(K), and thus h_2(k)=1 or 2. The case h_2(k)=1 is rejected as h_2(k) is divisible by 2 (cf. [conner88, Corollary 18.6]). Therefore, h_2(k)=2;
and so, by Lemma 1.2, we have q\equiv s \equiv3 \pmod4 and r\equiv1\pmod4 with \left(\dfrac{q}{r}\right)=-1 or \left(\dfrac{s}{r}\right)=-1. We distinguish two sub-cases:
Let r\equiv5\pmod 8.
Using Tables ? and ?, and Wada’s algorithm (cf. Page ?), we check that E_K= \langle{-1,\varepsilon_q,\varepsilon_{rs},\eta(r,s,q)\rangle}, where \eta(r,s,q) is as in Table Proof:
The paper has a table here, which this page does not show.
Thus, q(K)=2.
Since h_2(rs)=h_2(qrs)=2 (cf. Lemma 1.2), it follows by Kuroda’s class number formula that we have h_2(K)=2 (this justifies the form B)-1)).
Now let r\equiv1\pmod 8. According to Lemma 1.2, [h_2(qrs)=2 and h_2(rs)=2] if and only if \left(\dfrac{s}{r}\right)=-1. Furthermore, from
Tables ? and ?, we deduce that E_K= \langle{-1,\varepsilon_q,\sqrt{\varepsilon_{q}\varepsilon_{rs}},\eta\rangle} where \eta=\varepsilon_{qrs} or \sqrt{\varepsilon_{qrs}} according to whether \left(\dfrac{s}{r}\right)=\left(\dfrac{s}{r}\right)=-1 or not. Therefore,
q(K)=2 exactly when \left(\dfrac{s}{r}\right)=\left(\dfrac{q}{r}\right)=-1.
It follows, by Kuroda’s class number formula (cf. (?)), that h_2(K)=2 if and only if \left(\dfrac{q}{r}\right)= \left(\dfrac{s}{r}\right)=-1 (this justifies the form B)-2)).
229 Now assume that K/k is unramified, i.e., rs\equiv1\pmod 4. We distinguish two sub-cases:
Let r\equiv s\equiv 3\pmod4, then [BS95, Theorem 1] implies that k^{(1)}=k^{(2)}. Therefore,
h_2(K)=\frac{h_2(k)}{2};
and thus h_2(K)=2 if and only if h_2(k)=4. Under the conditions of this sub-case, the quadratic fields k=\mathbb{Q}(\sqrt{qrs}) such that h_2(k)=4 can be deduced from [BS25I, Form d_i, for i\in \{1,...,8\}, page 11]. In fact, we have h_2(k)=4 if and only if, after a suitable permutation of the prime numbers q,r and s, we have \left(\dfrac{r}{s}\right)=\left(\dfrac{s}{q}\right)=1 and one of the conditions in Table Proof :
1.31.6
The paper has a table here, which this page does not show.
This justifies the forms listed from B)-3) to B)-6).
Let r\equiv s \equiv 1\pmod4. Notice that if h_2(K)=2, then the class field tower of k is abelian, i.e., k^{(1)}= k^{(2)}. Thus, using the classification in [BS95, Form c_i, for i\in \{15,...,20\}, page 177-178], by interpreting the graphs corresponding to the abelian case to those of type 7 (for a definition of these graphs reader can see page 168 in the same reference), we deduce that r, s and q satisfy one of the conditions in Table Proof:
1.31.6
The paper has a table here, which this page does not show.
So let us assume that q, r and s satisfy one of the conditions presented in Table Proof.
Notice that h_2(qrs)=4 and since in all cases we have \left(\dfrac{r}{s}\right)=-1, it follows that h_2(rs)=2 (cf. Lemma 1.2). Thus, by Kuroda’s class number formula, h_2(K)=2 if and only if q(K)=1.
On the other hand, using Tables ? and ?, we check that E_K=\langle-1, \varepsilon,\varepsilon,\varepsilon\text{ or } \sqrt{\varepsilon} \rangle according to whether [r\equiv s\equiv5\pmod8, q\equiv7\pmod8 \text{ and } \left(\dfrac{q}{r}\right)=\left(\dfrac{r}{s}\right)=\left(\dfrac{s}{q}\right)=-1] or not. Hence, h_2(K)=4 or 2, more precisely,
h_2(K)=4 \text{ if and only if } r\equiv s\equiv5\pmod8, q\equiv7\pmod8 \text{ and } \left(\dfrac{q}{r}\right)=\left(\dfrac{r}{s}\right)=\left(\dfrac{s}{q}\right)=-1.
Which justifies the forms listed from B)-7) to B)-9).
\bullet Finally let d be an even positive square-free integer co-prime with q, i.e., d=2d', where d' is an odd positive square-free integer (co-prime with q). Notice that if h_2(K)=2, then the fact that the extension K/\mathbb{Q}(2qd') is ramified, implies that h_2(2qd')\in\{1,2\}. It follows, by Lemma 1.2, that the integer d' is in one of the following sub-cases: [d'=1], [d'=p \text{ is a prime number with } p\equiv5\pmod8 \text{ or } \left(\dfrac{p}{q}\right)=-1] or [d'=q' \;\text{ is a prime numer with } q'\equiv3\pmod8].
We note that the sub-case d'=1 is eliminated, as it implies, by Lemma 1.3, that h_2(K)=1.
So let us assume that d'=p is a prime number with p\equiv5\pmod8 or \left(\dfrac{p}{q}\right)=-1. If p\equiv5\pmod8, then h_2(2p)=h_2(2pq)=2 (cf. Lemma 1.2); and on the other hand, we have E_K=\langle{-1,\varepsilon_q,\varepsilon_{2p}, \sqrt{\varepsilon_{q}\varepsilon_{2pq}}\rangle} (cf. Table ?), i.e., q(K)=2.
Thus, by Kuroda’s class number formula, we have h_2(K)=2. This justifies the form C).
Now let p\equiv1\pmod8 and \left(\dfrac{p}{q}\right)=-1. So we have q(K)\geq 2 (In fact \sqrt{\varepsilon_{2p}\varepsilon_{q}} or \sqrt{\varepsilon_{q}\varepsilon_{2pq}} \in K). As Lemma 1.2 implies that h_2(2pq)=2 and h_2(2p)\geq 4, we deduce that h_2(K)\geq 4.
To complete our proof let us consider that last sub-case, i.e., d'=q' is a prime number such that q'\equiv3\pmod8. In this sub-case we have E_K=\langle{-1,\varepsilon_q,\sqrt{\varepsilon_{q}\varepsilon_{2q'}}, \sqrt{\varepsilon_{q}\varepsilon_{2qq'}}\rangle} (cf. Table ?) and h_2(2qq')=2 (cf. Lemma 1.2), which gives h_2(K)=2. This justifies the form D).
Hence, putting all of the above together, we obtain the complete classification stated in the theorem. This completes the proof.