1 version of the statement of Fourier orthogonality for inertia averages, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 1 , first version
Let $H$ be a finite abelian group, written additively, let $G=(\mathbb Z/2\mathbb Z)^2\times H$, and put $\Phi=\{((\alpha,\beta),h):\alpha=0\}$. For each natural number $r$, choose a subgroup $I_r\subseteq G$ and an element $F_r\in G$. For a complex character $\chi\in\widehat G$ and an integer $n\ge1$, define
$$a_\chi(n)=\prod_{\substack{r\mid n\\r\ \mathrm{prime}}}\frac1{|I_r|}\sum_{z\in I_r}\chi(v_r(n)F_r+z),$$
where $v_r(n)$ is the exponent of $r$ in $n$ and an empty product is $1$.
For every prime $p$, every integer $i\ge1$, and every $g\in G$,
$$\frac1{|\Phi|}\sum_{\chi\in\widehat G}\overline{\chi(g)}\,a_\chi(p^i)=\begin{cases}2/|I_p|,&g-iF_p\in I_p,\\0,&g-iF_p\notin I_p.\end{cases}$$