paper.tex
47.7 kB · latex · 589 lines
1% PREAMBLE2\documentclass[11pt]{amsart}3\usepackage[T1]{fontenc}4\usepackage{lmodern}5\usepackage{microtype}6\usepackage{amsmath,amssymb}7\usepackage{mathtools}8\usepackage{graphicx}9\usepackage{booktabs}10\usepackage{tikz}11\usepackage[colorlinks=true,linkcolor=bluedark,citecolor=bluedark,urlcolor=bluedark]{hyperref}12\usepackage[capitalize]{cleveref}1314% COLORS15\definecolor{black}{HTML}{000000}16\definecolor{white}{HTML}{FFFFFF}17\definecolor{red}{HTML}{FF3D40}18\definecolor{redlight}{HTML}{FF9D95}19\definecolor{reddark}{HTML}{A80016}20\definecolor{orange}{HTML}{FF8F2C}21\definecolor{orangelight}{HTML}{FFC093}22\definecolor{orangedark}{HTML}{A25400}23\definecolor{yellow}{HTML}{FFD100}24\definecolor{yellowlight}{HTML}{FFE591}25\definecolor{yellowdark}{HTML}{9E8100}26\definecolor{green}{HTML}{32CC58}27\definecolor{greenlight}{HTML}{5EEE79}28\definecolor{greendark}{HTML}{007F2C}29\definecolor{mint}{HTML}{00D1BB}30\definecolor{mintlight}{HTML}{48EFD8}31\definecolor{mintdark}{HTML}{008173}32\definecolor{teal}{HTML}{00CAD8}33\definecolor{teallight}{HTML}{48E9F7}34\definecolor{tealdark}{HTML}{007C85}35\definecolor{cyan}{HTML}{1EC9F3}36\definecolor{cyanlight}{HTML}{86E2FF}37\definecolor{cyandark}{HTML}{007C98}38\definecolor{blue}{HTML}{008CFF}39\definecolor{bluelight}{HTML}{84BDFF}40\definecolor{bluedark}{HTML}{00559F}41\definecolor{indigo}{HTML}{6768FA}42\definecolor{indigolight}{HTML}{9EA9FF}43\definecolor{indigodark}{HTML}{3C2ABC}44\definecolor{purple}{HTML}{D332E9}45\definecolor{purplelight}{HTML}{F08AFF}46\definecolor{purpledark}{HTML}{870097}47\definecolor{pink}{HTML}{FF325A}48\definecolor{pinklight}{HTML}{FF9A9F}49\definecolor{pinkdark}{HTML}{A50030}50\definecolor{brown}{HTML}{B18462}51\definecolor{brownlight}{HTML}{DFAF8C}52\definecolor{browndark}{HTML}{754C2B}53\definecolor{gray}{HTML}{8E8E93}54\definecolor{graylight}{HTML}{BABABF}55\definecolor{graydark}{HTML}{56565A}56% COLORS END5758\newtheorem{theorem}{Theorem}[section]59\newtheorem{proposition}[theorem]{Proposition}60\newtheorem{lemma}[theorem]{Lemma}61\newtheorem{corollary}[theorem]{Corollary}62\newtheorem{conjecture}[theorem]{Conjecture}63\theoremstyle{definition}64\newtheorem{definition}[theorem]{Definition}65\newtheorem{fact}[theorem]{Fact}66\theoremstyle{remark}67\newtheorem{remark}[theorem]{Remark}6869\title[Parity Carpets Correlate by gcd]{Parity Carpets Correlate by gcd: Four Exact Laws for a Square-Wave Stack}70\author{Carlo Mitchener}71\address{MrlyProd, Inc.}72\email{carlo.mitchener@gmail.com}73\date{First published 2026-08-23, revised 2026-09-08}7475% PAPER76\begin{document}7778\begin{abstract}79Cut a square into an odd number of equal strips each way and ink every cell whose two strip numbers are both odd. Two such pictures at different scales overlap by an amount fixed by the greatest common divisor of the scales, and that amount is exact. We prove the master integral behind it, derive the exact correlation law for each of the four fields the parity rule generates, and show that all four vanish precisely when the scales are coprime. So an odd number above one is prime exactly when its picture is uncorrelated with every picture before it: a portrait of coprimality, not a primality test. Two ray laws are proved alongside, and two boundaries: the exactness fails in a hexagonal section, and the stack's brightness carries no M\"obius information.80\end{abstract}8182% TITLE PAGE83\makeatletter84\global\let\titledate\@date85\global\let\paperabstract\@setabstracta86\global\let\@date\@empty87\global\let\@setabstract\relax88\makeatother8990\maketitle9192\begin{center}93\normalfont\footnotesize94MrlyProd, Inc.\\95\titledate96\end{center}9798\vspace*{\stretch{1}}99100\begin{center}101\includegraphics[width=0.8\textwidth]{figures/avatar-light.png}102\end{center}103104\vspace*{\stretch{1.25}}105106\newpage107108\paperabstract109110% BODY111\section{Introduction}112\label{sec:intro}113114\begin{figure}[!ht]115\centering116\begin{tikzpicture}[x=46mm,y=2.0mm]117\foreach \i in {3,4,5} \fill[black!78] ({\i/9},6) rectangle ({(\i+1)/9},7);118\foreach \i in {0,...,8} \draw[black!45,line width=0.2pt] ({\i/9},6) rectangle ({(\i+1)/9},7);119\foreach \i in {1,3,5,7} \fill[black!78] ({\i/9},5) rectangle ({(\i+1)/9},6);120\foreach \i in {0,...,8} \draw[black!45,line width=0.2pt] ({\i/9},5) rectangle ({(\i+1)/9},6);121\foreach \i in {1,4,7} \fill[black!78] ({\i/9},4) rectangle ({(\i+1)/9},5);122\foreach \i in {0,...,8} \draw[black!45,line width=0.2pt] ({\i/9},4) rectangle ({(\i+1)/9},5);123\foreach \i in {5,6,7,8,9} \fill[black!78] ({\i/15},2) rectangle ({(\i+1)/15},3);124\foreach \i in {0,...,14} \draw[black!45,line width=0.2pt] ({\i/15},2) rectangle ({(\i+1)/15},3);125\foreach \i in {3,4,5,9,10,11} \fill[black!78] ({\i/15},1) rectangle ({(\i+1)/15},2);126\foreach \i in {0,...,14} \draw[black!45,line width=0.2pt] ({\i/15},1) rectangle ({(\i+1)/15},2);127\foreach \i in {3,4,6,7,8,10,11} \fill[black!78] ({\i/15},0) rectangle ({(\i+1)/15},1);128\foreach \i in {0,...,14} \draw[black!45,line width=0.2pt] ({\i/15},0) rectangle ({(\i+1)/15},1);129\node[anchor=east,font=\small] at (-0.03,6.5) {$s(3u)$};130\node[anchor=east,font=\small] at (-0.03,5.5) {$s(9u)$};131\node[anchor=east,font=\small] at (-0.03,4.5) {product};132\node[anchor=east,font=\small] at (-0.03,2.5) {$s(3u)$};133\node[anchor=east,font=\small] at (-0.03,1.5) {$s(5u)$};134\node[anchor=east,font=\small] at (-0.03,0.5) {product};135\node[anchor=west,font=\small] at (1.03,4.5) {mean $=\tfrac13$};136\node[anchor=west,font=\small] at (1.03,0.5) {mean $=\tfrac{1}{15}$};137\end{tikzpicture}138\caption{Two parity waves and their product; a cell is dark where the wave is $-1$. The product's mean is exactly $\gcd(m,n)^2/(mn)$: one third for $(3,9)$, one fifteenth for the coprime $(3,5)$.}139\label{fig:overlap}140\end{figure}141142Here is a picture anyone can draw. Fix an odd number $n$, cut the unit square into $n$ columns and $n$ rows numbered from zero, and shade a cell when both its numbers are odd. Draw a second sheet at a different odd $n$ and hold the two up to the light: how much do they agree? The answer is one exact number. With $g=\gcd(m,n)$ for the two scales, the correlation of the sheets has $g$ in its numerator and is \emph{exactly zero} when $g=1$ -- not small, not zero to five decimals, zero.143144\subsection{The master integral, and what is classical about it}145\label{sec:prior}146147Everything rests on one integral. With $s(x)=(-1)^{\lfloor x\rfloor}$ the square wave of period $2$, for all positive integers $m,n$ with $g=\gcd(m,n)$,148\[149\int_0^1 s(mu)\,s(nu)\,du=\frac{g^2}{mn}\ \ \text{if $m/g$ and $n/g$ are both odd},\qquad 0\ \text{otherwise.}150\]151\Cref{fig:overlap} is that statement drawn twice.152153This identity has a famous sibling. With $((x))$ the sawtooth $x-\lfloor x\rfloor-\tfrac12$ (and $((x))=0$ at integers),154\[155\int_0^1 ((mx))\,((nx))\,dx=\frac{\gcd(m,n)^2}{12\,mn},156\]157which is the two-fold Franel integral, standard in the literature of Dedekind sums \cite{apostol}, the base case of the family whose four-fold generalisation was conjectured by McIntosh and proved recently \cite{mcintosh}, and the computational heart of the Franel-Landau reformulation of the Riemann hypothesis. Our master integral is the same computation with the sawtooth's full harmonic comb replaced by the square wave's odd-only comb, by the same Parseval argument. That substitution is exactly where the hypothesis ``$m/g$ and $n/g$ both odd'' comes from, and why the constant is $1$ rather than $1/12$. A referee should read \cref{thm:master} as a gcd-sum evaluation of a routine kind, not as a new theorem; the classical identity is re-verified alongside ours in \texttt{scripts/verify.py}.158159The increment this paper offers is narrower and, we think, more honest to state plainly. First, exactness: the author's own earlier and unpublished working notes on stacked designs already recorded that the cross-layer correlation is about zero at $\gcd=1$ and that it tracks $\gcd^2/(mn)$; what is proved here is that it is \emph{exactly} zero, with closed forms for all four fields and with the coprimality criterion as an identity rather than an observation. Second, the ray laws: the two-adic criterion that a line through the origin of slope $q/p$ carries signal if and only if $p$ and $q$ are both odd. Third, the negative results, which we regard as the most useful part: the failure in the hexagonal section, and the M\"obius refutation. The prime corollary itself claims no novelty at all -- as an algorithm it is trial division with a picture attached.160161\subsection{What this paper proves}162\label{sec:roadmap}163164The parity of $m/g$ and $n/g$ is not decoration: at $(m,n)=(1,2)$ the integral is $0$ rather than $1/2$, and the unqualified formula fails on $532$ of the $820$ unordered pairs with $m,n\le 40$. From the master integral, four correlation laws drop out, one for each black-and-white field the parity rule generates (\cref{thm:four}), and all four vanish at exactly the same places (\cref{thm:zeroset}). Since an odd composite always has an odd prime factor smaller than itself, the sheet of a composite always echoes a smaller sheet and the sheet of a prime never does (\cref{cor:detector}). The pictures see coprimality; primality is what coprimality against everything smaller happens to mean.165166The paper also proves two exact ray laws for the stacked picture (\cref{thm:ray}, \cref{prop:origin}), gives the stack's variance exactly, as a finite rational sum (\cref{prop:variance}), and then marks two boundaries, because a result is only as valuable as the map of where it stops. The plane rule that makes all of this work has a nonzero pair term in its harmonic expansion; the analogous rule in space has none, and with it goes the mechanism (\cref{prop:space}). And the brightness of the stacked picture, tempting as it looks, contains no M\"obius information whatsoever (\cref{prop:brightness}); no Riemann-hypothesis criterion can be read off it.167168\section{Definitions}169\label{sec:defs}170171\begin{definition}172\label{def:wave}173$s(x)=(-1)^{\lfloor x\rfloor}$ is the square wave of period $2$, and $\chi_n(u)=\mathbf 1[\lfloor nu\rfloor\text{ odd}]=\tfrac12\bigl(1-s(nu)\bigr)$ is the odd-strip indicator at scale $n$. All integrals are over $u\in[0,1)$ or $(u,v)\in[0,1)^2$ with Lebesgue measure, and $\langle\cdot\rangle$ denotes the mean.174\end{definition}175176\begin{definition}177\label{def:fields}178For odd $n\ge1$ the parity rule generates four $\{0,1\}$-valued fields on the unit square:179\[180\mathrm{T}_n(u,v)=\chi_n(u),\qquad181\mathrm{C}_n(u,v)=\chi_n(u)\chi_n(v),182\]183\[184\mathrm{N}_n(u,v)=\bigl(1-\chi_n(u)\bigr)\bigl(1-\chi_n(v)\bigr),\qquad185\mathrm{V}_n(u,v)=\tfrac12\bigl(1+s(nu)s(nv)\bigr).186\]187We call them \emph{tree}, \emph{carpet}, \emph{net} and \emph{void}. The tree depends on one coordinate; the carpet marks cells whose two strip numbers are both odd; the net is its complementary product; the void marks cells whose two strip numbers have the same parity.188\end{definition}189190The sheet of \cref{sec:intro} is the carpet. Printing it the other way round -- inking every cell \emph{except} those with both indices odd -- gives the field $1-\mathrm{C}_n$, and correlation is invariant under $X\mapsto1-X$ applied to both arguments, so every statement below about $\mathrm{C}$ holds verbatim for that picture too. Of the four, $\mathrm{C}$, $\mathrm{N}$ and $\mathrm{V}$ are the three non-constant fields one can build from the pair $(\chi_n(u),\chi_n(v))$ that respect the symmetry $u\leftrightarrow v$, counted up to complementation: as functions of two bits they are AND, NOR and XNOR, and the remaining three symmetric non-constant functions NAND, OR and XOR are their complements. The tree $\mathrm{T}$ is not symmetric at all -- it reads one coordinate and ignores the other -- and is kept because it is the simplest law of the family.191192\begin{definition}193\label{def:corr}194For fields $X,Y$ on the unit square, $\operatorname{Cov}(X,Y)=\langle XY\rangle-\langle X\rangle\langle Y\rangle$ and $r(X,Y)=\operatorname{Cov}(X,Y)/\sqrt{\operatorname{Var}(X)\operatorname{Var}(Y)}$. The \emph{stack} of the first $L$ odd scales is $\frac1L\sum_{n\in S}\mathrm{C}_n$ with $S=\{1,3,\dots,2L-1\}$.195\end{definition}196197Because each field is $\{0,1\}$-valued, $r=0$ is more than decorrelation: at a uniformly random point of the square the two values are then independent Bernoulli random variables. The fields themselves are deterministic; the independence is of the two readings taken at one random point, and we never claim more.198199\section{Results}200\label{sec:results}201202\begin{theorem}[master integral]203\label{thm:master}204Let $m,n\ge1$ be integers, $g=\gcd(m,n)$, $m'=m/g$, $n'=n/g$. Then205\[206\int_0^1 s(mu)\,s(nu)\,du=207\begin{cases}208\dfrac{g^2}{mn}, & m'\text{ and }n'\text{ both odd},\\[2mm]2090, & \text{otherwise.}210\end{cases}211\]212\end{theorem}213214\begin{corollary}215\label{cor:odd}216For odd $m,n$ the integral is $g^2/(mn)$; in particular $\langle s(nu)\rangle=1/n$ and $\langle\chi_n\rangle=\frac{n-1}{2n}$ for odd $n$.217\end{corollary}218219The right-hand side is rational, and this is worth a sentence: the square wave's Fourier normalisation contributes $(4/\pi)^2$ and the odd Basel sum $\sum_{k\text{ odd}}k^{-2}=\pi^2/8$ eats it exactly. Every observable in this paper is rational for the same reason. Reporting $\pi$ as a feature of these pictures would be numerology.220221\begin{theorem}[four correlation laws]222\label{thm:four}223Let $m,n\ge3$ be odd, $d=\gcd(m,n)$. Then224\[225\operatorname{Cov}(\mathrm{T}_m,\mathrm{T}_n)=\frac{d^2-1}{4mn},\quad226r(\mathrm{T}_m,\mathrm{T}_n)=\frac{d^2-1}{\sqrt{(m^2-1)(n^2-1)}},227\]228\[229\operatorname{Cov}(\mathrm{C}_m,\mathrm{C}_n)=\frac{(d^2-1)\bigl[2(m-1)(n-1)+d^2-1\bigr]}{16m^2n^2},230\]231\[232r(\mathrm{C}_m,\mathrm{C}_n)=\frac{(d^2-1)\bigl[2(m-1)(n-1)+d^2-1\bigr]}{(m-1)(n-1)\sqrt{(3m-1)(m+1)(3n-1)(n+1)}},233\]234\[235\operatorname{Cov}(\mathrm{N}_m,\mathrm{N}_n)=\frac{(d^2-1)\bigl[2(m+1)(n+1)+d^2-1\bigr]}{16m^2n^2},236\]237\[238r(\mathrm{N}_m,\mathrm{N}_n)=\frac{(d^2-1)\bigl[2(m+1)(n+1)+d^2-1\bigr]}{(m+1)(n+1)\sqrt{(3m+1)(m-1)(3n+1)(n-1)}},239\]240\[241\operatorname{Cov}(\mathrm{V}_m,\mathrm{V}_n)=\frac{d^4-1}{4m^2n^2},\qquad242r(\mathrm{V}_m,\mathrm{V}_n)=\frac{d^4-1}{\sqrt{(m^4-1)(n^4-1)}}.243\]244\end{theorem}245246The four formulas are different functions and must not be substituted for one another. At $(m,n)=(3,9)$ they read $0.316227766$ for the tree, $0.262950294$ for the net, $0.219264505$ for the carpet and $0.110431526$ for the void: one zero set, four different sizes. The tree law is the simplest and the most quotable, but the picture a reader draws from \cref{sec:intro} is the carpet, and the carpet's law is the third one.247248\begin{theorem}[one zero set, and strict positivity off it]249\label{thm:zeroset}250For odd $m,n\ge3$, all four covariances of \cref{thm:four} are $0$ if $\gcd(m,n)=1$ and all four are strictly positive if $\gcd(m,n)>1$. In particular the four fields share one zero set, and $\operatorname{Cov}=0\iff\gcd(m,n)=1$ in each family.251\end{theorem}252253\begin{corollary}[the coprimality detector]254\label{cor:detector}255Let $n\ge3$ be odd and let $\mathcal F$ be any one of the four families. Then $n$ is prime if and only if $\operatorname{Cov}(\mathcal F_m,\mathcal F_n)=0$ for every odd $m$ with $3\le m<n$.256\end{corollary}257258This is independent of any window: it holds for the infinite family of odd scales, not merely inside some finite stack. A finite stack can only distort it. In a stack of the odd scales up to $55$, for instance, the scales with no echo at all are $19,23,29,31,37,41,43,47,53$, which are the primes above $55/3$; that list is an artefact of the window, since $17$ is dropped only because $51=3\cdot17$ happens to be in the stack. The window statement should never be quoted as the theorem; \cref{cor:detector} is the theorem.259260\begin{fact}261\label{fact:separation}262Score each odd $n$ in $3\le n\le199$ by $\max\{r(\mathrm{C}_m,\mathrm{C}_n):m\text{ odd},\,3\le m<n\}$, the score of $n=3$ being $0$ over an empty set. Then all $45$ primes in the range score exactly $0$ and all $54$ composites score strictly positive, with no overlap. The narrowest composite is $n=169=13^2$ at $0.0517383422$; the same $n$ scores $0.0766964989$ in the tree family and $0.0059170562$ in the void family. Checked by \texttt{scripts/verify.py}.263\end{fact}264265\begin{remark}266\label{rem:trial}267\Cref{cor:detector} is not a primality test worth running. Deciding it for one $n$ means testing $\gcd(m,n)=1$ for every smaller odd $m$, which is trial division with a picture attached; it detects primes, it does not explain them. Its interest is that a purely geometric question -- do these two drawings agree more than chance? -- has an arithmetic answer with no error term, and that the primes are exactly the drawings that are new. The primes so produced are of course \href{https://oeis.org/A000040}{A000040}.268\end{remark}269270\begin{theorem}[the slope-one ray law]271\label{thm:ray}272Let $S=\{1,3,\dots,2L-1\}$ and, for real $c$, let273\[274Q_L(c)=\frac1L\sum_{n\in S}\int_0^1 s(nu)\,s(nu+nc)\,du .275\]276If $c=a/b$ in lowest terms, then277\[278\lim_{L\to\infty}Q_L(a/b)=\frac{(-1)^a}{b^2}\ \ (b\text{ odd}),\qquad279\lim_{L\to\infty}Q_L(a/b)=0\ \ (b\text{ even}),280\]281and the limit is $0$ for irrational $c$.282\end{theorem}283284\begin{proposition}[rays through the origin]285\label{prop:origin}286Let $p,q\ge1$ be coprime and $n$ odd. The mean of $s(nu)s(nv)$ along the line $(u,v)=(pw,qw)$, $w\in[0,1)$, equals $1/(pq)$ if $p$ and $q$ are both odd, and $0$ otherwise. The value does not depend on $n$, hence is also the value for every stack.287\end{proposition}288289\begin{remark}290\label{rem:notacorr}291The number $1/(pq)$ in \cref{prop:origin} is the master integral of \cref{thm:master} evaluated at the coprime pair $(p,q)$: an \emph{uncentred} mean. It is not the correlation of the sheets $p$ and $q$, which by \cref{thm:zeroset} is exactly $0$. The two quantities are computed by one lemma read two ways, and the temptation to call them the same number should be resisted.292\end{remark}293294\begin{remark}295\label{rem:finiteN}296\Cref{thm:ray} is a limit, and a finite stack does not sit on it. In the stack of the $28$ odd scales up to $55$: the $b=7$ ray sits exactly on its limit $-1/49$ (because $28=4\cdot7$ samples the residues evenly); the $b=9$ ray reads $+1/63$ against a limit of $-1/81$, the \emph{wrong sign}; the $b=5$ ray is $10/7$ of its limit; and the $b=6$ ray reads $-1/42$ against a limit of $0$, though $b=2$ is exactly $0$ at every stack size. Any image of a finite stack is therefore an illustration of these laws, not a measurement of them.297\end{remark}298299\begin{proposition}[exact stack variance]300\label{prop:variance}301For $S=\{1,3,\dots,2L-1\}$ and the carpet stack $G_L=\frac1L\sum_{n\in S}\mathrm{C}_n$,302\[303\operatorname{Var}(G_L)=\frac1{L^2}\sum_{m,n\in S}\frac{(d^2-1)\bigl[2(m-1)(n-1)+d^2-1\bigr]}{16m^2n^2},\quad d=\gcd(m,n),304\]305an exact rational for every $L$. Its values are $L\cdot\operatorname{Var}=0.21014$ at $L=28$, $0.24516$ at $L=101$ and $0.26400$ at $L=501$.306\end{proposition}307308\begin{conjecture}309\label{con:variance}310$\lim_{L\to\infty}L\cdot\operatorname{Var}(G_L)=0.272442\ldots$, and this constant is a combination of two gcd sums rather than a known closed form. Evidence: the exact values $0.21014$, $0.24516$ and $0.26400$ of \cref{prop:variance} climb towards it, and the limit reduces to the two gcd sums311\[312S_2(N)=\sum g^2/(mn),\quad S_4(N)=\sum g^4/(m^2n^2)\quad(m,n\ \text{odd},\ \le N)313\]314as $\lim_{N\to\infty}S_2(N)/(4N)+\lim_{N\to\infty}S_4(N)/(8N)$. The second of these reduces to a single gcd sum,315\begin{gather*}316\lim_{N\to\infty}\frac{S_4(N)}{N}=\frac{16}{31}\cdot\frac{T}{\zeta(5)}=0.5536124372\ldots,\\317T=\sum_{k,l\ \text{odd}}\frac{1}{k^2l^2\max(k,l)}=1.1122336970\ldots,318\end{gather*}319so the second term contributes $0.06920155\ldots$ and the first carries the rest. Failure modes: no closed form is known for $T$, so the constant is \emph{reduced}, not evaluated; the reduction's error term is only measured, at five digits and still drifting; and the finite-$L$ approach is slow enough ($23\%$ short at $L=28$) that agreement at accessible $L$ is weak evidence for any particular closed form. Nothing in this paper depends on this conjecture.320\end{conjecture}321322\subsection{The spectral measure of the stack}323\label{sec:spectrum}324325The correlation laws above are diagonal statistics; this section records the whole spectrum. The basis is the product sine system $\{2\sin(\pi a u)\sin(\pi b v)\}_{a,b\ge1}$, orthonormal and complete on the square.326327\begin{theorem}[spectral measure of the stack]328\label{thm:spectrum}329Let $G_L$ be the stack of \cref{def:corr} and write $\sigma_k^S(a) = \sum_{n \in S,\ n \mid a} n^k$ for the divisor sums restricted to the stack's scales. For odd $a, b \ge 1$,330\begin{multline*}331\int_0^1\!\!\int_0^1 G_L(u,v)\, \sin(\pi a u)\sin(\pi b v)\, du\, dv \\332= \frac{1}{\pi^2 ab} \Bigl[ 1 - \frac{\sigma_1^S(a)}{L} - \frac{\sigma_1^S(b)}{L} + \frac{\sigma_2^S\bigl(\gcd(a,b)\bigr)}{L} \Bigr],333\end{multline*}334and the integral vanishes whenever $a$ or $b$ is even. For $\gcd(a,b) \le 2L-1$ the divisor sums are complete: $\sigma_2^S(\gcd(a,b)) = \sigma_2(\gcd(a,b))$, the full sum of squared divisors. In particular the doubly-oscillatory component of the stack carries the coefficient field $\sigma_2(\gcd(a,b))/(ab)$ on odd frequency pairs: a pure point spectrum whose weights are squared-divisor sums of the frequency gcd.335\end{theorem}336337\begin{corollary}[the variance splits into its spectral blocks]338\label{cor:parseval}339Write $\widehat{s}_n = s_n - 1/n$ (the centred wave; $\langle s_n \rangle = 1/n$ for odd $n$ by \cref{cor:odd}) and $\alpha_n = 1 - 1/n$, so that340\[341\mathrm{C}_n = \tfrac14\bigl[ \alpha_n^2 - \alpha_n \widehat{s}_n(u) - \alpha_n \widehat{s}_n(v) + \widehat{s}_n(u)\widehat{s}_n(v) \bigr]342\]343decomposes $G_L - \langle G_L \rangle$ into three mutually orthogonal blocks: two axis blocks and one interior block. Parseval then evaluates the paper's exact variance (\cref{prop:variance}) blockwise, with $d = \gcd(m,n)$:344\[345\operatorname{Var}(G_L) = \underbrace{\frac{2}{16L^2} \sum_{m,n \in S} \frac{(m-1)(n-1)(d^2-1)}{m^2n^2}}_{\text{axis blocks}} \; + \; \underbrace{\frac{1}{16L^2} \sum_{m,n \in S} \frac{(d^2-1)^2}{m^2n^2}}_{\text{interior block}},346\]347which is exactly the two-term split of the carpet covariance law of \cref{thm:four}.348\end{corollary}349350\begin{theorem}[zeta quotients]351\label{thm:zetaquot}352Let $\lambda(w) = (1 - 2^{-w})\,\zeta(w)$, the odd-index zeta. Then, with all sums over odd $a, b \ge 1$ and $g = \gcd(a,b)$:353\[354\sum_{a,b} \frac{\sigma_2(g)}{(ab)^w} = \lambda(w)^2\, \lambda(2w-2) \qquad (\operatorname{Re} w > \tfrac32),355\]356\[357\sum_{a,b} \frac{\sigma_2(g)^2}{(ab)^w} = \frac{\lambda(w)^2\, \lambda(2w-2)^2\, \lambda(2w-4)}{\lambda(4w-4)} \qquad (\operatorname{Re} w > \tfrac52).358\]359The second identity is Ramanujan's $\sum \sigma_a(n)\sigma_b(n) n^{-s}$ evaluation at $a = b = 2$, restricted to odd integers, combined with the gcd decoupling of the first. Every polynomial spectral statistic of the stack is such a finite product and quotient of zeta values at integer-shifted arguments.360\end{theorem}361362\begin{corollary}[weighted stacks render divisor functions]363\label{cor:weighted}364Weight layer $n$ by $n^{-s}$ instead of $1/L$: $G^{(s)} = \sum_{n \ge 1 \text{ odd}} n^{-s}\, \mathrm{C}_n$, convergent pointwise a.e.\ and in $L^2$ for $\operatorname{Re} s > 1$. Its interior spectral coefficients are $\sigma_{2-s}$-divisor sums of the frequency gcd: the interior coefficient at odd $(a,b)$ is $(\pi^2 ab)^{-1} \sum_{n \mid \gcd(a,b)} n^{2-s}$ (odd divisors), each an entire function of $s$, and365\[366\sum_{a,b \text{ odd}} \frac{\sigma_{2-s}(\gcd(a,b))}{(ab)^{w}} = \lambda(w)^2\, \lambda(2w + s - 2).367\]368A weighted stack is a Dirichlet series rendered as a picture: the weights of its spectrum are the coefficients of $\lambda(2w+s-2)$'s Euler product, frequency pair by frequency pair.369\end{corollary}370371\begin{remark}[what the spectrum does and does not carry]372\label{rem:spectrumcap}373The stack's spectral measure is classical divisor-sum content and nothing beyond: every statistic in \cref{thm:zetaquot} lies in the Estermann--Ramanujan class of zeta quotients, the same class as $\sum \sigma_a(n)\sigma_b(n)n^{-s}$. Their meromorphic continuations behave accordingly -- the quotient in the second identity has $\lambda(4w-4)$ in its denominator, so its continuation past the natural half-plane inherits the zeros of $\zeta(4w-4)$, exactly as Ramanujan's identity always does; nothing here sharpens or evades that classical sensitivity, and no new $L$-function appears. This is the spectral companion of \cref{prop:brightness}: the brightness carries no M\"obius information, and the spectrum carries divisor information only.374\end{remark}375376\subsection{Where the exactness stops}377\label{sec:stops}378379\begin{proposition}[the space rule has no pair term]380\label{prop:space}381Write $\sigma_i=+1$ if index $i$ is even and $-1$ if it is odd. The plane rule ``ink unless both indices are odd'' has the harmonic expansion382\[383H(\sigma_1,\sigma_2)=\tfrac34+\tfrac{\sigma_1+\sigma_2}{4}-\tfrac{\sigma_1\sigma_2}{4},384\]385while the space rule ``fill if at most one of three indices is odd'' has386\[387F(\sigma_1,\sigma_2,\sigma_3)=\tfrac12+\tfrac{\sigma_1+\sigma_2+\sigma_3}{4}-\tfrac{\sigma_1\sigma_2\sigma_3}{4},388\]389whose three pairwise coefficients are all exactly $0$.390\end{proposition}391392The pair term $-\sigma_1\sigma_2/4$ is the entire mechanism of this paper: it is what turns the master integral into a correlation. In space the pair term is absent and a triple product takes its place, so a planar section of the space rule has no reason to inherit any of the exactness -- and it does not.393394\begin{remark}395\label{rem:hex}396On rendered hexagonal sections of the space rule at the $28$ scales $1,3,\dots,55$, the $290$ coprime pairs drawn from the $27$ scales $3,\dots,55$ have Pearson correlations with mean $-0.037$ and range $[-0.205,+0.147]$, with $85$ of the $290$ exceeding $0.05$ in absolute value; the corresponding flat-carpet figures on the same raster are mean $-0.0001$ and maximum $0.017$, against exactly $0$ in the continuum. The gcd echo survives the passage to the hexagonal section; the exactness does not. These are measurements on rendered images, not theorems, and they inherit the usual caveats: the extreme values are mask-dependent, and the same $290$ pairs read mean $-0.009$ over the range $[-0.173,+0.160]$ on a coarser common raster with a differently registered hexagon. What is robust across every mask tried is the shape of the failure, not the size of the worst value. They are reported here because a negative result with soft numbers is still worth more than silence, and they are outside the domain that \texttt{scripts/verify.py} checks.397\end{remark}398399\begin{proposition}[the picture cannot see M\"obius]400\label{prop:brightness}401Let $K(a/b)$ denote the ray strength of \cref{thm:ray}, so $K(a/b)=(-1)^a/b^2$ for odd $b$ and $K(a/b)=0$ for even $b$. There is no function $f$ with $\mu(b)=f\bigl(K(a/b)\bigr)$ for all reduced $a/b$, where $\mu$ is the M\"obius function.402\end{proposition}403404The consequence is worth stating in words, because the temptation runs the other way. This stack draws a bright line at every rational with odd denominator and nothing at the others; its brightnesses index denominators and nothing else. Squarefreeness is not visible in it, so no B\'aez-Duarte-style criterion for the Riemann hypothesis \cite{baezduarte} can be extracted from these brightnesses. Any such computation gets its arithmetic from a factorisation performed elsewhere, and the picture contributes nothing to it.405406\section{Proofs}407\label{sec:proofs}408409\begin{proof}[Proof of \cref{thm:master}]410The system $\{\sin(\pi c u)\}_{c\ge1}$ is orthogonal on $(0,1)$ with411\[412\int_0^1\sin(\pi a u)\sin(\pi b u)\,du=\tfrac12\delta_{ab}\qquad(a,b\ge1\text{ integers}),413\]414since $2\sin(\pi au)\sin(\pi bu)=\cos(\pi(a-b)u)-\cos(\pi(a+b)u)$, and $\int_0^1\cos(\pi cu)\,du$ equals $\sin(\pi c)/(\pi c)$, which vanishes for every nonzero integer $c$; here $a+b\ne0$ always, while $a-b=0$ contributes $1$. It is moreover a complete orthogonal system for $L^2(0,1)$, being the Fourier sine basis.415416The square wave has the classical expansion $s(x)=\frac4\pi\sum_{k\text{ odd}}\frac{\sin(\pi kx)}{k}$, convergent in $L^2$ of any bounded interval \cite{steinshakarchi}. Substituting $x=mu$ gives, in $L^2(0,1)$,417\[418s(mu)=\frac4\pi\sum_{k\text{ odd}}\frac{\sin(\pi k m u)}{k},419\]420which is already an expansion in the above system: the coefficient attached to the basis index $c$ is $4/(\pi k)$ when $c=km$ with $k$ odd, and $0$ for every other $c$ (distinct odd $k$ give distinct $c$). Parseval for two functions in an orthogonal system with $\|\sin(\pi c\cdot)\|^2=\tfrac12$ therefore gives421\[422\int_0^1 s(mu)s(nu)\,du=\frac12\sum_{c\ge1}\Bigl(\frac4{\pi j}\Bigr)\Bigl(\frac4{\pi k}\Bigr)423=\frac{8}{\pi^2}\sum_{\substack{j,k\text{ odd}\\ jm=kn}}\frac1{jk},424\]425the inner sum running over the pairs $(j,k)$ of odd positive integers with $jm=kn=c$.426427Now solve $jm=kn$. Dividing by $g$ gives $jm'=kn'$ with $\gcd(m',n')=1$, so $n'\mid j$; writing $j=n't$ forces $k=m't$, and conversely every $t\ge1$ gives a solution. The constraint that $j$ and $k$ be odd says exactly that $n't$ and $m't$ are odd, i.e.\ that $m'$, $n'$ and $t$ are all odd. If $m'$ or $n'$ is even there is no admissible pair and the sum is empty, giving $0$. Otherwise428\[429\frac{8}{\pi^2}\sum_{t\text{ odd}}\frac{1}{m'n't^2}=\frac{8}{\pi^2}\cdot\frac{1}{m'n'}\cdot\frac{\pi^2}{8}=\frac{1}{m'n'}=\frac{g^2}{mn},430\]431using $\sum_{t\text{ odd}}t^{-2}=(1-\tfrac14)\zeta(2)=\pi^2/8$.432\end{proof}433434\begin{proof}[Proof of \cref{cor:odd}]435If $m,n$ are odd so are $m'$ and $n'$. For the mean, take $m=1$: $s(u)=1$ on $[0,1)$, so $\langle s(nu)\rangle=\int_0^1 s(1\cdot u)s(nu)\,du=1/n$ for odd $n$ by \cref{thm:master}. Then $\langle\chi_n\rangle=\tfrac12(1-\tfrac1n)=\frac{n-1}{2n}$.436\end{proof}437438\begin{proof}[Proof of \cref{thm:four}]439Write $a_m=1/m$ and $\mu_m=\langle\chi_m\rangle=(1-a_m)/2$, put $A=\int_0^1 s(mu)s(nu)\,du=d^2/(mn)$, and set440\[441\nu=\langle\chi_m\chi_n\rangle=\tfrac14\bigl\langle(1-s(mu))(1-s(nu))\bigr\rangle=\tfrac14\bigl(1-a_m-a_n+A\bigr),442\]443all by \cref{cor:odd} and \cref{thm:master}. Note $\nu-\mu_m\mu_n=\tfrac14(A-a_ma_n)=\frac{d^2-1}{4mn}$.444445\emph{Tree.} $\operatorname{Cov}(\mathrm{T}_m,\mathrm{T}_n)=\nu-\mu_m\mu_n$, and $\operatorname{Var}(\mathrm{T}_n)=\mu_n(1-\mu_n)=\frac{n^2-1}{4n^2}$ because $\chi_n$ is $\{0,1\}$-valued. Dividing gives the stated $r$.446447\emph{Carpet.} Since $u$ and $v$ are independent coordinates and $\mathrm{C}_n=\chi_n(u)\chi_n(v)$, we get $\langle \mathrm{C}_m\mathrm{C}_n\rangle=\nu^2$ and $\langle \mathrm{C}_n\rangle=\mu_n^2$, so $\operatorname{Cov}=\nu^2-\mu_m^2\mu_n^2=(\nu-\mu_m\mu_n)(\nu+\mu_m\mu_n)$. Now $4\nu=1-a_m-a_n+A$ and $4\mu_m\mu_n=1-a_m-a_n+a_ma_n$, so448\[449\nu+\mu_m\mu_n=\tfrac14\bigl(2-2a_m-2a_n+A+a_ma_n\bigr)=\frac{2(m-1)(n-1)+d^2-1}{4mn},450\]451using $2-2a_m-2a_n+2a_ma_n=2(1-a_m)(1-a_n)$ and $A-a_ma_n=(d^2-1)/(mn)$. Multiplying by $\nu-\mu_m\mu_n=(d^2-1)/(4mn)$ gives the stated covariance. For the variance put $m=n$, $d=n$: $\operatorname{Var}(\mathrm{C}_n)=\mu_n^2(1-\mu_n^2)=\frac{(n-1)^2(n+1)(3n-1)}{16n^4}$, since $4n^2-(n-1)^2=(n+1)(3n-1)$. Dividing the covariance by $\sqrt{\operatorname{Var}(\mathrm{C}_m)\operatorname{Var}(\mathrm{C}_n)}$ gives the stated $r$.452453\emph{Net.} $\mathrm{N}_n=(1-\chi_n(u))(1-\chi_n(v))$ has $\langle\mathrm{N}_n\rangle=\bar\mu_n^2$ with $\bar\mu_n=(1+a_n)/2$, and $\langle\mathrm{N}_m\mathrm{N}_n\rangle=\bar\nu^2$ with $\bar\nu=1-\mu_m-\mu_n+\nu=\tfrac14(1+a_m+a_n+A)$. This is the carpet computation with $a_m,a_n$ replaced by $-a_m,-a_n$ and $A$ unchanged, so the same algebra returns the same expression with $(m-1)(n-1)$ replaced by $(m+1)(n+1)$. For the variance put $m=n$, $d=n$: $\operatorname{Var}(\mathrm{N}_n)=\bar\mu_n^2(1-\bar\mu_n^2)=\frac{(n+1)^2(n-1)(3n+1)}{16n^4}$, since $4n^2-(n+1)^2=(n-1)(3n+1)$. Dividing the covariance by $\sqrt{\operatorname{Var}(\mathrm{N}_m)\operatorname{Var}(\mathrm{N}_n)}$ gives the stated $r$.454455\emph{Void.} $\mathrm{V}_n=\tfrac12(1+s(nu)s(nv))$ gives $\langle \mathrm{V}_n\rangle=\tfrac12(1+a_n^2)$ and456\[457\langle \mathrm{V}_m\mathrm{V}_n\rangle=\tfrac14\bigl(1+a_m^2+a_n^2+A^2\bigr),458\]459because the coordinates separate and $\langle s(mu)s(nu)\rangle\cdot\langle s(mv)s(nv)\rangle=A^2$. Hence $\operatorname{Cov}=\tfrac14(A^2-a_m^2a_n^2)$, which is $\frac{d^4-1}{4m^2n^2}$. Since $\mathrm{V}_n$ is $\{0,1\}$-valued, $\operatorname{Var}(\mathrm{V}_n)=\langle \mathrm{V}_n\rangle(1-\langle \mathrm{V}_n\rangle)=\frac{n^4-1}{4n^4}$, and dividing gives the stated $r$.460\end{proof}461462\begin{proof}[Proof of \cref{thm:zeroset}]463Each covariance carries the factor $d^2-1$ or $d^4-1$, which vanishes at $d=1$; so all four are $0$ when $\gcd(m,n)=1$. If $d>1$ then $d^2-1>0$ and $d^4-1>0$, and the remaining factors are strictly positive for odd $m,n\ge3$: $4mn>0$, $4m^2n^2>0$, and both brackets $2(m\mp1)(n\mp1)+d^2-1$ are sums of positive terms, since $m-1\ge2$ and $n-1\ge2$. Hence all four are strictly positive.464\end{proof}465466\begin{proof}[Proof of \cref{cor:detector}]467If $n$ is prime then $\gcd(m,n)=1$ for every $m$ with $3\le m<n$, so every covariance vanishes by \cref{thm:zeroset}. If $n$ is odd and composite, let $p$ be its least prime factor; then $p$ is odd, $p\ge3$, and $p\le\sqrt n<n$, so $m=p$ is an odd scale in range with $\gcd(p,n)=p>1$, and the covariance at $(p,n)$ is strictly positive by \cref{thm:zeroset}.468\end{proof}469470\begin{proof}[Proof of \cref{thm:ray}]471Fix $x$ and set $\Phi(y)=s(y)s(y+x)$. Since $s(y+1)=-s(y)$, we have $\Phi(y+1)=\Phi(y)$: the product has period $1$, even though each factor has period $2$. Put $T(x)=\int_0^1\Phi(y)\,dy$. For odd $n$, substituting $y=nu$ and using periodicity,472\[473\int_0^1 s(nu)s(nu+nc)\,du=\frac1n\int_0^n\Phi(y)\,dy=T(nc).474\]475Next, $T$ has an absolutely convergent cosine expansion. Expand $\sin(\pi k(y+x))$ by the addition formula in the series for $s$, and average over a period: the mean of $\sin(\pi ky)\sin(\pi jy)$ is $\tfrac12\delta_{jk}$, and the mean of $\sin(\pi ky)\cos(\pi jy)$ is $0$ for $j$ and $k$ both odd, since $2\sin(\pi ky)\cos(\pi jy)=\sin(\pi(k+j)y)+\sin(\pi(k-j)y)$ with $k\pm j$ even and $\int_0^1\sin(\pi cy)\,dy=(1-\cos\pi c)/(\pi c)=0$ for every even $c\ne0$, while $c=0$ gives the zero function. So Parseval gives476\[477T(x)=\frac{8}{\pi^2}\sum_{k\text{ odd}}\frac{\cos(\pi kx)}{k^2},478\]479absolutely convergent and uniform in $x$.480481Now average over odd $n$. For a fixed integer $k\ge1$ and real $\theta=kc$,482\[483\frac1L\sum_{n\in S}\cos(\pi n\theta)\longrightarrow484\begin{cases}(-1)^{\theta}, & \theta\in\mathbb Z,\\ 0,&\theta\notin\mathbb Z,\end{cases}485\]486because for integer $\theta$ and odd $n$ we have $\cos(\pi n\theta)=(-1)^{n\theta}=(-1)^\theta$, while for $\theta\notin\mathbb Z$ the sum $\sum_{n\in S}e^{i\pi n\theta}$ is geometric with ratio $e^{2i\pi\theta}\ne1$, hence bounded by $2/|1-e^{2i\pi\theta}|$ uniformly in $L$, so its average tends to $0$. Since $\sum_k k^{-2}<\infty$ and each term is bounded by $1$, truncating the sum at $k\le K$ with an error at most $\frac{8}{\pi^2}\sum_{k>K}k^{-2}$ uniformly in $L$ justifies exchanging the limit with the sum. Therefore487\[488\lim_{L\to\infty}Q_L(c)=\frac{8}{\pi^2}\sum_{\substack{k\text{ odd}\\ kc\in\mathbb Z}}\frac{(-1)^{kc}}{k^2}.489\]490For irrational $c$ the index set is empty and the limit is $0$. For $c=a/b$ reduced, $kc\in\mathbb Z$ forces $b\mid k$; if $b$ is even this is incompatible with $k$ odd and the limit is $0$. If $b$ is odd, write $k=bk'$ with $k'$ odd; then $kc=k'a$ and $(-1)^{k'a}=(-1)^a$, so the sum is $\frac{8}{\pi^2}\frac{(-1)^a}{b^2}\sum_{k'\text{ odd}}k'^{-2}=\frac{(-1)^a}{b^2}$.491\end{proof}492493\begin{proof}[Proof of \cref{prop:origin}]494Along the line, $u=pw$ and $v=qw$, so the mean in question is $\int_0^1 s(npw)s(nqw)\,dw$. Apply \cref{thm:master} to the pair $(np,nq)$: its gcd is $n\gcd(p,q)=n$, and the two quotients are $p$ and $q$. Hence the integral is $n^2/(np\cdot nq)=1/(pq)$ when $p$ and $q$ are both odd, and $0$ otherwise. Neither answer involves $n$, so averaging over any set of odd scales returns the same value.495\end{proof}496497\begin{proof}[Proof of \cref{prop:variance}]498$\operatorname{Var}(G_L)=\frac1{L^2}\sum_{m,n\in S}\operatorname{Cov}(\mathrm{C}_m,\mathrm{C}_n)$ by bilinearity, and each summand is given by \cref{thm:four}; the diagonal terms $m=n$ are covered by the same formula, which at $d=m=n$ reduces to $\operatorname{Var}(\mathrm{C}_n)$, and the terms with $n=1$ vanish since $\mathrm{C}_1\equiv0$. Every summand is rational, so the total is. The three quoted values are computed exactly in \texttt{scripts/verify.py}.499\end{proof}500501\begin{proof}[Proof of \cref{thm:spectrum}]502Two one-dimensional integrals do all the work:503\begin{gather*}504\int_0^1 \sin(\pi a u)\, du = \frac{1 - \cos \pi a}{\pi a},\\505\int_0^1 \sin(\pi j n u)\sin(\pi a u)\, du = \tfrac12 \mathbf 1[jn = a].506\end{gather*}507The first is $2/(\pi a)$ for odd $a$ and $0$ for even $a$; the second holds for positive integers $jn$ and $a$. Expanding the square wave in its odd-harmonic series $s(x) = \frac4\pi \sum_{j \text{ odd}} \sin(\pi j x)/j$, valid in $L^2$, and applying the second integral to each term,508\[509\int_0^1 s(nu)\,\sin(\pi a u)\, du = \frac{2}{\pi}\,\frac{n}{a}\,\mathbf 1\bigl[\,n \mid a \text{ and } a/n \text{ odd}\,\bigr].510\]511For odd $a$ and odd $n$ the cofactor condition is automatic. Now $\mathrm{C}_n = \tfrac14\bigl(1 - s_n(u)\bigr)\bigl(1 - s_n(v)\bigr)$ splits the double integral into four products of the one-dimensional integrals just computed: for odd $a, b$,512\begin{multline*}513\int_0^1\!\!\int_0^1 \mathrm{C}_n \sin(\pi a u)\sin(\pi b v)\, du\, dv \\514= \frac{1}{\pi^2 ab}\Bigl[ 1 - n\,\mathbf 1[n \mid a] - n\,\mathbf 1[n \mid b] + n^2\,\mathbf 1[n \mid \gcd(a,b)] \Bigr].515\end{multline*}516Averaging over $n \in S$ assembles the bracket of the theorem with $\sigma_1^S$ and $\sigma_2^S$. For even $a$ every term vanishes: the constant and the pure-$v$ terms because $\int_0^1 \sin(\pi a u)\, du = 0$, the others because $jn = a$ is impossible with $j, n$ odd. When $\gcd(a,b) \le 2L-1$ every divisor of the odd number $\gcd(a,b)$ is odd and at most $2L-1$, hence lies in $S$.517\end{proof}518519\begin{proof}[Proof of \cref{cor:parseval}]520$\langle s_n \rangle = 1/n$ for odd $n$ (\cref{cor:odd}), so $\widehat{s}_n = s_n - 1/n$ has mean zero, and $1 - s_n = \alpha_n - \widehat{s}_n$ gives the stated four-term form of $\mathrm{C}_n$. The three families -- constants, mean-zero functions of one variable, and products of two mean-zero one-variable functions -- are mutually orthogonal in $L^2$ of the square, because every cross-pairing contains a factor $\langle \widehat{s}_n \rangle = 0$. Within the axis blocks, $\langle \widehat{s}_m \widehat{s}_n \rangle = \langle s_m s_n \rangle - 1/(mn) = (d^2-1)/(mn)$ by \cref{thm:master}; within the interior block, $\langle \widehat{s}_m(u)\widehat{s}_m(v)\, \widehat{s}_n(u)\widehat{s}_n(v) \rangle = \langle \widehat{s}_m \widehat{s}_n \rangle^2 = (d^2-1)^2/(mn)^2$. Hence521\[522\operatorname{Var}(G_L) = \frac{2}{16L^2}\sum_{m,n \in S} \alpha_m \alpha_n \frac{d^2-1}{mn} + \frac{1}{16L^2}\sum_{m,n \in S} \frac{(d^2-1)^2}{m^2n^2},523\]524and $\alpha_m \alpha_n / (mn) = (m-1)(n-1)/(m^2n^2)$ gives the display. Adding the two summands recovers $(d^2-1)[2(m-1)(n-1) + d^2 - 1]/(16m^2n^2)$, the carpet law of \cref{thm:four}, so this is a second, spectral derivation of \cref{prop:variance}.525\end{proof}526527\begin{proof}[Proof of \cref{thm:zetaquot}]528For the first identity, write $\sigma_2(g) = \sum_{d \mid g} d^2$ and exchange sums: with all variables odd,529\begin{multline*}530\sum_{a,b} \frac{\sigma_2(\gcd(a,b))}{(ab)^w} = \sum_{d} d^2 \sum_{d \mid a,\ d \mid b} (ab)^{-w} \\531= \sum_d d^{2-2w} \Bigl( \sum_{a'} a'^{-w} \Bigr)^{\!2} = \lambda(2w-2)\, \lambda(w)^2,532\end{multline*}533using that $a = da'$ ranges over odd multiples exactly when $d$ and $a'$ are odd. Convergence needs $\operatorname{Re} w > 1$ and $\operatorname{Re}(2w-2) > 1$, i.e.\ $\operatorname{Re} w > 3/2$.534For the second, two classical steps. Step 1: $E(s) := \sum_{n \text{ odd}} \sigma_2(n)^2 n^{-s} = \lambda(s)\lambda(s-2)^2\lambda(s-4)/\lambda(2s-4)$. This is Ramanujan's identity $\sum_n \sigma_a(n)\sigma_b(n) n^{-s} = \zeta(s)\zeta(s-a)\zeta(s-b)\zeta(s-a-b)/\zeta(2s-a-b)$ at $a = b = 2$ \cite{ramanujan,titchmarsh}, restricted to odd $n$: both sides are Euler products over primes, the local factor at $p$ being $(1 - p^{4-2s})\bigl[(1-p^{-s})(1-p^{2-s})^2(1-p^{4-s})\bigr]^{-1}$, so deleting the $p = 2$ factor replaces each $\zeta$ by $\lambda$. Step 2: for any multiplicative $f$ on the odd integers, $\sum_{a,b \text{ odd}} f(\gcd(a,b))(ab)^{-w} = \lambda(w)^2 \sum_{g \text{ odd}} (f * \mu)(g)\, g^{-2w} = \lambda(w)^2\, D_f(2w)/\lambda(2w)$, where $D_f$ is the Dirichlet series of $f$ over odd integers, by M\"obius inversion of the divisor-sum exchange in the first display. Taking $f = \sigma_2^2$, $D_f = E$, gives $\lambda(w)^2 E(2w)/\lambda(2w) = \lambda(w)^2 \lambda(2w-2)^2 \lambda(2w-4)/\lambda(4w-4)$. Convergence needs $\operatorname{Re}(2w-4) > 1$, i.e.\ $\operatorname{Re} w > 5/2$.535\end{proof}536537\begin{proof}[Proof of \cref{cor:weighted}]538For $\operatorname{Re} s > 1$ the layer sum converges absolutely, since $0 \le \mathrm{C}_n \le 1$. Exactly as in the proof of \cref{thm:spectrum}, the interior coefficient of layer $n$ is $(\pi^2 ab)^{-1} n^2 \mathbf 1[n \mid \gcd(a,b)]$, so weighting by $n^{-s}$ and summing over odd $n$ gives $(\pi^2 ab)^{-1} \sum_{n \mid \gcd(a,b)} n^{2-s}$; for odd $a$ and $b$ every divisor qualifies, and the sum is finite, entire in $s$. The Dirichlet identity is the first display of the proof of \cref{thm:zetaquot} with $d^2$ replaced by $d^{2-s}$.539\end{proof}540541\begin{proof}[Proof of \cref{prop:space}]542A function on $\{\pm1\}^k$ has a unique multilinear expansion whose coefficients are the correlations with the corresponding monomials. For $H$: the value is $0$ only at $(\sigma_1,\sigma_2)=(-1,-1)$ and $1$ elsewhere, so the constant term is $3/4$, each single coefficient is $\frac14(1+1-1+0)=\frac14$, and the pair coefficient is $\frac14(1-1-1+0)=-\frac14$. For $F$: the value is $1$ at the four patterns with at most one $-1$ and $0$ at the other four, so the constant term is $1/2$; each single coefficient is $\frac18(1-1+1+1)=\frac14$; each pair coefficient is $\frac18(1-1-1+1)=0$; the triple coefficient is $\frac18(1-1-1-1)=-\frac14$. Both expansions are verified by exhaustive evaluation in \texttt{scripts/verify.py}.543\end{proof}544545\begin{proof}[Proof of \cref{prop:brightness}]546Take $b$ even. Then $K(a/b)=0$ for every reduced $a/b$, while $\mu$ takes all three values $-1,0,+1$ on even $b$: $\mu(2)=-1$, $\mu(4)=0$, $\mu(6)=+1$. A function of $K(a/b)$ is constant on that set and $\mu$ is not, so no such $f$ exists.547\end{proof}548549\section{Reproducibility}550\label{sec:repro}551552Two scripts, both plain \texttt{python3} with only the standard library, both run from the paper's own directory, no arguments and no network. Together they take under two seconds on a laptop.553554\texttt{python3 scripts/verify.py} runs in about $1.2$ seconds and prints one line per block, ending in \texttt{all green}; every check is an assertion naming the value it got and the value it wanted, and exit code $0$ is the only pass signal. It checks, in order: (i) \cref{thm:master} against an exact rational integration on the $\mathrm{lcm}$ grid for \emph{all} pairs $1\le m\le n\le40$, zero mismatches, and confirms that the unqualified law $g^2/(mn)$ fails on exactly $532$ of those pairs, with $(1,2)\mapsto0$ and $(2,6)\mapsto1/3$; (ii) the same integration for all odd pairs $1\le m\le n\le99$, zero mismatches, and $\langle s(mu)\rangle=1/m$ for every odd $m\le99$; (iii) the carpet, net and void covariances by genuine two-dimensional cell counting on the $\mathrm{lcm}\times\mathrm{lcm}$ grid at $(3,9),(5,15),(9,15),(7,21),(3,5),(5,7)$, matching \cref{thm:four} exactly, with $\operatorname{Cov}(\mathrm{C}_3,\mathrm{C}_9)=20/729$ and $\operatorname{Cov}(\mathrm{N}_3,\mathrm{N}_9)=44/729$, and the net's Pearson formula against the ratio built from those same counts; (iv) all four closed forms of \cref{thm:four} against covariances assembled from the brute-forced integrals, for every odd pair $3\le m\le n\le39$, together with \cref{thm:zeroset} on that domain, where exactly $139$ pairs are coprime, and the four correlations quoted at $(3,9)$ in their stated order; (v) \cref{fact:separation} in full over odd $3\le n\le199$, each of the three quoted scores at $n=169$ recomputed as a true maximum over all odd $m<169$; (vi) \cref{prop:origin} for every odd $n\le9$ and all coprime $p,q\le8$; (vii) the finite-stack ray values of \cref{rem:finiteN} at $L=28$ in exact rationals; (viii) \cref{prop:variance} at $L=28,101,501$, the whole double sum accumulated in exact rational arithmetic and all three values asserted; (ix) the classical sawtooth identity of \cref{sec:prior} for all pairs $1\le m\le n\le16$; (x) the truncation of $T$ at cutoff $1001$, giving $1.112233083$ against the quoted $1.1122336970$; (xi) \cref{prop:brightness} over all $4081$ reduced $a/b$ with even $b\le200$, the vanishing ray strength of each recomputed independently of the formula, as the exact triangle-wave stack average $\frac1b\sum_{n}T(na/b)$ over the $b$ odd scales $n<2b$, which is $0$ because $n\mapsto n+b$ pairs the terms with opposite signs; and (xii) \cref{prop:space} by exhaustive evaluation of both rules. Four blocks cover the spectral section: (xiii) \cref{thm:spectrum} at $L = 5$ by cell-exact evaluation of the layer integrals $\int_0^1 \chi_n \sin(\pi a u)\, du$ against the divisor-sum formula for all pairs $a, b \le 15$ and at $(45,45)$, with every even-indexed coefficient vanishing to $10^{-12}$; (xiv) the blockwise variance split of \cref{cor:parseval} as an exact rational identity for $L = 2$ through $8$; (xv) both zeta-quotient identities of \cref{thm:zetaquot}, the truncated double gcd-sums at $w = 3$ and $w = 3.5$ against the $\lambda$-products with $\zeta$ evaluated by Euler--Maclaurin; and (xvi) the weighted-stack identity of \cref{cor:weighted} at $s = 3$, $w = 2$.555556\texttt{python3 scripts/figure.py} runs in well under a second and writes \texttt{figures/carpet.svg}, the correlation matrix $r(\mathrm{C}_m,\mathrm{C}_n)$ over odd $3\le m,n\le63$ shaded from white at $0$ to black at $1$, with the prime scales labelled; the white rows and columns are the primes. It is the only figure the repository's \texttt{README.md} embeds; \cref{fig:overlap} is drawn inline in the manuscript.557558Two claims in this paper are deliberately outside the scripts' reach and are labelled as such where they appear. \Cref{rem:hex} reports correlations measured on rendered hexagonal sections, which needs a rasteriser and is a measurement, not a theorem. \Cref{con:variance} is a conjecture about a limit; only its exact finite-$L$ values are checked. Everything else in the paper is either proved in \cref{sec:proofs} or checked by \texttt{scripts/verify.py} on the exact domain stated in its own statement. The manuscript builds with \texttt{tectonic paper.tex}.559560\section*{Acknowledgments}561562This paper was developed and verified in collaboration with Claude (Anthropic). The author takes sole responsibility for every claim.563564\begin{thebibliography}{9}565566\bibitem{apostol}567T. M. Apostol, \emph{Modular Functions and Dirichlet Series in Number Theory}, 2nd ed., Graduate Texts in Mathematics 41, Springer, 1990. \url{https://doi.org/10.1007/978-1-4612-0999-7}568569\bibitem{baezduarte}570L. B\'aez-Duarte, \emph{A new necessary and sufficient condition for the Riemann hypothesis}, 2003. \url{https://arxiv.org/abs/math/0307215}571572\bibitem{mcintosh}573B. C. Berndt, L. Xie and A. Zaharescu, \emph{Proofs of McIntosh's conjecture on Franel integrals and two generalizations}, Adv. Math. \textbf{423} (2023), 109041. \url{https://arxiv.org/abs/2211.06504}574575\bibitem{ramanujan}576S.~Ramanujan, \emph{Some formulae in the analytic theory of numbers}, Messenger of Mathematics \textbf{45} (1916), 81--84. The identity $\sum_n \sigma_a(n)\sigma_b(n) n^{-s} = \zeta(s)\zeta(s-a)\zeta(s-b)\zeta(s-a-b)/\zeta(2s-a-b)$.577578\bibitem{steinshakarchi}579E. M. Stein and R. Shakarchi, \emph{Fourier Analysis: An Introduction}, Princeton Lectures in Analysis 1, Princeton University Press, 2003. \url{https://press.princeton.edu/books/hardcover/9780691113845/fourier-analysis}580581\bibitem{titchmarsh}582E.~C. Titchmarsh, \emph{The Theory of the Riemann Zeta-Function}, 2nd ed., Oxford University Press, 1986. Section 1.3 for the Ramanujan identity and its Euler-product proof.583584\bibitem{oeis}585OEIS Foundation Inc., \emph{The On-Line Encyclopedia of Integer Sequences}, sequence A000040 (the prime numbers). \url{https://oeis.org/A000040}586587\end{thebibliography}588589\end{document}