% Detailed mathematical revision; submission declarations are separate. \documentclass[10pt]{article} \usepackage[margin=0.9in]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage[T1]{fontenc} \usepackage{hyperref} \hypersetup{pdftitle={Butson towers and high-rank Hadamard matrices}, pdfauthor={Alexander Kolpakov}} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newcommand{\F}{\mathbb F} \newcommand{\Q}{\mathbb Q} \newcommand{\Tr}{\operatorname{Tr}} \newcommand{\GS}{\operatorname{GS}} \newcommand{\Circ}{\operatorname{Circ}} \title{Butson towers and high-rank Hadamard matrices} \author{Alexander Kolpakov} \date{25 November 2026} \begin{document} \maketitle \begin{abstract} We construct eighteen new real Hadamard matrices of ranks $7572$, $17668$, $22716$, $32812$, $42908$, $58052$, $73196$, $78244$, $93388$, $98436$, $108532$, $128724$, $153964$, $229684$, $295308$, $386172$, $4772884$ and $13001124$, and six new infinite families. The constructions preserve orthogonality and ensure that every final entry is $1$ or $-1$. Explicit recipes and reproducible formal proofs establish every listed rank and every member of the six families. \end{abstract} \section{Results and conventions} A \emph{sign matrix} is a real matrix with entries in $\{1,-1\}$. A real Hadamard matrix of order $n$ is an $n\times n$ sign matrix $H$ satisfying $HH^{\mathsf T}=nI_n$, where $I_n$ is the identity matrix. This identity implies $H^{-1}=H^{\mathsf T}/n$, so the rank of $H$ is $n$. We use rank and order accordingly. Throughout the paper, ``new'' means new to the best of the author's knowledge. Known individual orders in the infinite families are identified in Section~\ref{sec:conclusion}. \begin{theorem}\label{thm:main} Real Hadamard matrices exist at each of the eighteen ranks listed in the abstract, and at every rank in the following six families: \[ \begin{gathered} 17668\cdot13^r,\qquad22716\cdot17^r,\qquad32812\cdot3^r,\\ 78244\cdot61^r,\qquad128724\cdot101^r,\qquad153964\cdot121^r \qquad(r\in\mathbb Z_{\geq0}). \end{gathered} \] \end{theorem} Here are the conventions used in the proof. A bar denotes complex conjugation, and $A^*=\overline A^{\mathsf T}$ is the conjugate transpose of a matrix. A square complex matrix of order $n$ is \emph{flat} in this paper if every entry has absolute value $1$. A Butson matrix $\mathrm{BH}(n,k)$ is a flat matrix $B$ whose entries are $k$th roots of unity and for which $BB^*=nI_n$. For an arbitrary matrix satisfying $BB^*=wI_n$, we call $w$ its \emph{Gram scale}; the equality $w=n$ is a separate assertion. Matrices and vectors are indexed starting at $0$. The symbol $\delta_{x,y}$ is $1$ if $x=y$ and $0$ otherwise. For a prime $p$, $\F_p=\mathbb Z/p\mathbb Z$ is represented by $0,\ldots,p-1$, with arithmetic reduced modulo $p$. We use \emph{Butson tower} as a descriptive name for a finite chain of restrictions of scalars applied to a matrix with a proved Gram identity, starting with a Butson matrix or one of the explicitly defined weighted sources below. At each step the scalar action, involution and trace form are retained. A single restriction is allowed. Flatness is required only of the final matrix, and is proved from its entries. This terminology does not assert priority for restriction of scalars or Butson morphisms. Our immediate starting reference was Egan and \'{O}~Cath\'ain's recent work~\cite{complete-morphisms}; see also the earlier constructions~\cite{morphisms,matrix-homomorphisms,unreal}. The new finite ingredient is a vector-valued function on $\F_{631}$ with the correlation identity proved in Section~\ref{sec:finite}. It gives both a sixth-root scalar action and four matrices that allow substitution of commuting sign matrices. The same construction on $\F_{127}$ gives periodic T-matrices of order $127$. Five infinite families use Spence's classical recurrence for the \emph{source} matrices; we call the resulting five real output families our Spence families. The sixth uses the classical tripling construction for an explicitly specified sixth-root source. All finite initial data and all recurrence identities needed here are given below. \section{Two finite correlation identities}\label{sec:finite} Let $e_0,e_1,e_2,e_3$ be the standard column vectors of $\mathbb Z^4$. Define the permutation matrix $\Pi$ by \[ \Pi e_0=e_0,\quad \Pi e_1=e_2,\quad \Pi e_2=e_3,\quad \Pi e_3=e_1, \qquad \Pi=\begin{pmatrix}1&0&0&0\\0&0&0&1\\0&1&0&0\\0&0&1&0\end{pmatrix}. \] Thus $\Pi^3=I_4$ and $\Pi^{\mathsf T}\Pi=I_4$. We specify two functions \[ b\colon\F_p\longrightarrow\{e_0,-e_0,e_1,-e_1,e_2,-e_2,e_3,-e_3\}, \qquad p\in\{631,127\}. \] The four integer-valued coordinate functions of $b$ are denoted $b_0,b_1,b_2,b_3$: explicitly, $b(x)=\sum_{j=0}^3b_j(x)e_j$. For $p=631$ put $\mu=458$ and $m=21$; for $p=127$ put $\mu=22$ and $m=9$. To verify the order, we compute $\mu^m$ and $\mu^{m/\ell}$ for each prime divisor $\ell$ of $m$. The powers in the table are reduced modulo $p$; a dash marks $\ell\nmid m$. \[ \begin{array}{c|c|ccc} p&m&\mu^m&\mu^{m/3}&\mu^{m/7}\\\hline 631&21&1&587&269\\ 127&9&1&107&\text{---} \end{array} \] Indeed, a proper divisor of $21$ divides $7$ or $3$, and a proper divisor of $9$ divides $3$. None of the displayed smaller powers is $1$. Both $631$ and $127$ are prime; trial division by the primes at most their square roots proves this, and the integer check in the appendix includes these divisions. For $r\ne0$, write $\mathcal O(r)=\{r,\mu r,\ldots,\mu^{m-1}r\}$. These sets partition $\F_p\setminus\{0\}$. Each has $m$ elements: $\mu^kr=\mu^\ell r$ implies $\mu^{k-\ell}=1$. The next two tables list one representative $r$ from each set and the value $b(r)$; the separate row $r=0$ specifies $b(0)$. They give every value of $b$ through the rule \begin{equation}\label{eq:b-extension} b(\mu^k r)=\Pi^k b(r)\quad(0\leq k0\quad(u\ne0). \] Thus this trace form is exactly the ordinary Euclidean form in the coordinates used to construct $P,Q$. For comparison, on $K$ itself the basis $(1,\zeta)$ gives \[ G=\begin{pmatrix} \Tr(1)&\Tr(\zeta)\\ \Tr(\bar\zeta)&\Tr(\bar\zeta\zeta) \end{pmatrix} =\begin{pmatrix}2&1\\1&2\end{pmatrix},\qquad \rho_{\rm reg}(\zeta)=\begin{pmatrix}0&-1\\1&1\end{pmatrix}. \] Here $\rho_{\rm reg}$ is the multiplication matrix in the specified two-element basis, rather than the representation $\rho$ of order $2524$. Now take \[ M=\begin{pmatrix} -1&\zeta&\zeta\\ \zeta&-1&\zeta\\ \zeta&\zeta&-1 \end{pmatrix}. \] Each row has squared norm $3$. The Hermitian product of two different rows is $1-\zeta-\bar\zeta=0$. Hence $MM^*=3I_3$. Its two entries have the sign matrix images \[ \rho(-1)P=-P,\qquad \rho(\zeta)P=Q. \] Lemma~\ref{lem:sign-restriction}, with $F=P$ and $c=d$, therefore gives \[ H=\begin{pmatrix}-P&Q&Q\\Q&-P&Q\\Q&Q&-P\end{pmatrix}, \qquad HH^{\mathsf T}=3dI_{3d}=7572I_{7572}. \] One can check this last Gram directly as well: a diagonal block is $PP^{\mathsf T}+2QQ^{\mathsf T}=3dI_d$, and an off-diagonal block is $-PQ^{\mathsf T}-QP^{\mathsf T}+QQ^{\mathsf T}=0$. More generally, each of the four scalars \begin{equation}\label{eq:four-scalars} 1,\quad\zeta,\quad-1,\quad-\zeta \end{equation} has a sign matrix image after multiplication by $P$, namely $P,Q,-P,-Q$, respectively. Any matrix $N$ of order $n$ with entries in \eqref{eq:four-scalars} and $NN^*=nI_n$ therefore gives a real Hadamard matrix of order $2524n$ by the block formula $H_{ij}=\rho(N_{ij})P$. These statements concern exactly the four specified scalars. For example, the remaining sixth root $\zeta^2$ gives \[ \rho(\zeta^2)P=(R-I_d)P=Q-P=2V, \] where $P=U-V$ and $Q=U+V$ as above. The entries of $V$ lie in $\{0,1,-1\}$, and $VV^{\mathsf T}=pI_d$ gives exactly $p$ nonzero entries in each row of length $4p$. Thus $2V$ has both zero entries and entries of absolute value $2$. \section{An explicit cubic family} \label{sec:cubic-family} We now prove the existence of matrices of every order $32812\cdot3^r$, for all integers $r\geq0$. The source recurrence is the classical sixth-root tripling construction~\cite{unreal}. Both its finite starting point and its induction step are given here. \begin{lemma}[The starting pair of order $13$]\label{lem:seed13} There are sign matrices $A_0,B_0$ of order $13$ satisfying \begin{equation}\label{eq:cubic-pair} A_0B_0^{\mathsf T}=B_0A_0^{\mathsf T},\qquad A_0A_0^{\mathsf T}+3B_0B_0^{\mathsf T}=52I_{13}. \end{equation} \end{lemma} \begin{proof} Table~\ref{tab:seed13} specifies their rows in order $0,\ldots,12$: each $+$ means the integer $1$ and each $-$ means the integer $-1$. The corresponding sixth-root source is the known order-$13$ example $M_{13A}^{(0)}$ up to multiplication of rows and columns by sixth roots of unity~\cite{catalogue}. The existence proof here uses only the displayed integer entries. For the last column, let $L$ be the symmetric matrix with zero diagonal whose entries above the diagonal are $1$ at the listed indices and $0$ at the unlisted indices. \begin{table}[htbp] \centering\small \setlength{\tabcolsep}{5pt} \begin{tabular}{rlll} $i$&row $i$ of $A_0$&row $i$ of $B_0$&$\{j>i:L_{ij}=1\}$\\\hline $0$ &\texttt{+------------}&\texttt{+++++++++++++}&$\varnothing$\\ $1$ &\texttt{---+++++++---}&\texttt{+++++++------}&$2,3,5,6,9,10$\\ $2$ &\texttt{----++++++--+}&\texttt{+++----+++--+}&$4,5,8,9,12$\\ $3$ &\texttt{---+++-+++--+}&\texttt{+---++-+--+++}&$4,6,7,10,11$\\ $4$ &\texttt{---++++-++--+}&\texttt{+--+--+-++++-}&$7,8,11,12$\\ $5$ &\texttt{--++--++--+++}&\texttt{+-+++---+-+-+}&$9,10,11,12$\\ $6$ &\texttt{-++-+---++++-}&\texttt{+-+-+-+--+-++}&$7,8,9,10$\\ $7$ &\texttt{-+++--++--+-+}&\texttt{+-+--+++-++--}&$8,9,11$\\ $8$ &\texttt{-++-++--+-++-}&\texttt{+-++-+-++--+-}&$9,12$\\ $9$ &\texttt{-+-+--++--+++}&\texttt{++-+-+---+-++}&$\varnothing$\\ $10$&\texttt{-++--+--++++-}&\texttt{++---++-+-+-+}&$11,12$\\ $11$&\texttt{-+++--++---++}&\texttt{++--+-+++--+-}&$12$\\ $12$&\texttt{-++-++---+++-}&\texttt{++-++--+-++--}&$\varnothing$\\\hline \end{tabular} \caption{The order-$13$ sign pair and the upper triangular entries of the auxiliary symmetric matrix $L$.} \label{tab:seed13} \end{table} To record the entire calculation compactly, let $E$ be the symmetric $13\times13$ matrix whose entry $E_{ij}$ is $1$ precisely when $i\ne j$ and $i,j$ belong to the same one of the three sets \[ \{1,2,3,4\},\qquad\{5,7,9,11\},\qquad\{6,8,10,12\}, \] and is $0$ otherwise. Finally, let $e_0=(1,0,\ldots,0)^{\mathsf T} \in\Q^{13}$. Taking the dot products of the displayed rows gives \begin{align} A_0A_0^{\mathsf T}&=16I_{13}-3J_{13}+12E,\label{eq:seed-a-gram}\\ B_0B_0^{\mathsf T}&=12I_{13}+J_{13}-4E,\label{eq:seed-b-gram}\\ A_0B_0^{\mathsf T}&=J_{13}-12e_0e_0^{\mathsf T}-4L. \label{eq:seed-ab-gram} \end{align} All entries in these identities are specified by the table. The exact rule for performing every check is \[ (XY^{\mathsf T})_{ij}=\sum_{k=0}^{12}X_{ik}Y_{jk}, \qquad X,Y\in\{A_0,B_0\}. \] For example, the $(0,0)$ entries in the three products are $13,13,-11$, since row $0$ of $A_0$ has one plus sign and twelve minus signs, whereas row $0$ of $B_0$ consists entirely of plus signs. For distinct indices, the first two right sides give respectively $(9,-3)$ when $E_{ij}=1$ and $(-3,1)$ when $E_{ij}=0$. The last right side has off-diagonal entry $-3$ precisely at the pairs listed in the last column of the table, and $1$ at all other pairs. These statements enumerate all row products. In particular \eqref{eq:seed-ab-gram} is symmetric. Adding \eqref{eq:seed-a-gram} and three times \eqref{eq:seed-b-gram} cancels both $E$ and $J_{13}$ and leaves $(16+36)I_{13}=52I_{13}$. This proves \eqref{eq:cubic-pair}. For a short independent way to repeat the finite calculation, let \texttt{A} and \texttt{B} be the two arrays of integer rows printed in the table. The following loop uses only integer addition and multiplication and checks all $169$ entries of both required identities: \begin{verbatim} def dot(x, y): return sum(a*b for a, b in zip(x, y)) for i in range(13): for j in range(13): assert dot(A[i], B[j]) == dot(B[i], A[j]) assert dot(A[i], A[j]) + 3*dot(B[i], B[j]) == 52*(i == j) \end{verbatim} \end{proof} \begin{lemma}[The tripling step]\label{lem:tripling-step} Suppose that $A,B$ are sign matrices of order $n$ satisfying \begin{equation}\label{eq:general-cubic-pair} AB^{\mathsf T}=BA^{\mathsf T},\qquad AA^{\mathsf T}+3BB^{\mathsf T}=4nI_n. \end{equation} Define \[ C=\begin{pmatrix}0&1&-1\\-1&0&1\\1&-1&0\end{pmatrix}, \qquad A'=B\otimes J_3, \qquad B'=A\otimes I_3+B\otimes C. \] Then $A',B'$ are sign matrices of order $3n$ and satisfy \[ A'B'^{\mathsf T}=B'A'^{\mathsf T},\qquad A'A'^{\mathsf T}+3B'B'^{\mathsf T}=4(3n)I_{3n}. \] \end{lemma} \begin{proof} Both matrices are indexed by $\{0,\ldots,n-1\}\times\{0,1,2\}$. Their entries are \[ A'_{(i,a),(j,b)}=B_{ij},\qquad B'_{(i,a),(j,b)}=A_{ij}\delta_{ab}+B_{ij}C_{ab}. \] The first entry is a sign. In the second formula, if $a=b$ the entry is $A_{ij}$, and if $a\ne b$ it is $C_{ab}B_{ij}$ with $C_{ab}\in\{-1,1\}$. Thus every entry of $B'$ is also a sign. Direct multiplication of the displayed $3\times3$ matrices gives \[ C^{\mathsf T}=-C,\quad CC^{\mathsf T}= \begin{pmatrix}2&-1&-1\\-1&2&-1\\-1&-1&2\end{pmatrix} =3I_3-J_3,\quad CJ_3=J_3C=0,\quad J_3^2=3J_3. \] The vanishing products with $J_3$ also follow from the zero row sums and zero column sums of $C$. We use the identities $(X\otimes Y)^{\mathsf T}=X^{\mathsf T}\otimes Y^{\mathsf T}$ and $(X\otimes Y)(Z\otimes W)=XZ\otimes YW$; both follow by expanding a matrix entry and separating the two finite summation indices. Consequently \begin{align*} A'B'^{\mathsf T} &=BA^{\mathsf T}\otimes J_3 +BB^{\mathsf T}\otimes J_3C^{\mathsf T} =BA^{\mathsf T}\otimes J_3,\\ B'A'^{\mathsf T} &=AB^{\mathsf T}\otimes J_3 +BB^{\mathsf T}\otimes CJ_3 =AB^{\mathsf T}\otimes J_3. \end{align*} They are equal by \eqref{eq:general-cubic-pair}. The two norm expansions are \begin{align*} A'A'^{\mathsf T}&=3BB^{\mathsf T}\otimes J_3,\\ B'B'^{\mathsf T} &=AA^{\mathsf T}\otimes I_3 +AB^{\mathsf T}\otimes C^{\mathsf T} +BA^{\mathsf T}\otimes C +BB^{\mathsf T}\otimes CC^{\mathsf T}\\ &=AA^{\mathsf T}\otimes I_3 +BB^{\mathsf T}\otimes(3I_3-J_3). \end{align*} In the last equality, the two mixed terms cancel because $C^{\mathsf T}=-C$ and $AB^{\mathsf T}=BA^{\mathsf T}$. It follows that \begin{align*} A'A'^{\mathsf T}+3B'B'^{\mathsf T} &=3(AA^{\mathsf T}+3BB^{\mathsf T})\otimes I_3\\ &=12n(I_n\otimes I_3)=4(3n)I_{3n}. \end{align*} \end{proof} Starting with the literal pair $A_0,B_0$ in Table~\ref{tab:seed13}, apply Lemma~\ref{lem:tripling-step} $r$ times, and call the result $A_r,B_r$. Induction gives sign matrices of order $n_r=13\cdot3^r$ with \[ A_rB_r^{\mathsf T}=B_rA_r^{\mathsf T},\qquad A_rA_r^{\mathsf T}+3B_rB_r^{\mathsf T}=4n_rI_{n_r} \qquad(r\geq0). \] These equations also give an alternative, entirely real final step. The quadruple $(A_r,B_r,B_r,B_r)$ satisfies the hypotheses of Proposition~\ref{prop:substitution}: its norm is the displayed weighted norm, its distinct mixed products are either the proved equality $A_rB_r^{\mathsf T}=B_rA_r^{\mathsf T}$ or an equality with both sides $B_rB_r^{\mathsf T}$. Hence \[ \widetilde H_r=X_0\otimes A_r+(X_1+X_2+X_3)\otimes B_r \] is a real Hadamard matrix of order $2524n_r=32812\cdot3^r$. This is the recurrence-to-endpoint route used in the Lean existence proof. The following sixth-root description gives the scalar viewpoint directly; it proves the same existence statement without asserting that the two displayed representatives are equal. The equations for $A_r,B_r$ give the sixth-root source as follows. Put \[ W_r=\frac{A_r+\xi B_r}{2},\qquad N_r=\zeta^{-1}W_r. \] Since $A_r,B_r$ are real matrices and $\bar\xi=-\xi$, multiplication gives \begin{align*} W_rW_r^* &=\frac14\left(A_rA_r^{\mathsf T}+3B_rB_r^{\mathsf T} +\xi(B_rA_r^{\mathsf T}-A_rB_r^{\mathsf T})\right)\\ &=n_rI_{n_r}. \end{align*} Each entry of $W_r$ is one of $\zeta,\bar\zeta,-\zeta,-\bar\zeta$, because its real and imaginary parts are respectively $\pm1/2$ and $\pm\sqrt3/2$. Also $\bar\zeta/\zeta=-\zeta$, as follows from $\zeta^3=-1$ and $\bar\zeta=\zeta^{-1}$. It follows that every entry of $N_r$ belongs to the four scalars \eqref{eq:four-scalars}. Multiplication by $\zeta^{-1}$ has absolute value $1$, so $N_rN_r^*=n_rI_{n_r}$ as well. Finally the explicit blocks \[ H^{(r)}_{ij}=\rho\bigl((N_r)_{ij}\bigr)P \] are all $P,Q,-P$ or $-Q$ and form a real Hadamard matrix of order \[ d n_r=2524\cdot13\cdot3^r=32812\cdot3^r. \] This proves the sixth infinite family for every $r\geq0$, and gives the individual orders $32812$, $98436$ and $295308$ at $r=0,1,2$. \section{Thirteen finite commuting quadruples}\label{sec:williamson} We now take $p=631$. A Williamson quadruple of order $w$ means here four symmetric, pairwise commuting sign matrices $A_0,A_1,A_2,A_3$ satisfying $\sum_j A_j^2=4wI_w$. Symmetry and commutation imply $A_iA_j^{\mathsf T}=A_iA_j=A_jA_i=A_jA_i^{\mathsf T}$, so Proposition~\ref{prop:substitution} applies. The following thirteen quadruples are taken from the explicit small-order Sage table~\cite{sage}. They are known sources; the new orders result from combining them with the length-$631$ construction. For each order $w$, the following table gives the four first rows of the circulants, in the order $A_0,A_1,A_2,A_3$. Each word is read from left to right at indices $0,\ldots,w-1$; $+$ means $1$ and $-$ means $-1$. \begin{center}\scriptsize \begin{tabular}{rl} $w$&four first rows, in order\\\hline $3$&\texttt{+++}\\ &\texttt{+--}\\ &\texttt{+--}\\ &\texttt{+--}\\ \hline $7$&\texttt{+--++--}\\ &\texttt{+-+--+-}\\ &\texttt{++----+}\\ &\texttt{+------}\\ \hline $9$&\texttt{+---++---}\\ &\texttt{+--+--+--}\\ &\texttt{+-+----+-}\\ &\texttt{++------+}\\ \hline $13$&\texttt{++++-+--+-+++}\\ &\texttt{+---+-++-+---}\\ &\texttt{++---+--+---+}\\ &\texttt{++---+--+---+}\\ \hline $17$&\texttt{+---+++----+++---}\\ &\texttt{++-+---+--+---+-+}\\ &\texttt{+--+-++++++++-+--}\\ &\texttt{+-++-+++--+++-++-}\\ \hline $23$&\texttt{++---+---+-++-+---+---+}\\ &\texttt{+-++-++--++++++--++-++-}\\ &\texttt{+++---++-+-++-+-++---++}\\ &\texttt{+++-+++-+------+-+++-++}\\ \hline $29$&\texttt{+++---++--+-+----+-+--++---++}\\ &\texttt{+-+---++--+-++++++-+--++---+-}\\ &\texttt{++++-++-+---++++++---+-++-+++}\\ &\texttt{++--+--+-+++-++++-+++-+--+--+}\\ \hline $31$&\texttt{++++++-+--+---++++---+--+-+++++}\\ &\texttt{+--++---+-+-++----++-+-+---++--}\\ &\texttt{+--++---+-+-++----++-+-+---++--}\\ &\texttt{+-----+-++-+++----+++-++-+-----}\\ \hline $37$&\texttt{+--+-+-+-++---+--++++--+---++-+-+-+--}\\ &\texttt{+---++-++--+-+-++----++-+-+--++-++---}\\ &\texttt{+++++-+-----++----++----++-----+-++++}\\ &\texttt{+--+++-+-----+----++----+-----+-+++--}\\ \hline $39$&\texttt{+++--+-+-----+--++----++--+-----+-+--++}\\ &\texttt{+++--++-+---+-+--+----+--+-+---+-++--++}\\ &\texttt{++++---+--++----+-+--+-+----++--+---+++}\\ &\texttt{+---++-+-+-----+++-++-+++-----+-+-++---}\\ \hline $43$&\texttt{++---++++-+--+--++--------++--+--+-++++---+}\\ &\texttt{+++-+-++--+-+-++++-+----+-++++-+-+--++-+-++}\\ &\texttt{++-++++++----+-+--++-++-++--+-+----++++++-+}\\ &\texttt{+---++--++++-+-+++-++--++-+++-+-++++--++---}\\ \hline $51$&\texttt{+---+++-++-+-+++--+++++--++--+++++--+++-+-++-+++---}\\ &\texttt{----+++-++-+-+++--+++++--++--+++++--+++-+-++-+++---}\\ &\texttt{-+--+----+-+++-+-+++++--+--+--+++++-+-+++-+----+--+}\\ &\texttt{-+--+----+-+++-+-+++++--+--+--+++++-+-+++-+----+--+}\\ \hline $61$&\texttt{++--+--++--+-+-++++--+-----+------+-----+--++++-+-+--++--+--+}\\ &\texttt{++--+--++--+-+-++++--+-----+------+-----+--++++-+-+--++--+--+}\\ &\texttt{+---+-+-++++---++--+-++-+---++++++---+-++-+--++---++++-+-+---}\\ &\texttt{++++-+-+----+++--++-+--+-+++------+++-+--+-++--+++----+-+-+++}\\ \hline \end{tabular}\end{center} For every word $h$ in the table, $h(-x)=h(x)$, with arguments reduced modulo its order $w$. Hence its circulant is symmetric. Commutativity was proved in Section~\ref{sec:design}. If $h_0,h_1,h_2,h_3$ are the four integer rows, the remaining condition is precisely \[ \sum_{j=0}^3\sum_{x=0}^{w-1}h_j(x)h_j(x+s) =\begin{cases}4w&s=0,\\0&1\leq s 0 else -1) for k in range(m): u = (r * pow(mu, k, p)) % p assert b[u] is None a = 0 if j == 0 else 1 + (j-1+k) % 3 b[u] = tuple(sign if i == a else 0 for i in range(4)) assert all(v is not None and sum(z*z for z in v) == 1 for v in b) for s in range(p): c = sum(b[x][j] * b[(x+s) % p][j] for x in range(p) for j in range(4)) assert c == (p if s == 0 else 0) \end{verbatim} The first assertions prove the precise multiplier orders. In the orbit loop, the assertion that no value has already been assigned checks disjointness of the listed orbits; the assertion after it checks coverage of all residues. The tuple formula implements $\Pi^k$ explicitly. The final loop proves the required correlation for every shift, including zero, without using the orbit reduction of shifts. For completeness the following trial-division function checks the two primes used to define the functions and the two primes used to identify known Paley orders in Section~\ref{sec:conclusion}: \begin{verbatim} def prime(n): if n < 2: return False d = 2 while d*d <= n: if n % d == 0: return False d += 1 return True assert all(prime(n) for n in (127, 631, 885923, 9314821)) \end{verbatim} If an integer $n\geq2$ is composite, write $n=ab$ with $1