\documentclass[11pt,a4paper]{article} \usepackage[a4paper,margin=25mm]{geometry} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{lmodern,microtype,amsmath,amssymb,amsthm,booktabs} \usepackage[pdfusetitle,colorlinks=true,linkcolor=black,citecolor=magenta,urlcolor=black]{hyperref} \urlstyle{same} \newtheorem{thm}{Theorem}[section] \newtheorem{prop}[thm]{Proposition} \newtheorem{lem}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary} \newtheorem{defn}[thm]{Definition} \newtheorem{question}[thm]{Question} \newtheorem{introthm}{Theorem} \renewcommand{\theintrothm}{\Alph{introthm}} \theoremstyle{remark} \newtheorem{rem}[thm]{Remark} \setlength{\parskip}{1pt} \setlength{\emergencystretch}{2em} \raggedbottom \setcounter{tocdepth}{1} \title{Partial Hadamards and the Lin-Hyra near-quadratic regime} \author{Codex, Claude and Banica} \date{} \begin{document} \maketitle \begin{abstract} We study the asymptotic number of rectangular real Hadamard matrices, following Lin's near-quadratic counting theorem \cite{lin}, released in the Hyra repository \cite{hyra}. For matrices with $M$ rows and width $N$ divisible by $4$, we extend his formula to $N\ge C_*M^2\log\log\log N$, for a sufficiently large absolute constant $C_*$, and obtain the next logarithmic correction $-\binom M4/(2N^2)$ with remainder $O(M^{11/2}/N^3)$. The main estimate bounds the largest probability of any prescribed row Gram matrix. Its proof combines $2$ applications of H\"older's inequality with a one-dimensional concentration estimate and an induction on the height. Splitting the columns then controls the exceptional orthogonal matrices while retaining the orthogonality normalization. The argument uses Lin's local Fourier estimates and good-matrix construction. Blackthorn's sequential construction also gives lower bounds throughout the superquadratic range and a corrected subset count at sufficiently large fixed quadratic width; a matching full-count upper bound there remains open. \end{abstract} \begingroup \color{magenta}\hypersetup{linkcolor=magenta} \setlength{\parskip}{0pt} \addtolength{\baselineskip}{1pt} \renewcommand{\addvspace}[1]{} \tableofcontents \endgroup \section*{Introduction} \phantomsection\addcontentsline{toc}{section}{Introduction} We consider the set of rectangular real Hadamard matrices \[ B_M(N,2)=\{H\in\{-1,1\}^{M\times N}:HH^t=N1_M\}, \] where $1_M$ is the identity matrix. All matrices are labelled: row and column permutations, and row and column sign changes, are counted separately. We let the width $N$ tend to infinity through positive multiples of $4$, while the height $M$ may vary with $N$. Our aim is to continue the counting questions in \cite{rectangular}. De Launey and Levin \cite{delauney} developed a Fourier approach to this problem. Davis \cite{davis} obtained an expansion in the cubic regime, extending an unpublished estimate of Canfield. Lin \cite{lin} subsequently proved a corrected asymptotic formula in a near-quadratic regime. His manuscript and accompanying files are available in the Hyra repository \cite{hyra}. In the present notation, his main term is \[ F_{M,N}=2^{MN+(M-1)^2}(2\pi N)^{-\frac{M(M-1)}4} e^{-\frac{M(M-1)(2M-1)}{24N}}, \] and his conclusion is $|B_M(N,2)|=(1+o(1))F_{M,N}$ under $N/(M^2\log(2\pi N))\to\infty$. The exponential factor is essential below the cubic scale. The quadratic exponent in this result is already Lin's; our purpose is to reduce its logarithmic separation and refine its error term. The following is our counting result. All logarithms are natural, and the iterated logarithm is used only for sufficiently large $N$. \begin{introthm} There is an absolute constant $C_*>0$ such that \[ \log\frac{|B_M(N,2)|}{F_{M,N}} =-\frac{\binom M4}{2N^2} +O\left(\frac{M^{11/2}}{N^3}\right) \] uniformly as $N\to\infty$, for integers $M\ge1$, $4\mid N$ and $N\ge C_*M^2\log\log\log N$. \end{introthm} In particular, Lin's asymptotic formula holds in this range, including at $N\sim M^2\log\log M$. For growing $M$, the remainder is smaller than the displayed correction by a factor $O(M^{3/2}/N)$. For fixed $M\ge4$, it is $O(N^{-3})$. The coefficient comes from retaining the exact fourth Gaussian moment and controlling fourth row correlations with the weights of sequential sampling. The main new estimate concerns arbitrary Gram matrices. For a uniform $k\times L$ sign matrix $A$, put \[ q_k(L)=\sup_G P(AA^t=G),\qquad E_k(L)=\log q_k(L)+\frac{k(k-1)}4\log L. \] The supremum is over all symmetric matrices, including singular ones. No assertion that the maximum occurs at the orthogonal Gram is needed. \begin{introthm} There are absolute constants $c,C$ such that \[ E_k(L)\le k^2\left[c+\frac{\log(2\gamma)}4 +\frac{\log L}{4}\left(\frac{9k^2}L\right)^\gamma\right] +C\gamma^{12}\log L \] for every real $\gamma\ge1$ and integers $k\ge1$, $L\ge9k^2$. \end{introthm} Choosing $\gamma$ of order $\log\log L$ gives \[ E_k(L)\le\frac{k^2}4\log\log\log L+O(k^2) +O((\log\log L)^{12}\log L) \] when $L\ge18k^2$. A column split combines this bound with Lin's exceptional-set tests. The resulting estimate is normalized by the explicit quantity $F_{k,N}$, so it also supplies the lower bound needed for sequential counting without assuming a counting asymptotic. Our use of Lin's estimates is local. His central Fourier expansion and good-matrix construction apply at quadratic width. We combine them directly to obtain the extension estimates used here, rather than invoke his later counting induction under a weaker hypothesis than stated. Macbeath's sumset inequality and the pair case of Hal\'asz's concentration bound enter the scalar moment estimate; we recall these ingredients in the proof. The constants are effective but very large, and we do not attempt to optimize numerical thresholds. Ferber, Jain and Zhao \cite{fjz} obtained the first nontrivial upper bound for the number of square Hadamard matrices using Hal\'asz-type concentration inequalities. Blackthorn \cite{blackthorn} obtains a subquadratic exponential upper bound and also constructs large partial systems by sequential sampling. Our triple-logarithmic counting theorem does not use that construction. Combining it with our local expansion nevertheless gives additional lower bounds: for $M\to\infty$ and $N\ge C_*M^2$, a subset of $B_M(N,2)$ has size \[ (1+o(1))F_{M,N}e^{-\binom M4/(2N^2)}. \] In particular, $|B_M(N,2)|\ge(1-o(1))F_{M,N}$ whenever $N/M^2\to\infty$. These statements cover widths outside the new full counting range. At fixed sufficiently large $N/M^2$, a matching upper bound for the full count remains open. The paper is organized as follows. Sections 1--3 recall the Fourier representation, refine the central expansion and give the good-matrix estimates. Sections 4--6 prove the Gram probability bound. Section 7 controls exceptional orthogonal matrices by splitting the columns, and Section 8 proves the counting formula. Section 9 gives the additional lower bounds using Blackthorn's construction. Section 10 gives exact computational checks and records the remaining quadratic-scale upper-bound question. \section{Rectangular matrices and their extensions} A square sign matrix with orthogonal rows is a Hadamard matrix. Rectangular ones are partial Hadamard matrices, or Butson matrices of level $2$. Adjoining one row turns the counting problem into a question about sign vectors in an orthogonal complement. For $H\in B_k(N,2)$, let \[ R(H)=|\{x\in\{-1,1\}^N:Hx=0\}|. \] Multiplying each column by its first entry makes the first row the all-$1$ row. We write $\mathbb I$ for the all-$1$ matrix of the required size. Each normalized matrix has exactly $2^N$ preimages under this normalization. The extension count is unchanged by column sign changes. We use $E$, $V$ and $P$ for expectation, variance and probability, respectively. The sequential probability law introduced later is denoted by $\mathcal Q$. The deterministic quantity $V_k$ below is an extension main term, while $V(X)$ denotes the variance of a random variable $X$. All logarithms are natural unless a base is displayed. Brackets $[x]$ denote the integer part of $x$. Let $c_1,\ldots,c_N\in\{-1,1\}^k$ be the columns of a normalized matrix. The relevant lattice and characteristic product are \[ \Lambda_k^*=\left\{\frac\pi2 a:a\in\mathbb Z^k, \ \sum_i a_i\text{ is even}\right\}, \qquad \Phi_H(\theta)=\prod_{j=1}^N\cos(c_j\cdot\theta). \] Let $\mathcal F_k$ be the Voronoi cell of $\Lambda_k^*$ at the origin. Its volume is $2(\pi/2)^k$, and the ball of radius $k^{-1/2}$ is contained in $\mathcal F_k$. \begin{prop}\label{fourier} For a normalized $H\in B_k(N,2)$ with $4\mid N$, we have \[ R(H)=2^N\,\frac12\left(\frac2\pi\right)^k \int_{\mathcal F_k}\Phi_H(\theta)\,d\theta, \] and the same identity with integrand $\prod_j\cos(c_j\cdot\theta-iv_j)$ counts extensions with weight $e^{x\cdot v}$, for every $v\in\mathbb R^N$. \end{prop} \begin{proof} Fourier detection of the integer equations $Hx=0$ gives \[ 2^{-N}\sum_{Hx=0}e^{x\cdot v} =(2\pi)^{-k}\int_{[-\pi,\pi]^k} \prod_j\cos(c_j\cdot\theta-iv_j)\,d\theta. \] If $\Delta=\pi a/2\in\Lambda_k^*$, then $c_j\cdot\Delta$ is an integer multiple of $\pi$. Since the first row is $\mathbb I$ and the other rows have sum zero, the product of the cosine sign changes is \[ (-1)^{\sum_j(c_j\cdot\Delta)/\pi} =(-1)^{Na_1/2}=1. \] Thus the integrand is $\Lambda_k^*$-periodic. There are $2^{2k-1}$ fundamental cells in $[-\pi,\pi]^k$, which gives the stated factor. \end{proof} The universal contribution to a single extension is \[ V_k=2^N2^{2k-1}(2\pi N)^{-k/2}e^{-\frac{k^2}{4N}}. \] The identities \[ \sum_{kk^{-1/2}\}$. Set $J_k=\max\{0,\lceil\log_2k\rceil-1\}$ and \[ \mathcal D_A=\{\theta\in\mathcal D_k:\mu(\theta)\ge1/2\}, \] \[ \mathcal D_p=\{\theta\in\mathcal D_k:\mu(\theta)<1/2, \ 2^{-p-1}<\sigma(\theta)^2\le2^{-p}\}, \qquad 1\le p\le J_k. \] These sets cover $\mathcal D_k$. Indeed, if $\mu<1/2$, the nearest point of the grid $(\pi/2)\mathbb Z^k$ is unique and belongs to $\Lambda_k^*$. Hence $\sigma=r$ and $\sigma^2<1/2$, as follows by writing the displacement from that grid point coordinate by coordinate and using $\cos(2u)\le e^{-2u^2}$ for $|u|\le\pi/4$. Choose maximal separated sets $\mathcal N_A\subset\mathcal D_A$ and $\mathcal N_p\subset\mathcal D_p$, with pairwise distances strictly larger than \[ \eta_A=\frac1{16\sqrt k},\qquad \eta_p=\frac{3\cdot2^{-p}}{64\sqrt k}. \] They cover their respective sets within the indicated distances. Lin's elementary grid count gives $|\mathcal N_A|,|\mathcal N_p|\le(200k^2)^k$. Define \[ \tau_p=\min\{2,48\cdot2^{-p}\},\qquad G_\tau(\theta,H)=\sum_j\min\{1-\cos(2c_j\cdot\theta),\tau\}. \] The following is precisely the good set used below. \begin{defn}\label{good} A $k\times N$ sign matrix belongs to $\mathcal L_k(N)$ when \[ G_2(\theta,H)\ge\frac N4,\qquad G_{\tau_p}(\theta',H)\ge\frac{3N}{16}2^{-p} \] for every $\theta\in\mathcal N_A$, every $\theta'\in\mathcal N_p$, and every $1\le p\le J_k$. \end{defn} The tests are invariant under column sign changes. Their failure events have a useful form before conditioning on orthogonality. \begin{lem}\label{tests} Every failure in Definition \ref{good} is contained in an event \[ \sum_{j=1}^N f(c_j)\le\frac{N E(f)}2, \qquad 0\le f\le1,\qquad E(f)\ge\frac1{128}, \] where the expectation is for a uniform sign column. The number of tests through height $M\ge2$ is at most $K_M=M(1+\log_2M)(200M^2)^M$. \end{lem} \begin{proof} On $\mathcal D_A$, take $f(v)=(1-\cos(2\theta\cdot v))/2$. Its mean is $\mu(\theta)/2\ge1/4$. On a shell take $f(v)=\min\{1-\cos(2\theta\cdot v),\tau_p\}/\tau_p$. Write $\theta=\omega+\beta$, where $\omega\in\Lambda_k^*$ is the nearest grid point and $\|\beta\|=\sigma$. For $X=1-\cos(2\beta\cdot v)$, we have \[ E(X)\ge\sigma^2,\qquad E(X^2)\le12\sigma^4. \] If $p\le4$, the truncation is inactive. If $p\ge5$, then \[ E(\min\{X,\tau_p\})\ge E(X)-\frac{E(X^2)}{\tau_p} \ge\frac34 E(X)>\frac38 2^{-p}. \] The same lower bound holds when $p\le4$. Dividing by $\tau_p$ gives $E(f)\ge1/128$, and each threshold in Definition \ref{good} is at most half the corresponding mean. There are at most $1+\log_2k$ nets at height $k$. Sum their cardinality bounds for $1\le k\le M$ to obtain $K_M$. \end{proof} For completeness, the net cardinality bound uses a grid with cell side $\eta/\sqrt k$. On $\mathcal D_A$ this gives at most $(1+32\pi k)^k\le(200k^2)^k$ cells. Each shell lies in $2^{2k-1}$ cubes of side $\pi/2$ about the saddle points. Since $2^p\le k$, the number of cells meeting each such cube is at most $(34k^2)^k$, which gives the same stated bound. We now pass from the finite tests to the Fourier integral. \begin{defn}\label{decay} A normalized $H\in B_k(N,2)$ satisfies the decay condition with constant $c_0>0$ when \[ Z_H(\theta):=\sum_j\sin^2(c_j\cdot\theta) \ge c_0N\min(\|\theta\|^2,1) \] for every $\theta\in\mathcal F_k$. \end{defn} The finite tests imply this condition through their covering property. \begin{lem}\label{gooddecay} Every $H\in\mathcal L_k(N)\cap B_k(N,2)$ satisfies the decay condition with $c_0=3/64$, independently of the ratio $N/k^2$. \end{lem} \begin{proof} The function $G_\tau$ is $2N\sqrt k$-Lipschitz. Moving from a net point to an arbitrary point of $\mathcal D_A$ gives $G_2\ge N/8$, and moving in $\mathcal D_p$ gives $G_{\tau_p}\ge(3N/32)2^{-p}$. Since $G_\tau\le2Z_H$, the outer region has $Z_H\ge N/16$, and the shells have $Z_H\ge(3N/64)\sigma^2$. In the Voronoi cell $\mathcal F_k$, shell points have $\sigma=\|\theta\|$. In the central ball, all phases have absolute value at most $1$, so orthogonality gives \[ Z_H(\theta)\ge(\sin1)^2\sum_j(c_j\cdot\theta)^2 =(\sin1)^2N\|\theta\|^2. \] Together these bounds prove the claim throughout $\mathcal F_k$. \end{proof} Here and below $c_0$ is an absolute constant. The following tail estimate is a direct consequence of the decay condition. \begin{lem}\label{tail} Suppose that $H$ satisfies Definition \ref{decay} and $c_0N\ge6k^2$. Writing $J(H)=\int_{\mathcal F_k-\{\|\theta\|\le k^{-1/2}\}} \Phi_H(\theta)\,d\theta$, we have \[ \frac{|J(H)|}{(2\pi/N)^{k/2}e^{-k^2/(4N)}}\le a_{k,N}+b_{k,N}, \] where \[ a_{k,N}=e^{\frac{k^2}{4N}+\frac{k}{2}\log(1/c_0)-\frac{c_0N}{4k}}, \qquad b_{k,N}=2e^{\frac{k^2}{4N}+\frac{k}{2}\log(\pi N/8)-\frac{c_0N}{2}}. \] These bounds are uniform over matrices satisfying that decay condition. \end{lem} \begin{proof} The inequality $|\cos u|\le e^{-\sin^2u/2}$ gives \[ |\Phi_H(\theta)|\le e^{-\frac{c_0N}{2}\min(\|\theta\|^2,1)}. \] The annulus outside the central ball and inside the unit ball has integral at most \[ \left(\frac{2\pi}{c_0N}\right)^{k/2} P\left(\chi_k^2\ge\frac{c_0N}{k}\right). \] The rest contributes at most $2(\pi/2)^k e^{-c_0N/2}$, by the volume of $\mathcal F_k$. Apply the chi-square estimate recalled in the preceding proof and divide by the central main term. \end{proof} The first-order extension estimate follows under the local hypotheses. \begin{prop}\label{firstorder} If $H\in B_k(N,2)$ is normalized, satisfies Definition \ref{decay}, $00$ may depend on the fixed decay constant, but not on the height or width. The exponential terms tend to zero uniformly under the displayed superquadratic condition. In particular, the central expansion controls the entire extension count on such matrices. A tilted version also controls their extension distributions. \begin{prop}\label{subgaussian} Fix $c_0>0$. There are constants $K,N_0$ such that a normalized $H\in B_k(N,2)$ satisfying Definition \ref{decay}, with $N\ge Kk^2$, $N\ge N_0$ and $4\mid N$, has $R(H)>0$. For a uniform extension $x$, we have \[ E(e^{x\cdot v})\le3e^{\|v\|^2},\qquad E\left(e^{(x\cdot w)^2/100}\right)<2.2 \] for every $v$ with $\|v\|_\infty\le1$ and every unit vector $w$. \end{prop} \begin{proof} Use the ball $D=\{\|\theta\|\le\pi/(4\sqrt k)\}$. All its phases have absolute value at most $\pi/4$. For such $u$ and real $v$, \[ |\cos(u-iv)|^2=\cos^2u+\sinh^2v \le\cos^2u\cosh(2v)\le e^{2v^2}\cos^2u. \] Thus the absolute tilted integral over $D$ is at most $e^{\|v\|^2}$ times the positive untilted integral over $D$. The latter is bounded below by a fixed positive multiple of $(2\pi/N)^{k/2}e^{-k^2/(4N)}$, by Proposition \ref{lincentral} and the Gaussian bound on the annulus between the $2$ central radii. For $|v_j|\le1$ we also have \[ |\cos(u-iv_j)|^2\le \exp(-\sin^2u+1.4v_j^2). \] Definition \ref{decay} and the proof of Lemma \ref{tail}, with central radius $\pi/(4\sqrt k)$, make the complementary integral as small a fraction of the positive central integral as desired by choosing $K,N_0$ large enough. This holds for the tilted integral with an additional factor $e^{0.7\|v\|^2}$. Fourier inversion now gives $R(H)>0$ and the first bound, with constant $3$. For the second bound, fix $u>0$ and split $w$ into coordinates with $|w_j|>4/u$ and the remaining coordinates. Since $\sum_jw_j^2=1$, \[ |x\cdot w_{\rm big}|\le\sum_{|w_j|>4/u}|w_j|\le\frac u4. \] Apply the first bound to $v=(u/4)w_{\rm small}$ and to $-v$. Exponential Markov gives \[ P(|x\cdot w|>u)\le6e^{-u^2/8}. \] With $\beta=1/100$, integration of this tail yields \[ E\left(e^{\beta(x\cdot w)^2}\right) \le1+\frac{6\beta}{1/8-\beta}<2.2, \] as claimed. This last step is the same tail argument as in Blackthorn \cite{blackthorn}, Lemma B.1. \end{proof} \section{Gram probabilities and H\"older inequalities} We now estimate the probabilities of arbitrary row Gram matrices. For a uniform $k\times L$ sign matrix $A$, put \[ q_k(L)=\sup_G P(AA^t=G), \] where the supremum is over all symmetric matrices. The diagonal is always $L$, so only the $\binom k2$ off-diagonal entries are random. For such a matrix $A$ with columns $c_j$, put \[ \rho(A)=\frac1{(2\pi)^k}\int_{[-\pi,\pi]^k} \prod_j|\cos(c_j\cdot\theta)|\,d\theta. \] Fourier inversion gives $\sup_gP_x(Ax=g)\le\rho(A)$ for an independent uniform sign vector $x$. The absolute values make this quantity monotone under removal of columns. \begin{lem}\label{holder-split} If $L=L_1+L_2$, $L_1,L_2\ge1$, and $p>1$, then \[ q_{k+1}(L)\le\|\rho(A_1)\|_p q_k(L)^{1-1/p}q_k(L_2)^{1/p}, \] where $A_1$ is uniform of size $k\times L_1$. \end{lem} \begin{proof} Fix a target Gram and condition on the first $k$ rows $A=[A_1\ A_2]$. The last row contributes at most $\rho(A)$, which is at most $\rho(A_1)$. Write $h(A_1)=P(A_2A_2^t=G-A_1A_1^t)$ for the required principal Gram. Then $0\le h\le q_k(L_2)$ and $E(h)\le q_k(L)$. For $p'=p/(p-1)$ this gives \[ \|h\|_{p'}\le q_k(L_2)^{1/p}q_k(L)^{1-1/p}. \] Apply H\"older to $E(\rho(A_1)h(A_1))$ and take the supremum. \end{proof} The second step converts the matrix moment into a scalar concentration moment. Brackets below mean integer part. \begin{lem}\label{holder-moment} Let $p\ge2$ be an integer, choose an integer $1\le a\le[L_1/p]$, and put $s=[p/2]$. Let $T_1,\ldots,T_a$ be independent with law $Bin(2s,1/2)-s$, and put $\rho_1(T)=P_r(\sum_j r_jT_j=0)$ for independent uniform signs. Then \[ \|\rho(A_1)\|_p\le E(\rho_1(T)^k), \] with expectation taken over $T$. \end{lem} \begin{proof} For $p$ copies $\theta^1,\ldots,\theta^p$ of the Fourier variable, Fubini gives \[ E(\rho(A_1)^p)=\frac1{(2\pi)^{kp}} \int\left(E_v\prod_{l=1}^p|\cos(v\cdot\theta^l)|\right)^{L_1} d\theta^1\cdots d\theta^p. \] Here $v$ is a uniform sign column. Set $\psi(\theta)=E_v|\cos(v\cdot\theta)|^p$. H\"older in the column variable bounds the inner expectation by $\prod_l\psi(\theta^l)^{1/p}$. The integral then factorizes into $p$ equal factors. Taking the $p$th root gives \[ \|\rho(A_1)\|_p \le\frac1{(2\pi)^k}\int \bigl(E_v|\cos(v\cdot\theta)|^p\bigr)^{L_1/p}\,d\theta \le\frac1{(2\pi)^k}\int \bigl(E_v\cos^{2s}(v\cdot\theta)\bigr)^a\,d\theta. \] We used $0\le\psi\le1$, $L_1/p\ge a$ and $2s\le p$ in the last inequality. The last integrand is the characteristic function at $2\theta$ of $\sum_{j=1}^aT_jv^j$. Its normalized integral is the probability that this integer vector is zero. Given $T$, its $k$ coordinates are independent and each has probability $\rho_1(T)$ of being zero. \end{proof} The first inequality retains the probability of the principal Gram through the unused columns. The second turns a matrix-valued problem into a moment of a scalar concentration probability. Their combination is what permits an induction with a small loss at each row. \section{A scalar concentration moment} The connection between Hadamard counting and concentration inequalities was developed by Ferber, Jain and Zhao \cite{fjz}. Here we use the pair case of Hal\'asz's inequality \cite{halasz}. We include a proof to specify the result used in the moment estimate. \begin{lem}\label{halasz-pairs} Let $w_1,\ldots,w_n$ be nonzero integers and let $R=|\{(i,j):w_i=\pm w_j\}|$. For independent uniform signs $r_i$, we have \[ \sup_yP\left(\sum_i r_iw_i=y\right)\le C_HRn^{-5/2} \] with an absolute constant $C_H\ge1$. \end{lem} \begin{proof} Give the circle normalized Lebesgue measure $\mu$, and put $g(u)=\sum_i(1-\cos(2w_iu))$. Fourier inversion and $|\cos t|\le e^{-(1-\cos2t)/4}$ bound the probability by $\int e^{-g(u)/4}\,d\mu(u)$. Macbeath's sumset inequality \cite{macbeath} says that compact subsets $A,B$ of the circle satisfy \[ \mu(A+B)\ge\min\{1,\mu(A)+\mu(B)\}. \] For $E_t=\{g\le t\}$, the elementary inequality $g(u+v)\le2g(u)+2g(v)$ gives $E_t+E_t\subset E_{4t}$. Consequently $\mu(E_t)\le\mu(E_{4t})/2$ whenever $\mu(E_{4t})<1$. Orthogonality of circle characters gives \[ \int\left(\sum_i\cos(2w_iu)\right)^2d\mu(u)=\frac R2, \qquad \mu(E_{n/2})\le\frac{2R}{n^2}. \] If $Rn/2$ is at most $e^{-n/8}$, which is absorbed because $R\ge n$. If $R\ge n^2/2$, use the Erd\H os bound \cite{erdos} $2^{-n}\binom n{[n/2]}=O(n^{-1/2})$. To recall its argument, replace the $w_i$ by their absolute values. Subsets producing a fixed signed sum form an antichain, since adding a positive coefficient strictly increases their sum. Counting permutations whose initial segments contain a member of this antichain gives $\sum_S\binom n{|S|}^{-1}\le1$, and hence its size is at most $\binom n{[n/2]}$. This completes the proof in both cases. \end{proof} The repeated absolute values of the random coefficients can be controlled by retaining a bounded number from each class. The tail of the number retained is needed uniformly in the moment order. \begin{prop}\label{moment} Let $a,k,s$ be positive integers, let $T_1,\ldots,T_a$ be independent with law $Bin(2s,1/2)-s$, and put $\rho_1(T)=P_r(\sum_jr_jT_j=0)$ for independent uniform signs $r_j$. There are absolute constants $c_2,C_3$ such that \[ E(\rho_1(T)^k)\le\left(\frac{C_3}{as}\right)^{k/2} \] whenever $a\ge4k\ge4$ and $c_2a^{5/6}\le s\le a^2$. \end{prop} \begin{proof} Take $c_2=10^6$, and write \[ \pi_0=P(T_j=0)\le(\pi s)^{-1/2} \le10^{-3}a^{-5/12},\qquad \pi_* =\max_{x\ge1}P(|T_j|=x)\le2(\pi s)^{-1/2}. \] Use the cap $\tau=\lceil20a\pi_*\rceil$, retaining each nonzero entry unless $\tau$ previous retained entries have its absolute value. Let $n$ be the number retained. For $n\ge1$, conditioning on the other signs and applying Lemma \ref{halasz-pairs} gives \[ \rho_1(T)\le C_H\tau n^{-3/2},\qquad \tau\le\frac{24a}{\sqrt s}. \] The second estimate uses $s\le a^2$ to absorb the ceiling. For $1\le d\le a/2$, choose $d$ locations containing all retained entries. Along a history with at most $d$ retained entries, at most $d/\tau$ absolute-value classes are full. A forced rejection therefore has conditional probability at most $\pi_0+d/(20a)$. Iterating over the remaining locations and taking a union bound gives \[ P(n\le d)\le\binom ad \left(\pi_0+\frac{d}{20a}\right)^{a-d}. \] Also $P(n=0)=\pi_0^a$, since the first nonzero entry would be retained. Put $\beta=3k/2\le3a/8$ and $B=(C_H\tau(a/2)^{-3/2})^k$. The contribution from $n\ge a/2$ is at most $B$. For $1\le d0$ and $f(1/2)<-3/8$. Summing these terms therefore gives at most $ae^{-3a/8}<1$. For $1\le d<20a\pi_0$, we have $d/a<1/16$ and $\pi_0+d/(20a)<2\pi_0$. Summing the binomial coefficients bounds the total contribution, divided by $B$, by \[ a^{3a/8}2^a(2\pi_0)^{15a/16} \le\left(2(0.002)^{15/16}a^{-1/64}\right)^a <(0.01)^a. \] Finally, since $C_H\tau\ge1$, the contribution from $n=0$, divided by $B$, is at most \[ a^{3a/8}\pi_0^a\le(0.001)^a a^{-a/24}. \] All contributions sum to less than $3B$. The upper bound for $\tau$ now proves the proposition, for instance with $C_3=9(24\cdot2^{3/2}C_H)^2$. \end{proof} \section{Induction on the height} Define $E_k(L)$ by $q_k(L)=L^{-k(k-1)/4}e^{E_k(L)}$. The preceding results give \[ E_{k+1}(L)\le\left(1-\frac1p\right)E_k(L) +\frac1pE_k(L_2) +\frac k2\log\frac{3C_3L}{L_1} +\frac{k(k-1)}{4p}\log\frac L{L_2}, \] whenever the parameters of Proposition \ref{moment} are valid and $as\ge L_1/3$. This follows by substituting Lemmas \ref{holder-split} and \ref{holder-moment} and Proposition \ref{moment}, then collecting the powers of $L$. Fix $\gamma\ge1$, put $\alpha=1/(2\gamma)$, and choose \[ L_1=[\alpha L],\qquad L_2=L-L_1,\qquad a=\max\{4k,\lceil L_1^{1/3}\rceil\},\qquad p=[L_1/a],\qquad s=[p/2]. \] The integer part for $L_1$ ensures $L_2\ge(1-\alpha)L$ and hence $(L/L_2)^\gamma\le(1-\alpha)^{-\gamma}\le2$ exactly. The chosen $a$ need not equal $[L_1/p]$, but Lemma \ref{holder-moment} applies to every $a$ with $ap\le L_1$. This is precisely what the choice of $p$ guarantees. Let $k_0=\lceil(100c_2\gamma)^6\rceil$. For $k\ge k_0$ and $L\ge9k^2$, all the moment hypotheses hold. Here are the details. We have $L_1\ge\alpha L/2$. If $a=4k$, then $p\ge L_1/(4k)-1$ and $s\ge L_1/(3a)$, so \[ s\ge\frac{3k}{16\gamma}\ge c_2(4k)^{5/6}. \] If $a>4k$, then $a\le2L_1^{1/3}$ and $s\ge L_1/(3a)\ge a^2/24\ge c_2a^{5/6}$. Both cases have $p\ge6$. Since $L_1\le a^3$, we also have $s\le a^2$, and the same floor estimates give $as\ge L_1/3$. Writing $x=L/k^2$, we further have \[ \frac{k^2}p\le\frac{5k}{\alpha x}+k. \] Indeed, when $a=4k$, the inequality $\alpha L\ge20k+5$ gives $p\ge\alpha L/(5k)$. When $a>4k$, we have $L_1>64k^3$, so $p\ge k$. These observations also imply \[ \frac{k(k-1)}{4p}\log\frac L{L_2} \le\left(\frac{5}{2x}+\frac\alpha2\right)k0$. For the event \[ \mathcal E_f=\left\{\sum_{a=1}^N f(v_a)\le\frac{\rho N}{2}\right\}, \] we have \[ P(\mathcal E_f\cap\mathcal O_{M,N}) \le 2e^{-\rho N/16}q_M(L) \] for every even $N$. \end{lem} \begin{proof} Divide the columns into $2$ independent halves $A,B$. The event $\mathcal E_f$ implies that at least one half has its sum of $f$ at most $\rho L/2$. For such a half, the elementary lower-tail estimate is \[ P\left(\sum_{a=1}^L f(v_a)\le\frac{\rho L}{2}\right) \le e^{-\rho L/8}. \] Indeed, $e^{-x/2}\le1-x/2+x^2/8\le1-3x/8$ on $[0,1]$. Markov's inequality and independence give the displayed bound. Condition on all columns of $A$. Orthogonality of the full matrix requires $S_B=-S_A$, which has conditional probability at most $q_M(L)$. Thus the contribution where $A$ is the exceptional half is at most $e^{-\rho L/8}q_M(L)$. Interchange $A,B$ and add. No independence between $\mathcal E_f$ and $S_A$ has been assumed. \end{proof} Let $\mathcal B_{M,N}$ be the event that at least one prefix through height $M$ fails Definition \ref{good}. A test on a prefix is treated as a function of the full column, ignoring the other entries. Lemmas \ref{tests} and \ref{split-basic} give \[ P(\mathcal B_{M,N}\cap\mathcal O_{M,N}) \le2K_Me^{-N/2048}q_M(N/2). \] This estimate is unconditional. No claim about exponential rarity in every prescribed Gram fibre is needed. The normalization by $F_{M,N}$ gives the following consequence. \begin{prop}\label{exceptional} There are absolute constants $C_*,c>0$ such that \[ 2^{kN}P(\mathcal B_{k,N}\cap\mathcal O_{k,N}) \le e^{-cN}F_{k,N} \] uniformly for $1\le k\le M$, as $N\to\infty$, with $4\mid N$ and $N\ge C_*M^2\log\log\log N$. \end{prop} \begin{proof} For $k=1$ the first row always passes the tests: each summand is $1-\cos(2\theta)$, independently of its sign, and on $\mathcal D_A$ this is at least $1/2$. Thus the failure probability is zero. For $k\ge2$, put $d=\binom k2$. By the definition of $E_k$, \[ q_k(N/2)=(N/2)^{-d/2}e^{E_k(N/2)}. \] Divide the splitting bound by $2^{-kN}F_{k,N}=2^{(k-1)^2}(2\pi N)^{-d/2} e^{-k(k-1)(2k-1)/(24N)}$ to get \[ \frac{2^{kN}P(\mathcal B_{k,N}\cap\mathcal O_{k,N})}{F_{k,N}} \le \exp\left(-\frac N{2048}+E_k(N/2) +O(k^2+k^3/N)\right). \] Here $\log(2K_k)=O(k\log(2k))$ is absorbed in $O(k^2)$. In Theorem \ref{gram}, take \[ \gamma=\lceil2\log\log(N/2)/\log2\rceil. \] We obtain, uniformly for $k\le M$, \[ E_k(N/2)\le\frac{k^2}4\log\log\log N+O(k^2) +O((\log\log N)^{12}\log N). \] Its width hypothesis holds eventually because $N/M^2\to\infty$. Dividing the leading error by $N$ gives at most $1/(4C_*)$. The other errors are $o(N)$ uniformly, including the term involving only logarithms. Choose $C_*$ sufficiently large and then let $N$ exceed an absolute threshold. The negative exponential remains. \end{proof} The denominator in this argument is explicit. In particular, the proposition does not presuppose a lower bound for $|B_k(N,2)|$. This allows the same estimate to control the first failure of a sequential construction. \section{Sequential counting and the asymptotic formula} Start with the all-$1$ row, and choose each new row uniformly among the available orthogonal sign extensions. Stop when a prefix first fails Definition \ref{good}. In the range of Proposition \ref{exceptional}, all good prefixes satisfy Proposition \ref{subgaussian} for sufficiently large $N$. Let $\mathcal Q$ denote this stopped probability law. For a $4$-element row set $S$, define $\widetilde C_S=C_S$ if the process reaches row $\max S$ from a good preceding prefix, and define it to be zero otherwise. This includes the case where the newly reached prefix is itself the first bad one. \begin{lem}\label{correlation} With $\beta=1/100$, we have \[ E_{\mathcal Q}\left(e^{\beta\widetilde C_S^2/N}\right)\le2.2 \] for every $4$-element set $S$ of row indices available in the process. \end{lem} \begin{proof} Condition immediately before the row $r=\max S$ is sampled. On paths which have already stopped the variable is zero. Otherwise the vector \[ w_j=\frac1{\sqrt N}\prod_{i\in S-\{r\}}H_{ij} \] is a unit vector determined by the preceding rows, and $C_S/\sqrt N=x\cdot w$. Proposition \ref{subgaussian} gives the conditional bound. Taking expectations proves the result. \end{proof} The correlation contribution accumulated up to height $M$ is \[ L(H)=\frac2{N^4}\sum_{k0$ such that \[ \log\frac{|B_M(N,2)|}{F_{M,N}} =-\frac{\binom M4}{2N^2} +O\left(\frac{M^{11/2}}{N^3}\right) \] uniformly as $N\to\infty$, for integers $M\ge1$, $4\mid N$ and $N\ge C_*M^2\log\log\log N$. \end{thm} \begin{proof} The case $M=1$ is exact. Suppose $M\ge2$, and use the stopped process above. A specified normalized matrix whose first failure is at height $k$ has sequential probability \[ \prod_{j0$. A good prefix always has an extension by Proposition \ref{subgaussian}, so there is no other stopping event. The polynomial part of the accumulated local error is $O(M^{11/2}/N^3)$. The exponential terms displayed above are absorbed in that bound. To see the required uniformity, put $f=N/M^2$. Here $f\to\infty$, $M\log N=o(N)$, and $N/M=Mf$ dominates both $M$ and $\log N$. Thus the negative terms in the exponential remainders dominate their positive terms and every fixed power of $N$. Also $M^5/N^3\to0$, so Proposition \ref{average} applies for sufficiently large $N$. The exact path-counting identity and the stopped correlation estimate therefore give the number of normalized good matrices as \[ \left(\prod_{k0$ such that \[ P_{\mathcal Q}(\tau\le T)\le e^{-T}+O(N^{-100}) \] for sufficiently large $N$, uniformly for $4\mid N$ and integer $1\le T\le c_*N/\log N$. \end{prop} \begin{proof} The case $T=1$ has no failure. For $T\ge2$, the potential supermartingale in his proof bounds failure of (I1) by $e^{-\max(T,10)}\le e^{-T}$. At height $k\ge2$, each net point for (I2) has failure probability at most $(k+1)3^kN^{-100k}$, and the number of net points, including all shells and the outer net, is at most $O(\log N)N^{2k}$. Thus their total contribution is at most \[ O(\log N)\sum_{k=2}^T(k+1)(3N^{-98})^k =O((\log N)N^{-196})=O(N^{-100}). \] These are the estimates in the proof of his Lemma B.2, before rounding its final failure bound to a constant. \end{proof} Applying this construction with target height $M$ gives an asymptotic count for a subset at the quadratic scale. Put $D_{M,N}=\binom M4/(2N^2)$, as above. \begin{thm}\label{quadratic} There is an absolute $C_*>0$ such that the matrices whose normalized prefixes are good in Blackthorn's sense, with target height $M$, form subsets $\mathcal G_{M,N}\subset B_M(N,2)$ with \[ |\mathcal G_{M,N}|=(1+o(1))F_{M,N}e^{-D_{M,N}} \] whenever $M\to\infty$, $4\mid N$ and $N\ge C_*M^2$. \end{thm} \begin{proof} For large $M$, the target height lies within Blackthorn's permitted range, and Proposition \ref{survival} gives $p_{M,N}\le e^{-M}+O(N^{-100})$. His Lemma B.1 gives the input for Lemma \ref{correlation}, so Proposition \ref{average} applies to this stopped law as well. Choose $C_*$ large enough to cover the local estimates with $c_0=10^{-3}$. The accumulated polynomial error is $O(M^{11/2}/N^3)=O(M^{-1/2})$, and $M^5/N^3=O(M^{-1})$. Increasing $C_*$ if necessary also makes $M e^{CM-cN/M}\to0$. The outer error $M e^{CM\log N-cN}$ tends to zero uniformly in the stated range. The path-counting identity used in Theorem \ref{refinement} and \[ 1-p_{M,N}\le E_{\mathcal Q}(1_{\mathcal A}e^{L(H)}) \le1+O(M^5/N^3) \] now give the assertion after restoring the $2^N$ choices of first row. \end{proof} The subset count supplies a full-count lower bound throughout the superquadratic regime, including the range below Theorem \ref{refinement}. \begin{cor}\label{lower} We have \[ |B_M(N,2)|\ge(1-o(1))F_{M,N} \] as $N\to\infty$, with $4\mid N$ and $N/M^2\to\infty$. \end{cor} \begin{proof} Use Blackthorn's good sets with target $T=\max\{M,[\log N]+1\}$. Then $T^2/N\to0$ and $T\le c_*N/\log N$ eventually. Proposition \ref{survival} shows that all prefixes through $M$ are good with probability $1-o(1)$. Proposition \ref{firstorder}, with $c_0=10^{-3}$, gives uniformly on such paths \[ \sum_{kC_*$, Theorem \ref{quadratic} yields \[ |B_M(N,2)|\ge(1-o(1))F_{M,N}e^{-1/(48\alpha^2)}. \] The unresolved issue at this scale is the matching upper bound, since survival under the sequential law does not count all exceptional matrices. \section{Exact checks and the quadratic boundary} We record checks of the local coefficient and the scalar moments. The uniform estimates in the preceding sections are the proof of the counting statements; the checks below provide independent information about the coefficient. For height $4$, normalizing the first row leaves $8$ column types. The orthogonality equations force their multiplicities to be $a$ on one parity class and $b$ on the other, with $a+b=N/4$. Hence \[ |B_4(N,2)|=2^N N!\sum_{a+b=N/4}\frac1{a!^4b!^4}. \] Evaluation of this exact finite sum gives the following values. \begin{center} \begin{tabular}{r r} \toprule $N$ & $N^2\log(|B_4(N,2)|/F_{4,N})$\\ \midrule 160 & $-0.480425884822840573$\\ 320 & $-0.490288814737437185$\\ 640 & $-0.495163359147860480$\\ 1280 & $-0.497586414095248621$\\ \bottomrule \end{tabular} \end{center} The predicted limit is $-1/2$. The script \texttt{heightfour.py} in \texttt{code041} forms the count as an exact integer and evaluates the logarithm with $80$-digit decimal arithmetic. Its saved output reproduces this table. A second check uses the pair-product Fourier variables of de Launey--Levin and Davis. Let $z_e$ be independent standard Gaussian variables on the edges of the complete graph on $M$ vertices, and let $T$ be the sum of its triangle monomials. Write \[ d=\binom M2,\qquad t=\binom M3,\qquad b=\binom M4. \] The first coefficient of the formal integral expansion is $a_1=-d/4-t/2$. To identify the next coefficient, write $A_r=i^r\kappa_r/r!$, where $\kappa_r$ is the $r$th cumulant of $\sum_{i