\documentclass[11pt,a4paper]{article} \usepackage[a4paper,margin=25mm]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage[colorlinks=true,linkcolor=black,citecolor=magenta,urlcolor=black]{hyperref} \newtheorem{thm}{Theorem}[section] \newtheorem{prop}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \newtheorem{defn}[thm]{Definition} \newtheorem{lem}[thm]{Lemma} \newtheorem{introdef}{Definition} \renewcommand{\theintrodef}{\Alph{introdef}} \newtheorem{introthm}{Theorem} \renewcommand{\theintrothm}{\Alph{introthm}} \raggedbottom \setcounter{tocdepth}{1} \title{On deformations of McNulty-Weigert and other matrices} \author{Banica and Codex} \date{} \begin{document} \maketitle \begin{abstract} We study deformations of McNulty-Weigert matrices constructed from bases in odd prime dimension $p$. For outer matrix $F_2$ and $4$ distinct labels with square cross-ratio, we construct $p^2+2$ dephased real analytic families of dimension $p-1$ with distinct tangent spaces. Every first-order deformation extends through order $2$. At the order-$10$ matrix $H_5$ the defect is $8$ and the dephased local dimension is $4$. We find $4$ entries whose phases can be prescribed freely near $H_5$. Each choice has finitely many nearby labeled completions, and for a generic choice exactly $27$ of them have a nontrivial permutation symmetry. For outer matrix $F_2$ a rectangle partition function gives the defect, and isolation is equivalent to the entrywise square being Hadamard. For outer matrix $F_3$ and $6$ distinct labels, we prove isolation for every prime $5\leq p\leq31$. For coprime $N,M\geq2$, every Di\c t\u a deformation of $F_N\otimes F_M$ has the Berezin spectrum of $F_{NM}$. Finally, a projective McNulty-Weigert matrix admits a master representative exactly when both label lists are constant and the outer matrix is equivalent to a Hadamard submatrix of a Fourier matrix of order prime to $p$. \end{abstract} \begingroup \hypersetup{linkcolor=magenta} \setlength{\parskip}{0pt} \addtolength{\baselineskip}{1pt} \renewcommand{\addvspace}[1]{} \tableofcontents \endgroup \section*{Introduction} \phantomsection\addcontentsline{toc}{section}{Introduction} A complex Hadamard matrix of order $N$ is a matrix $H$ whose entries belong to the unit circle $\mathbb T$ and whose rows are pairwise orthogonal. Throughout we use the scalar product $$ \langle x,y\rangle=\sum_k x_k\bar{y}_k, $$ linear in the left variable. Thus the orthogonality and norm conditions together read $HH^*=NI$. Multiplying rows and columns by phases gives elementary deformations of $H$. We fix the 1st row and column at their original values to remove these deformations. We call this choice dephasing. For the basic constructions and examples of real and complex Hadamard matrices, see \cite{book}. The Fourier matrices provide a first class of examples for which the defect can be computed explicitly \cite{fourgroup}. How many parameters can occur in a family through a given $H$? Differentiating row orthogonality gives a real space $T_H$ of possible velocities. Its dimension $d(H)$ is the dephased defect of Tadej and Zyczkowski \cite{tz}. Every smooth family gives velocities in this space, but some velocities may be obstructed at higher orders. In particular the real local dimension $\dim_H$ is at most $d(H)$. Section \ref{basics} works this out first in order $4$ and then at the Fourier matrices $F_N=(w^{jk})$ with $w=e^{2\pi i/N}$. There the analytic curves of Nicoara and White \cite{nw17} give a basis of velocities. We ask which families of deformations retain a permutation symmetry. We also seek a formula for the defect from the entries which avoids solving the linearized equations. McNulty and Weigert \cite{mw} build a Hadamard matrix out of smaller changes of basis. Section \ref{construction} gives their general construction. For our results we use the following bases in odd prime dimension $p$. The standard $p+1$ mutually unbiased bases of $\mathbb C^p$ are labeled by the points of $P^1(\mathbb F_p)=\mathbb F_p\cup\{\infty\}$. Write $B_c$ for the unitary matrix whose columns form the basis with label $c$. For distinct labels $c,d$, every entry of $B_c^*B_d$ has modulus $1/\sqrt p$. \begin{introdef} Let $p$ be an odd prime and $K$ a Hadamard matrix of order $N$. Choose lists $s=(s_i)$ and $t=(t_j)$ of $N$ points each in $P^1(\mathbb F_p)$, with $s_i\ne t_j$ for every $i,j$. The McNulty-Weigert matrix is the block matrix $$ H_K(s,t)=\big(\sqrt p\,K_{ij}B_{s_i}^*B_{t_j}\big)_{0\leq i,j0}} X_{bj,\beta}V_{abj,\gamma} \qquad(|\alpha|>0). $$ At each monomial the sum is known from smaller degrees. The free entries of $X$ are given by the slice, so we obtain the pivot entries by multiplying the right-hand side of the pivot system by the inverse of the fixed $73\times73$ minor. Summing $V_{abj,\alpha}$ over $j$ with weights $\frac{H_{aj}}{H_{bj}}$ gives the residual coefficient for row pair $(a,b)$. All residual coefficients through degree $5$ vanish over $\mathbb F_{101}$. In degree $6$ the residual forms span a space of dimension $8$. Let $I_6$ be the homogeneous ideal generated by these sextics in $\mathbb F_{101}[u_1,u_2,u_3,u_4]$. Multiplying the sextics by all monomials of degree $e-6$ and eliminating in the degree-$e$ monomial basis gives \begin{center} \begin{tabular}{lrrrrrr} degree $e$ & $6$ & $7$ & $8$ & $9$ & $10$ & $11$\\ \noalign{\vskip 2pt}\hline\noalign{\vskip 2pt} number of monomials & 84 & 120 & 165 & 220 & 286 & 364\\ dimension of $(I_6)_e$ & 8 & 32 & 80 & 160 & 272 & 364 \end{tabular} \end{center} The program \texttt{mixed\_jets.py} verifies the table by the recursion above. A second reduction at $p'=151$, $w=8$ gives the same table. In particular $I_6$ contains every degree-$11$ monomial. In the local ring of the sliced residual equations over $\mathbb F_{101}$ this gives $\mathfrak m^{11}=\mathfrak m^{12}$, where $\mathfrak m$ is generated by the $u_i$. Indeed one can replace each sextic by its full residual combination, introducing only terms of higher degree. Nakayama's lemma now gives $\mathfrak m^{11}=0$. We explain why this bounds the dimension in characteristic zero. Work over $\mathbb Z[w]$ localized at $(101,w-95)$, with $w=e^{2\pi i/5}$. The pivot determinant is a unit, and the recursion uses no other divisions. Thus the sliced residual series are defined over this local ring in every degree. For any $k$, truncate at total degree $k-1$. The truncated residual ideal is the span of all monomial multiples of the residuals in this finite space. Its coefficient matrix has at least the same rank over $\mathbb C$ as after reduction. Consequently the dimension of the truncated quotient over $\mathbb C$ is bounded, for every $k$, by the number of monomials of degree at most $10$ in $4$ variables. The successive dimensions therefore stabilize. Nakayama's lemma gives a power of the maximal ideal equal to zero over $\mathbb C$ as well. This proves that the complex slice has dimension zero. By Krull's height theorem, imposing $4$ equations can lower the local dimension by at most $4$. The complex Hadamard equations before slicing thus have local dimension at most $4$. In logarithmic coordinates the real solutions lie in $i\mathbb R^{81}$. The complexification of a smooth real analytic stratum of the real solution set is a germ contained in the complex solution set. Its complex dimension equals the real dimension of the stratum. The real local dimension is therefore also at most $4$. Theorem \ref{branches} supplies the matching lower bound. For $4$ distinct labels the cross-ratio belongs to $\mathbb F_5-\{0,1\}$, whose only square is $4$. This is the cross-ratio of $H_5$. Ordered configurations with the same cross-ratio differ by an element of $PGL_2(\mathbb F_5)$. By the projective symmetry in \cite{arith}, their matrices differ by Hadamard equivalence and possibly a cyclotomic Galois conjugation. The multiplicative equations above have algebraic coefficients. Conjugation preserves the dimensions of all their truncated local rings, hence also their complex local dimension. The real lower bound still follows at each matrix from Theorem \ref{branches}. If the cross-ratio is not a square, the defect is zero by \cite{arith}. Finally, Theorems \ref{branches} and \ref{reflections} give $2+5^2=27$ real analytic families through each matrix whose cross-ratio is a square. Each complexifies to a smooth germ of dimension $4$. Indeed its $4$ independent real phase derivatives remain independent over $\mathbb C$ in logarithmic coordinates. A smooth germ of dimension $4$ contained in a complex analytic germ of dimension $4$ is an irreducible component, since a proper analytic subset of an irreducible germ has smaller dimension. The $27$ real tangent spaces are pairwise distinct and remain so after complexification. This distinguishes the $27$ components. \end{proof} At order $14$ the same method encounters a difference. The first forms on a slice of the desired dimension have common projective zeros. We must test whether any of these directions extends to a curve. \begin{thm}\label{exactfourteen} Let $H=H_{F_2}(s,t)$ have $4$ distinct labels in $P^1(\mathbb F_7)$. If the cross-ratio is a square, its dephased real and complex local dimensions are both $6$, and the labeled complex germ has at least $51$ smooth irreducible components of dimension $6$. If the cross-ratio is not a square, $H$ is isolated. \end{thm} \begin{proof} We first work at $H_7$. Reduce at $p'=211$, with $w=58$, and use the multiplicative coordinates and pivot rule of Theorem \ref{exactten}. Of the $169$ unfixed entries, the $12$ free indices are $$ 153,154,155,160,161,162,163,164,165,166,167,168 . $$ Write the free coordinates as $x=\binom{u}{Cu}$ with $u=(u_0,\ldots,u_5)^t$ and $$ C=\begin{pmatrix} 18&13&11&28&11&8\\27&1&13&9&0&22\\30&24&9&16&26&9\\ 13&28&6&28&20&13\\24&12&11&19&28&22\\20&19&26&13&23&13 \end{pmatrix}. $$ This cuts the graph by $6$ linear equations. Denote its residual series by $R_{ab}(u)$, one for each ordered row pair. The coefficient recursion of Theorem \ref{exactten} gives zero through degree $4$ in this reduction. The homogeneous parts of degree $5$ span a space of dimension $12$. Let $S=\mathbb F_{211}[u_0,\ldots,u_5]$ and let $I$ be the ideal generated by these quintics. We give the finite calculations identifying their common projective zeros. The program \texttt{order14.py} starts with this matrix and slice. It uses \texttt{order14\_linear.py} for the linear algebra of the projective directions. Multiplication of the quintics by the degree-$6$ monomials gives a matrix with $5544$ rows and $4368$ columns. Its kernel is the dual of $(S/I)_{11}$. In each subsequent degree a functional is determined by its $6$ restrictions to the multiples of $u_j$. Each restriction belongs to the preceding dual space, and their values must agree on common monomials. These linear equations give $$ \begin{array}{c|rrrr} e&11&12&13&14\\ \dim(S/I)_e&90&38&20&20 . \end{array} $$ Applying the pivot rule to a dual basis selects $20$ monomials forming a basis in the degree-$13$ quotient. Their products by $u_0$ form a basis in degree $14$. Thus at a projective zero with $u_0=0$ every degree-$14$ monomial would vanish, which is impossible. Set $u_0=1$. In the chosen bases multiplication by $u_0$ identifies the $2$ quotient spaces. Write $M_j$ for multiplication by $u_j$ under this identification, acting on evaluation vectors, and put $A=\sum_{j=0}^5 jM_j$. The characteristic polynomial of $A$ has $9$ distinct linear factors, one quadratic and $3$ distinct irreducible cubics. The program expresses each $M_j$ as a polynomial $g_j(A)$ of degree at most $19$ by linear elimination. At any projective zero the vector of its degree-$13$ basis values is nonzero, and $M_j$ acts on this vector by its coordinate $u_j$. Hence every direction occurs among $$ (1,g_1(\alpha),\ldots,g_5(\alpha)),\qquad \det(\alpha I-A)=0 . $$ Substitution verifies that all $20$ are zeros. They are distinct since $\alpha=\sum_j jg_j(\alpha)$. For each of these points write $u=t(1,v)$ and divide the residuals by $t^5$. At $t=0$ their derivatives in the $5$ coordinates of $v$ have rank $5$ over the field of the point. Thus $5$ independent residuals determine a unique power series $v(t)$ through the point. We test the others by substituting $u=t(1,v(t))$ in the original ratio recursion. At step $h$, the coefficient of $t^{5+h}$ is a known vector plus the same derivative matrix times the new coefficient of $v$. The table gives the first inconsistent equation order, counting powers before division by $t^5$. Each irreducible factor is tested over its own field. \begin{center} \begin{tabular}{lrr} field degree of the point & failure in degree $6$ & failure in degree $9$\\ \noalign{\vskip 2pt}\hline\noalign{\vskip 2pt} $1$ & $2$ & $7$\\ $2$ & $0$ & $2$\\ $3$ & $0$ & $9$ \end{tabular} \end{center} These counts are over the algebraic closure of $\mathbb F_{211}$. To see why they suffice, suppose the sliced germ contained a curve. Normalizing a formal branch gives a power series parametrization. Its leading direction is a zero of the quintics, so $u_0$ has minimal order and is nonzero along the branch. Taking $t=u_0$, the ratios $v_j=u_j/u_0$ are regular there. The formal implicit function theorem forces them to be the series just determined, composed with $u_0$ in the branch parameter. A remaining residual has a nonzero leading term, which stays nonzero under this substitution. This rules out the branch, including when $u_0$ has order greater than $1$. The sliced local ring in this reduction therefore has finite length. The truncation argument of Theorem \ref{exactten}, now over $\mathbb Z[w]$ localized at $(211,w-58)$, bounds every characteristic-zero truncation by this length. The complex slice has dimension zero. Since it is cut by $6$ equations, the complex local dimension at $H_7$ is at most $6$. Theorem \ref{branches} supplies a real family of dimension $6$, proving equality for both dimensions. The cross-ratio of $H_7$ is $1/9=4$ in $\mathbb F_7$. The other admissible square is $2=4^{-1}$. Corollary \ref{inversecycle} and the projective symmetry used in Theorem \ref{exactten} transfer the complex dimension to every ordered configuration of either cross-ratio. The real lower bound holds at each one. The $7^2+2$ families of Theorems \ref{branches} and \ref{reflections} now complexify to distinct smooth irreducible components by the dimension argument of Theorem \ref{exactten}. If the cross-ratio is not a square, the defect is zero by \cite{arith}, which gives isolation. \end{proof} There is also a way to specify a nearby matrix by a few of its entries, with finitely many choices left over. Here the row and column labels matter. Use the displayed circulant representative in Section \ref{construction}, with its first row and first column held fixed. \begin{prop}\label{fourentries} For sufficiently small deformations of $H_5$, prescribing the entries in positions $$ (1,2),\quad (4,9),\quad (7,4),\quad (8,3) $$ leaves at most $449$ labeled dephased completions, with indices starting at zero. They are distinguished by the last $4$ entries of the last row. The other entries are single-valued analytic functions of these $8$ entries on the pivot graph. The bound holds in the complexified germ as well. \end{prop} \begin{proof} On the graph of the $73$ pivot equations used in Theorem \ref{exactten}, the $4$ selected entries have differential of rank $4$ at $H_5$. More precisely, on the first $4$ of the $8$ free variables their differential is invertible modulo $101$. The last $4$ free variables are precisely the entries in positions $(9,6),(9,7),(9,8),(9,9)$, relative to their base values. Thus the $4$ prescribed entries and these $4$ last-row entries give local analytic coordinates on the pivot graph. To recover a completion one solves the pivot equations there and tests the remaining $17$ ordered row equations in the $4$ last-row variables. Each root near the base point gives exactly one complex completion. The real Hadamard matrices are those with unit-modulus entries. On the complex pivot graph the fibre over the original $4$ entries is smooth of dimension $4$. We intersect this fibre with the remaining orthogonality equations. Since the residuals vanish through degree $5$ on the whole graph, their degree-$6$ parts on the fibre are obtained by restricting the leading sextics to its tangent plane. Thus it suffices to use the kernel of the $4$ selected rows of the tangent matrix as the linear substitution. The program \texttt{mixed\_jets.py} carries out this substitution. As in Theorem \ref{exactten}, modulo $101$ the quotient by the restricted sextics has dimensions $76,88,85,60,14,0$ in degrees $6$ through $11$. The matrices defining the substitution have unit pivot minors, so the ranks of the homogeneous products can only increase in characteristic zero. The central fibre of the full complex germ therefore has length at most $$ \binom{9}{4}+76+88+85+60+14=449. $$ The binomial term counts degrees $0$ through $5$. An isolated central fibre makes the projection finite as a map of analytic germs, by Weierstrass finiteness. By Nakayama's lemma the local algebra is generated by at most $449$ elements over the convergent series ring of the $4$ entries. The generators still suffice on small representatives of the finite map, so every nearby fibre has length at most $449$. Every real phase completion is one of these points. To identify equivalent completions, including ones over different prescribed entries, one can use the finite group in the next section. \end{proof} \section{Permutation symmetries and components}\label{components} The dephased space has dimension $4$ at $H_5$. We now keep track of which families pass through the same point. We first determine all ordinary symmetries of $H_5$. This accounts for every nearby matrix which retains such a symmetry, since there are only finitely many permutations of the rows and columns. \begin{thm}\label{fulllocalgroup} Modulo scalar phases acting trivially, the group of row and column symmetries on the dephased germ at $H_5$ is $\mathbb F_5^2\rtimes Q_8$, where $Q_8$ is the quaternion group of order $8$. A sufficiently close dephased Hadamard matrix has a nonidentity permutation symmetry exactly when it lies in the union of the $27$ smooth families of Theorem A. Up to equivalence there are $2$ types of such families. \end{thm} \begin{proof} Index an inner row or column by $(h,j)$, where $h$ is its basis label and $j\in\mathbb F_5$. The translations $g_{(a,b)}$ add $b-2ha$ to $j$. Consider also the permutations $$ P(h,j)=(-1/h,j/h),\qquad Q(h,j)=(-h,2j). $$ Inserting them in the chirp formula changes only row and column phases. They normalize the translations, satisfy $P^2=Q^2=r$ with $r(h,j)=(h,-j)$, and $PQ=Q^{-1}P$. They generate a quaternion group which intersects the translations only in the identity. This gives $200$ permutation pairs. Here is an exhaustive check of the upper bound. Write the exponents of $H_5$ modulo $10$ and dephase at $(0,0)$ by subtracting the first row and column and adding back the corner. Try all $100$ choices for the image of the corner and dephase the candidate matrix there. The image of row $1$ must have the prescribed multiset of entries. Within its equal entries try every column bijection, fixing the chosen corner column. The remaining rows are distinct and their images are then determined. The program \texttt{local\_symmetries.py} finds exactly $200$ pairs and verifies that the displayed generators give them all. In a sufficiently small neighborhood only permutations fixing the base point can fix a matrix or identify $2$ matrices in that neighborhood. This follows by continuity and finiteness after dephasing. Every nonidentity translation is covered by Corollary \ref{stabilizers}. An element over $r$ is a translated reversal. Every element over a member of order $4$ of $Q_8$ has square over $r$ and hence fixes only points already fixed by a translated reversal. Conversely each of the $27$ families is fixed by a nonidentity permutation. The $25$ reversal families are conjugate by translations. The map $P$ exchanges the translation lines, indexed by $0,\infty$, and hence the other $2$ families. These types are distinct since an order-$5$ translation cannot fix an entire reversal family, by Proposition \ref{intersections}. \end{proof} We can now count the symmetric completions when the $4$ phases in Proposition \ref{fourentries} are prescribed. Write $K$ for a dephased matrix near $H_5$ and put $$ \pi(K)=(K_{1,2},K_{4,9},K_{7,4},K_{8,3}). $$ We use the representative of $H_5$ displayed in Section \ref{construction}. The indices start at zero. \begin{thm}\label{symmetriccompletions} On each of the $27$ smooth families with a permutation symmetry, the $4$ entries in $\pi$ give real analytic coordinates near $H_5$. Every choice of these entries sufficiently near $\pi(H_5)$ in $\mathbb T^4$ has exactly $27$ distinct nearby labeled completions with a nonidentity permutation symmetry, except on a set of real dimension at most $2$. \end{thm} \begin{proof} It suffices first to check that $d\pi$ is invertible on each of the $27$ tangent spaces. We use logarithms of the entries relative to their values at $H_5$, so that $d\pi$ reads off the same $4$ coordinates. On a real phase space this amounts to using the arguments of the entries as local coordinates on $\mathbb T^4$. Here is the finite calculation. Let $V$ be the matrix whose columns form a basis of the kernel of the dephased Jacobian in Proposition \ref{bounds}, reduced at $w=95$ modulo $101$. Regard each column as a $10$ by $10$ array by restoring its zero first row and column. For an array $X$ write $$ D(X)_{ij}=X_{ij}-X_{i0}-X_{0j}+X_{00}. $$ For a permutation pair $g$, apply $g$ to the indices of each column of $V$. Compute a basis $W_g$ of the kernel of $D(gV)-V$. The $4$ rows of $VW_g$ selected by $\pi$ give a square matrix $A_g$. For both kernels take the nonpivot coordinates in increasing order as the free coordinates, using the pivot convention of Proposition \ref{bounds}. Take the translations $g_{(1,0)},g_{(0,1)}$ and the $25$ reversals given on a block of label $h$ by $j\to-j-b+2ha$, with $a,b\in\mathbb F_5$. For the translations the determinants of $A_g$ are $96,4$ in that order. For the reversals their product is $92$, all modulo $101$. These computations are given in \texttt{entry\_charts.py}. In particular the only array satisfying the tangent equations, the fixed equations and $d\pi=0$ is zero after reduction. The combined equations thus have full column rank in characteristic zero as well. Each fixed tangent space has real dimension $4$ by Theorems \ref{branches} and \ref{reflections}. The inverse function theorem gives one completion on each family for every choice of the $4$ phases in a common neighborhood. By Theorem \ref{fulllocalgroup} this list exhausts the nearby completions with a permutation symmetry. A completion is counted twice only if it lies in a pairwise intersection of the families. Each intersection has dimension at most $2$ by Proposition \ref{intersections} and $T_L\cap T_M=0$. Its image under the coordinate chart on either family has the same dimension. Taking the union over all pairs gives the stated exceptional set. \end{proof} Do the smooth families of Section \ref{families} exhaust the components in orders $10$ and $14$? To answer this we return to the quaternionic structure used to construct $F_0$. In that construction we imposed both quaternionic symmetry and reversal. We now impose just the quaternionic symmetry and look at how its components meet. Use the symmetric labels $s,-s$ and $t,-t$ and the normalized matrix $U_0$ from the proof of Theorem \ref{reflections}. Such coordinates exist when the cross-ratio is a square, by Theorem \ref{branches}. Recall the matrices $$ J=\begin{pmatrix}0&I_p\\-I_p&0\end{pmatrix},\qquad R=diag(P,P),\qquad Pe_a=e_{-a}. $$ The matrices $J$ and $R$ commute. Both $J$ and $JR$ are real signed permutation matrices with square $-I$, and their underlying permutations, denoted by $\sigma$, have no fixed indices. For either choice $D=J,JR$ we have $U_0D=D\bar U_0$. Denote the induced involution on dephased matrices by $\tau$ for $J$ and by $\tau r$ for $JR$. In complex logarithmic coordinates $U_{ij}=(U_0)_{ij}\exp X_{ij}$, their actions are holomorphic. In each case they send $X_{ij}$ to $-X_{\sigma i,\sigma j}$ modulo row and column terms. \begin{lem}\label{quaternionicfixed} Suppose the complexified dephased germ has dimension $p-1$. For each of the involutions $\tau,\tau r$, its fixed locus is the support of a local complete intersection of dimension $p-1$. In particular its irreducible components are connected in codimension $1$. \end{lem} \begin{proof} Fix $D$ and work in the complex symplectic group defined by $U^tDU=D$. This is smooth of dimension $p(2p+1)$. Write $V=(U^{-1})^t$, so $V=DUD^{-1}$ on the group. The complexified flatness equations for a normalized matrix are $$ m_{ij}(U)=U_{ij}V_{ij}-\frac{1}{2p}=0 . $$ Indeed, at a solution they prescribe $V_{ij}=1/(2pU_{ij})$, and $UV^t=I$ gives exactly the ordered row equations. The array $m$ is invariant under simultaneous permutation by $\sigma$ of its row and column indices, since $V=DUD^{-1}$ interchanges the entries in each pair up to the same sign. Its row and column sums vanish by $UV^t=V^tU=I$. There are $2p^2$ entry orbits, with $p$ row orbits and $p$ column orbits. The sums impose $2p-1$ independent linear conditions on invariant arrays. Indeed row and column sums with equal totals can be prescribed on all arrays, and averaging gives the invariant prescriptions. Thus exactly $$ e=2p^2-2p+1 $$ coordinates suffice for the target of the equations. We remove the diagonal row and column scalings inside the group. They have $2p$ independent parameters, with factors on paired indices reciprocal. To see that these are all the lost directions, take a scaling variation $\delta U_{ij}=(a_i+b_j)(U_0)_{ij}$. Differentiating $V=DUD^{-1}$ gives $$ a_i+a_{\sigma i}+b_j+b_{\sigma j}=0 $$ for every $i,j$. Adding opposite constants to $a$ and $b$ makes both paired sums zero. A smooth local slice transverse to the scaling orbits therefore embeds by dephasing, by the rank theorem. Its dimension is $p(2p+1)-2p$. The flat part of the slice gives precisely the fixed germ. In fact a fixed logarithmic class has the representative obtained by averaging $X_{ij}$ with $-X_{\sigma i,\sigma j}$. For this representative $X_{\sigma i,\sigma j}=-X_{ij}$. Flatness and the identity at $U_0$ then give $V=DUD^{-1}$ entry by entry. Conversely a flat symplectic matrix has this logarithmic symmetry. The slice consequently defines the fixed locus by $e$ equations in a smooth space of dimension $e+p-1$. Every component has dimension at least $p-1$, and the dimension of the full germ supplies the opposite bound. The equations have height $e$ and form a regular sequence in the regular local ring. Hartshorne's connectedness theorem \cite{hartshorne} now applies. In the graph whose vertices are the irreducible components, joining $2$ vertices when their intersection has dimension $p-2$, every vertex can be reached from every other. \end{proof} For $p\geq5$, the families of Section \ref{families} meet in dimension at most $(p-1)/26$ a correction $t^{k-5}b$ changes the coefficient of degree $k$ by $dR_6(v)b$ and leaves all preceding coefficients fixed. Rows $67,69,74,75$ and columns $0,2,3,4$ give a minor invertible modulo $101$, in the indexing of Proposition \ref{bounds}. Set the other coordinates of $b$ to zero. Solve these $4$ equations at each step in $\mathbb Q(w)$ and substitute in \emph{all} the ordered row equations. The program \texttt{symmetry\_jets.py} checks that every residual coefficient through degree $14$ is zero. It also checks for each full logarithmic coefficient $X_k$ that $\bar X_k=(-1)^{k+1}X_k$. Replacing $t$ by $it$ therefore gives real phase coefficients to the asserted order. \end{proof} For these prescribed free coordinates there is a single convergent candidate to test. Substitute $u(t)=t(v+y)$, with $y$ supported on the $4$ correction columns, and divide the selected residuals by $t^6$. Their derivative in $y$ at $(0,0)$ is the invertible minor just used. The implicit function theorem gives a unique analytic $y(t)$ with $y(0)=0$. It gives an actual deformation precisely if the other residuals vanish identically along it. The finite calculation proves their vanishing to the indicated order only. Whether any actual deformation through $H_5$ escapes all the conjugating and ordinary fixed loci remains open, as does the full decomposition up to symmetry. At $H_7$ the connectedness argument gives $14$ additional complex components. Do their real loci also attain the full dimension $6$? \section{Configurations of 6 distinct points}\label{sixsec} We now take $K=F_3$. For distinct input labels, \cite{arith} asks whether the resulting matrices are always isolated when the outer Fourier order is an odd prime. The experiments there used random configurations in outer orders 3, 5 and 7, with $p\leq17$. We can settle the following finite range exhaustively. \begin{thm}\label{six} For each prime $5\leq p\leq31$, every McNulty-Weigert matrix with outer matrix $F_3$ and $6$ distinct projective labels has defect zero. In particular all these matrices of order $3p$ are isolated. \end{thm} \begin{proof} By projective invariance of the defect \cite{arith}, we may send the ordered triple of source points to $(\infty,0,1)$. The 3 target labels then run through all ordered triples of distinct elements of $\mathbb F_p-\{0,1\}$. We keep the block order throughout. Write $u_c=(1,2c)$ for finite $c$ and $u_\infty=(0,1)$. We need roots of 2 different orders here. Put $w_3=e^{2\pi i/3}$ and $w_p=e^{2\pi i/p}$. For $x\in\mathbb F_p^2$ set \[ c_{ij}(x)=\frac{\det(x,u_{t_j})\det(u_{s_i},x)}{\det(u_{s_i},u_{t_j})}, \qquad \Lambda_{ij,kl}=\frac{w_3^{(i-k)(j-l)}}{3}, \qquad \Theta_x=diag(w_p^{c_{ij}(x)}). \] Taking the eigenspace for eigenvalue $1$ in Lemma \ref{berezinblocks} gives the sector formula of \cite{arith}, namely \[ d(H)=\sum_{x\in\mathbb F_p^2}\dim\ker(\Lambda-\Theta_x)-(6p-1). \] The contribution at zero is 5, since $F_3$ has defect zero. On the $6$ selected lines each point other than the origin contributes at least one, from the phases of the corresponding basis. These contributions account for $5+6(p-1)=6p-1$. Thus we need to certify dimension 8 for the image of $\Lambda-\Theta_x$ for $x\ne0$ on the $6$ selected lines, and dimension $9$ for $x$ off those lines. One representative of each direction suffices. Indeed, multiplying $x$ by $b\ne0$ multiplies all $c_{ij}$ by $b^2$, and the cyclotomic Galois automorphism sending $w_p$ to $w_p^{b^2}$ can be chosen to fix $w_3$. For each auxiliary prime $p'$ in the table choose the least integers greater than one of orders $3$ and $p$ modulo $p'$ as the images of $w_3,w_p$. If a minor does not vanish after reduction, it cannot vanish over $\mathbb Q(w_3,w_p)$. The program \texttt{distinct\_points.py} uses Gaussian elimination on the 9-dimensional sectors. When a reduction falls short, the program checks the remaining sectors at the next prime. Each sector reaches its required dimension at one of the listed primes. \begin{center} \begin{tabular}{rrrr} $p$ & ordered configurations & directions across configurations & primes $p'$ used\\ \noalign{\vskip 2pt} \hline \noalign{\vskip 2pt} 5 & 6 & 36 & 1531\\ 7 & 60 & 480 & 2143\\ 11 & 504 & 6048 & 3301\\ 13 & 990 & 13860 & 4057\\ 17 & 2730 & 49140 & 5101, 5407\\ 19 & 4080 & 81600 & 5701, 6043\\ 23 & 7980 & 191520 & 7039, 7177\\ 29 & 17550 & 526500 & 9049, 9397\\ 31 & 21924 & 701568 & 9859, 10789 \end{tabular} \end{center} The middle columns are $(p-2)(p-3)(p-4)$ and $(p+1)(p-2)(p-3)(p-4)$, respectively. This exhausts the normalized ordered configurations and all their projective directions. The sector formula now gives defect zero in each case. \end{proof} There is also a test in characteristic zero for the directions off the $6$ selected lines. It records a restriction on the exponents of any sector that could contribute to the defect. \begin{prop}\label{sectortest} Fix $p\geq5$ and a direction $x$ off the selected lines. If $\ker(\Lambda-\Theta_x)\ne0$, some nonempty subset of the $9$ exponents $c_{ij}(x)$ has sum zero in $\mathbb F_p$. \end{prop} \begin{proof} Represent the exponents by integers in $\{0,\ldots,p-1\}$ and form $$ P(T)=\det\big(\Lambda-diag(T^{c_{ij}(x)})\big). $$ Reduce modulo $T^p-1$ to degree less than $p$, writing the remainder as $\sum_{j=0}^{p-1} b_jT^j$. Its coefficients belong to $\mathbb Q(w_3)$. The minimal polynomial of $w_p$ over this field is $1+T+\cdots+T^{p-1}$, since $[\mathbb Q(w_{3p}):\mathbb Q(w_3)]=p-1$. Thus $P(w_p)=0$ forces all $b_j$ to coincide. But $P(1)=\det(\Lambda-I)=0$, so their common value must be zero. In the determinant expansion, choosing no diagonal powers contributes $\det\Lambda\ne0$ to $b_0$. Every other term contributing to $b_0$ selects a nonempty subset of exponents with sum zero modulo $p$. At least one such subset is therefore needed. \end{proof} For example, take sources $0,1,2$ and targets $4,5,6$. At $x=u_3$ the exponents are the reductions of the positive rational numbers $2(t_j-3)(3-s_i)/(t_j-s_i)$. Multiplication by $30$ gives the integers $$ 45,72,90,40,60,72,30,40,45 . $$ Their sum is $494$. Suppose $p>494$. At $u_3$ every nonempty subset has sum different from zero modulo $p$. Each subset therefore gives a nonzero homogeneous quadratic in $x$ with at most $2$ projective zeros. The $9$ individual exponents vanish only on the selected lines. For this configuration and every prime $p>494$, at most $2(2^9-1-9)=1004$ directions off those lines can contribute to the defect. For $N=3$, can one replace the finite list of certificates in Theorem \ref{six} by a proof valid for every prime $p\geq5$? For $K=F_N$ with $N$ any odd prime and all $2N$ projective labels distinct, the isolation question of \cite{arith} remains open in general. The sector formula there reduces the stronger claim $d(H)=0$ to eigenvalue multiplicities for matrices of order $N^2$. \section{Repeated labels and Fourier products}\label{repeat} For outer matrix $F_2$, a repeated label means that all sources coincide or all targets coincide. The defect in this case completes the calculation in Theorem \ref{fluxdefect}. We first identify the Fourier factor for an arbitrary outer matrix $K$. Suppose the source list is constant. A projective transformation in $PSL_2(\mathbb F_p)$ can send its common value to $\infty$. Such a transformation acts on all the bases by the same unitary, up to phases and permutations within each basis, and hence preserves the equivalence class of $H_K(s,t)$ by \cite{arith}. All target labels are now finite. With $w=e^{2\pi i/p}$ the entries become $$ H_{ia,jb}=K_{ij}w^{ab}Q_{aj},\qquad Q_{aj}=w^{t_j a^2}. $$ In fact we can give each $Q_{aj}$ any value in $\mathbb T$. To check orthogonality of rows $(i,a),(i',a')$, sum over $b$ first. The sum vanishes if $a\ne a'$. If $a=a'$, the phases cancel and the sum over $j$ gives the orthogonality of the rows of $K$. This is the deformation of a tensor product studied by Di\c t\u a \cite{dita}. The dephased parameters can be read off from the matrix itself. The cross-ratio for rows $(0,a),(0,0)$ and columns $(j,0),(0,0)$ is $$ \frac{Q_{aj}Q_{00}}{Q_{a0}Q_{0j}}. $$ Thus we can vary $(N-1)(p-1)$ independent phases through the given matrix, fixing $Q_{a0}$ and $Q_{0j}$. A constant target list gives the same conclusion by taking the adjoint, since $H_K(s,t)^*=H_{K^*}(t,s)$. Tadej \cite{tadejfour} computes the Berezin spectrum for Fourier matrices and their ordinary Kronecker products. How does the defect vary with the phases of a deformed tensor product? This question was raised in \cite{fourgroup}, and the linear equations are discussed in \cite{book}. For cyclic Fourier factors of coprime orders, we can follow every eigenvalue as the phases vary. Write $w_h=e^{2\pi i/h}$ and $D(h)=\sum_{k=0}^{h-1}\gcd(h,k)$, including $\gcd(h,0)=h$. \begin{thm}\label{twist} Let $L_{ia,jb}=w_N^{ij}w_M^{ab}Q_{aj}$, with $i,j\in\mathbb Z_N$, $a,b\in\mathbb Z_M$ and arbitrary $Q_{aj}\in\mathbb T$. When $N$ and $M$ are coprime, $\Lambda_L$ has the same spectrum, with multiplicities, as $\Lambda_{F_{NM}}$. In particular $d(L)=D(N)D(M)-2NM+1$. \end{thm} \begin{proof} Fix $k\in\mathbb Z_M$ and $l\in\mathbb Z_N$. Consider arrays of the form $$ A_{ia,jb}=w_N^{il}w_M^{bk}Y_{aj}. $$ These spaces give a direct sum over $k,l$ by Fourier expansion in $i,b$. In the rectangle defining $\Lambda_L$, let $i',a'$ and $j',b'$ be the indices summed over. The factors involving $i',b'$ have exponents $i'(l-j+j')$ modulo $N$ and $b'(k-a+a')$ modulo $M$. Summing forces $j'=j-l$, $a'=a-k$ and cancels the factor $1/(NM)$. The resulting operator on $Y$ is $$ (T_{kl}Y)_{aj}=U_{aj}(k,l)Y_{a-k,j-l},\qquad U_{aj}(k,l)=\frac{Q_{aj}Q_{a-k,j-l}}{Q_{a-k,j}Q_{a,j-l}}. $$ Let $O$ run over the orbits of translation by $(k,l)$ in $\mathbb Z_M\times\mathbb Z_N$. On such an orbit the operator is a cyclic shift with the indicated weights. Its characteristic polynomial is $z^{|O|}-\prod_{(a,j)\in O}U_{aj}(k,l)$. Thus for arbitrary orders we have $$ \det(zI-\Lambda_L)= \prod_{k,l}\prod_O\left(z^{|O|}-\prod_{(a,j)\in O}U_{aj}(k,l)\right). $$ When $M,N$ are coprime, the orders of $k,l$ are coprime as well. Each orbit is then the rectangle $(a+\langle k\rangle)\times(j+\langle l\rangle)$. Shifting either coordinate permutes the rectangle, so each product of weights equals $1$. This is exactly the polynomial at $Q_{aj}=1$, where $L=F_N\otimes F_M$ is equivalent to $F_{NM}$. Each rectangle contributes one eigenvalue $1$. There are $\gcd(M,k)\gcd(N,l)$ rectangles, giving $D(M)D(N)$ such eigenvalues in all. Subtracting the $2NM-1$ phases gives the defect. \end{proof} In particular, every cyclic partition function $Z_r$ is constant along these coprime deformations. By Theorem \ref{phasehessian} the full real phase Hessian also has constant spectrum. For orders with a common factor the orbit formula explains how the defect can drop as the phases vary. \begin{cor}\label{generictwist} Let $m_k$ be the order of $k$ in $\mathbb Z_M$ and $n_l$ the order of $l$ in $\mathbb Z_N$. Outside a finite union of proper closed subsets of the parameter torus, the dephased defect is $$ d(L)=\sum_{\gcd(m_k,n_l)=1}\frac{MN}{m_kn_l}-2MN+1 . $$ In particular for $N=M=p$ prime, both the generic defect and the generic real local dimension are $(p-1)^2$. \end{cor} \begin{proof} An orbit contributes one eigenvalue $1$ precisely when its product of weights equals $1$. For coprime orders the orbit is a rectangle, with product $1$ identically. Otherwise $O-(k,0)$ and $O-(0,l)$ are disjoint from $O$. Indeed $(k,0)$ lies in $\langle(k,l)\rangle$ exactly when the congruences $h=1\ (m_k)$, $h=0\ (n_l)$ have a common solution. In the product of weights the numerator thus uses the entries on $O$ twice, while the denominator uses entries outside $O$. This is a nonconstant monomial in the phases. The equation setting it equal to $1$ cuts out a proper closed subset. Removing these finitely many subsets leaves exactly the orbits counted in the formula. For equal prime orders the surviving pairs are those with $k=0$ or $l=0$. The multiplicity of $1$ is $p^2+2p(p-1)$, giving defect $(p-1)^2$. The same number of independent dephased phases varies freely in the Fourier product, so the dimension bound is attained. \end{proof} \begin{prop}\label{outertwo} Let $p$ be an odd prime and let $H=H_{F_2}(s,t)$ have order $2p$. If $s_0=s_1$ or $t_0=t_1$, then $d(H)=2(p-1)$ and $H$ belongs to a dephased affine family of dimension $p-1$. For all admissible lists, $H$ is isolated exactly when its $4$ labels are distinct and their cross-ratio is not a square. \end{prop} \begin{proof} For a constant source list take $N=2$, $M=p$ in Theorem \ref{twist}. We have $D(2)=3$, $D(p)=2p-1$, and hence $$ d(H)=3(2p-1)-4p+1=2(p-1). $$ The independent phases above give the family. Taking the adjoint settles a constant target list. These are all admissible repetitions, since $s_i\ne t_j$ for every $i,j$. For $4$ distinct labels, if the cross-ratio is not a square then the defect is zero by \cite{arith}. If it is a square, Theorem \ref{branches} gives the required families. \end{proof} \section{Master Hadamard matrices}\label{mastersec} The moments $R_m$ in Section \ref{fluxsec} sum over all rectangles. Here we keep the row and column indices of each rectangle. For a master Hadamard matrix in the sense of Definition B, the flux on rows $i,k$ and columns $j,l$ is $e^{2\pi i(x_i-x_k)(y_j-y_l)}$. Its exponent is a product of a row difference and a column difference. This gives a test for a master representative and bears on the isolation question in \cite{bop}. We use the real exponents of \cite{bop} in the construction of Avan, Fonseca, Frappat, Kulish, Ragoucy and Rollet \cite{avan}. Dephasing at $(i_0,j_0)$ replaces $x_i,y_j$ by $x_i-x_{i_0},y_j-y_{j_0}$. The same observation applies to rectangular matrices. \begin{lem}\label{minor} Choose any list of ordered pairs of rows and any list of ordered pairs of columns. Form the array of their cross-ratios \[ u_{ik;jl}=\frac{H_{ij}H_{kl}}{H_{il}H_{kj}}. \] If all these numbers are $m$-th roots of unity and the matrix has a master representative, then every $2\times2$ minor of their exponent matrix vanishes modulo $m$. \end{lem} \begin{proof} For a master representative the array of exponents has the real lift \[ m(x_i-x_k)(y_j-y_l). \] Its entries are integers and the array is an outer product over the reals. Reduce its vanishing minors modulo $m$. Row and column phases cancel from each ratio, and permutations simply relabel the pairs. \end{proof} For a whole dephased Butson matrix one can recover a cyclic Fourier submatrix. \begin{prop}\label{cyclic} A dephased square Hadamard matrix with entries in the $N$-th roots has a master representative if and only if it is a submatrix of $F_N$ up to row and column permutations. In particular its order is at most $N$. \end{prop} \begin{proof} A master representative gives the dephased integer lift $N(x_i-x_0)(y_j-y_0)$ of rank at most one. An integer matrix of rank one is an outer product of integer vectors. Indeed, choose a column containing an entry different from zero and divide by the gcd of its entries to obtain a primitive vector. Every other column is a rational multiple of that vector, and Bezout's identity makes the multiple integral. Reducing the 2 integer vectors modulo $N$ gives the row and column indices of $F_N$. Orthogonality excludes repetitions in either list. The zero lift in the square Hadamard case has order one. Conversely every such Fourier submatrix has the required exponential form. \end{proof} This excludes the isolated matrix in $B(13,6)$ of Hall and Nicoara \cite{hn13} and the defect-zero matrices in $B(19,6)$ from \cite{prime} as possible master representatives. Proposition \ref{cyclic} also gives a way to formulate the isolation question in the Butson case. Which square Hadamard submatrices of $F_N$ are isolated among all Hadamard matrices of their order? The tensor product with a Fourier matrix imposes an additional arithmetic condition on its other factor. \begin{lem}\label{coprimemaster} Let $K$ be a square Hadamard matrix and $m\geq2$. The matrix $K\otimes F_m$ has a master representative if and only if $K$ is equivalent to a Hadamard submatrix of some $F_l$ with $\gcd(l,m)=1$. \end{lem} \begin{proof} Dephase $K$ so that its 1st row and column consist of ones, and put $w=e^{2\pi i/m}$. For any entry $q=K_{ij}$ with $i,j\ne0$, take rows $(0,0),(i,0),(0,1)$ and columns $(0,0),(j,0),(0,1)$ of the tensor product. They give the corner $$ \begin{pmatrix}1&1&1\\1&q&1\\1&1&w\end{pmatrix}. $$ If the tensor product has a master representative, dephasing this corner gives a real lift of its arguments in turns, of rank at most $1$. In the lower right square the lift has the form $$ \begin{pmatrix}u&b\\c&h+1/m\end{pmatrix}, \qquad e^{2\pi i u}=q,\qquad b,c,h\in\mathbb Z. $$ Its determinant gives $u=mbc/(mh+1)$. Thus the order of $q$ divides $|mh+1|$, which is prime to $m$. Taking the least common multiple of the entry orders shows that $K$ has entries among the $l$-th roots for some $l$ prime to $m$. Restriction to the rows and columns with inner index zero gives a master representative up to equivalence for $K$ itself. Proposition \ref{cyclic} puts $K$ inside $F_l$. Conversely, if $K$ is equivalent to such a submatrix, its tensor product with $F_m$ is equivalent to a submatrix of $F_l\otimes F_m$. By the Chinese remainder theorem this is a submatrix of $F_{lm}$ up to permutations, so it has a master representative. \end{proof} \begin{thm}\label{nonmaster} Let $p$ be an odd prime. The matrix $H_K(s,t)$ has a master representative exactly when both label lists are constant and $K$ is equivalent to a Hadamard submatrix of some $F_l$ with $\gcd(l,p)=1$. For $K=F_N$ the criterion is that both lists be constant and $\gcd(N,p)=1$. In that case $H_{F_N}(s,t)$ is equivalent to $F_{Np}$. \end{thm} \begin{proof} Suppose $t_j\ne t_{j'}$. Choose a single block row $i$ and send $s_i$ to $\infty$ by a projective change in $PSL_2(\mathbb F_p)$ as in Section \ref{repeat}. In the new coordinates every target label is finite. The entries of this block row are $K_{ij}w^{t_j a^2+ab}$ with $w=e^{2\pi i/p}$. Choose inner rows $a=0,1,-1$ and columns $(j,0),(j,1),(j',0)$. Dephasing these $3$ rows and columns gives $$ \begin{pmatrix} 1&1&1\\ 1&w&w^\delta\\ 1&w^{-1}&w^\delta \end{pmatrix},\qquad \delta=t_{j'}-t_j. $$ The exponent minor is $2\delta\ne0$ in $\mathbb F_p$, contrary to Lemma \ref{minor}. If the source list varies, take the adjoint, which exchanges the lists and preserves the existence of a master representative. If both lists are constant, send the common source to $\infty$ and denote the common target by $c$. Every block is a scalar multiple of $diag(w^{ca^2})F_p$, so $H_K(s,t)$ is equivalent to $K\otimes F_p$. Lemma \ref{coprimemaster} proves the first assertion. For $N\geq2$, the matrix $F_N$ has a cross-ratio of order $N$, whereas all cross-ratios of a submatrix of $F_l$ are $l$-th roots. Thus $N\mid l$ is necessary, and we may take $l=N$ whenever $\gcd(N,p)=1$. The final equivalence follows from the Chinese remainder theorem, and for $N=1$ it holds directly. \end{proof} In particular, for $N>1$ every McNulty-Weigert matrix in this construction with a master representative belongs to a dephased family of dimension at least $(N-1)(p-1)$ by Section \ref{repeat}. Thus this class contains no isolated master Hadamard matrices for $N>1$. We next apply the test to regular square matrices of order $7$ and regular partial matrices of width $11$. \begin{prop}\label{seven} Up to equivalence, the only regular master Hadamard matrix of order $7$ is $F_7$. Also no member of the $4$-parameter $5$-row family $H(t)=[F_5\mid diag(1,t_1,t_2,t_3,t_4)V]$ of \cite{eleven} has a master representative. \end{prop} \begin{proof} The classification \cite{seven} gives $F_7$, the Petrescu family, and its conjugate up to equivalence. Complex conjugation preserves the master property. In the dephased representative $R_7^q$ from that classification, rows $1,3,4$ and columns $1,2,3$ (here numbered from one) give the following submatrix, independent of $q$: \[ \begin{pmatrix}1&1&1\\1&w&w^4\\1&w^2&w^3\end{pmatrix}, \qquad w=e^{2\pi i/6}. \] The exponent minor of its lower right corner is $3-8=-5$ modulo $6$. In the 5-row example, take the 1st 3 rows and 1st 3 columns of the block $V$, canceling the row phases by dephasing. With $w=i$ the corresponding exponent minor is $2\cdot2-3\cdot3=-5$ modulo $4$. Both exclusions follow from Lemma \ref{minor}, and $F_7$ is a master Hadamard matrix. \end{proof} For regular matrices of order $8$, the classification in \cite{seven} gives explicit families. Which members pass the minor test of Lemma \ref{minor}, and which of those admit a master representative? In order $4$ the test leads to a complete answer for the standard family. In the notation of \cite{bop}, the matrix $H(q)$ of Proposition \ref{fourfamily} is $F_{2,2}^q$, with $q\in\mathbb T$ and rows $(1,1,1,1)$, $(1,-1,1,-1)$, $(1,q,-1,-q)$ and $(1,-q,-1,q)$. \begin{prop}\label{four} The matrix $F_{2,2}^q$ has a master representative exactly when $q$ is a root of unity whose order is divisible by $4$. \end{prop} \begin{proof} For the middle $2$ rows and columns the dephased entries form the matrix $$ \begin{pmatrix}-1&1\\q&-1\end{pmatrix}. $$ In a master representation choose lifts of their arguments in turns, giving a real matrix of rank one. Its diagonal entries are half-integers and its upper right entry is an integer. That integer cannot be zero, since neither diagonal entry is zero. The lower left entry is the quotient of that product by the integer. Thus it is rational and $q$ has finite order. Put $m=\operatorname{lcm}(2,\operatorname{ord}(q))$. The exponent minor modulo $m$ is $(m/2)^2$. Lemma \ref{minor} implies $4\mid m$, hence $4\mid\operatorname{ord}(q)$. Conversely, take $N=\operatorname{ord}(q)$ divisible by $4$, and use $q$ as the primitive $N$-th root of unity defining $F_N$. This choice permutes the rows of the standard Fourier matrix. Choose row indices $0,N/2,1,1+N/2$ and column indices $0,1,N/2,1+N/2$. Evaluating $q^{ab}$ gives the displayed $4$ rows, because $(N/2)^2$ is a multiple of $N$. \end{proof} The conjecture on isolated master Hadamard matrices in \cite{bop} asks whether the Fourier matrices $F_p$, for $p$ prime, exhaust the isolated square master matrices. For a Butson matrix the level $m$ is the least common multiple of the entry orders after dephasing the first row and column to ones. It is invariant under equivalence, since it is also the least common multiple of the orders of the rectangle fluxes. Proposition \ref{cyclic} puts a master matrix of level $m$ in the form $$ H_{ab}=w^{ab},\qquad a\in A,\quad b\in B,\quad w=e^{2\pi i/m}, $$ where $A,B\subset\mathbb Z_m$. Translating either index set changes only row or column phases. A complete cycle of columns gives the following deformation. \begin{lem}\label{primecycle} Suppose that $B$ contains a coset $C$ of the subgroup of prime order $p$ in $\mathbb Z_m$. If $B=C$, then $H$ is equivalent to $F_p$. If $B$ strictly contains $C$, then $H$ belongs to a dephased affine family of dimension at least $p-1$. \end{lem} \begin{proof} Write $C=b_0+(m/p)\mathbb Z_m$ and $w_p=e^{2\pi i/p}$. On these columns row $a$ reads $$ w^{ab_0}\big(1,w_p^a,\ldots,w_p^{(p-1)a}\big). $$ Orthogonality of the columns with indices $b_0,b_0+m/p$ gives $\sum_{a\in A}w_p^a=0$. Since $1+X+\cdots+X^{p-1}$ is the minimal polynomial of $w_p$, the $p$ residue classes occur equally often among the rows. If $B=C$, squareness gives one row per class and the displayed rows give $F_p$. Otherwise choose the first column outside $C$ and translate the first row index to zero. For phases $t_0=1,t_1,\ldots,t_{p-1}\in\mathbb T$, multiply row $a$ on the columns in $C$ by $t_{a\bmod p}$. For $a,a'$ in the same residue class the phases cancel in their scalar product. For different residues the contribution of $C$ was already zero, since $$ \sum_{b\in C}w^{(a-a')b} =w^{(a-a')b_0}\sum_{j=0}^{p-1}w_p^{(a-a')j}=0. $$ The first row and column are fixed. Each free phase occurs on its own nonempty set of entries, so the $p-1$ parameters are independent. \end{proof} At prime power level we can say more about the size of the family. Fan, Fan and Shi \cite{ffs} describe the index sets of Hadamard submatrices of $F_{p^k}$ by their base-$p$ digits. We give the short counting argument for both index sets, since the order of the digits tells us which phases can vary together. \begin{prop}\label{powerfamily} Let $p$ be prime. Every square Hadamard submatrix of $F_{p^k}$ of order greater than one has order $p^r$ for some $1\leq r\leq k$. Up to equivalence, it belongs to a dephased affine family through $F_{p^r}$ of dimension $$ d(F_{p^r})=1+p^{r-1}\big(r(p-1)-p\big), $$ the defect of the Fourier matrix of its own order. \end{prop} \begin{proof} For the row set $A$, let $I$ be the set of positions where $2$ row indices first differ when their digits are read from low to high, starting at position zero. If $|I|=r$, there are at most $p^r$ rows. At a position outside $I$ the preceding digits determine the next digit. For each $u\in I$ row orthogonality gives a zero of the column polynomial $P_B(X)=\sum_{b\in B}X^b$ at a primitive $p^{k-u}$-th root, using representatives $0\leq bj$ are integers. The diagonal terms give the displayed power of $w_p$. Each remaining term has $i