\section{Proof of Theorem~\ref{thm:main}}\label{sec:main} For prime $n$ the Cayley table of $\Z_n$ has no proper subsquare: a subsquare with rows $A$ and columns $B$ contains the symbols $A + B$, and by the Cauchy--Davenport theorem $|A + B| \ge \min(n, 2|A| - 1)$, which exceeds $|A|$ unless $|A| \le 1$ or $|A| = n$. An even order $n \ge 16$ is $4w$ with $w \ge 4$ or $2(2u + 1)$ with $u \ge 4$. An odd composite order $n$ other than $9$ has a smallest prime factor $k \ge 3$ and a cofactor $m = n/k \ge k$; $m$ is odd, and $m \ge 5$ unless $n = 9$. For all these orders Proposition~\ref{prop:rules} gives a square of the class family without proper subsquares. The orders $1$, $2$, $3$, $5$, $7$, $11$ and $13$ are prime or trivial. This leaves the orders $8$, $9$, $10$, $12$ and $14$. For each of them the appendix gives an explicit square, and I checked by computer that it has no proper subsquare. Call a set $R$ of rows, a set $C$ of columns and a set $S$ of symbols \emph{closed} if every cell of $R \times C$ has its symbol in $S$, if for $r \in R$ and $s \in S$ the column of $s$ in the row $r$ lies in $C$, and if for $c \in C$ and $s \in S$ the row of $s$ in the column $c$ lies in $R$. The rows, columns and symbols of a subsquare form a closed triple, so a proper subsquare would contain the smallest closed triple generated by two of its rows and one of its columns. For every choice of two rows and one column I computed this smallest closed triple, and it was the whole square each time. The squares of orders $10$ and $14$ belong to the class family, with unequal splits, and the square of order $12$ to a variant with another class field (Section~\ref{sec:rem}); the square of order $8$ is the one on Wanless's home page, and the square of order $9$ was found by a random search. This completes the proof. Algorithm~\ref{alg:square} collects the construction of this proof in one procedure. \begin{algorithm}[ht] \caption{A Latin square $K$ of order $n \notin \{4, 6\}$ without proper subsquares. As in Table~\ref{tab:params}, $[P]$ is $1$ if $P$ holds and $0$ otherwise; the values $t(g, b)$ are the shifts of the mirror rule.} \label{alg:square} \begin{algorithmic}[1] \If{$n \in \{8, 9, 10, 12, 14\}$} \State \Return the square of order $n$ in the appendix \ElsIf{$n = 1$ or $n$ is prime} \State \Return $K(r, c) = (r + c) \bmod n$ for $0 \le r, c < n$ \ElsIf{$n = 4w$} \State $k \gets 2$, $m \gets 2w$, $s \gets w$, and $t(g, 0) \gets g$, $t(g, 1) \gets 2 + g$ for $g \in \{0, 1\}$ \ElsIf{$n = 2(2u + 1)$} \State $k \gets 2$, $m \gets 2u + 1$, $s \gets u$, and $t(g, 0) \gets g$, $t(g, 1) \gets 3 + g$ for $g \in \{0, 1\}$ \Else \State $k \gets$ the smallest prime factor of $n$, $m \gets n/k$, $s \gets (m - 1)/2$ \State $t(g, 0) \gets [g = 0]$ and $t(g, 1) \gets 2 + [g = (k - 1)/2]$ for $0 \le g < k$ \EndIf \For{$0 \le h_r, h_c < k$ and $0 \le x_r, x_c < m$, with $r = h_r m + x_r$ and $c = h_c m + x_c$} \State $j \gets (h_c - h_r - [x_r \ge s \text{ and } x_c < s]) \bmod k$ \If{$j = 0$} \State $v \gets x_r + x_c$ \Else \State $(b, \ell, z) \gets (0, 0, s)$ if $x_c < s$, and $(b, \ell, z) \gets (1, s, m - s)$ otherwise \State $v \gets x_r + \ell + \bigl((t(h_c, b) - (x_c - \ell)) \bmod z\bigr)$ \EndIf \State $K(r, c) \gets j m + (v \bmod m)$ \EndFor \State \Return $K$ \end{algorithmic} \end{algorithm}