arXiv:2608.30082math.COAug 2026

Manuscript Offprint

arXiv:2608.30082

Mutually orthogonal anti-Latin squares

Eishiro Aoyama, So Hasegawa, Masahito Hayashi, Tomoki Sagara

Abstract

Anti-Latin squares were introduced in connection with non-linear secure network coding, and the extremal problem for large mutually orthogonal families is motivated by that setting. We study the maximum size NA(d)N_A(d) of a family of mutually orthogonal anti-Latin squares of order dd. We prove that NL(d)+1≤NA(d)≤NL(d)+2N_L(d) + 1 \leq N_A(d) \leq N_L(d) + 2 for every d≥3d \geq 3, where NL(d)N_L(d) denotes the classical maximum size of a family of mutually orthogonal Latin squares of order dd, and we show that in fact NA(3)=NL(3)+1N_A(3) = N_L(3) + 1 whereas NA(d)=NL(d)+2N_A(d) = N_L(d) + 2 for every d≥4d \geq 4. The upper bound is obtained by passing through balanced matrices, while the lower bound is given by a deterministic permutation argument. For all d≥8d \geq 8, and also for the exceptional order d=6d = 6, the upper bound is shown to be attainable by a general probabilistic construction. On the structural side, we show that a saturated family of size d+1d + 1 induces an affine plane of order dd, and that the saturated case is characterized by the existence of an anti-coordinate grid decomposition; after transporting this condition to the fixed cell set [d]2[d]^2, it becomes a direction-completeness condition on the corresponding row-blocks and column-blocks. The remaining small orders are treated separately: d=3d = 3 is handled by direct analysis and classification of orthogonal triples, d=4d = 4 by an explicit saturated construction and an analysis of its finite-geometric structure, and d=5d = 5 and d=7d = 7 by explicit saturated examples arising from the random-grid framework. Thus NA(d)N_A(d) is determined in terms of NL(d)N_L(d) for every d≥3d \geq 3, and its numerical value is obtained explicitly for every 3≤d≤93 \leq d \leq 9.

Keywords: anti-Latin square, mutually orthogonal squares, extremal combinatorics, affine plane, secure network coding

MSC Classification: 05B15, 68M10

1 Introduction

Latin squares and their mutually orthogonal families are classical objects in combinatorics and design theory [1–3]. A central extremal quantity is NL(d)N_L(d), the maximum size of a family of mutually orthogonal Latin squares of order dd. When dd is a prime power, it is known that NL(d)=d−1N_L(d)=d-1 [6, 7]. More generally, if d=∏j=1kpjnjd=\prod_{j=1}^k p_j^{n_j}, then the classical MacNeish lower bound asserts that NL(d)≥min⁡jpjnj−1N_L(d) \geq \min_j p_j^{n_j}-1 [6, 7]. The exact determination of NL(d)N_L(d) is in general difficult and remains a longstanding problem in combinatorics [8–16].

In this paper, we study the corresponding extremal problem for anti-Latin squares. Anti-Latin squares were introduced in connection with non-linear secure network coding [4, 5]. In that setting, orthogonality is needed for correct transmission, while a biased arrangement is useful for concealing information from an eavesdropper. Anti-Latin squares capture this non-uniformity, and mutually orthogonal anti-Latin squares therefore arise naturally as combinatorial objects in secure network coding [4, 5].

A d×dd \times d matrix on a set of dd symbols is called an anti-Latin square of order dd if at least one symbol repeats in every row and in every column, and each symbol appears exactly dd times in the whole matrix. For example,

A1:=(112022010)A_1 := \begin{pmatrix} 1 & 1 & 2 \\ 0 & 2 & 2 \\ 0 & 1 & 0 \end{pmatrix}

is an anti-Latin square of order 3. Two anti-Latin squares (ai,j)(a_{i,j}) and (bi,j)(b_{i,j}) are called orthogonal if the map (i,j)↦(ai,j,bi,j)(i,j) \mapsto (a_{i,j}, b_{i,j}) is one-to-one. For instance, the two anti-Latin squares

A2:=(100121220),A3:=(212110200)A_2 := \begin{pmatrix} 1 & 0 & 0 \\ 1 & 2 & 1 \\ 2 & 2 & 0 \end{pmatrix}, \qquad A_3 := \begin{pmatrix} 2 & 1 & 2 \\ 1 & 1 & 0 \\ 2 & 0 & 0 \end{pmatrix}

are orthogonal. Orthogonal pairs of anti-Latin squares already play a key role in the construction of non-linear secure network codes over the one-hop relay network, and examples exist for every integer d≥3d \geq 3 [4].

Let A(d)\mathcal{A}(d) denote the set of anti-Latin squares of order dd, and let NA(d)N_A(d) denote the maximum size of a mutually orthogonal family in A(d)\mathcal{A}(d). The present paper addresses the extremal problem of determining NA(d)N_A(d) and clarifies its relation to the classical Latin-square quantity NL(d)N_L(d) [5].

Our first result shows that the anti-Latin extremal problem is always very close to the classical one: for every d≥3d \geq 3, we have NL(d)+1≤NA(d)≤NL(d)+2N_L(d) + 1 \leq N_A(d) \leq N_L(d) + 2. The main extremal result of the paper resolves this ambiguity completely, as stated in the following theorem.

Theorem 1. We have

NA(3)=NL(3)+1,NA(d)=NL(d)+2(d≥4).N_{A}(3)=N_{L}(3)+1,\qquad N_{A}(d)=N_{L}(d)+2\quad(d\geq4).

Thus, apart from the single exceptional order d=3d=3, the maximum number of mutually orthogonal anti-Latin squares is always exactly two larger than the corresponding Latin-square extremal number.

For clarity, the contributions of the paper may be viewed on three levels. First, we establish the universal comparison between NA(d)N_{A}(d) and NL(d)N_{L}(d) and derive the exact formula in Theorem 1. Second, we identify the geometric structure underlying saturated families, that is, families of size d+1d+1. Third, we complete the low-order analysis: we classify the extremal triples for d=3, analyze the additional finite-geometric structure forced in the saturated case d=4, and give explicit saturated constructions for d=5 and d=7.

The geometric ingredients used in the saturated case belong to several classical correspondences in finite design theory. Complete nets, affine planes, orthogonal arrays of strength two, and complete families of mutually orthogonal Latin squares are different representations of closely related incidence structures [17–20, 28]. Our contribution is not a new version of this classical correspondence. Rather, we show that the anti-Latin condition selects an additional pair of orthogonal resolutions of the point set such that none of their blocks is transversal to any parallel class. Equivalently, a saturated family is characterized by an affine plane equipped with what we call an anti-coordinate grid decomposition.

In the Desarguesian model AG(2,q)AG(2,q), this additional condition can be expressed in terms of directions determined by point sets. The classical direction problem studies the number and structure of directions determined by a single affine point set [22–25]. The present problem instead requires two orthogonal partitions of AG(2,q)AG(2,q) into q-point sets, with every block in both partitions determining all q+1q+1 directions. Thus the relevant object is a globally compatible system of direction-complete sets, rather than a single point set with a prescribed set of directions.

The proof combines general arguments with separate treatments of the small orders. We first obtain the upper bound by passing through balanced matrices and the lower bound by a deterministic cell permutation. A probabilistic cell-permutation argument attains the upper bound for every d≥8d \geq 8 and also for d = 6. The remaining cases are handled individually: d = 3 by direct analysis and classification, d = 4 by an explicit saturated construction and a finite-geometric analysis, and d = 5 and d = 7 by explicit constructions arising from the random-grid framework. Consequently, the numerical value of NA(d)N_A(d) is determined explicitly for every 3≤d≤93 \leq d \leq 9.

The paper is organized as follows. Section 2 establishes the general extremal bounds by introducing balanced matrices, proving NA(d)≤NL(d)+2N_A(d) \leq N_L(d) + 2, and obtaining the deterministic lower bound NA(d)≥NL(d)+1N_A(d) \geq N_L(d) + 1. Section 3 gives the probabilistic cell-permutation argument for d≥8d \geq 8 and d=6d = 6, and records the random-grid sampling procedure used for the explicit prime-power constructions. Section 4 develops the geometric reformulation, passing from orthogonal balanced matrices to nets and characterizing saturated families by affine planes with anti-coordinate grid decompositions; it then gives the corresponding direction formulation on the fixed cell set [d]2[d]^2. Section 5 treats the remaining small orders, including the classification for d=3d = 3 and the geometric analysis for d=4d = 4, and completes the proof of the main theorem. The appendices provide the explicit examples for d=5d = 5 and d=7d = 7 together with reproducibility information.

References (28)