\documentclass[11pt]{amsart} \usepackage[margin=2.5cm]{geometry} \usepackage{amssymb,amsmath} \usepackage{xcolor} \usepackage[colorlinks=true,linkcolor=magenta,urlcolor=magenta,citecolor=magenta]{hyperref} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{definition}[theorem]{Definition} \newtheorem{introthm}{Theorem} \renewcommand{\theintrothm}{\Alph{introthm}} \theoremstyle{remark} \newtheorem*{remark}{Remark} \setcounter{MaxMatrixCols}{20} \title{Cocyclic Hadamard matrices in bistochastic form} \author{Teo B} \author{Claude O} \begin{document} \subjclass[2020]{15B34 (05B20, 20J06)} \keywords{Hadamard matrix, cocyclic matrix, bistochastic matrix, Butson matrix} \begin{abstract} A complex Hadamard matrix $H\in M_N(\mathbb T)$ is equivalent to a bistochastic matrix, by the Idel--Wolf theorem, but the proof of this fact is not constructive. We show that for a cocyclic Hadamard matrix, with cocycle $\psi$ over a group $G$, the problem reduces to the same problem for a unitary matrix of size $[G:G_0]$, for any subgroup $G_0$ on which $\psi$ is a coboundary over $\mathbb T$. For $G_0=G$ this gives group-developed bistochastic forms, which exist precisely when $\mathbb Z_q\cap[E,E]=\{1\}$, where $E$ is the extension group and $\mathbb Z_q$ is the group of values of $\psi$, and for the subgroups of index 2 the forms are explicit. The 2 classes of real Hadamard matrices of order 16 having no real bistochastic form, $\mathrm{had}_{16.3}$ and its transpose, are cocyclic only over the dihedral group of order 16, with extension group the generalized quaternion group of order 32, and their cocycle is a coboundary exactly on the cyclic subgroups. These subgroups explain 8 of the 10 orbits of bistochastic forms of $\mathrm{had}_{16.3}$, under its symmetries and complex conjugation, namely those having a nontrivial stabilizer, and the 2 remaining orbits come from no reduction along a nontrivial subgroup. We also show that, for matrices of order $2^k$, a Butson bistochastic form over the roots of unity of order $2^tm$ can be replaced by one of order $m$, for suitable $m$, that $\mathrm{had}_{16.3}$ has no such form over the roots of unity of order $2^a3^b$ or $2p^b$, with $p\geq5$ prime, and we discuss the Di\c t\u a products, the orders 8, 12, 20, the Butson matrices of order 8 and 16, and the arithmetic of the forms, none of the forms of $\mathrm{had}_{16.3}$ that we found being Butson. \end{abstract} \maketitle \setcounter{tocdepth}{1} {\hypersetup{linkcolor=magenta}\tableofcontents} \section*{Introduction} A complex Hadamard matrix is a matrix $H\in M_N(\mathbb T)$ whose rows are pairwise orthogonal. Multiplying its rows and columns by numbers of modulus 1, and permuting them, gives an equivalent matrix. By a theorem of Idel and Wolf \cite{iwo}, conjectured by De Vos and De Baerdemacker \cite{dvb}, any unitary matrix can be written as $LAR$, with $L,R$ diagonal unitaries and $A$ having all its row and column sums equal to 1. For a complex Hadamard matrix this means that $H$ is equivalent to a bistochastic matrix, with all row and column sums equal to some $\lambda$ with $|\lambda|=\sqrt N$. The proof is not constructive, relying on the non-displaceability of the Clifford torus \cite{bep}, and the question, raised in \cite{bhm}, is whether the bistochastic forms can be found explicitly. The answer is not obvious even for real Hadamard matrices. A real bistochastic form has all its row and column sums equal to $\pm\sqrt N$, which requires $N$ to be a square, and for a real Hadamard matrix of order $N=16$ the question becomes whether the signs can be replaced by roots of unity. The 5 real Hadamard matrices of order 16, up to equivalence, are denoted $\mathrm{had}_{16.0},\ldots,\mathrm{had}_{16.4}$ in McKay's catalogue \cite{mck}, from which we take all the real Hadamard matrices of order $N\leq20$, built, together with the other matrices that we use, by the program \texttt{matrices.py}, and while the first 3 have real bistochastic forms, $\mathrm{had}_{16.3}$ and its transpose $\mathrm{had}_{16.4}$ are not equivalent to bistochastic matrices with entries in the roots of unity of order $2^a3^b$, for any $a,b$, and none of the bistochastic forms of $\mathrm{had}_{16.3}$ that we found has its entries in roots of unity, the most symmetric ones having entries in a number field of degree 16. Thus, in general, explicit should not mean Butson. In this paper we propose a class of Hadamard matrices for which the question has a good answer, namely the cocyclic matrices of de Launey and Horadam \cite{hdl}, which have a rich theory \cite{dfh,dlf,fla,hor,ocr}. A matrix $H$ is cocyclic over a finite group $G$ of order $N$ if it is equivalent to a matrix $(\psi(g,h))_{g,h\in G}$, with $\psi$ a 2-cocycle. Our first observation is that the bistochastic problem is governed by the cohomology class of $\psi$ over $\mathbb T$. Let $E_\psi$ be the central extension of $G$ defined by $\psi$, with $\psi$ taking values in a finite group $\mathbb Z_q$ of roots of unity, the group of $q$-th roots of unity being denoted $\mathbb Z_q$ throughout. \begin{introthm}\label{intro:developed} A cocyclic Hadamard matrix $H=(\psi(g,h))$ over $G$ has a $G$-developed bistochastic form $(f(gh))_{g,h\in G}$ precisely when $\psi$ is a coboundary over $\mathbb T$, which happens precisely when $\mathbb Z_q\cap[E_\psi,E_\psi]=\{1\}$. In this case $f$ takes values in $\mathbb Z_m$, with $m$ the exponent of $E_\psi/[E_\psi,E_\psi]$. \end{introthm} For the Fourier matrices this gives the classical bistochastic forms built from Gauss sums, and for the Walsh matrices their forms over $\mathbb Z_4$. When $\psi$ is not a coboundary, we can still use its restrictions to the subgroups. For $G_0\subset G$ of index $k$, such that $\psi_{|G_0}$ is a coboundary over $\mathbb T$, there is a unitary matrix $U\in U_k$, the matrix of coset sums, defined in section \ref{sec:reduction}. \begin{introthm}\label{intro:reduction} The bistochastic forms of $H$ whose column multipliers are, up to a fixed function on $G$, constant on the right cosets of $G_0$, correspond to the vectors $c\in\mathbb T^k$ such that $Uc\in\mathbb T^k$. Such vectors exist, and for $k=2$ they are explicit, with $c=(1,w)$, where $w=\pm iS_0\bar S_1/|S_0S_1|$ when $S_0S_1\neq0$, and $w$ is arbitrary otherwise, the numbers $S_0,S_1$ being sums of roots of unity, with $|S_0|^2+|S_1|^2=N$. \end{introthm} In particular, every cocyclic Hadamard matrix over a group having a cyclic subgroup of index 2 has explicit bistochastic forms. This applies for instance to the matrices which are cocyclic over the dihedral groups with dicyclic extension groups, the Hadamard groups of Ito \cite{ito,sch}, whose cocycles are never coboundaries over $\mathbb T$. We then turn to the real Hadamard matrices of small order, whose cocyclic structures we compute from their symmetry groups. At order 16 the matrices $\mathrm{had}_{16.0},\mathrm{had}_{16.1},\mathrm{had}_{16.2}$ are group-developed, from Menon difference sets \cite{kib}, while for $\mathrm{had}_{16.3}$, which numerically has exactly 10 orbits of bistochastic forms under its symmetry group and complex conjugation, each of them being the union of 2 orbits of the symmetry group, exchanged by conjugation, we obtain: \begin{introthm}\label{intro:had163} The matrices $\mathrm{had}_{16.3}$ and $\mathrm{had}_{16.4}$ are cocyclic over the dihedral group $D_8$ of order $16$, and over no other group. Their extension group is the generalized quaternion group of order $32$, and their cocycle is a coboundary over $\mathbb T$ exactly on the cyclic subgroups of $D_8$. Of the $10$ orbits of bistochastic forms of $\mathrm{had}_{16.3}$, the orbits $8,9$ consist of the explicit forms given by Theorem B, applied to the subgroup $\mathbb Z_8$ of index $2$, the orbits $2$--$7$ come from the reductions along the subgroups of order $2$, to problems of size $8$, and the orbits $0,1$ come from no reduction along a nontrivial subgroup. \end{introthm} The cocyclic structure itself, and the order 86016 of the symmetry group, appear in the classification data of \'O Cath\'ain and R\"oder \cite{ocr}, and our computation, based on the symmetry group, recovers them independently. The new point is the relation with the bistochastic forms: a form coming from a reduction along $G_0$ is fixed, up to a scalar, by the symmetries coming from $G_0$, and the orbits $0,1$ are exactly those whose stabilizer is reduced to $\pm1$, so that the reductions explain all the forms that they can explain. The matrix $\mathrm{had}_{16.3}$ is singled out by other invariants too: its Ising array is, with that of its transpose, the frustrated one at order 16, with 43008 ground states \cite{ist}, its subfactor separates it from its transpose, while their glows coincide \cite{bo5}, and its bistochastic forms are the ground states of its array of planar rotators \cite{rot}. At order 12 the Paley matrix is cocyclic over $A_4$, $D_6$ and $\mathbb Z_6\times\mathbb Z_2$, never with a coboundary, and some twists along $\mathbb Z_6$ give explicit bistochastic forms over the 24-th roots of unity, up to a common phase, while at order 20 some twists along $\mathbb Z_{10}$ give explicit bistochastic forms over the 4-th roots of unity for each of the 3 classes, one of which is even group-developed over $D_{10}$. We also give explicit forms for the Di\c t\u a products of 2 matrices of the same order, and for those of a matrix with a Fourier matrix of multiple order. We show that, for matrices of order $2^k$, and under a mild arithmetic condition on $m$, a Butson form over the roots of unity of order $2^tm$ can be replaced by one of order $m$, we use this and a congruence argument for showing that $\mathrm{had}_{16.3}$ has no Butson form over the roots of unity of order $2^a3^b$ or $2p^b$, with $p\geq5$, and we discuss the arithmetic of the forms, showing that the 225792 forms of $\mathrm{had}_{16.3}$ that we found are not Butson. \medskip \noindent\textbf{Acknowledgements.} We would like to thank GPT, Gemini and Grok for useful discussions. \section{Bistochastic forms and excess}\label{sec:excess} Let $H\in M_N(\mathbb T)$ be a complex Hadamard matrix. For $a,b\in\mathbb T^N$ the sum of the entries of the equivalent matrix $D_aHD_b$ is $\Omega=\sum_{ij}a_ib_jH_{ij}$, and its modulus is called the excess. With $R=Hb$ being the vector of row sums of $HD_b$, which satisfies $\|R\|^2=N^2$, we have, by Cauchy--Schwarz, $|\Omega|\leq\sum_i|R_i|\leq\sqrt N\|R\|=N^{3/2}$. There is equality precisely when all the row sums of $D_aHD_b$ are equal, to some $\lambda$ with $|\lambda|=\sqrt N$, which forces the column sums to be equal to $\lambda$ too. Thus the maximizers of the excess, over the equivalence class of $H$, are exactly its bistochastic forms. The law of $\Omega$, for $a,b$ random, is the glow of $H$ \cite{ba1}, which detects the bistochastic forms through its top, and whose real version, with $a,b\in\{\pm1\}^N$, describes a system of Ising spins, as explained in \cite{ist}. In the complex case, $-Re(\Omega)$ is, up to normalization, the energy of the array of planar rotators with couplings $H$ \cite{rot}, and since $Re(\Omega)\leq|\Omega|\leq N^{3/2}$, the ground states of this array are exactly the bistochastic forms, rotated by a global phase so that their row sums are positive, as observed in \cite{rot}. In the real case, the maximal excess of the real Hadamard matrices is a classical topic \cite{bes,fko,kha}, the bound $N^{3/2}$ being attained precisely by the real Hadamard matrices with constant row and column sums, which exist only when $N$ is a square. At $N=16$ there are respectively $896,384,128,0,0$ vectors $b\in\{\pm1\}^{16}$ such that $|(Hb)_i|=4$ for all $i$, for the 5 classes, as computed in \cite{ist}. In the complex case, $H$ is always equivalent to a bistochastic matrix, by \cite{iwo}, and numerically the bistochastic forms can be found by the alternating iteration of \cite{dvb}, $u=\mathrm{ph}(Hb)$, $b\to\mathrm{ph}(H^*u)$, with $\mathrm{ph}(z)_i=z_i/|z_i|$, which increases $|\Omega|$ at each step. In this paper we are interested in the exact forms, with entries in roots of unity, or more generally in number fields. \medskip \noindent\textbf{Counting.} For $H=F_N$, the bistochastic forms correspond to the vectors $b\in\mathbb T^N$ such that $F_Nb$ has constant modulus, that is, to the bi-unimodular sequences, which are the first rows of the circulant complex Hadamard matrices, and correspond to the cyclic $N$-roots \cite{bjo,haa}. Here explicit solutions are given by the Gauss chirps, and for $N=p$ prime the cyclic $p$-roots are counted by $\binom{2p-2}{p-1}$, over $\mathbb C$ and with multiplicity, by \cite{haa}, only part of them being unimodular, for instance 20 of the 70 at $p=5$. For a general unitary $U$, the vectors $b\in\mathbb T^N$ with $Ub\in\mathbb T^N$ are the biunimodular vectors of \cite{fur}, and for Butson matrices the vectors $b$ with $Hb$ of constant modulus are related to the bent vectors of \cite{aek,slo}. Thus the bistochastic forms of a general $H$ can be thought of as generalized cyclic roots, and their number is a natural invariant. \medskip \noindent\textbf{Di\c t\u a products.} Recall that the Di\c t\u a product of 2 complex Hadamard matrices $H\in M_M(\mathbb T)$, $K\in M_N(\mathbb T)$, with parameter matrix $Q\in M_{M\times N}(\mathbb T)$, is the complex Hadamard matrix given by $(H\otimes_QK)_{ia,jb}=Q_{ib}H_{ij}K_{ab}$ \cite{dit}. For $H=K=F_N$ an explicit almost bistochastic form was found in \cite{bhm}, and its mechanism extends to any 2 matrices of the same order. For blocks of different sizes the mechanism breaks down, the row sums becoming partial sums of the rows of $K$, weighted by $Q$, over blocks of columns, which have constant modulus only for special $(K,Q)$, the simplest open case being $F_2\otimes_QF_3$, for generic $Q$. However, when $K$ is a Fourier matrix whose order is a multiple of that of $H$, these partial sums can be flattened by a Chu sequence $g$, as in section \ref{sec:cocyclic}, and we have: \begin{proposition}\label{prop:divisor} Let $H\in M_M(\mathbb T)$ be Hadamard, $N=ML$, and $Q\in M_{M\times N}(\mathbb T)$. Write the columns of $F_N$ as $t=p+Mu$, with $0\leq p10^{-12}$ of it, and so different from it. \end{proof} Forgetting the signs, the group acts transitively on the 16 columns, as found by the program \texttt{autstructure.py}, as a permutation group of order $43008=2^{11}\cdot3\cdot7$, the stabilizer of a column having order $2688=16\cdot168$, with $168$ being the order of $GL_3(\mathbb F_2)$. The total $225792$ is far below the count $\binom{30}{15}\simeq1.6\cdot10^8$ of Haagerup type. \medskip \noindent\textbf{The Di\c t\u a structure.} The matrix $\mathrm{had}_{16.3}$ is of Di\c t\u a type in the general sense $F_2\otimes(A,B)$ of \cite{dit}, with 2 inner matrices. In McKay's ordering, the column pairs $(2a,2a+1)$ split the rows into 2 groups of 8, on which $H$ restricts to $\begin{pmatrix}A&A\end{pmatrix}$ and $\begin{pmatrix}B&-B\end{pmatrix}$, interleaved, with $A,B\in M_8(\pm1)$ Hadamard. This explains the following phenomenon, observed numerically: in 65 of 91 random bistochastic forms, the 16 phases split into 8 pairs with ratios $\pm i$. \begin{proposition}\label{prop:paired} For a matrix of this type, the bistochastic forms with $b_{2a+1}=i\varepsilon_ab_{2a}$, with $\varepsilon\in\{\pm1\}^8$, correspond to the vectors $y\in\mathbb T^8$ such that $Ay$ and $B\,diag(\varepsilon)y$ both have all their entries of modulus $\sqrt8$, via $b_{2a}=y_ae^{-\pi i\varepsilon_a/4}$. \end{proposition} \begin{proof} On the first group of rows, the row sums are the entries of $A(b_{2a}+b_{2a+1})_a=\sqrt2Ay$, because $(1+i\varepsilon)e^{-\pi i\varepsilon/4}=\sqrt2$. On the 2nd group they are the entries of $B(b_{2a}-b_{2a+1})_a=-i\sqrt2B\,diag(\varepsilon)y$, because $(1-i\varepsilon)e^{-\pi i\varepsilon/4}=-i\sqrt2\varepsilon$. Both must have modulus 4. \end{proof} Thus the problem becomes a simultaneous flattening problem for 2 matrices of order 8, which is much smaller. By meet in the middle, with the program \texttt{pairedsearch.py}, there are respectively $224,896,1568,3584$ vectors $y\in\mathbb Z_n^8$ with $y_1=1$ flattening $A$, for $n=4,8,12,24$, but none of them flattens $B\,diag(\varepsilon)$, for any $\varepsilon$. Thus $\mathrm{had}_{16.3}$ has no paired bistochastic form with entries in $\mathbb Z_{24}$, in agreement with Theorem \ref{thm:had16}. \medskip \noindent\textbf{Cocyclic structures.} A centrally regular subgroup $R$ of the symmetry group has order 32, so it is contained in a Sylow 2-subgroup, and up to conjugation we can search inside a fixed Sylow 2-subgroup $S$, of order 4096. The program \texttt{cocyclic16.py} builds $S$ by successive extensions inside normalizers, finds the 448 subgroups of the image of $S$ in $S_{16}$ acting regularly on the columns, lifts them, and keeps those acting regularly on the rows too. It finds 64 centrally regular subgroups, all with $R/\langle z\rangle$ isomorphic to the dihedral group $D_8$ of order 16, and all with $z\in[R,R]$. With $D_8=\langle r,s|r^8=s^2=1,srs=r^{-1}\rangle$, in the ordering $1,r,\ldots,r^7,s,rs,\ldots,r^7s$, the cocycle extracted from the first of them is as follows, with $\pm$ standing for $\pm1$: \begingroup\small\setlength{\arraycolsep}{2.2pt} $$\psi=\begin{pmatrix} +&+&+&+&+&+&+&+&+&+&+&+&+&+&+&+\\ +&-&+&-&-&-&-&+&-&+&-&+&+&+&+&-\\ +&+&+&-&-&-&+&-&+&+&+&-&-&-&+&-\\ +&-&-&+&+&-&+&+&-&+&+&-&-&+&-&-\\ +&-&-&+&-&+&+&-&+&-&-&+&-&+&+&-\\ +&-&-&-&+&+&-&-&-&+&+&+&-&-&+&+\\ +&-&+&+&+&-&-&-&+&-&+&+&+&-&-&-\\ +&+&-&+&-&-&-&-&-&-&+&-&+&+&+&+\\ +&-&+&+&-&+&+&-&-&+&-&-&+&-&-&+\\ +&-&-&-&+&-&+&+&+&-&-&-&+&-&+&+\\ +&+&+&-&+&-&+&-&-&-&-&+&-&+&-&+\\ +&-&+&-&-&+&-&+&+&-&+&-&-&+&-&+\\ +&+&+&+&+&+&-&+&-&-&-&-&-&-&+&-\\ +&+&-&+&-&-&-&+&+&+&-&+&-&-&-&+\\ +&+&-&-&-&+&+&+&-&-&+&+&+&-&-&-\\ +&+&-&-&+&+&-&-&+&+&-&-&+&+&-&- \end{pmatrix}$$ \endgroup \noindent the rows being indexed by $g$, and the columns by $h$, in the above ordering. The program \texttt{cocycle.py} extracts such an explicit cocycle $\psi$ on $D_8$ from each of the 64 subgroups, checks the cocycle condition and the Hadamard property, builds $E_\psi$ from $\psi$, and checks again that $z\in[E_\psi,E_\psi]$, and the program \texttt{d8form.py} finds that $E_\psi$ has the element orders of the generalized quaternion group $Q_{32}$, namely 1 element of order 2, 18 of order 4, 4 of order 8 and 8 of order 16. The groups are identified by the programs \texttt{groups16.py}, which checks that the invariants used separate the 14 groups of order 16, and \texttt{groups.py}, for the other orders. On the cyclic subgroup $\langle r\rangle\simeq\mathbb Z_8$ the preimage in $E_\psi$ is cyclic of order 16, so the restriction of $\psi$ is a coboundary over $\mathbb T$, with trivializations $\varphi_0$ taking values in $\mathbb Z_{16}$. With $\zeta=e^{2\pi i/16}$, these are the 8 functions with $\varphi_0(r)=\zeta^l$, $l$ odd, the first one being $\varphi_0(r^a)=\zeta^{e_a}$, with $e=(0,1,10,11,4,13,6,15)$. The program \texttt{d8form.py} computes the corresponding coset sums, and finds $|S_0S_1|^2=48-8\sqrt2$ for $l=\pm1$ modulo 8, and $|S_0S_1|^2=48+8\sqrt2$ for $l=\pm3$ modulo 8, the 2 cases being exchanged by the Galois automorphism $\zeta\to\zeta^3$, which maps $\sqrt2\to-\sqrt2$. \medskip \noindent\textbf{Reductions.} The program \texttt{twist16.py} computes the 16 bistochastic forms given by Theorem \ref{thm:twist}, for the 8 trivializations and the 2 values of $w$, and sorts them into the 10 classes above, finding 8 forms in the class 8 and 8 forms in the class 9. The other subgroups of $D_8$ on which $\psi$ is a coboundary over $\mathbb T$ are the cyclic ones, namely $\langle r^2\rangle$, $\langle r^4\rangle$ and the 8 reflection subgroups $\langle r^as\rangle$, while every noncyclic subgroup contains a Klein subgroup $\mathbb Z_2^2$, whose preimage in $E_\psi\simeq Q_{32}$ is noncyclic of order 8, hence is $Q_8$, in which $z$ belongs to the commutator subgroup, so by Theorem \ref{thm:developed} the restriction of $\psi$ is not a coboundary. The program \texttt{reduce16.py} solves the problems of Theorem \ref{thm:reduction} for the normal subgroups $\langle r^2\rangle$ and $\langle r^4\rangle$, of index 4 and 8, by the alternating iteration, and the program \texttt{cosetforms.py} decides, for all the forms of each class, all the 64 cocyclic structures, all the subgroups with a trivialization, normal or not, and all the trivializations, whether the form comes from a reduction, by testing the condition of Proposition \ref{prop:ansatz}. We obtain: \begin{theorem}\label{thm:had163} The matrix $\mathrm{had}_{16.3}$, and its transpose $\mathrm{had}_{16.4}$, are cocyclic over the dihedral group $D_8$ of order $16$, and over no other group of order $16$. Their extension group is $Q_{32}$, and their cocycle is a coboundary over $\mathbb T$ exactly on the cyclic subgroups of $D_8$. The orbits $8,9$ of bistochastic forms of $\mathrm{had}_{16.3}$ consist of the twists of Theorem \ref{thm:twist} along $\mathbb Z_8$, the orbits $2$--$7$ consist of forms coming from the reductions along the subgroups of order $2$, to unitary problems of size $8$, and the orbits $0,1$ contain no form coming from a reduction along a nontrivial subgroup. \end{theorem} \begin{proof} This is the above computation. The search for centrally regular subgroups is complete, because all the Sylow 2-subgroups are conjugate, and conjugate subgroups give equivalent cocyclic structures. The conclusions are certified by the program \texttt{certorbits.py}, which conjugates each element of the stabilizer of each representative, other than $\pm1$, in the symmetry group, looks up the conjugates in the 64 centrally regular subgroups, and determines the type of the corresponding elements of $D_8$, the conclusion following from Proposition \ref{prop:ansatz} and its converse for cyclic subgroups. For the orbits $0,1$ the stabilizer is $\{\pm1\}$, while a form coming from a reduction along $G_0\neq\{1\}$ is fixed by the symmetries coming from $G_0$. \end{proof} Summarizing, the situation for the 10 orbits of bistochastic forms of $\mathrm{had}_{16.3}$ is as follows, the reflection subgroups being the 8 subgroups $\langle r^as\rangle$ of order 2, which are not normal: \medskip \begin{center} \begin{tabular}{|c|c|c|c|} \hline orbit & size & stabilizer & subgroups giving the forms\\ \hline 0, 1 & 43008 & 2 & none\\ 2, 5 & 21504 & 4 & $\langle r^4\rangle$, reflection subgroups\\ 3, 4, 6, 7 & 21504 & 4 & reflection subgroups\\ 8, 9 & 5376 & 16 & $\langle r\rangle$, $\langle r^2\rangle$, $\langle r^4\rangle$, reflection subgroups\\ \hline \end{tabular} \end{center} \medskip Thus the reductions explain exactly the orbits whose stabilizer is larger than $\{\pm1\}$, and the 2 orbits $0,1$, which contain $86016$ of the $225792$ forms, remain unexplained. The other 3 classes of order 16 are group-developed, and therefore cocyclic with a cocycle which is a coboundary. The program \texttt{menon16.py} finds, for each of the 14 groups of order 16, all the functions $f:G\to\{\pm1\}$ with $(f(gh))$ Hadamard, which correspond to the Menon difference sets, with parameters $(16,6,2)$, and identifies the corresponding class by the 2-rank of the core of the dephased matrix, which is $4,5,6$ for $\mathrm{had}_{16.0},\mathrm{had}_{16.1},\mathrm{had}_{16.2}$. The numbers of difference sets found, and of those giving each of the 3 classes, are as follows, the groups being numbered as in the small groups library of GAP, $M_{16}$ and $SD_{16}$ being the modular and semidihedral groups: \medskip \begin{center} \begin{tabular}{|c|c|c|c|c|c|} \hline number & group & difference sets & $\mathrm{had}_{16.0}$ & $\mathrm{had}_{16.1}$ & $\mathrm{had}_{16.2}$\\ \hline 1 & $\mathbb Z_{16}$ & 0 & & & \\ 2 & $\mathbb Z_4\times\mathbb Z_4$ & 192 & 192 & & \\ 3 & $(\mathbb Z_4\times\mathbb Z_2)\rtimes\mathbb Z_2$ & 192 & 192 & & \\ 4 & $\mathbb Z_4\rtimes\mathbb Z_4$ & 192 & 192 & & \\ 5 & $\mathbb Z_8\times\mathbb Z_2$ & 192 & 64 & 128 & \\ 6 & $M_{16}$ & 64 & 64 & & \\ 7 & $D_8$ & 0 & & & \\ 8 & $SD_{16}$ & 128 & 128 & & \\ 9 & $Q_{16}$ & 256 & 256 & & \\ 10 & $\mathbb Z_4\times\mathbb Z_2^2$ & 448 & 448 & & \\ 11 & $\mathbb Z_2\times D_4$ & 192 & 192 & & \\ 12 & $\mathbb Z_2\times Q_8$ & 704 & 192 & & 512\\ 13 & $D_4\circ\mathbb Z_4$ & 320 & 192 & & 128\\ 14 & $\mathbb Z_2^4$ & 448 & 448 & & \\ \hline \end{tabular} \end{center} \medskip \noindent There are such difference sets in all groups of order 16 except $\mathbb Z_{16}$ and $D_8$, in agreement with \cite{kib}, and with the table of developments in \cite{kpt}, and we obtain: \begin{theorem}\label{thm:menon} The matrix $\mathrm{had}_{16.0}=W_{16}$ has real group-developed forms $(f(gh))$, with $f:G\to\{\pm1\}$, over $12$ of the $14$ groups $G$ of order $16$, all of them except $\mathbb Z_{16}$ and $D_8$, while $\mathrm{had}_{16.1}$ has such forms only over $\mathbb Z_8\times\mathbb Z_2$, and $\mathrm{had}_{16.2}$ only over $\mathbb Z_2\times Q_8$ and the central product $D_4\circ\mathbb Z_4$. In particular, $\mathbb Z_{16}$ and $D_8$ are the only groups of order $16$ carrying no real group-developed Hadamard matrix, and $D_8$ is the only one over which $\mathrm{had}_{16.3}$ is cocyclic. \end{theorem} \begin{proof} This is the output of the program \texttt{menon16.py}, described above, and the last assertion is Theorem \ref{thm:had163}. Note that over $\mathbb Z_{16}$ there are complex group-developed Hadamard matrices, such as the forms of $F_{16}$ from Theorem \ref{thm:abelian}. \end{proof} \section{The orders 8, 12 and 20}\label{sec:small} We now apply the same method to the other real Hadamard matrices of order $N\leq20$. The program \texttt{cocyclic16.py} also works at $N=8$, where the kernel of the action on the columns, forgetting the signs, is larger, and the program \texttt{cocyclicodd.py} treats the orders $N=4p$, with $p$ an odd prime, by noting that the quotient $R/\langle z\rangle$ is generated by its Sylow 2-subgroup, of order 4, which can be conjugated into a fixed Sylow 2-subgroup, and by any of its elements of order $p$. The program \texttt{twist.py} computes the group-developed forms of Theorem \ref{thm:developed}, when they exist, and the twists of Theorem \ref{thm:twist}, and the program \texttt{reduce.py} solves the problems of Theorem \ref{thm:reduction} for the normal subgroups of index at most 4. \medskip \noindent\textbf{Order 8.} The Walsh matrix $W_8$ is cocyclic over $\mathbb Z_2^3$, $\mathbb Z_4\times\mathbb Z_2$ and $D_4$, and not over $\mathbb Z_8$ and $Q_8$, which is confirmed by a direct enumeration of the cocycles over the latter 2 groups, done by the program \texttt{q8z8.py}. Over each of the 3 groups there are cocyclic structures with $z\notin[R,R]$, giving group-developed forms, and structures with $z\in[R,R]$, the numbers of centrally regular subgroups found in a Sylow 2-subgroup of the symmetry group being respectively $28,28,80$ and $140,20,16$. \medskip \noindent\textbf{Order 12.} The Paley matrix $P_{12}^1$, which is the only real Hadamard matrix of order 12, up to equivalence, is cocyclic over $A_4$, $D_6$ and $\mathbb Z_6\times\mathbb Z_2$, with extension groups having the element orders of $SL_2(\mathbb F_3)$, of the dicyclic group $Q_{24}$, and of $\mathbb Z_3\times Q_8$, and in all cases $z\in[R,R]$. Thus $P_{12}^1$ has no group-developed bistochastic form. However, the twists along the cyclic subgroups $\mathbb Z_6$ of $D_6$ and of $\mathbb Z_6\times\mathbb Z_2$ give explicit bistochastic forms. Since $S_0,S_1$ and $\sqrt{12}$ belong to $\mathbb Q(\zeta_{12})$, the entries of these forms belong to $\mathbb Q(\zeta_{60})$ when $|S_0S_1|^2=20$, and to $\mathbb Q(\zeta_{24})$ when $|S_0S_1|^2=32$, and in this latter case they are in fact, up to a common phase, in $\mathbb Z_{24}$. For instance, along the subgroup $\mathbb Z_6$ of $D_6$ with $|S_0|^2=8$, the program \texttt{p12twist.py} finds $w=\zeta_{24}^9$, and the following bistochastic form of $P_{12}^1$, in the ordering of section \ref{sec:butson}, normalized by $B_{11}=1$, with entries $\zeta_{24}^k$, and all its line sums equal, of modulus $\sqrt{12}$: \begingroup\small\setlength{\arraycolsep}{4.5pt} $$k=\begin{pmatrix} 0&9&18&3&22&17&4&8&1&7&2&11\\ 21&18&3&0&7&2&13&5&22&4&11&8\\ 2&11&8&17&0&7&18&22&3&9&4&1\\ 11&8&5&2&21&4&3&7&0&18&13&22\\ 22&7&4&1&8&3&2&18&11&17&0&9\\ 13&22&7&4&11&18&5&21&2&8&3&0\\ 8&17&2&11&18&1&0&4&9&3&22&7\\ 4&1&22&7&2&9&8&0&17&11&18&3\\ 5&2&11&8&3&22&21&13&18&0&7&4\\ 7&4&13&22&5&0&11&3&8&2&21&18\\ 18&3&0&9&4&11&22&2&7&1&8&17\\ 3&0&21&18&13&8&7&11&4&22&5&2 \end{pmatrix}$$ \endgroup \noindent More generally, the program \texttt{twist.py} finds the following twists, along the 4 subgroups $\mathbb Z_6$ of the 2 groups: \medskip \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline $|S_0|^2$ & $|S_1|^2$ & $w$ & entries, up to a common phase & subgroups\\ \hline 2 & 10 & not a root of unity & $\mathbb Q(\zeta_{60})$ & 3\\ 10 & 2 & not a root of unity & $\mathbb Q(\zeta_{60})$ & 1\\ 8 & 4 & of order 8 & $\mathbb Z_{24}$ & 3\\ 4 & 8 & of order 8 & $\mathbb Z_{24}$ & 1\\ \hline \end{tabular} \end{center} \medskip \noindent The reductions along $\mathbb Z_3$, of index 4, also give forms over $\mathbb Z_{24}$, up to a common phase, while the Klein subgroup of $A_4$ carries no trivialization of the cocycle. As explained in section \ref{sec:butson}, none of these forms explains the forms of $P_{12}^1$ over $\mathbb Z_6$. \medskip \noindent\textbf{Order 20.} There are 3 real Hadamard matrices of order 20, the first one being the Paley matrix of the 2nd kind. The matrices $\mathrm{had}_{20.0}$ and $\mathrm{had}_{20.2}$ are cocyclic over $D_{10}$, with extension group of the type of the dicyclic group $Q_{40}$, and $\mathrm{had}_{20.0}$ is cocyclic over $\mathbb Z_{10}\times\mathbb Z_2$ too, with extension group of the type of $\mathbb Z_5\times Q_8$, in all cases with $z\in[R,R]$. The matrix $\mathrm{had}_{20.1}$ is cocyclic over $D_{10}$, with extension group of the type of $Q_{20}\times\mathbb Z_2$, the abelianization being $\mathbb Z_4\times\mathbb Z_2$, and $z\notin[R,R]$, so it has $D_{10}$-developed bistochastic forms over $\mathbb Z_4$, with line sums $4\pm2i$ and $2\pm4i$. In all 3 cases, some twists along the cyclic subgroup $\mathbb Z_{10}$ give bistochastic forms over $\mathbb Z_4$, up to a common phase, with $|S_0|^2=2$ and $w=\pm1$ for $\mathrm{had}_{20.0}$ and $\mathrm{had}_{20.2}$, and with $|S_0|^2=4,16$ and $w=\pm i$ for $\mathrm{had}_{20.1}$. The exact reach of these twists is computed by the program \texttt{fourthroots20.py}: by Proposition \ref{prop:ansatz}, a vector $b\in\mathbb Z_4^{20}$ comes from a twist along $\mathbb Z_{10}$ precisely when it is fixed, up to a scalar, by a symmetry generating $\mathbb Z_{10}$, whose permutation has 2 cycles of length 10, and the program solves this condition, for all such symmetries, by propagation along the cycles, and also for the conjugates of the generators of $\mathbb Z_{10}$ in the cocyclic structures, the 2 answers being the same. With the vectors normalized by $b_1=1$, we obtain: \medskip \begin{center} \begin{tabular}{|l|c|c|c|} \hline & $\mathrm{had}_{20.0}$ & $\mathrm{had}_{20.1}$ & $\mathrm{had}_{20.2}$\\ \hline order of the symmetry group & 5760 & 3840 & 6840\\ cocyclic over & $D_{10}$, $\mathbb Z_{10}\times\mathbb Z_2$ & $D_{10}$ & $D_{10}$\\ $b\in\mathbb Z_4^{20}$ with $|Hb|^2=20$ & 30528 & 28608 & 28728\\ $b\in\mathbb Z_4^{20}$ with $Hb\in(4+2i)\mathbb Z_4^{20}$ & 10032 & 10032 & 10032\\ twists along $\mathbb Z_{10}$ among them & 12 & 192 & 342\\ \hline \end{tabular} \end{center} \medskip The full classification of the cocyclic Hadamard matrices of order less than 40 was obtained by \'O Cath\'ain and R\"oder \cite{ocr}, with algorithms based on automorphisms and on relative difference sets, and our computations, based on the symmetry groups, recover the orders $N\leq20$ independently. Summarizing, we have: \begin{theorem}\label{thm:small} The real Hadamard matrices of order $N\leq20$ have the cocyclic structures given in the table below. In particular, all these matrices have explicit bistochastic forms, with entries in $\mathbb Z_{24}$, up to a common phase, except for $\mathrm{had}_{16.3}$ and $\mathrm{had}_{16.4}$, whose explicit forms have entries in number fields of degree $16$. \end{theorem} \begin{proof} This follows from the above computations, and from Theorem \ref{thm:had163} and Theorem \ref{thm:menon}, the degree $16$ being computed in section \ref{sec:arith}. \end{proof} The cocyclic structures in question are as follows, with the extension groups being identified by their element orders, with the last column indicating the explicit bistochastic forms that they produce, and with only the structures coming from group developments being listed for the first 3 matrices of order 16: \medskip \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline matrix & group $G$ & extension & $z\in[E,E]$ & bistochastic forms\\ \hline $W_8$ & $\mathbb Z_2^3$, $\mathbb Z_4\times\mathbb Z_2$, $D_4$ & various & no, yes & group-developed\\ $P_{12}^1$ & $A_4$ & $SL_2(\mathbb F_3)$ & yes & reductions along $\mathbb Z_3$\\ $P_{12}^1$ & $D_6$ & $Q_{24}$ & yes & twists along $\mathbb Z_6$\\ $P_{12}^1$ & $\mathbb Z_6\times\mathbb Z_2$ & $\mathbb Z_3\times Q_8$ & yes & twists along $\mathbb Z_6$\\ $\mathrm{had}_{16.0}$ & 12 groups & $G\times\mathbb Z_2$ & no & group-developed\\ $\mathrm{had}_{16.1}$ & $\mathbb Z_8\times\mathbb Z_2$ & $G\times\mathbb Z_2$ & no & group-developed\\ $\mathrm{had}_{16.2}$ & $\mathbb Z_2\times Q_8$, $D_4\circ\mathbb Z_4$ & $G\times\mathbb Z_2$ & no & group-developed\\ $\mathrm{had}_{16.3}$, $\mathrm{had}_{16.4}$ & $D_8$ & $Q_{32}$ & yes & twists along $\mathbb Z_8$\\ $\mathrm{had}_{20.0}$ & $D_{10}$ & $Q_{40}$ & yes & twists along $\mathbb Z_{10}$\\ $\mathrm{had}_{20.0}$ & $\mathbb Z_{10}\times\mathbb Z_2$ & $\mathbb Z_5\times Q_8$ & yes & twists along $\mathbb Z_{10}$\\ $\mathrm{had}_{20.1}$ & $D_{10}$ & $Q_{20}\times\mathbb Z_2$ & no & group-developed\\ $\mathrm{had}_{20.2}$ & $D_{10}$ & $Q_{40}$ & yes & twists along $\mathbb Z_{10}$\\ \hline \end{tabular} \end{center} \medskip \noindent The extension groups of the form $G\times\mathbb Z_2$ come from the real group-developed forms, and the twists and reductions are those discussed above. \section{Arithmetic of the forms}\label{sec:arith} We now look at the bistochastic forms from an arithmetic viewpoint. The first observation is that, for a Hadamard matrix with algebraic entries, the existence of an algebraic bistochastic form comes for free: \begin{proposition}\label{prop:tarski} If $H\in M_N(\mathbb T)$ is Hadamard, with entries in a number field $K$, then $H$ has a bistochastic form with algebraic entries. \end{proposition} \begin{proof} With $b_j=x_j+iy_j$, the existence of a bistochastic form is the following first order statement over the real field, with coefficients the real and imaginary parts of the entries of $H$, which are real algebraic numbers, namely $\exists x,y\in\mathbb R^N$ with $x_j^2+y_j^2=1$ and $|\sum_jH_{ij}(x_j+iy_j)|^2=N$ for all $i,j$. This statement is true over $\mathbb R$, by the Idel--Wolf theorem, and the field $\mathbb R_{alg}$ of real algebraic numbers is real closed, so by the Tarski transfer principle \cite{tar} the statement is true over $\mathbb R_{alg}$. The row multipliers $a_i=\sqrt N/(Hb)_i$ are then algebraic too. \end{proof} When the forms are isolated, as are those of $\mathrm{had}_{16.3}$ that we found, by Theorem \ref{thm:nobutson} below, this is even more elementary, the isolated solutions of a polynomial system over $\mathbb Q$ having algebraic coordinates. Moreover, writing the conditions as bilinear equations in $b,t\in\mathbb C^N$, namely $b_jt_j=b_1t_1$ and $(Hb)_i(\bar Ht)_i=Nb_1t_1$, the forms corresponding to the solutions with $t=\bar b$, the number of isolated points of the complex solution set, in $P^{N-1}\times P^{N-1}$, is bounded by the degree $\binom{2N-2}{N-1}$ of the Segre variety, which is the count of Haagerup type, positive-dimensional components being possible too. Thus the forms which are isolated in the complex solution set, and not only among the forms, have degree bounded in terms of $N$ and of the field of the entries of $H$. Thus the question is not whether algebraic forms exist, but how complicated they must be. In what follows, the degree of a form is the degree over $\mathbb Q$ of the field generated by the real and imaginary parts of its entries, normalized by $b_1=1$ and real row sums. \medskip \noindent\textbf{Computation.} The program \texttt{hpform.py} refines a form to 1600 digits, by Newton iteration in exact decimal arithmetic, and the program \texttt{lll.py}, an implementation of the LLL algorithm, searches for the minimal polynomial of a random rational combination of the real and imaginary parts of the entries, a relation being accepted only if it holds to the full 1600 digits. These are assembled in the program \texttt{formdegree.py}, used by \texttt{had163deg.py} for $\mathrm{had}_{16.3}$, and by \texttt{order8.py} and \texttt{rare8.py} for the order 8 Butson matrices. We obtain the following degrees, where ``none'' means that no relation of degree $\leq32$ was found, and (8) is a candidate degree, these being observations, not proofs: \medskip \begin{center} \begin{tabular}{|l|l|l|} \hline matrix & form classes & degrees\\ \hline $\mathrm{had}_{16.3}$ & 10 & classes 8, 9: degree 8; classes 0--7: none\\ $BH(8,4)$, class 10 & 4 & (8), (8), none, none\\ $BH(8,4)$, class 11 & 4 & (8), none, none, none\\ $BH(8,4)$, class 13 & 4 & none, none, none, none\\ $BH(8,4)$, class 15 & 4 & none, none, none, none\\ \hline \end{tabular} \end{center} \medskip The classes 10, 11, 13, 15 of $BH(8,4)$ are those which are not bistochastic over any $\mathbb Z_{2^a}$, and for the class 13 the program \texttt{rare8.py}, with 40000 random starts, finds no other form class. Thus the search detected small degrees only rarely, and for $\mathrm{had}_{16.3}$ only for the classes 8, 9, which come from the index 2 reduction, and whose degree 8 is proved in Theorem \ref{thm:field} below. The Butson question for the forms found can however be answered exactly. A first test, by the program \texttt{butsontest.py}, finds among the entries of the representative forms 64 roots of unity of order $\leq2000$ for the classes 8, 9, and at most 8 for the others, and this can be made into a proof, valid at all orders: \begin{theorem}\label{thm:nobutson} The bistochastic forms of $\mathrm{had}_{16.3}$ of the $10$ classes of Theorem \ref{thm:orbits} are isolated, even among the complex solutions of the equations defining them, and none of them has, up to a global phase, its entries in roots of unity. \end{theorem} \begin{proof} With $b_1=1$ and $b_j=x_j+iy_j$, the equations $x_j^2+y_j^2=1$ and $|(Hb)_i|^2=16$ for $i\leq15$, the last row following by orthogonality, are 30 quadrics in 30 variables, with integer coefficients. For each of the 10 representatives the program \texttt{certify16.py} computes, in exact rational arithmetic, a center $z$ and an approximate inverse $R$ of the Jacobian $J(z)$, and checks the Krawczyk condition on the boxes of radius $r=10^{-60}$ and $r=10^{-6}$ around $z$, using the fact that $J$ varies by at most $900r$ on them. This gives a zero which is unique in the larger box, and lies in the smaller one, and at which $J$ is invertible, so it is isolated in $\mathbb C^{30}$. By the B\'ezout bound there are at most $2^{30}$ isolated zeros, so $b_j$ has degree at most $2^{31}$, and if $b_j$ is a root of unity of order $n$, its degree $d$ satisfies $n\leq2d^2$, so $n\leq2^{63}$. With $\theta$ the angle of $b_j$ in turns, the program computes a rational $\theta'$ with $|\theta-\theta'|<10^{-59}$, by using rational interval arithmetic for $\arctan$ and $\pi$, and since a fraction $k/n$ with $n\leq2^{63}$ and $|\theta'-k/n|<1/(2n^2)$ is a convergent of $\theta'$, it is enough to check that all these convergents are at distance $>10^{-59}$ from $\theta'$. This holds for at least 8 of the 15 columns, for each class. Since $H$ is real, the entries of the first row of the form are, up to the global phase, $\pm b_j$, and the conclusion holds for the whole orbit, because the property of being Butson is invariant under the symmetries and conjugation. \end{proof} The certificates are as follows, with $q=\|I-RJ(z)\|_\infty+900r\|R\|_\infty$ being the contraction factor for the box of radius $r=10^{-6}$, with the numbers of columns $j$ for which $b_j$ is certified not to be a root of unity, and with the stabilizers and orbits certified by \texttt{certorbits.py}, as explained in section \ref{sec:order16}: \medskip \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline class & contraction $q$ & non-root columns & stabilizer & orbit\\ \hline 0 & $0.0070$ & 15 & 2 & 43008\\ 1 & $0.0075$ & 15 & 2 & 43008\\ 2 & $0.0056$ & 14 & 4 & 21504\\ 3 & $0.0067$ & 14 & 4 & 21504\\ 4 & $0.0086$ & 14 & 4 & 21504\\ 5 & $0.0112$ & 14 & 4 & 21504\\ 6 & $0.0068$ & 14 & 4 & 21504\\ 7 & $0.0202$ & 14 & 4 & 21504\\ 8 & $0.0151$ & 8 & 16 & 5376\\ 9 & $0.0113$ & 8 & 16 & 5376\\ \hline \end{tabular} \end{center} \medskip \medskip \noindent\textbf{The classes 8 and 9.} These are explicit, by Theorem \ref{thm:had163}, and their arithmetic can also be seen directly in McKay's coordinates. Let $\zeta=e^{2\pi i/16}$, and for the class 8, consider the following exponents and set of columns: $$k=(0,5,4,7,14,3,14,1,10,13,3,0,15,10,1,12)\ ,\quad T=\{2,3,6,7,9,12,13,15\}$$ With $b_j=\zeta^{k_j}$ for $j\notin T$, and $b_j=\zeta^{k_j}w$ for $j\in T$, the row sums are $(Hb)_i=P_i+wQ_i$, with $P_i,Q_i\in\mathbb Z[\zeta]$ being the sums over the columns outside and inside $T$, and the program \texttt{twistforms.py} checks, in exact integer arithmetic, that for any $i$ we have: $$|P_i|^2+|Q_i|^2=16\ ,\quad Q_i\bar{P}_i=\pm a\ ,\quad a=2+2\zeta^2+4\zeta^3+2\zeta^4-2\zeta^6+4\zeta^7$$ Thus $|(Hb)_i|^2=16+2Re(w Q_i\bar{P}_i)$ for any $i$, and all these quantities equal 16 precisely when $Re(aw)=0$, that is, when $w=\pm i\bar{a}/|a|$. Here $|a|^2=48+8\sqrt2$, and for the class 9 the same holds with the data given in the code, and with $|a|^2=48-8\sqrt2$. This is Theorem \ref{thm:twist}, the set $T$ being a coset of $\mathbb Z_8$, and the relations $|P_i|^2+|Q_i|^2=16$ being those of Proposition \ref{prop:cosets}. Their field can be determined exactly, as follows: \begin{theorem}\label{thm:field} The bistochastic forms of $\mathrm{had}_{16.3}$ of the classes $8,9$ have entries in the field $L=\mathbb Q(\zeta_{16},\sqrt{6\pm\sqrt2})$, which has degree $16$. Since $L$ is not a Galois extension of $\mathbb Q$, these forms are not Butson, and are not even cyclotomic, in the sense that their entries, up to a global phase, are not contained in any cyclotomic field. \end{theorem} \begin{proof} Since $\bar{a}$, $i$ and $\sqrt8=2\sqrt2$ belong to $\mathbb Q(\zeta)$, we have $\mathbb Q(\zeta,w)=\mathbb Q(\zeta,|a|)=\mathbb Q(\zeta,\sqrt{6\pm\sqrt2})$. Consider the case $6+\sqrt2$, the other one being similar. The conjugate of $\sqrt{6+\sqrt2}$ is $\sqrt{6-\sqrt2}=\sqrt{34}/\sqrt{6+\sqrt2}$, so $L$ is Galois precisely when $\sqrt{17}\in L$, that is, when $17(6+\sqrt2)$ is a square in $\mathbb Q(\zeta)$. But in $\mathbb Z[\sqrt2]$ we have $6+\sqrt2=\sqrt2(1+\sqrt2)(5-2\sqrt2)$ and $17=(5+2\sqrt2)(5-2\sqrt2)$. Since $17=1$ modulo 16, the prime 17 splits completely, and is unramified, in $\mathbb Q(\zeta)$, so at a prime above $5+2\sqrt2$ the element $17(6+\sqrt2)$ has valuation 1, and is not a square. Similarly, at a prime above $5-2\sqrt2$ the element $6+\sqrt2$ has valuation 1, so $\sqrt{6+\sqrt2}\notin\mathbb Q(\zeta)$, and $L$ has degree 16. Moreover, in any row the ratio of the entries in the columns $4$ and $1$ is an odd power of $\zeta$, and the ratio of the entries in columns $j\in T$ and $j'\notin T$ is $\pm\zeta^{k_j-k_{j'}}w$, so the entries, normalized by $b_1=1$ and real row sums, generate $L$, and since $i\in L$, their real and imaginary parts generate the real subfield of $L$, of degree 8. Finally, if the entries, up to a global phase, were in a cyclotomic field, so would be $w$, and $L$ would be Galois. \end{proof} \section{Questions and comments} We end with some questions, which we believe to be of interest, the main one being that of explaining the 2 orbits of bistochastic forms of $\mathrm{had}_{16.3}$, displayed in section \ref{sec:order16}, which come from no reduction along a nontrivial subgroup. \noindent\textbf{1.} The reductions of Theorem \ref{thm:reduction} use the subgroups on which the cocycle is a coboundary over $\mathbb T$, and work best when the index is small. For a given cocycle there is no uniform bound on the minimal index: for $G=\mathbb Z_2^{2d}$ and $\psi(x,y)=(-1)^{x^tAy}$, with $A$ block diagonal, with blocks $\begin{pmatrix}1&1\\0&1\end{pmatrix}$, the restriction of $\psi$ to a subgroup is a coboundary precisely when the subgroup is isotropic for the nondegenerate alternating form $x^t(A+A^t)y$, by Theorem \ref{thm:abelian}, so the minimal index is $2^d$. However, this is a Walsh matrix with permuted columns, which has symmetric cocyclic structures too. Does every cocyclic Hadamard matrix have a cocyclic structure with such a subgroup of index $\leq2$, or at least of small index? Also, do the problems of size 8 behind the orbits 2--7 of $\mathrm{had}_{16.3}$ have a special structure? \noindent\textbf{2.} The cyclic $p$-roots are counted by $\binom{2p-2}{p-1}$, over $\mathbb C$ and with multiplicity, and the bistochastic forms of $F_p$ correspond to the unimodular ones, 20 of the 70 at $p=5$. What are the numbers of bistochastic forms of the main complex Hadamard matrices, and how do they compare with this count? For $\mathrm{had}_{16.3}$, what are the number fields generated by the forms of the classes 0--7, and what is the structure of its symmetry group, of order 86016? \noindent\textbf{3.} Is $\mathrm{had}_{16.3}$ equivalent to a bistochastic Butson matrix over $\mathbb Z_n$, for the orders $n$ not covered by Theorem \ref{thm:had16} and Theorem \ref{thm:modp}, the first ones being $n=28,30$? What happens for the real matrices of orders 24 and 28, with the cocyclic structures from \cite{ocr}? Also, where do the forms of $P_{12}^1$ over $\mathbb Z_6$ come from, given that they are not explained by its cocyclic structures? \noindent\textbf{4.} Is it true that $\mathrm{had}_{16.3}$ has no bistochastic forms other than the 20 orbits of Theorem \ref{thm:orbits}, and can this be proved, for instance by bounding the forms having a given stabilizer? By Theorem \ref{thm:nobutson}, this would show that $\mathrm{had}_{16.3}$ has no bistochastic Butson form at all. \noindent\textbf{5.} The bistochastic forms being the ground states of the rotator array of $H$, how do the 10 orbits of $\mathrm{had}_{16.3}$ show up in the thermodynamics of this array, and is there a link with the 3 orbits of ground states of its Ising array \cite{ist}? \noindent\textbf{6.} What is the minimal degree $B(N,K)$ of a bistochastic form of a Hadamard matrix of order $N$, with entries in a number field $K$, between the Segre bound and the examples in section \ref{sec:arith}? All the real matrices of order $N>2$ discussed here have forms of degree $\leq N/2$, while for the class 13 of $BH(8,4)$ no form of degree $\leq4N$ was found. Do the real Hadamard matrices of order $N>2$ always have forms of degree $\leq N/2$, and forms with entries in a cyclotomic field? \begin{thebibliography}{99} \small\raggedright\hypersetup{urlcolor=black,linkcolor=black,citecolor=black} \bibitem{aek} J.A. Armario, R. Egan, H. Kharaghani and P. \'O Cath\'ain, A generalisation of bent vectors for Butson Hadamard matrices, {\hypersetup{allcolors=black}\href{https://arxiv.org/pdf/2412.16579}{arXiv:2412.16579}}. \bibitem{ba1} T. Banica, The glow of Fourier matrices: universality and fluctuations, {\em Oper. Matrices} {\bf 9} (2015), 457--474. \bibitem{bhm} T. Banica, Invitation to Hadamard matrices, {\hypersetup{allcolors=black}\href{https://arxiv.org/pdf/1910.06911}{arXiv:1910.06911}} (2024). \bibitem{bo5} Banica and Opus, Spin model unification of Hadamard matrix invariants, {\hypersetup{allcolors=black}\href{https://zenodo.org/records/24642716}{zenodo:24642716}} (2026). \bibitem{bes} M.R. Best, The excess of a Hadamard matrix, {\em Indag. Math.} {\bf 39} (1977), 357--361. \bibitem{bep} P. Biran, M. Entov and L. Polterovich, Calabi quasimorphisms for the symplectic ball, {\em Commun. Contemp. Math.} {\bf 6} (2004), 793--802. \bibitem{bjo} G. Bj\"orck, Functions of modulus 1 on $\mathbb Z_n$ whose Fourier transforms have constant modulus, and cyclic $n$-roots, in ``Recent advances in Fourier analysis and its applications'', Kluwer (1990), 131--140. \bibitem{rot} Chat, Opus and Teo, Planar rotators with Hadamard couplings, {\hypersetup{allcolors=black}\href{https://zenodo.org/records/24408089}{zenodo:24408089}} (2026). \bibitem{chu} D.C. Chu, Polyphase codes with good periodic correlation properties, {\em IEEE Trans. Inform. Theory} {\bf 18} (1972), 531--532. \bibitem{dfh} W. de Launey, D.L. Flannery and K.J. Horadam, Cocyclic Hadamard matrices and difference sets, {\em Discrete Appl. Math.} {\bf 102} (2000), 47--61. \bibitem{dlf} W. de Launey and D.L. Flannery, Algebraic design theory, AMS (2011). \bibitem{dvb} A. De Vos and S. De Baerdemacker, Scaling a unitary matrix, {\em Open Syst. Inf. Dyn.} {\bf 21} (2014), 1450013. \bibitem{dit} P. Di\c t\u a, Some results on the parametrization of complex Hadamard matrices, {\em J. Phys. A} {\bf 37} (2004), 5355--5374. \bibitem{fko} N. Farmakis and S. Kounias, The excess of Hadamard matrices and optimal designs, {\em Discrete Math.} {\bf 67} (1987), 165--176. \bibitem{fla} D.L. Flannery, Cocyclic Hadamard matrices and Hadamard groups are equivalent, {\em J. Algebra} {\bf 192} (1997), 749--779. \bibitem{fur} H. F\"uhr and Z. Rzeszotnik, On biunimodular vectors for unitary matrices, {\em Linear Algebra Appl.} {\bf 484} (2015), 86--129. \bibitem{haa} U. Haagerup, Cyclic $p$-roots of prime lengths $p$ and related complex Hadamard matrices, {\hypersetup{allcolors=black}\href{https://arxiv.org/pdf/0803.2629}{arXiv:0803.2629}}. \bibitem{hor} K.J. Horadam, Hadamard matrices and their applications, Princeton Univ. Press (2007). \bibitem{hdl} K.J. Horadam and W. de Launey, Cocyclic development of designs, {\em J. Algebraic Combin.} {\bf 2} (1993), 267--290. \bibitem{iwo} M. Idel and M.M. Wolf, Sinkhorn normal form for unitary matrices, {\em Linear Algebra Appl.} {\bf 471} (2015), 76--84. \bibitem{ito} N. Ito, On Hadamard groups, {\em J. Algebra} {\bf 168} (1994), 981--987. \bibitem{kar} G. Karpilovsky, The Schur multiplier, Oxford Univ. Press (1987). \bibitem{kha} H. Kharaghani, An infinite class of Hadamard matrices of maximal excess, {\em Discrete Math.} {\bf 89} (1991), 307--312. \bibitem{kib} R.E. Kibler, A summary of noncyclic difference sets, $k<20$, {\em J. Combin. Theory Ser. A} {\bf 25} (1978), 62--67. \bibitem{kpt} V. Kr\v cadinac, M.O. Pav\v cevi\'c and K. Tabak, Cubes of symmetric designs, {\em Ars Math. Contemp.} {\bf 25} (2025), 1--16. \bibitem{los} P.H.J. Lampio, P.R.J. \"Osterg\aa rd and F. Sz\"oll\H osi, Orderly generation of Butson Hadamard matrices, {\em Math. Comp.} {\bf 89} (2020), 313--331. \bibitem{mck} B.D. McKay, Hadamard matrices, data library, \url{https://users.cecs.anu.edu.au/~bdm/data/hadamard.html}. \bibitem{ocr} P. \'O Cath\'ain and M. R\"oder, The cocyclic Hadamard matrices of order less than 40, {\em Des. Codes Cryptogr.} {\bf 58} (2011), 73--88. \bibitem{ist} Opus and Teo, Ising spins with Hadamard couplings, {\hypersetup{allcolors=black}\href{https://zenodo.org/records/24546490}{zenodo:24546490}} (2026). \bibitem{sch} B. Schmidt, Williamson matrices and a conjecture of Ito's, {\em Des. Codes Cryptogr.} {\bf 17} (1999), 61--68. \bibitem{slo} M. Shi, D. Lu, J.A. Armario, R. Egan, F. \"Ozbudak and P. Sol\'e, Hadamard bent sequences and spherical designs, {\em J. Algebraic Combin.} {\bf 62} (2025), Paper 43. \bibitem{tar} A. Tarski, A decision method for elementary algebra and geometry, Univ. of California Press (1951). \end{thebibliography} \end{document}