1: \begin{abstract}
2: We determine the average size of the 3-torsion in class groups of $G$-extensions of a number field when $G$ is any transitive $2$-group containing a transposition, for example $D_4$.
3: It follows from the Cohen--Lenstra--Martinet heuristics that the
4: average size of the $p$-torsion in class groups of $G$-extensions of a number field is
5: conjecturally finite for any $G$ and most $p$ (including $p\nmid|G|$). Previously this conjecture had only been proven in the cases of $G=S_2$ with $p=3$
6: and $G=S_3$ with $p=2$.
7: We also show that the average $3$-torsion in a certain relative class group for these $G$-extensions is as predicted by Cohen and Martinet, proving new cases of the Cohen--Lenstra--Martinet heuristics. Our new method also works for many other permutation groups $G$ that are not $2$-groups.
8:
9: \end{abstract}
10: