Let $K$ be an imaginary number field.Let $S$ be finite set of places of $K$. Let $K(S,2)\stackrel{\mathrm{def}}{=} \{b\in K^{\times}/{K^{\times}}^2 \mid v(b)≡0\mod2, \forall v\notin S \}$
Let $S-$ unit be $O_{K,S} \stackrel{\mathrm{def}}{=}\{a\in K \mid v(a)\ge 0, \forall v\notin S\}$. Let $Cl(K,S)$ be S- ideal class group of $O_{K,S}$.
I heard there is an exact sequence $1 \to {O_{K,S}}^{\times}/{{O_{K,S}}^{\times}}^2 \to K(S,2) \to Cl(K,S)[2] \to 1$. (https://doc.sagemath.org/html/en/reference/number_fields/sage/rings/number_field/selmer_group.html)
The map ${O_{K,S}}^{\times}/{{O_{K,S}}^{\times}}^2 \to K(S,2)$ is given by $u \mapsto u mod {K^{\times}}^2$.
But what is the map $K(S,2) \to Cl(K,S)[2]$ ?
I'm sticking with this map, so I cannot prove the exactness at $K(S,2)$.
Hints:
given by multiplication by $2$.