Manuscript Offprint
arXiv:2608.30082Mutually orthogonal anti-Latin squares
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 of a family of mutually orthogonal anti-Latin squares of order . We prove that for every , where denotes the classical maximum size of a family of mutually orthogonal Latin squares of order , and we show that in fact whereas for every . The upper bound is obtained by passing through balanced matrices, while the lower bound is given by a deterministic permutation argument. For all , and also for the exceptional order , 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 induces an affine plane of order , 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 , it becomes a direction-completeness condition on the corresponding row-blocks and column-blocks. The remaining small orders are treated separately: is handled by direct analysis and classification of orthogonal triples, by an explicit saturated construction and an analysis of its finite-geometric structure, and and by explicit saturated examples arising from the random-grid framework. Thus is determined in terms of for every , and its numerical value is obtained explicitly for every .
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 , the maximum size of a family of mutually orthogonal Latin squares of order . When is a prime power, it is known that [6, 7]. More generally, if , then the classical MacNeish lower bound asserts that [6, 7]. The exact determination of 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 matrix on a set of symbols is called an anti-Latin square of order if at least one symbol repeats in every row and in every column, and each symbol appears exactly times in the whole matrix. For example,
is an anti-Latin square of order 3. Two anti-Latin squares and are called orthogonal if the map is one-to-one. For instance, the two anti-Latin squares
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 [4].
Let denote the set of anti-Latin squares of order , and let denote the maximum size of a mutually orthogonal family in . The present paper addresses the extremal problem of determining and clarifies its relation to the classical Latin-square quantity [5].
Our first result shows that the anti-Latin extremal problem is always very close to the classical one: for every , we have . The main extremal result of the paper resolves this ambiguity completely, as stated in the following theorem.
Theorem 1. We have
Thus, apart from the single exceptional order , 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 and and derive the exact formula in Theorem 1. Second, we identify the geometric structure underlying saturated families, that is, families of size . 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 , 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 into q-point sets, with every block in both partitions determining all 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 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 is determined explicitly for every .
The paper is organized as follows. Section 2 establishes the general extremal bounds by introducing balanced matrices, proving , and obtaining the deterministic lower bound . Section 3 gives the probabilistic cell-permutation argument for and , 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 . Section 5 treats the remaining small orders, including the classification for and the geometric analysis for , and completes the proof of the main theorem. The appendices provide the explicit examples for and together with reproducibility information.
2.1 Upper bound for
Throughout this paper, we employ the symbol set . We begin this section by focusing on a mutually orthogonal family of balanced matrices.
Definition 1 (Balanced matrix). Let . A matrix over a symbol set of size d is called balanced if each symbol appears exactly d times in the matrix.
Let denote the maximum size of a mutually orthogonal family of balanced matrices. Given a mutually orthogonal family of Latin squares, , we define the following matrices and as
for . The definition of Latin squares implies that , are mutually orthogonal. Hence, we have . Conversely, let be a mutually orthogonal family of balanced matrices. Orthogonality of and implies that the map
is a bijection from the cell set onto . Let be its inverse, with the two coordinates ordered so that
For a matrix , write . Then and . For every , orthogonality of with and implies that each symbol occurs exactly once in every row and every column of ; hence form a mutually orthogonal family of Latin squares. Therefore , which gives . Thus, we have
Since the definition of an anti-Latin square contains the balanced condition, the relation holds. Therefore, we have the following theorem.
Theorem 2. The relation
holds.
2.2 Lower bound for
We next prove the deterministic lower bound.
Theorem 3. For every ,
Proof. Let be a mutually orthogonal family of Latin squares of maximum size , and let and be the row- and column-coordinate matrices
Then are mutually orthogonal. It is enough to construct one permutation of the cell set such that become anti-Latin, because a common cell permutation preserves balance and pairwise orthogonality.
Fix the symbol 0 in and set
Since is Latin, meets every row and every column in exactly one cell. Thus there is a permutation such that
All additions in the row index below are taken modulo . Define a permutation of by cyclically shifting the cells of ,
and fixing every cell outside . For any array A, write
We first consider a Latin square with . Orthogonality of and implies that the values
are all distinct, because they occur in the cells where . Hence
In row , the only changed cell is . Its new value is , which differs from the removed value. Since row of originally contains every symbol exactly once, the new value already occurs in one of the other, unchanged cells of that row. Therefore row of contains a repeated symbol.
Now fix a column . Since is a permutation, there is a unique with , and is the only changed cell in column . Its new value again differs from the removed value. Since column of originally contains every symbol exactly once, that new value occurs in another cell of the column, and this other cell is unchanged. Hence every column of also contains a repeated symbol. Thus is anti-Latin for every .
It remains to check the coordinate matrices. In row of , the entry at column changes from to . Since , the same value also occurs at the unchanged cell . Thus every row of has a repetition. In each column , all cells except still contain the value ; since , this gives a repetition in every column. Hence is anti-Latin.
Similarly, in row of , all cells outside retain the value , so every row has a repetition. In column , the changed cell has value , and the unchanged cell in row of the same column also has value because . Thus every column has a repetition, and is anti-Latin.
Consequently,
form a mutually orthogonal family of anti-Latin squares.
3 Probabilistic approach
3.1 The attainability of (3)
Let be a mutually orthogonal family of balanced matrices on the cell set . A common permutation of the cells preserves balance and pairwise orthogonality. We show that, for and also for , a uniformly random cell permutation has positive probability of making every matrix anti-Latin.
Theorem 4. When or d = 6, we have
Choose a permutation of uniformly at random and define . For and , let
be the bad event that row of has no repeated symbol;
be the bad event that column of has no repeated symbol.
Lemma 1. For every and ,
Proof. We prove the row formula; the column formula is identical. The image under of the cells in a fixed row is a uniformly distributed -subset of the cells. Hence there are equally likely image sets.
Because is balanced, each of its symbol classes contains exactly cells. The selected -subset has no repeated symbol exactly when it contains one cell from each symbol class. There are choices from each of the classes, hence such subsets. This proves (5).
Lemma 2. For every ,
Proof. If none of the 2d bad events
occurs, then every row and every column of contains a repeated symbol. Since a cell permutation preserves balance, is then anti-Latin. The union bound and Lemma 1 give
□
Applying the union bound once more over the matrices gives the following.
Lemma 3. Under a uniformly random cell permutation ,
The next estimate shows that the right-hand side of (8) is positive when in the required orders.
Lemma 4 (Numerical estimate for and d = 6). When or d = 6,
Proof. Since , it is sufficient for to show
Using
we obtain
The elementary inequality for gives
Therefore
Moreover,
so is decreasing, and
Thus the desired inequality holds for every .
For , the classical equality gives [26, 27]. Directly,
Proof of Theorem 4. Take a mutually orthogonal family of balanced matrices. By Lemma 4, the lower bound in (8) is positive. Hence some cell permutation makes all matrices anti-Latin. Therefore
The reverse inequality is Theorem 2.
3.2 Concrete algorithm: random-grid sampling
Let be a prime power. On , define
Algorithm 1 Random-grid sampling on
Require: A prime power and a positive trial limit
Ensure: Either a family of mutually orthogonal anti-Latin squares of order , or failure
1: for do 2: Sample a uniformly random bijection 3: Set SUCCESS← true 4: for each do 5: for each do 6: Test whether the multiset has a repeated value 7: Test whether the multiset has a repeated value 8: if either test fails then 9: Set SUCCESS← false 10: Skip the remaining tests and proceed to the next trial 11: end if 12: end for 13: end for 14: if SUCCESS then 15: Define for all and 16: return 17: end if 18: end for 19: return failure
The fibres of the maps are the parallel classes of the standard affine plane. Equivalently, after labeling their fibres, the arrays form a mutually orthogonal family of balanced matrices.
A trial of the random-grid procedure samples a uniformly random bijection
For every external row and column and every direction , it tests whether the corresponding -point image has two points in one fibre of . If all tests succeed, the line-membership arrays reconstructed from are anti-Latin and mutually orthogonal.
The algorithm is a finite search procedure. The probabilistic argument above is not needed to verify an output: once the arrays are displayed, their balancedness, anti-Latin row/column condition, and pairwise orthogonality can be checked directly.
4 Geometric reformulation
In this section, we extract the geometric structure underlying families of pairwise orthogonal balanced matrices, and hence in particular families of mutually orthogonal anti-Latin squares.
The passage from pairwise orthogonal balanced matrices to a net is the standard symbol-class construction, and the fact that a complete -net is an affine plane is classical [17, 20, 28, 30]. Likewise, the connections among complete nets, affine planes, orthogonal arrays of strength two, and complete families of mutually orthogonal Latin squares are well established [17–19].
The new point here is the treatment of the external row and column partitions. In the classical incidence structure they are auxiliary resolutions of the point set, whereas the anti-Latin condition requires every block of both resolutions to fail to be a transversal to every parallel class. Theorem 5 identifies this additional incidence condition exactly. It thereby separates the classical affine-plane structure carried by orthogonality and balance from the extra simultaneous resolution condition carried by the anti-Latin requirement.
Accordingly, the purpose of the present section is to pass from orthogonal balanced matrices to -nets, identify the saturated case with the affine-plane case, and formulate the additional anti-Latin condition as an anti-coordinate grid condition. We then compare the resulting condition with the classical single-set direction problem and give its finite-field form.
4.1 From orthogonal matrices to a -net
We begin by recording the abstract net structure carried by a family of pairwise orthogonal balanced matrices, in the language of finite nets from design theory [28, 30].
Definition 2 ((d, K)-net). Let be a finite set with . A family of partitions of is called a -net if the following conditions hold:
-
for each , the partition consists of exactly blocks, each of size ;
-
for any , every block of meets every block of in exactly one point.
The relevance of these notions is that a family of balanced pairwise orthogonal matrices determines precisely such a net structure.
Lemma 5 (Balanced orthogonal matrices yield a -net). Let , and let be pairwise orthogonal balanced matrices over . Set , and for each and , define . Then the families with form a -net on .
Proof. Fix . Since is balanced, each set has size . Since every entry of has a unique symbol, the sets are pairwise disjoint and cover . Hence is a partition of into blocks of size .
Now let and . Since and are orthogonal, the ordered pair appears exactly once among the positions. Therefore, we have . Thus form a -net on .
4.2 The saturated case: affine planes and anti-coordinate grids
Definition 3 (Affine plane of order [17]). An affine plane of order is a pair , where is a finite set of points and is a family of subsets of , called lines, such that:
-
each line contains exactly points;
-
any two distinct points lie on a unique common line;
-
for every line and every point , there exists a unique line through disjoint from .
Two lines are called parallel if they are disjoint. The set of all lines is then partitioned into parallel classes, each consisting of d pairwise disjoint lines.
By Lemma 5, any mutually orthogonal family of anti-Latin squares determines a -net, since anti-Latin squares are balanced by definition. In the saturated case , this incidence structure is exactly an affine plane of order d.
Corollary 1. If there exist mutually orthogonal anti-Latin squares of order d, then there exists an affine plane of order d.
Proof. A family of mutually orthogonal anti-Latin squares determines a -net. It is classical that a -net is equivalent to an affine plane of order [28, 30].
From this point on, we work on the point set of an affine plane in an abstract grid-decomposition language. Thus the symbols , , and refer to an abstract point set and two orthogonal partitions of that point set, rather than to the literal rows and columns of the coordinate grid .
Let Q be any set of cardinality . We say that a pair of families
forms a grid decomposition of if each and each has cardinality , both and are partitions of , and
The sets and are called the row-blocks and column-blocks, respectively. Their intersections identify with a grid. We apply this definition both to the point set of an affine plane and, after transport by a bijection, to the fixed cell set .
Definition 4. Let be a parallel class of . A subset with is called a -transversal if the relation holds for every line . A grid decomposition is called an anti-coordinate grid decomposition if no member of is a -transversal for any parallel class of .
There is a small but important distinction between the square-side and the geometry-side formulations. On the square side, a family of mutually orthogonal anti-Latin squares is written on the fixed coordinate grid , so the relevant row-blocks and column-blocks are the standard ones, . On the geometry side, however, we work with an abstract affine plane together with an arbitrary grid decomposition of its point set .
This difference is only one of presentation. Indeed, any such grid decomposition determines a bijection
since each intersection consists of a unique point. Via this bijection, the abstract grid decomposition may be identified with the standard coordinate grid. Conversely, any family of squares on yields such a grid decomposition by taking its literal rows and columns. Moreover, changing the identification amounts precisely to composing with a permutation of the cell set , and such a permutation preserves balancedness, pairwise orthogonality, and the anti-Latin property. Thus passing between the square-side and geometry-side descriptions involves no loss of information.
Theorem 5. Let be an affine plane of order . Then the following are equivalent.
(i) There exist mutually orthogonal anti-Latin squares of order on the symbol set and a bijection such that carries the associated -net of these squares onto the affine-plane net of .
(ii) The plane admits an anti-coordinate grid decomposition.
Proof. Assume first (i). Let be the given mutually orthogonal anti-Latin squares on , and let be a bijection carrying their associated -net onto the affine-plane net of . For each , set , and for each , set . Then and are partitions of into sets of size , and for all , because is a bijection. Thus is a grid decomposition of .
It remains to show that this grid decomposition is anti-coordinate. Fix a parallel class of . Since identifies the associated net of the squares with the affine-plane net of , the lines of are exactly the images under of the symbol classes of one of the squares, say . Now each row of contains a repeated symbol, because is anti-Latin. Hence the corresponding row-block cannot meet every line of in exactly one point; in other words, is not a -transversal. The same argument applies to each column-block . Therefore is an anti-coordinate grid decomposition of , proving (ii).
Conversely, assume (ii). Let be the parallel classes of , and write and for the given anti-coordinate grid decomposition. Since for all , there is a unique point with . Thus we obtain a bijection by .
For each , choose a bijection , and define a matrix on the symbol set by letting be the label under of the unique line of containing .
We claim that are mutually orthogonal anti-Latin squares. First, each is balanced: if , then the entries equal to are exactly those for which lies on the line , and that line has exactly points. Next, if and , then the lines and meet in a unique point of , hence in a unique point ; therefore the ordered pair appears exactly once among the superposed entries of and , so these two squares are orthogonal. Finally, fix . Because is anti-coordinate, no is a -transversal. Since has points and consists of lines partitioning the point set, the pigeonhole principle implies that some line of contains at least two points of ; equivalently, some symbol appears at least twice in row of . The same argument applies to each column-block , so every column of also contains a repeated symbol. Hence is anti-Latin.
Thus are mutually orthogonal anti-Latin squares of order . By construction, for each the symbol classes of are precisely the preimages under of the lines in the parallel class . Therefore carries the associated -net of these squares onto the affine-plane net of , proving (i).
The significance of Theorem 5 is that it separates two different layers of the saturated problem. On the one hand, the underlying incidence structure is not new: in the saturated case, it is exactly an affine plane of order . On the other hand, the genuinely anti-Latin part is no longer hidden in the entries of the squares, but is concentrated in the choice of a grid decomposition, namely in the requirement that no row-block or column-block be transversal to any parallel class.
Thus the existence of a saturated family is reduced to a two-step question: first, whether an affine plane of order exists at all; and second, whether that plane admits an anti-coordinate grid decomposition. In this way, Theorem 5 connects the present problem with the classical theory of affine planes and mutually orthogonal Latin squares, while at the same time identifying the extra condition that is specific to anti-Latin squares. This reformulation is useful both conceptually and technically: it gives an immediate structural obstruction in orders where affine planes do not exist, and in the positive cases it provides the geometric framework in which later coordinate and random-grid constructions are carried out.
4.3 Directions induced by parallel classes on
We now rewrite the geometric condition of Theorem 5 on the fixed cell set . Let be an affine plane of order , and let be a bijection. Via , each parallel class of may be viewed as a family of pairwise disjoint -subsets of . For convenience, we refer to these transported parallel classes as directions on . This is only a change of language: no field structure on is assumed. The terminology is motivated by the classical finite-geometry literature on directions determined by point sets [23–25].
Definition 5. Let be an affine plane of order , let be a bijection, and let with . For a parallel class of , we say that determines if some line in contains at least two points of . We say that is direction-complete (with respect to ) if it determines every parallel class of .
Remark 1 (Relation to the classical direction problem). For a point set in a Desarguesian affine plane, the classical direction problem studies the set of directions determined by differences of distinct points of , often with emphasis on lower bounds for and on the structure of sets attaining those bounds [22–24].
When , a direction is not determined precisely when meets each line of the corresponding parallel class once. Thus an undetermined direction is exactly a direction in which is a transversal, or equivalently is equidistributed among the parallel lines [25]. In this terminology, a direction-complete block is a -point set with no undetermined direction.
The anti-coordinate grid problem considered here imposes this extremal condition simultaneously on all blocks of two orthogonal partitions. This simultaneous resolution requirement is not part of the usual single-set direction problem.
Corollary 2. Let be an affine plane of order . Then the following are equivalent:
(i) There exist mutually orthogonal anti-Latin squares of order on the symbol set and a bijection such that carries the associated -net of these squares onto the affine-plane net of .
(ii) There exist a bijection and a grid decomposition of such that every member of is direction-complete with respect to .
Moreover, the passage between (i) and (ii) is constructive: from a family as in (i) one obtains by taking the images under of the row-blocks and column-blocks on , and conversely, from any as in (ii) one recovers a family of mutually orthogonal anti-Latin squares by labeling the lines in each parallel class of .
Proof. Fix a bijection . For a -subset and a parallel class , fails to determine precisely when every line of contains at most one point of . Since the lines of partition and , this is equivalent to saying that meets each line of in exactly one point. Thus is direction-complete if and only if is not transversal to any parallel class of . Applying this observation to all row-blocks and column-blocks, the statement is just Theorem 5 transported from the point set to the fixed cell set via .
In this form, the anti-coordinate condition is expressed entirely as a condition on which parallel classes are determined by the row-blocks and column-blocks when they are viewed on . This reformulation is useful because it turns the geometric non-transversality condition into a concrete combinatorial test on -subsets of , while still keeping the underlying affine-plane structure explicit.
4.4 Finite-field model of directions
We now specialize the preceding notion of directions to the standard affine plane over a finite field. Recall that, in Subsection 4.3, a direction on the fixed cell set means a parallel class of an affine plane after transport by a bijection from to the point set of that plane. When is a prime power, we may take the affine plane to be the standard plane on . In this model, the parallel classes admit the usual slope parametrization.
For each finite slope , let be the parallel class consisting of the lines
There is one further parallel class, namely the vertical class , consisting of the lines , . Here is only a formal symbol used to denote the vertical direction; it is not an element of . Thus, in the finite-field model, the parallel classes, and hence the directions in the sense of Subsection 4.3, are indexed by .
Equivalently, introduce the maps , , for , and , . The fibres of are the lines in , and the fibres of are the lines in .
Let be a -subset. Then determines the finite direction if and only if the multiset , equivalently , has a repeated value. Similarly, determines the vertical direction if and only if , equivalently , has a repeated value. Therefore, in this model, is direction-complete if and only if this repeated-value condition holds for every .
Finally, suppose that the external cell set remains the fixed grid . After choosing a bijection , a -subset determines the direction indexed by if and only if the multiset has a repeated value. Thus direction-completeness on is exactly the repeated-value test applied to the image in the finite-field affine plane.
Proposition 6 (Finite-field form of the saturated anti-Latin condition). Let be a prime power, and suppose that the affine plane associated with a saturated family is identified with the standard affine plane on . Index the squares by according to the corresponding parallel classes. Then a row-block or column-block satisfies the anti-Latin repetition condition simultaneously in all squares if and only if, for every , the multiset
contains a repeated value. Equivalently, X determines all directions of .
Proof. For a fixed direction , the fibres of are exactly the lines of that parallel class. Two points of have the same -value if and only if they lie on the same line of direction . After the lines are labeled by symbols, this is equivalent to a repeated symbol in the corresponding row or column of the square indexed by . Applying this observation to every proves the statement. This is the finite-field form of Corollary 2.
5 Small-order cases and classifications
We now treat the remaining small orders directly. The preceding sections develop the general structural framework for saturated families, while Section 3 gives its randomized construction. However, the cases and require separate arguments. The different treatments of these two orders reflect a structural distinction: the extremal families for are not saturated, since , whereas those for are saturated and therefore fall within the affine-plane framework of Section 4. We first introduce the equivalence notions used in the classification and then discuss the two orders in turn. The order-4 analysis is geometric rather than a complete isomorphism classification of saturated families.
5.1 Definitions of equivalence classes
For the classification in the case , we use the following notions of equivalence. They formalize the square-side operations that preserve the anti-Latin property and mutual orthogonality. The subsequent order-4 analysis is instead stated directly in the affine-plane language.
Definition 6 (Weak isomorphism for families of mutually orthogonal anti-Latin squares). Let and be two families of mutually orthogonal anti-Latin squares of order . We say that and are weakly isomorphic if there exist a permutation and symbol permutations () such that, for each , if we define a square by for , then . In the weak notion, the grid is fixed: rows and columns are not permuted.
Definition 7 (Strong isomorphism for families of mutually orthogonal anti-Latin squares). With the notation of Definition 6, we say that and are strongly isomorphic if there exist a permutation , symbol permutations (), and permutations such that, for each , if we define , then . Thus, in addition to the weak operations, we allow a common row permutation and a common column permutation , applied simultaneously to all squares.
5.2 Classification in the case
5.2.1 The exact value
We first determine the exact value of . By Theorem 3, we have . Since , this gives the lower bound . Thus it remains only to prove the upper bound .
We begin with a simple structural fact about anti-Latin squares of order 3.
Lemma 6. Let be an anti-Latin square of order 3. Then no row and no column is constant. Equivalently, each row and each column has the form up to permutation of its three entries, with .
Proof. Since is anti-Latin, every row and every column contains a repeated symbol. It remains only to exclude the possibility that all three entries in some row are equal.
Assume, for contradiction, that one row is . Since each symbol appears exactly three times in the whole square, the symbol does not occur in the other two rows. Hence every entry in those two rows belongs to the remaining two symbols, say and . In every column, the two entries outside the constant row must be equal, because the entry in the constant row is and the column must contain a repeated symbol. Therefore the two remaining rows are identical. But then the total numbers of occurrences of and in these two rows are both even, whereas each of and must occur exactly three times in the whole square. This is impossible. Hence no row is constant. The same argument applied to the transpose shows that no column is constant.
The upper bound is obtained by normalizing the first rows of a pairwise orthogonal family.
Lemma 7. Let be a family of pairwise orthogonal anti-Latin squares of order 3. After independent symbol relabelings, we may assume that the entry at is equal to 0 in every square of . Then the first row of each square in is one of
and these six patterns split into the three incompatible pairs
For each of these three pairs, at most one pattern can occur among the first rows of the squares in . In particular, the inequality holds. Moreover, if , then after reordering the three squares and applying independent symbol relabelings, their first rows may be normalized to
Proof. For each square , choose a symbol permutation so that the entry at becomes 0. Since symbol relabeling preserves both the anti-Latin property and orthogonality, we may assume that for every square .
Because is anti-Latin, the first row contains a repeated symbol. By Lemma 6, the first row is not constant. Hence the first row must be one of
These six possibilities split into the three pairs
If two distinct squares had first rows belonging to the same pair, then one ordered pair would be repeated within the first row of their superposition, contradicting orthogonality. For example, if two squares had first rows and , then the ordered pair would appear twice in the first row of the superposition. The other two pairs are excluded in exactly the same way.
Thus at most one pattern from each incompatible pair can occur. Since the six admissible first-row patterns are partitioned into three incompatible pairs, it follows that .
If , then exactly one pattern from each incompatible pair occurs. After reordering the three squares and, if necessary, independently relabeling the nonzero symbols in each square, these three patterns may be normalized to
This proves the lemma.
Corollary 3. We have
Proof. The lower bound was established above. On the other hand, Lemma 7 shows that any pairwise orthogonal family of anti-Latin squares of order 3 has size at most 3. Hence .
5.2.2 A normal form for anti-Latin squares of order 3
We now describe anti-Latin squares of order 3 by a single normal form.
Throughout this subsection, all row and column indices are taken in , and all additions of indices are understood modulo 3.
Definition 8 (Symbol-support). Let be a array on the symbol set . For , we define the support of in by
Definition 9. For and , we define the array on by
Definition 10 (Normalized anti-Latin squares of order 3). anti-Latin square on the symbol set is said to be normalized if, for each , the symbol appears exactly twice in row .
Indeed, in any anti-Latin square of order 3, the repeated symbols in the three rows are pairwise distinct. Consequently, there is a unique symbol relabeling that sends the repeated symbol in row to for every , and this relabeling makes the square normalized.
Proposition 7 (Normal form for ). Let be a normalized anti-Latin square of order 3. Then there exist unique and such that . Consequently, the natural action of by symbol relabeling on anti-Latin squares is free, every orbit contains exactly one normalized square, and the number of anti-Latin squares of order 3 is .
Proof. By Lemma 6, each row and each column contains a repeated symbol, but no row and no column is constant.
Step 1: the -shape of each symbol-support. Since is normalized, the repeated symbol in row is for each . The repeated symbols in the three columns are pairwise distinct: if two columns had the same repeated symbol, that symbol would occur at least four times, contradicting balancedness. Hence, for each , there is a unique column whose repeated symbol is ; we denote this column by . Then symbol appears twice in row and twice in column . Since symbol appears exactly three times in total, these two double occurrences must overlap in one corner cell. Hence there exist such that
Step 2: the two signs are independent of . We show that the signs and do not depend on . Recall from Step 1 that
First consider the row coordinates. Since the three supports , partition the nine cells of , the sum of the row coordinates over all cells is equal to the sum of the row coordinates over these three supports. Hence, in ,
Here we used in . Since each is either 1 or -1, the equality in is possible only when . We denote this common value by .
The same argument applied to the column coordinates gives
Since each is either 1 or -1, it follows that . We denote this common value by .
Step 3: the affine form of the corner map. After Step 2, the supports have the form
Fix a row . The support occupies the two cells in columns and of that row. The only support whose vertical leg can contribute a further cell to row is , and that cell is
Because the three supports are disjoint and partition the nine cells, these three column coordinates must be the three distinct elements of . The unique element different from and is . Hence
or equivalently
Since in , the function is constant. Thus there is a unique , namely , such that
Substituting this expression into (9) gives
Therefore . The signs are determined by the orientations of the repeated row and column occurrences, and , so all three parameters are unique.
Conversely, fix and , and define the three supports by the displayed formula. Put . In row , the support of symbol occupies columns and , while the support of symbol contributes the cell in column
These are the three distinct columns of . Hence every cell in every row belongs to exactly one support, so the three supports are pairwise disjoint and cover . They therefore define a well-defined balanced array. Symbol occurs twice in row and twice in column , so every row and every column has a repeated symbol. Thus the array is a normalized anti-Latin square.
There are 4·3 normalized squares. The natural action of by symbol relabeling is free, and the unique-normalization observation preceding the proposition shows that every orbit contains exactly one normalized square. Therefore the total number of anti-Latin squares of order 3 is
5.2.3 Orthogonality and classification of families in the case d = 3
We next determine exactly when two normalized model squares are orthogonal. Proposition 8 (Orthogonality criterion in normal form). Let
Then and are orthogonal if and only if and .
Proof. Write for the support of symbol in , and for the support of symbol in . Orthogonality is equivalent to with because is exactly the set of cells carrying the ordered pair .
Assume first that . If then the two squares are identical, so for every ; hence they are not orthogonal.
Now suppose that . Since , we consider the two cases separately. Fix . The three cells occupied by symbol in are
First, let . We determine the entries of at by checking their symbol-supports. Since
the entries of the second square at are respectively , , and .
Indeed, for example,
so belongs to this support. The other two membership assertions are obtained in the same way from the support formula.
When , the same support check gives
Thus the entries of the second square at are respectively , and .
In either case, the three entries of the second square on are the three distinct elements of . Therefore every symbol occurs exactly once on , so
Hence the two squares are orthogonal.
Conversely, suppose that . First assume that exactly one of the two signs differs. Then , so the two sets
meet in a unique point, say . Then, by the choice of , we have . The support formula gives
If and , then and both contain the two common points and . If and , then and both contain and . In either case some intersection has at least two points, so the two squares are not orthogonal.
It remains to consider the case in which both signs differ. Then . Since is one of , the support formula gives, respectively,
Thus in every subcase some intersection of symbol-supports contains at least two points. Orthogonality is impossible. This proves the criterion. □
Corollary 4. For every anti-Latin square A of order 3, there exist exactly 12 anti-Latin squares of order 3 that are orthogonal to A.
Proof. By Proposition 7, after relabeling the symbols we may write for unique and . By Proposition 8, the normalized arrays orthogonal to are exactly for , so there are exactly two of them in normalized form. Each has exactly 3! symbol relabelings, and symbol relabeling preserves orthogonality. Hence the total number of orthogonal mates of is .
Corollary 5. Fix . Then the three squares form a mutually orthogonal triple of anti-Latin squares of order 3. Moreover, every mutually orthogonal triple of anti-Latin squares of order 3 consists of three squares with a common sign pair , and hence, after independent symbol relabelings and a permutation of the three squares, it is equal to for a unique sign pair .
Proof. The first statement follows immediately from Proposition 8. Conversely, let be a mutually orthogonal triple. By Proposition 7, each of is, after symbol relabeling, of the form . By Proposition 8, orthogonality is possible only between squares with the same sign pair and with distinct parameters. Hence all three squares have a common sign pair , and since , their parameters must be exactly 0, 1, 2 in some order. This proves the claim.
Theorem 9 (Classification for ). For mutually orthogonal triples of anti-Latin squares of order 3, there are exactly four weak-isomorphism classes under Definition 6 and exactly one strong-isomorphism class under Definition 7, without requiring simultaneous transposition. More precisely, representatives of the four weak-isomorphism classes may be taken to be
Proof. By Corollary 3, every maximal pairwise orthogonal family has size 3. By Corollary 5, every such triple is weakly isomorphic to for a unique sign pair . Since weak isomorphism fixes the external grid, the sign pair is preserved. Hence there are exactly four weak-isomorphism classes.
For strong isomorphism, we may additionally apply common row and column permutations. A common row reversal changes to , while a common column reversal changes to . Hence any sign pair can be transformed into any other sign pair. Therefore the four weak-isomorphism classes merge into a single strong-isomorphism class.
5.3 The case d = 4: extremal value and the geometry of saturated anti-Latin families
We now treat the case . We first determine the extremal value by an explicit saturated family. Since the extremal value is , Section 4 then identifies the five symbol partitions of an extremal family with the five parallel classes of an affine plane of order 4. Our purpose here is to go beyond that general correspondence and describe what the anti-Latin condition forces specifically in order 4.
More precisely, we analyze the four-point sets corresponding to the rows and columns of the original arrays, determine the symbol-multiplicity patterns that they induce simultaneously in the five squares, and describe how the exceptional double repetitions can be distributed among the four rows and, separately, among the four columns. The resulting discussion gives a complete affine classification of one row-block or column-block and restricts the possible row and column double-repetition profiles. We distinguish throughout between the general saturated correspondence inherited from Section 4 and the additional conclusions that rely specifically on . We do not give an isomorphism classification of all saturated families.
5.3.1 The exact value
We next record an explicit saturated family. Its verification is finite and direct: each displayed array is balanced, every row and every column contains a repeated symbol, and the superposition of any two arrays contains each ordered pair exactly once.
Example 1 (A saturated family of order 4). The following five arrays form a mutually orthogonal family of anti-Latin squares of order 4:
Example 1 gives . Since , Theorem 2 gives
Corollary 6. We have .
Since , every extremal family in order 4 is saturated. Section 4 shows that the five symbol partitions of such a family form the five parallel classes of an affine plane of order 4. The order-4 question addressed below is therefore more specific than the general geometric reformulation: we determine what the anti-Latin condition forces on each of the four rows and four columns when they are viewed as four-point subsets of the associated affine plane.
5.3.2 Specialization of the general finite-field model
We now specialize the finite-field model of Subsection 4.4. Fix an identification of the affine plane associated with the saturated family with the standard affine plane on , where
Since the characteristic is two,
so and . The five parallel classes are indexed by
For , the four lines of direction are
and the four vertical lines are
Under the identification of the common cell grid with , each row becomes a four-point subset, called a row-block, and each column becomes a four-point subset, called a column-block. By Proposition 6, which is the finite-field form of the general saturated correspondence developed in Section 4, every row-block and every column-block determines all five directions of .
This conclusion is inherited from the general theory rather than being specific to order 4. The additional order-4 structure begins with the numerical fact that a row-block or column-block contains four points and hence six unordered pairs, whereas has five directions. As shown below, this forces one direction to occur twice and leads, on the anti-Latin side, to a unique square with symbol-multiplicity pattern .
For distinct points and , define
Thus, in this specialization, a four-point set is direction-complete precisely when its six unordered pairs of distinct points collectively determine all five directions of .
5.3.3 Additional local structure in order 4
Let be a direction-complete set of four points. Its six unordered pairs of distinct points determine directions in . We say that three points are collinear if they lie on a common affine line.
Lemma 8 (Direction multiplicities of a row or column block). Let be a direction-complete four-point subset of . Among the six unordered pairs of distinct points of , one direction is determined by exactly two pairs, and each of the other four directions is determined by exactly one pair.
Moreover, no affine line contains three points of X. The two unordered pairs of points that determine the direction occurring twice have no point in common.
Proof. A four-point set has exactly six unordered pairs. Since determines all five directions, every direction occurs at least once among these six pairs. Hence one direction occurs twice and each of the remaining four directions occurs once. Conversely, this multiplicity pattern clearly determines all five directions. If an affine line contained three points of , the three pairs formed by those points would have the same direction, which is impossible. For the same reason, the two pairs determining the direction that occurs twice cannot have a common point.
Remark 2 (Arc-theoretic interpretation). A direction-complete four-point block in has no three collinear points and is therefore a 4-arc in the standard terminology of finite geometry [20, 21]. In the projective completion , the five affine directions are represented by the five points of the line at infinity. The six secants joining pairs of points of the block meet the line at infinity in all five of these points. Exactly one point at infinity is reached by two secants; this point represents the doubled direction.
Thus Proposition 11 is not a classification of arbitrary 4-arcs. It classifies those affine 4-arcs whose secants cover the entire line at infinity.
The unique direction determined by two of the six unordered pairs is called the doubled direction of and is denoted by . This term should not be confused with the notion of a special direction used in the finite-geometric literature [25]. Here all five directions are determined; the doubled direction records the unique direction represented by two of the six unordered pairs. Among the four parallel lines of direction , exactly two meet , and each of these two lines contains exactly two points of . For every direction , one line of direction contains two points of , two further lines contain one point each, and the remaining line contains no point of .
For example, consider
Its six pair directions are
| pair | direction |
|---|---|
| (0,0),(1,0) | 0 |
| (0,0),(0,1) | |
| (0,0),( ,1) | |
| (1,0),(0,1) | 1 |
| (1,0),( ,1) | |
| (0,1),( ,1) | 0. |
Thus determines all five directions, and its doubled direction is 0.
Proposition 10 (Symbol multiplicities in a row or column). Let
be a saturated family of five mutually orthogonal anti-Latin squares of order 4, where the squares are indexed by the five directions of the associated affine plane. Let be the row-block corresponding to one row, or the column-block corresponding to one column. Then there is a unique direction such that the four entries of in that row or column have multiplicity pattern (2, 2). For every , the corresponding four entries of have multiplicity pattern (2, 1, 1).
Proof. For direction , exactly two lines meet , with two points on each line. After these lines are labeled by symbols, two distinct symbols therefore occur twice each, giving pattern (2, 2). For every other direction, the line-intersection sizes are 2, 1, 1, 0, so one symbol occurs twice and two further symbols occur once each, giving pattern (2, 1, 1).
Here pattern (2, 2) means that two distinct symbols occur twice each, whereas pattern (2, 1, 1) means that one symbol occurs twice and two further symbols occur once each. The existence of a repeated symbol in every square is inherited from the general saturated correspondence in Section 4. The uniqueness statement is specific to order 4: for each row and each column, exactly one of the five squares has pattern (2, 2), while each of the other four squares has pattern (2, 1, 1). This additional order-4 property permits the following anti-Latin invariants.
Definition 11 (Row and column double-repetition profiles). Let
be a saturated family of five mutually orthogonal anti-Latin squares of order 4, indexed by the five directions of the associated affine plane. For each row , let be the unique index for which row of has symbol-multiplicity pattern (2, 2). The multiplicity pattern of
is called the row double-repetition profile of .
For each column , define analogously as the unique index for which column of has pattern (2, 2). The multiplicity pattern of
is called the column double-repetition profile of .
By Proposition 10, is exactly the doubled direction of the corresponding row-block, and is exactly the doubled direction of the corresponding column-block. Hence the two anti-Latin profiles can be computed geometrically from
respectively. These profiles are coarse invariants of the row and column repetition structure under permutations of the five squares, independent symbol relabelings, and common row or column permutations. They do not determine the saturated family or its compatible pair up to isomorphism.
Proposition 11 (Affine normal form of a row or column block). Every direction-complete four-point subset of can be carried by an affine change of coordinates onto
Proof. Let be direction-complete. By Lemma 8, exactly two unordered pairs of points determine , and these pairs have no point in common. Translate one endpoint of the first pair to . The common direction determined by these two pairs gives a nonzero difference vector, and the displacement between the two parallel lines containing them is linearly independent of that vector. Choose an invertible linear map sending these two vectors to and , respectively. Under the resulting affine transformation, the first pair becomes , while the second pair becomes for some . Thus is affinely equivalent to
In this normalization, makes the last two displayed points coincide, and gives a parallelogram, for which two directions occur twice and hence only four directions are determined. Therefore . For either of these two values, the four non-horizontal pairs determine the four remaining directions; equivalently, using , their slopes together with the vertical direction are all distinct. Finally, the affine map
sends onto . Hence both remaining possibilities are affinely equivalent to , and therefore there is a single affine orbit.
Proposition 11 completely classifies the individual blocks occurring in an anti-coordinate grid decomposition. The next question is how four such blocks can partition the sixteen-point plane.
5.3.4 Geometric restrictions on the anti-Latin profiles
For a saturated anti-Latin family, the four row-blocks form a partition
of the sixteen points, and the four column-blocks form another partition
Definition 11 assigns a row and a column double-repetition profile directly to the anti-Latin family. We now use the associated geometry to restrict these profiles.
For this purpose, call a partition
of direction-complete if every block is a direction-complete four-point set. For such a partition, we consider the multiplicity pattern of its four doubled directions
The five formal possibilities are
| doubled directions of the four blocks | multiplicity pattern |
|---|---|
| (4) | |
| (3, 1) | |
| (2, 2) | |
| (2, 1, 1) | |
| (1, 1, 1, 1), |
where different letters denote different directions. When is or , this geometric multiplicity pattern is exactly the row or column double-repetition profile of the anti-Latin family.
Classical direction results concern the direction set of one point set. At the present stage, however, the direction set of each block is already fixed to be the full set of five directions. The relevant new information is how the unique excess secant direction varies across the four blocks of a partition. This gives a partition-level invariant that is not visible from the number of directions determined by any individual block.
Fix a direction , and write the four parallel lines of direction as
For a partition , define
The th row of this matrix records how the four points of the block are distributed among the four lines of direction . Each row sum is 4 because has four points. Each column sum is also 4 because every line has four points and the four blocks partition the plane.
If , then two lines of direction contain two points of each, while the other two lines contain no point of . Thus the th matrix row is a rearrangement of
If , then one line contains two points of , two lines contain one point each, and one line contains no point. The corresponding matrix row is therefore a rearrangement of
Proposition 12 (Multiplicity patterns of doubled directions). For every direction-complete partition, the multiplicity pattern of its four doubled directions is one of
The pattern (3,1) cannot occur.
Proof. Assume that three blocks have one common doubled direction, say , while the fourth block has a different doubled direction. In the matrix , the three rows corresponding to the first three blocks are rearrangements of . Their entrywise sum is therefore even in every column. The remaining row is a rearrangement of and has exactly two odd entries. After this row is added, exactly two column sums are odd. This is impossible because every column sum of equals 4. Hence the pattern does not occur, leaving the four patterns displayed in the statement.
Corollary 7 (Possible row and column double-repetition profiles). For every saturated family of five mutually orthogonal anti-Latin squares of order 4, both its row double-repetition profile and its column double-repetition profile belong to
In particular, one square cannot have pattern in exactly three of the four rows while another square has pattern in the remaining row. The analogous statement holds for the four columns.
Proof. By Proposition 10, the distinguished square for a row or column is indexed by the doubled direction of the corresponding block. The conclusion therefore follows from Proposition 12.
5.3.5 Geometric realizations of the four multiplicity patterns
It remains to show that each of the four multiplicity patterns in Proposition 12 occurs for a direction-complete partition. These examples are geometric candidates for a row-block or column-block partition of a saturated anti-Latin family. They do not, by themselves, assert that the displayed partition has a compatible mate. We verify the doubled directions directly.
For the verification tables below, if a block is displayed as
we list its six pair directions in the order
A row of a verification table contains all five directions and repeats exactly the direction shown in its last column. Thus the table verifies both that the block is direction-complete and that the stated direction is its doubled direction.
Example 2 (A partition with profile (4)). Define
The four sets are pairwise disjoint and their union is . Therefore
is a partition. Its pair directions are
| block | directions of the six pairs | doubled direction |
|---|---|---|
| . |
Thus all four blocks have the same doubled direction, and has doubled-direction multiplicity pattern (4). Geometrically, this is an admissible candidate for a row-block or column-block partition. If it occurs as a row-block partition of a saturated anti-Latin family, the same one of the five squares has multiplicity pattern (2,2) in all four rows, while each of the other four squares has pattern (2,1,1) in every row. The same interpretation holds for columns.
Example 3 (A partition with profile ). Define
Again the four sets are pairwise disjoint and cover , so they form a partition . The verification is
| block | directions of the six pairs | doubled direction |
|---|---|---|
| . |
The doubled directions are , so its doubled-direction multiplicity pattern is . Geometrically, this is an admissible candidate for a row-block or column-block partition. If it occurs as a row-block partition of a saturated anti-Latin family, two of the five squares each have pattern in two rows, while the remaining three squares have no row of pattern . The same interpretation holds for columns.
Example 4 (A partition with profile (2, 1, 1)). Define
These four sets form a partition . Their pair directions are
| block | directions of the six pairs | doubled direction |
|---|---|---|
| 0 | ||
| . |
The doubled directions are . Hence one direction occurs twice and two further directions occur once, giving doubled-direction multiplicity pattern . Geometrically, this is an admissible candidate for a row-block or column-block partition. If it occurs as a row-block partition of a saturated anti-Latin family, one square has pattern in two rows, and two further squares have pattern in one row each. The same interpretation holds for columns.
Example 5 (A partition with profile ). Define
These four sets form a partition . The verification is
| block | directions of the six pairs | doubled direction |
|---|---|---|
| 1 | ||
| 0 | ||
| . |
The four doubled directions are mutually distinct. Therefore its doubled-direction multiplicity pattern is . Geometrically, this is an admissible candidate for a row-block or column-block partition. If it occurs as a row-block partition of a saturated anti-Latin family, four distinct squares each have pattern in one row, while the fifth square has pattern (2, 1, 1) in all four rows. The same interpretation holds for columns.
Combining Proposition 12 with Examples 2–5, we obtain the exact list of possible profiles.
Corollary 8 (Realized doubled-direction multiplicity patterns). A direction-complete partition has exactly one of the four doubled-direction multiplicity patterns
and each of these four patterns occurs.
This result classifies only the multiplicities of the four doubled directions. It does not assert that two partitions with the same multiplicity pattern are isomorphic. Indeed, the relative positions of their blocks may contain further geometric information not recorded by this pattern. Nor do the examples alone show that every pattern occurs as the row or column profile of an actual saturated anti-Latin family, because compatibility with a second partition is an additional condition.
5.3.6 Compatible row and column structures
The preceding analysis concerns one partition of the affine plane into four direction-complete blocks. The compatibility between the row-block and column-block partitions is not specific to order 4: it is part of the general anti-coordinate grid structure established in Theorem 5. In the present representation, each row of the common cell grid meets each column in exactly one cell, so every row-block meets every column-block in exactly one point.
Definition 12 (Compatible pair). Let
be direction-complete partitions of . We call the row-block partition and the column-block partition. The ordered pair is called a compatible pair if
For a compatible pair, let denote the unique point of . Since the four row-blocks and four column-blocks are partitions of the same sixteen-point set, the map
is a bijection. Thus the points may be regarded as the cells of an external grid, with as its th row and as its th column.
Proposition 13 (Compatible-pair characterization). Giving a saturated family of five mutually orthogonal anti-Latin squares of order 4, together with an identification of its associated affine plane with , is equivalent to giving the following data:
-
a compatible pair of direction-complete partitions of ;
-
for each of the five parallel classes, a labeling of its four lines by the four symbols in [4].
Proof. Suppose first that a saturated family is given, together with the stated identification of its associated affine plane with . For each , let be the image in of row of the common cell grid, and for each , let be the image of column . The four sets form a partition of the sixteen points, and so do the four sets . Each row of the cell grid meets each column in exactly one cell. Therefore
Moreover, fix one of the five directions. The corresponding anti-Latin square has at least one repeated symbol in every row and every column. Hence every row-block and every column-block contains two points on one line of that direction.
Since this holds for all five directions, all row-blocks and column-blocks are direction-complete. Therefore is a compatible pair. The symbols of each square provide the required labels of the four lines in the corresponding parallel class. Conversely, suppose that a compatible pair and the five line labelings are given. Let be the unique point of . For each direction , define a array by
We verify the three required properties.
First, is balanced. Each symbol labels one line of direction , and that line contains four points, so the symbol occurs exactly four times. Second, if , a line of direction and a line of direction meet in exactly one point. Hence every ordered pair of symbols occurs exactly once in the superposition of and , and the two arrays are orthogonal. Third, fix a row-block and a direction . Since is direction-complete, it contains two points on one line of direction . The corresponding two entries in row of have the same line label. Thus every row contains a repeated symbol. The same argument applied to each column-block shows that every column contains a repeated symbol. Therefore every is anti-Latin, and the five arrays form a saturated family.
The two constructions are inverse up to the chosen line labels and the stated identification with .
Thus every saturated family has an ordered pair consisting of its row and column double-repetition profiles. These profiles record genuine order-4 repetition structure, but they do not determine the compatible pair up to isomorphism.
5.3.7 Inherited general structure and additional order-4 consequences
We finally separate the structure inherited from the general saturated correspondence from the additional conclusions obtained only in order 4.
Proposition 14 (General saturated structure specialized to order 4). Let be a saturated family of five mutually orthogonal anti-Latin squares of order 4. Its five symbol partitions form the five parallel classes of an affine plane of order 4, and its row-block and column-block partitions form a compatible anti-coordinate grid decomposition. After fixing an identification of the associated affine plane with , each row-block and each column-block determines all five directions.
Proof. The affine-plane and anti-coordinate-grid statements are Theorem 5. The direction-completeness statement is the specialization of Proposition 6 to .
Theorem 15 (Additional structure specific to order 4). Under the identification in Proposition 14, the following statements hold.
-
Every row-block and column-block has a unique doubled direction .
-
In the square indexed by , the four entries in the corresponding row or column have multiplicity pattern . In each of the other four squares, they have pattern .
-
Every row-block and column-block is affinely equivalent to
- The row double-repetition profile and the column double-repetition profile are each one of
(4), (2,2), (2,1,1), (1,1,1,1).
In particular, profile is impossible.
Proof. The first two statements follow from Lemma 8 and Proposition 10. The third is Proposition 11, and the fourth is Corollary 7.
Remark 3 (Scope of the order-4 analysis). The compatible anti-coordinate grid and direction-completeness statements in Proposition 14 are inherited from the general theory. The genuinely order-4 conclusions are the unique doubled direction, the versus distinction, the affine normal form, and the restrictions on the row and column double-repetition profiles. We do not classify all direction-complete partitions or all compatible pairs up to isomorphism.
5.4 Final synthesis
We now combine the preceding results and obtain the proof of Theorem 1 for .
For , Theorem 9 gives . Since , this yields .
For , the explicit constructions of Example 1 and Example 6 show that . Since these orders are prime powers, we have , and therefore Theorem 2 gives . Hence for .
For and for all , the conclusion follows directly from Theorem 4. This completes the proof of Theorem 1.
6 Conclusion
We have determined the extremal size of a family of mutually orthogonal anti-Latin squares in terms of the classical Latin-square quantity . At the general level, the paper proves the universal comparison
where the upper bound is obtained by passing through balanced matrices and the lower bound by a deterministic permutation argument (Theorems 2 and 3). The main theorem then resolves this two-point window completely:
Thus, apart from the single exceptional order , the anti-Latin extremal problem differs from the classical Latin-square problem by a fixed shift of two.
For large orders, the argument is uniform. The probabilistic construction shows that the upper bound is attained for all , and the same method also covers the exceptional order d = 6 (Theorem 4). Accordingly, the only genuinely order-specific work is confined to the remaining small cases.
Beyond the exact formula for , the geometric reformulation separates a classical component from an additional anti-Latin structure. The classical component is the passage from a complete net to an affine plane. The additional structure identified by Theorem 5 is a pair of orthogonal resolutions whose every block is non-transversal to every parallel class, equivalently an anti-coordinate grid decomposition. This is a coordinate-free condition formulated purely in the incidence language of points, lines, and parallel classes, and at the level of this structural characterization no distinction between Desarguesian and non-Desarguesian affine planes [29] is used.
In this sense, the paper refines the classical correspondence among affine planes, nets, orthogonal arrays, and mutually orthogonal Latin squares by identifying an additional structure that is specific to the anti-Latin setting [17–20, 28–30]. After transport to the fixed cell set , this extra structure becomes the requirement that the relevant row-blocks and column-blocks be direction-complete, thereby linking mutually orthogonal anti-Latin squares to the finite-geometric theory of directions determined by point sets [22–25]. The resulting problem is not the classical problem of determining the direction set of one point set, but a simultaneous decomposition problem for two compatible families of point sets.
The low-order picture is then completed as follows. For , we prove and classify orthogonal triples into four weak classes and one strong class (Theorems 1 and 9). For , saturation occurs and the explicit family in Example 1 gives . The affine-plane and compatible anti-coordinate-grid structure is inherited from the general saturated correspondence. The additional order-4 analysis shows that every row and column has a unique square with symbol-multiplicity pattern , while the other four squares have pattern . It also gives an affine normal form for the corresponding four-point blocks and restricts the possible distributions of the exceptional pattern among the four rows and, separately, among the four columns. For the remaining prime-power orders treated explicitly in the paper, namely and , the randomized-grid method produces concrete saturated examples (Example 6). Together with the large-order theorem, this determines for every
Table 1 Summary of the determined values of for .
| d | result(s) used | method / route | |
|---|---|---|---|
| 3 | 3 | Theorem 1 and Theorem 9 | small-order classification; exclusion of a fourth orthogonal square |
| 4 | 5 | Example 1 and Theorem 2 | explicit saturated family, general upper bound, and finite-geometric analysis |
| 5 | 6 | Example 6 and Theorem 2 | prime-power case: explicit saturated family, together with the upper bound |
| 6 | 3 | Theorem 4 and the classical equality | probabilistic attainment of the upper bound in the exceptional composite order |
| 7 | 8 | Example 6 and Theorem 2 | prime-power case: explicit saturated family, together with the upper bound |
| 8 | 9 | Theorem 4 and the classical equality | large-order theorem, specialized to the prime-power order |
| 9 | 10 | Theorem 4 and the classical equality | large-order theorem, specialized to the prime-power order |
order . For convenience, Table 1 summarizes the exact values of for together with the main results and methods used in each case.
In summary, mutually orthogonal anti-Latin squares admit both a clean extremal description and a clean geometric description. Numerically, apart from the single exceptional order , the maximum number of mutually orthogonal anti-Latin squares is always exactly two more than the corresponding Latin-square extremal number. Geometrically, the saturated case is characterized by affine planes equipped with anti-coordinate grid decompositions. This leaves a natural direction for future work: to understand for which affine planes such decompositions exist and how this additional structure interacts with the classical theory of affine planes, nets, and mutually orthogonal Latin squares.
Acknowledgements. A part of this work was inspired by responses to an earlier Japan Math-Contest problem on anti-Latin squares. The authors thank Mr. Tomoki Anzai, Mr. Takahiro Hori, Mr. Kinari Miyazawa, Mr. Nobuto Muraki, Mr. Yuma Wakatsuki, Mr. Kirato Yata, and Mr. Shin Yumoto for their interest in the problem and for the initial stimulus provided by their submitted solutions. The results, constructions, and proofs presented in this paper were developed subsequently by the authors in a substantially different form.
MH was supported in part by the Kayamori Foundation of Informational Science Advancement. Large language model tools were used as auxiliary aids in preparing this manuscript, including assistance with exposition, literature search, and exploratory discussions of possible approaches. The manuscript was written under the authors' direction, and the authors are responsible for all mathematical content, proofs, references, and conclusions.
Appendix A Explicit computational examples for and
This appendix presents explicit saturated families for and generated by the randomized-grid method of Section 3.2. A uniformly random bijection is sampled; the grid decomposition is formed by pulling back coordinate fibres; every block is required to determine all directions; then Theorem 5 (ii) (i) reconstructs the arrays by line membership (see also Corollary 2). This realizes an anti-coordinate grid and yields a saturated family.
A.1 Provenance and reproducibility
The displayed families below were generated by the randomized-grid procedure described in Section 3.2. The supplementary script random_grid_generate_d5_d7.py samples random bijections and tests whether all standard row and column-blocks are direction-complete. When such a bijection is found, the script constructs the arrays by the line-membership rule of Theorem 5, namely by using the labels of the lines in the parallel classes of the affine plane over . With seed 20260317, the recorded run found successful grid decompositions at trial 34 for and at trial 3 for . The same script outputs the generated arrays and verifies that each square is anti-Latin and that the resulting family is pairwise orthogonal.
Example 6. For (six arrays, ):
For (eight arrays, ):
Remark 4 (Randomized grid provenance and verification). Each family above is the direct output of the randomized-grid reconstruction with the seeds indicated in the provenance paragraph. A minimal script that regenerates such a family (and the accompanying solver-free verifier) is provided with the supplementary material; the verifier checks the anti-Latin row/column property and pairwise orthogonality exactly as encoded in the proof of Theorem 5.
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Availability of supporting data
For the randomized-grid constructions in the cases and , the supplementary material contains random_grid_generate_d5_d7.py and random_grid_d5_d7_output.json. The script random_grid_generate_d5_d7.py implements the randomized-grid procedure described in Section 3.2: it samples random bijections , tests direction-completeness of all standard row and column-blocks, and constructs the arrays by the line-membership rule of Theorem 5. The JSON output records the successful bijections, trial numbers, generated families, and verification results.
Competing interests
There are no competing interests.
References
[1] L. Euler, “Recherches sur une nouvelle espèce de quarrés magiques,” Verhandelingen uitgegeven door het Zeeuwsch Genootschap der Wetenschappen te Vlissingen 9, 85–239 (1782). Online: https://scholarlycommons.pacific.edu/euler-works/530/.
[2] R. A. Fisher, Statistical Methods for Research Workers, Oliver & Boyd, Edinburgh (1925). Online: https://catalog.hathitrust.org/Record/001324077.
[3] D. A. Preece, “Latin squares, Latin cubes, Latin rectangles,” in S. Kotz and N. L. Johnson (eds.), Encyclopedia of Statistical Sciences, vol. 4, Wiley, New York (1983). DOI: 10.1002/9781118445112.stat00867.
[4] M. Hayashi and N. Cai, “Secure non-linear network code over one-hop relay network,” IEEE Journal on Selected Areas in Information Theory, 2(1), 296–305 (2021). DOI: 10.1109/JSAIT.2021.3053697.
[5] M. Hayashi, “Secure network coding with adaptive and active attack,” in C. Deppe, A. Winter, R. W. Yeung, H. Boche, I. Althöfer, J. Stoye, U. Tamm, and
R. Ezzine (eds.), Information Theory and Related Fields: Festschrift in Memory of Ning Cai, Lecture Notes in Computer Science, vol. 14620, Springer, Cham, pp. 222–239 (2025). DOI: 10.1007/978-3-031-82014-4_9.
[6] H. F. MacNeish, “Euler Squares,” Annals of Mathematics, vol. 23, no. 3, pp. 221–227 (1922). DOI: 10.2307/1967920.
[7] H. B. Mann, “The construction of orthogonal Latin squares,” Ann. Math. Statist. vol. 13, pp. 418–423 (1942). DOI: 10.1214/aoms/1177731539.
[8] R. C. Bose and S. S. Shrikhande, “On the Construction of Sets of Mutually Orthogonal Latin Squares and the Falsity of a Conjecture of Euler,” Transactions of the American Mathematical Society, 95(2), 191–209 (1960). DOI: 10.1090/S0002-9947-1960-0111695-3.
[9] R. C. Bose, S. S. Shrikhande, and E. T. Parker, “Further Results on the Construction of Mutually Orthogonal Latin Squares and the Falsity of Euler’s Conjecture,” Canadian Journal of Mathematics, 12, 189–203 (1960). DOI: 10.4153/CJM-1960-016-5.
[10] C. E. Roberts, “Sets of mutually orthogonal Latin squares with like subsquares,” Journal of Combinatorial Theory, Series A, 61(1), 50–63 (1992). DOI: 10.1016/0097-3165(92)90052-V.
[11] A. Kouvela, On the completability of mutually orthogonal Latin rectangles, Ph.D. thesis, The London School of Economics and Political Science (2013). Online: https://researchonline.lse.ac.uk/id/eprint/131768/.
[12] A. Dey, “Orthogonal Latin Squares and the Falsity of Euler’s Conjecture,” in R. Bhatia, C. S. Rajan, and A. I. Singh (eds.), Connected at Infinity II: A Selection of Mathematics by Indians, Texts and Readings in Mathematics, vol. 67, Hindustan Book Agency, New Delhi, pp. 1–17 (2013). DOI: 10.1007/978-93-86279-56-9_1.
[13] J. G. Benadé, A. P. Burger, and J. H. van Vuuren, “The enumeration of k-sets of mutually orthogonal Latin squares,” Proceedings of the 2013 ORSSA Annual Conference, pp. 40–49 (2013). Online: http://www.gerdusbenade.com/files/13_orssalatin.pdf.
[14] S. Boyadzhiyska, S. Das, and T. Szabó, “Enumerating extensions of mutually orthogonal Latin squares,” Designs, Codes and Cryptography, 88, 2187–2206 (2020).
[15] G. Jäger, L.-D. Öhman, K. Markström, and D. Shcherbak, “Enumeration of sets of mutually orthogonal latin rectangles,” The Electronic Journal of Combinatorics, 31(1), P1.53 (2024). DOI: 10.37236/9049.
[16] D. M. Donovan, M. Grannell, and E. S. Yazici, “Constructing and embedding mutually orthogonal Latin squares: reviewing both new and existing results,” Commentationes Mathematicae Universitatis Carolinae, 61(4), 437–457 (2020). DOI: 10.14712/1213-7243.2021.003.
[17] D. R. Stinson, Combinatorial Designs: Constructions and Analysis, Springer, New York (2004). DOI: 10.1007/b97564.
[18] R. C. Bose and K. A. Bush, “Orthogonal Arrays of Strength two and three,” Annals of Mathematical Statistics, 23(4), 508–524 (1952). DOI: 10.1214/aoms/1177729331.
[19] R. J. R. Abel, C. J. Colbourn, and J. H. Dinitz, “Mutually Orthogonal Latin Squares (MOLS),” in Handbook of Combinatorial Designs, 2nd ed., edited by C. J. Colbourn and J. H. Dinitz, Chapman & Hall/CRC, Boca Raton, pp. 160–193 (2006). DOI: 10.1201/9781420010541.
[20] P. Dembowski, Finite Geometries, Springer, Berlin (1968); reprint, Classics in Mathematics (1997). DOI: 10.1007/978-3-642-62012-6.
[21] J. W. P. Hirschfeld, Projective Geometries over Finite Fields, 2nd ed., Oxford University Press, Oxford (1998).
[22] G. Somlai, “A new proof of Rédei’s theorem on the number of directions,” Archiv der Mathematik, 122, 575–580 (2024). DOI: 10.1007/s00013-024-01979-x.
[23] L. Lovász and A. Schrijver, “Remarks on a Theorem of Rédei,” Studia Scientiarum Mathematicarum Hungarica, 16, 449–454 (1981). Online: https://ir.cwi.nl/pub/10047.
[24] T. Szönyi, “On the Number of Directions Determined by a Set of Points in an Affine Galois Plane,” Journal of Combinatorial Theory, Series A, 74, 141–146 (1996). DOI: 10.1006/jcta.1996.0042.
[25] G. Kiss and G. Somlai, “Special directions on the finite affine plane,” Designs, Codes and Cryptography, 92, 2587–2597 (2024). DOI: 10.1007/s10623-024-01404-y.
[26] G. Tarry, “Le problème des 36 officiers,” Comptes rendus de l’Association française pour l’avancement des sciences, vol. 29, no. 2, pp. 170–203, 1901.
[27] D. R. Stinson, “A short proof of the nonexistence of a pair of orthogonal Latin squares of order six,” Journal of Combinatorial Theory, Series A, vol. 36, pp. 373–376, 1984. DOI: 10.1016/0097-3165(84)90044-X.
[28] R. H. Bruck, “Finite nets. I. Numerical invariants,” Canadian Journal of Mathematics, 3, 94–107 (1951). DOI: 10.4153/CJM-1951-012-7.
[29] D. M. Johnson, A. L. Dulmage, and N. S. Mendelsohn, “Orthomorphisms of groups and orthogonal Latin squares. I,” Canadian Journal of Mathematics, 13, 356–372 (1961). DOI: 10.4153/CJM-1961-031-7.
[30] A. B. Evans, Orthogonal Latin Squares Based on Groups, Springer, Cham (2018). DOI: 10.1007/978-3-319-94430-2.