Alternating Sign Matrices and Hypermatrices, and a Generalization of Latin Square
Richard A. Brualdi, Geir Dahl

TL;DR
This paper introduces alternating sign hypermatrices (ASHMs) as a generalization of alternating sign matrices (ASMs), explores their properties, maximum nonzeros, relations to Latin squares, and addresses hypermatrix completion problems.
Contribution
It extends the concept of ASMs to hypermatrices, establishes key properties, and investigates completion problems, providing new insights into higher-dimensional combinatorial structures.
Findings
Maximum nonzeros in n×n×n ASHMs determined
Connections between ASHMs and Latin squares established
Several theorems on hypermatrix completion proved
Abstract
An alternating sign matrix, or ASM, is a -matrix where the nonzero entries in each row and column alternate in sign. We generalize this notion to hypermatrices: an hypermatrix is an {\em alternating sign hypermatrix}, or ASHM, if each of its planes, obtained by fixing one of the three indices, is an ASM. Several results concerning ASHMs are shown, such as finding the maximum number of nonzeros of an ASHM, and properties related to Latin squares. Moreover, we investigate completion problems, in which one asks if a subhypermatrix can be completed (extended) into an ASHM. We show several theorems of this type.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicsgraph theory and CDMA systems · Matrix Theory and Algorithms · Graph Labeling and Dimension Problems
Alternating Sign Matrices and Hypermatrices, and a Generalization of Latin Squares
Richard A. Brualdi111Department of Mathematics, University of Wisconsin, Madison, WI 53706, USA. [email protected]
Geir Dahl222Department of Mathematics, University of Oslo, Norway. [email protected]
Abstract
An alternating sign matrix, or ASM, is a -matrix where the nonzero entries in each row and column alternate in sign. We generalize this notion to hypermatrices: an hypermatrix is an alternating sign hypermatrix, or ASHM, if each of its planes, obtained by fixing one of the three indices, is an ASM. Several results concerning ASHMs are shown, such as finding the maximum number of nonzeros of an ASHM, and properties related to Latin squares. Moreover, we investigate completion problems, in which one asks if a subhypermatrix can be completed (extended) into an ASHM. We show several theorems of this type.
Key words. Alternating sign matrix, hypermatrix, completion.
AMS subject classifications. 05B20, 15A69, 15B48.
1 Introduction
Let be an -matrix. Then is an alternating sign matrix, abbreviated ASM, provided in each of the lines of , that is, its rows and columns, the nonzeros alternate beginning and ending with a . Permutation matrices are ASMs without any ’s. ASMs were defined by Mills, Robbins, and Ramsey [12] and have a fascinating history which can be found in [2]. Extending some of the work reported in [1] and [14], we carried out in [4] a recent study of ASMs and related matrix classes and polyhedra where additional references, besides those given here, can be found. Our goal is to generalize ASMs to three-dimensional matrices called hypermatrices. In doing so, we were led to a fascinating generalization of classical latin squares.
Let be an hypermatrix. We refer to as the row index, as the column index, and as the vertical index of the hypermatrix . Then has three types of lines, each of cardinality :
- (i)
The row lines (variable row index) ;
- (ii)
The column lines (variable column index) ;
- (iii)
The vertical lines (variable vertical index) .
Similarly, has three types of planes, each of cardinality :
- (i)
The horizontal-planes (or row-column-planes) (variable row and column indices) ;
- (ii)
The column-vertical-planes (variable row and vertical indices) ;
- (iii)
The row-vertical-planes (variable column and vertical indices) .
The intersection of two planes of different types is a line; for instance, the intersection of a horizontal-plane with a row-vertical plane is a column line:
[TABLE]
We usually denote the hypermatrix by
[TABLE]
where the are the horizontal-planes . To denote the fact that is a 3-dimensional array, we also write
[TABLE]
where the north-east arrow is read as is below (or is on top of ). We can also write
[TABLE]
We can generalize an alternating sign matrix to an -hypermatrix in two natural ways:
- (a)
is an alternating sign hypermatrix, abbreviated ASHM, provided in each of its lines, the nonzeros alternate beginning and ending with a , equivalently, each of its planes is an ASM.
- (b)
is a planar alternating sign hypermatrix, abbreviated PASHM, provided each of its horizontal planes is an ASM and each of its vertical lines sums to 1. (We can replace horizontal planes with any of the other two types of planes and vertical lines with the appropriate lines.)
The property of being a PASHM is weaker than being a ASHM. If in our definition of a PASHM we replace the condition that the vertical lines sum to 1 with the condition that the nonzeros in the vertical lines alternate beginning and ending with a , then the result would be an ASHM. The weaker condition that the vertical lines sum to 1 connects the horizontal-plane ASMs with one another.
If is a ASHM (respectively, a PASHM) then so is the hypermatrix obtained by reversing the order of its horizontal planes. It follows that for , the ASMs and satisfy similar properties. More generally, the set of ASHMs is invariant under the symmetry group of the unit cube. This group, called the hyperoctahedral group333It is also the group of signed permutations of satisfying for all . is the direct product of the symmetric permutation groups and and has size 48.
An permutation hypermatrix is a -hypermatrix with exactly one 1 in each line, and these are the ASHMs not having any ’s. If is a PASHM, then and and, in fact, each of the first and last planes of each of the three types, must be permutation matrices. Thus, thinking of as an cube, the six boundary facets of the cube are permutation matrices.
We remark that the question of generalizing the Birkhoff - von Neumann theorem (which asserts that the extreme points of the polytope of doubly stochastic matrices are the permutation matrices) to tensors (that is, hypermatrices) is discussed in [9] (see also, more recently, [10]). It was shown that the polytope of multistochastic hypermatrices in general has other vertices than those corresponding to permutation hypermatrices.
Example 1**.**
The following is a ASHM:
[TABLE]
We get another ASHM by interchanging the top and bottom planes of . It is easy to verify that every PASHM is an ASHM. An example of an PASHM which is not an ASHM is
[TABLE]
An permutation hypermatrix is “equivalent” to an latin square . This equivalence results by setting if and only if .
For example, the permutation hypermatrix
[TABLE]
gives the latin square
[TABLE]
Another way to view this equivalence is as follows. Consider the matrix of all 1’s and a decomposition of into permutation matrices
[TABLE]
Then is an permutation hypermatrix and
[TABLE]
is a latin square; every permutation hypermatrix and every latin square arises in this way.
Let be an PASHM where, therefore, are ASMs. Since all vertical line sums of equal 1, it follows that
[TABLE]
Let
[TABLE]
Then in view of the above discussion, we call a PASHM-Latin square, shortened PASHM-LS. If is an ASHM, we call an ASHM-Latin square, shortened to ASHM-LS. Thus PASHM-LS’s result from certain decompositions of into ASMs. Ordinary latin squares results in this way when is a permutation hypermatrix, that is, when are permutation matrices. So ASHMs and PASHMs can also be regarded as generalizations of latin squares.
Problems concering hypermatrices tend to be more difficult than similar problems for matrices. As an example of this, consider the classical König’s minmax theorem for -matrices ([7]), which asserts that the term rank of a matrix (defined as the maximum number of nonzeros in , no two in the same line) equals the minimum number of lines needed to cover all the nonzeros in . The term rank may be found in polynomial time by computing a maximum matching in the corresponding bipartite graph. Now, for an hypermatrix , define the term rank of as the maximum number of nonzeros in , no two of which are on a common line.
Theorem 2**.**
Finding the term rank of a hypermatrix is NP-hard.
Proof. This follows from the fact that the 3-dimensional matching problem, denoted by 3D-MATCH, is NP-hard ([11]). In 3D-MATCH there are given three disjoint sets , and , each of cardinality , and a set . A subset is a 3-dimensional matching if any two distinct elements and in satisfy , and . Then 3D-MATCH asks for the largest size of a 3-dimensional matching. This problem reduces to finding the term rank in the hypermatrix defined by whenever . Therefore, computing the term rank of a hypermatrix is NP-hard.
2 Diamond ASHMs
A convex ASM (called dense in [8]) is defined to be an ASM having the property that there are not any zeros between nonzeros in both rows and columns. There is a family of convex ASMs where is defined in the following way: There are ’s in the positions in the stripes of running from position to position , from to position , from to position , and from back to position . Each of the entries within the region bordered by these four stripes is nonzero and so is uniquely determined, and all positions outside of this region are zero. In particular, is the identity matrix and is the permutation matrix with 1’s on the back diagonal (running from position to ). For example,
[TABLE]
If is odd, then is the diamond ASM of odd order; if is even, then and are the diamond ASMs of even order. The ASM above is a diamond ASM.
For a -matrix , let equal the number of its ’s and the number of its ’s. Then is the number of nonzeros of . If , we have
[TABLE]
and hence
[TABLE]
The difference between the number of nonzeros of and those of equals for . The difference between the number of ’s of and those of equals for .
We define an ASHM to be convex provided that there are not any zeros between nonzeros in any of its lines. Some special convex ASHMs are the diamond ASHMs defined by
[TABLE]
both denoted by for convenience. It is easy to check that is indeed an ASHM.
Example 3**.**
The diamond ASHM is given by
[TABLE]
[TABLE]
For each , the matrix is an -matrix with exactly ones in each row and column; in particular, has more ones than . In fact, this is a property shared by all ASHMs.
Lemma 4**.**
Let be an ASHM and, for each , let . Then each is a -matrix with ones in every row and column. In particular, has exactly more ’s than for .
Proof. Since is an ASHM, each is a -matrix. Every line sum in is 1, and therefore every line sum in is . So, has ones, and the last statement follows.
The number of nonzeros in is computed to be
[TABLE]
There are other ASHMs with the same number of nonzeros. For example, if , the ASHM
[TABLE]
has the same number 24 of nonzeros as .
In [5] it was shown that the diamond ASMs have the largest number of nonzeros among all the ASMs. In the next theorem we show the corresponding property for ASHMs. Recall that if , the number of nonzeros in the th row (or column) of an ASM is at most . Since an ASM remains an ASM when the order of its rows are reversed (row becomes row for ) a similar inequality holds for rows . Equality holds in all these inequalities for diamond ASMs.
Consider an diamond ASHM . The ASMs are the horizontal planes of . The column-vertical planes of are also as are the row-vertical planes. Thus, both give the diamond ASHM . This symmetry of is the hypermatrix analogue of the symmetry of the diamond ASMs. The th row of the th horizontal plane is also the th row of the th row-vertical plane of , and hence the number of its nonzeros is .
Theorem 5**.**
The maximum number of nonzeros in an ASHM is given by
[TABLE]
and this maximum is attained by the diamond ASHM . In fact, we have the following:
- (i)
* has the largest number of nonzeros among all ASMs such that there exist ASMs for which is an ASHM.*
- (ii)
More generally, the number of nonzeros in a row resp., column of such an is at most equal to the number of nonzeros in the corresponding row resp., column of .
Proof. Let be an ASHM. Then row of the ASM is also row of the th row-vertical ASM plane of . Hence the number of nonzeros in row of cannot exceed the minimum of the numbers of nonzeros possible in row and row of ASMs, that is, cannot exceed . But this is the number of nonzeros in row of the th horizontal ASM plane of the diamond ASHM . Since this is true for all and , the conclusions (i) and (ii) in the theorem now follow.
We remark that this proof uses strongly that we have an ASHM, not just a PASHM.
3 ASHM-Latin squares
In this section we investigate ASHM-LS’s and PASHM-LS’s.
Example 6**.**
The PASHM in (2) gives the PASHM-LS
[TABLE]
Consider the diamond ASHM given by
[TABLE]
Then the corresponding ASHM-LS is
[TABLE]
Note that the hypermatrix in this example has the property that viewed in each of the three directions the same ASHM results and thus the same ASHM-LS results. This is true for all diamond ASHMs.
Lemma 7**.**
Let be an PASHM with corresponding PASHM-LS . Then the sum of the entries in each row and column of equals . If is an ASHM then, in addition, the following hold:
- (i)
The set of entries of is , and the first and last rows and columns are permutations of ,
- (ii)
Let , and let , where and and where , otherwise.
- (iia)
If , then , and ; moreover, implies that . In particular, if , then and for .
- (iib)
If , then . In particular, if then and for .
Proof. Consider some row of (similar arguments work for a column). Since are ASMs, row of each sums to 1. Thus the sum of the entries of in row equals
[TABLE]
Now assume that is an ASHM. As in (ii), let , and let , where and and where , otherwise. Then is odd and for and for . Thus
[TABLE]
and also
[TABLE]
Thus for each . That the first and last rows and columns are permutations of follows from the definitions of an ASHM and ASHM-LS. This proves (i). Assertions (iia) and (iib) follow easily from equations (4) and (5).
The first example in Example 6 shows that assertion (iia) in Lemma 7 does not hold in general for PASHM-LS’s.
By Lemma 7, and as is the case for LS’s, the entries of an ASHM-LS are but, unlike for LS’s, repeats in a row or column are possible. As with LS’s, we can regard an ASHM-LS as an -hypermatrix
[TABLE]
where an entry in the -position of becomes a in the -position of giving -matrices . Since the entries of are , it follows that
[TABLE]
a decomposition of into -matrices. We call (7) (and (6)) the -decomposition of the ASHM-LS .
In summary, with the above notation, for the ASHM with corresponding latin square specified by , we have the two decompositions of given by
[TABLE]
Example 8**.**
The ASHM-LS in Example 6 gives
[TABLE]
The next theorem asserts that an ASHM-LS which is an ordinary LS can only arise in the classical way.
Theorem 9**.**
Let be an ASHM. Suppose the ASHM-LS is a latin square. Then is a permutation hypermatrix.
Proof. Let . Since is a latin square, it follows that for each , the positions of the ’s in are those occupied by 1’s in an permutation matrix . From equation (4) in the proof of Lemma 7 we conclude that the number of nonzeros in each column of positions with equals one. It also follows from (4) that implies that . Thus is an permutation matrix whose 1’s are in those positions occupied by 1’s in , and have 0’s in those positions. Since in , the positions occupied by ’s are zeros in , we can use a similar argument to show that is an permutation matrix whose 1’s are in those positions occupied by 2’s in , and have 0’s in those positions. Proceeding inductively, we conclude that is a permutation hypermatrix.
Recall that, for vectors and , is majorized by , written , whenever () with equality for . Here denotes the th largest component in . We now define a new order for matrices based on majorization. Let and be matrices. We say that is line majorized by if each line (row or column) of is majorized by the corresponding line in , and then we write . This is a preorder on the class of matrices. Let denote the th row of a matrix .
Theorem 10**.**
Let be an ASHM and an permutation ASHM. Then
[TABLE]
that is, each row of the ASHM-LS is majorized by .
Proof. First note that each row of is a permutation of (recall, -tuples are identified with column vectors). Let . Let be the th row-vertical-plane of so that is an ASM. The th row in satisfies
[TABLE]
(where we view the matrix so the layers of are organized downwards). Let , so is also an ASM, and define . We need to show the majorization
[TABLE]
Let () where is the th unit vector. So
[TABLE]
Then
[TABLE]
where (). Then is the sum of the first columns of , so is a -vector, as is an ASM. Moreover, has ones. Let be the matrix whose columns are . Then is a -matrix with column sum vector and row sum vector , by (9). We may therefore apply the (simple part of the) Gale-Ryser theorem, and conclude that is majorized by the conjugate of the column sum vector . But , so we have shown that , and hence the majorization in holds. Similarly, one shows the majorization for columns of and .
Consider again the diamond ASHM . The matrix remains the same if its rows and also its columns are simultaneously reversed. Moreover, when , then its th row is
[TABLE]
where the first (resp. last) entries are equal.
Example 11**.**
Let . Then
[TABLE]
Consider an ASHM , whose first three horizontal planes coincide with those of while the remaining planes are suitable permutation matrices . The sum of these three horizontal planes is
[TABLE]
Then . By specifically choosing to be the permutation matrix
[TABLE]
we can obtain
[TABLE]
For instance, concerning row four in we have the majorization
[TABLE]
which is in accordance with Theorem 10. In this example, we can also check that every row or column of majorizes the corresponding row or column of , so .
In an LS, each integer in occurs exactly times. In an ASHM-LS, the entries are also taken from , but their multiplicity can vary. In the ASHM-LS in (10), the integer occurs 14 times. This example can be generalized to all odd giving an ASHM-LS in which occurs times.
In view of Example 11 one may ask if holds for every ASHM of size . As shown by the next example, this is not the case,
Example 12**.**
Consider the ASHM given by
[TABLE]
[TABLE]
Let be the ASHM obtained from by letting the horizontal planes of become the row-vertical planes of . Let denote the second row of the ASHM-LS associated with . Then is computed from the second matrix above (the only one with some negative entries) and we get
[TABLE]
Consider the diamond . Then (see above) the second row of is . But because .
We say that a line in a matrix is constant if all its entries are equal. Let be an ASHM and let be its ASHM-LS. Assume that has a constant line. Then must be odd. In fact, by Lemma 7, the sum of the entries in any line of is , so in the line which is constant each entry must be equal to . But every entry in is integral, so must be odd.
For instance, for the diamond ASHM , where is odd, say , the ’th row and column of the ASHM-LS are constant lines. The case of is shown in Example 11.
Example 13**.**
Consider the ASM be given by
[TABLE]
Then . It is possible to construct an ASHM such that is the third row-vertical plane; this follows from results we establish in the next section. Thus, the third row of the corresponding ASHM-LS is . Note that this vector is minimal in the majorization order in . On the other hand, the first row of is a permutation of which, by Theorem 10, is maximal in the majorization order among all possible rows of an ASHM-LS of order .
The ASHM-LS of a permutation hypermatrix does not contain any constant line, except in the trivial case of . For , the ASHM-LS has a constant line, both a row and a column. An ASHM where every line contains at most one will be called a near-permutation hypermatrix. We now show that near-permutation ASHMs have this same property as permutation ASHMs, namely the corresponding ASHM-LS’s do not have any constant line (when ).
Theorem 14**.**
Let be an near-permutation ASHM where . Then the ASHM-LS does not have any constant lines.
Proof. Assume has a constant line, say row . As explained above, must be odd, so with , and every entry in row of must be . Let be the row-vertical plane of associated with row of ; this row equals and all entries are . Then cannot be a permutation matrix, because then row of is a permutation of . So, some line in has a negative entry. On the other hand, no line in can have more than one negative entry, as is a near-permutation ASHM. The first column of is a unit vector, so its 1 must be in row , i.e., . This implies that the second column cannot be a unit vector, because then its 1 would be in another row than the th, and then times that column would be different from . So, the second column of contains a , which then must be in row , again by the alternating property of . By similar arguments, and . However, as , this means that row in has two ’s; a contradiction. This proves that no row in is constant, and similar arguments show that no column is constant.
For ASHMs with more than one negative entry in some lines, the situation is more complicated. However, the construction in the previous proof gives the following property.
Corollary 15**.**
Let be an ASHM and let be its ASHM-LS. If , then the second resp. second-last row or column in is not constant.
Proof. We can use the same arguments as in the proof of Theorem 14. The only change is that the ASM cannot have more than one negative entry in any line, because this would contradict that is the second row-vertical plane of (as, in that case, the first row-vertical plane has two ones in the same line).
Example 13 shows that the third row or column of an ASHM-LS may be constant.
Let again . The rows and columns of an ASHM-LS are obtained by vector-matrix multiplications
[TABLE]
where is some ASM. We call in (11) the weighted vertical projection of the ASM , and the weighted horizontal projection. It follows from Theorem 10 that the weighted projections of an ASM are majorized by . Thus the weighted projections of an ASM can be regarded as “integral smoothings” of the entries of . As we know, the weighted vertical and horizontal projections of the diamond ASMs are the -vectors if is odd and , with each of the two different components, if is even. If is a permutation matrix corresponding to the permutation of , then , and where is the inverse permutation. So either of and determines . This is in contrast to ASMs in general where two different ASMs can have both the same weighted horizontal projections and the same weighted vertical projections.
Example 16**.**
Let
[TABLE]
Then but .
In the next lemma, we show that if the weighted projection of an ASM is a permutation of , then is a permutation matrix. Thus, if is not a permutation matrix, then must have a repeated entry.
Lemma 17**.**
Let be an ASM. If for some permutation matrix , then .
Proof. Let , where is a permutation of . Let be such that . Since the ’s and ’s of alternate in the columns beginning and ending with a , it follows that column of must equal ; since is an ASM, the last row of has only zeros in columns different from . Thus, the last row and column of agree with the corresponding row and column of .
Now let be such that . Since column of has a zero in row , column of cannot contain three or more nonzeros, for if it did, times column of would be more than 2. It follows that column of equals , and the row of has only zeros in columns different from . Hence agrees with in both row and column . Continuing like this, if follows by induction that .
Corollary 18**.**
Let be an ASHM with corresponding ASHM . If rows resp., columns of are permutations of , then is an permutation hypermatrix and is a latin square.
Proof. By Lemma 17, of the row-vertical-planes of are permutation matrices. Since is an ASHM, it follows that the remaining row-vertical-plane is also a permutation matrix; hence is a permutation hypermatrix and so is a latin square.
We conclude this section with the following variation of the majorization order. For vectors and (not assumed to be monotone), we write provided that
[TABLE]
where equality holds for . Note that we only require inequalities to hold for the leading partial sums. For an matrix , let denote its weighted horizontal projection, i.e., where .
Theorem 19**.**
Let be an ASM. Let . Then there is a sequence of ASMs
[TABLE]
where , is a permutation matrix, , and the following majorizations hold
[TABLE]
Proof. If ( is a permutation matrix), there is nothing to prove, so assume where is an ASM. Choose with minimal such that . Then there is a unique with nonzero, and we have . Similarly, there is a unique with nonzero and . By the choice of , there is no negative entry in the leading submatrix, apart from . Moreover, . Let be obtained from by letting , , and, otherwise, . Then is an ASM and .
Moreover, is obtained from by adding the submatrix
[TABLE]
to the submatrix of corresponding to rows and columns . Thus, denoting the ’th component of and by and , respectively,
[TABLE]
This implies that
[TABLE]
We now repeat this process with replaced by . Clearly, after such operations, we have produced a sequence of ASMs with all the desired properties.
Example 20**.**
Consider the following ASM with :
[TABLE]
Adding the matrix to the submatrix induced by rows and columns gives
[TABLE]
with . Finally, adding to the submatrix induced by rows and columns gives the permutation matrix
[TABLE]
with . Here we have the majorizations
[TABLE]
4 Completion problems
In this section we study completion problems where some ASMs are given as horizontal-planes and one wants to extend them to obtain an ASHM.
Consider a -vector . We say that is -alternating if its nonzeros (if any) alternate in sign and the first nonzero is a 1. Similarly, is -alternating if its nonzeros (if any) alternate in sign and the last nonzero is a 1. Thus all the lines of an ASM are both -alternating and -alternating.
The th row (resp. column) of a matrix is denoted by (resp. ). As before the matrix is the all ones matrix of order .
Let ASMs be given, and let denote the corresponding hypermatrix. We consider the question: When does there exist an ASM such that is an ASHM? If the answer is affirmative, we say that has an ASHM-completion at horizontal layer . Let , where . An obvious necessary condition for to have an ASHM-completion at layer is
[TABLE]
For the given , (12) implies that is a -matrix.
Theorem 21**.**
Let be ASMs. Let be the corresponding hypermatrix and let . Define . Then has an ASHM-completion at layer if and only if both and the following majorization conditions hold
[TABLE]
If these conditions hold, there is a unique ASHM-completion at layer which is .
Proof. Let . Assume first that is an ASHM-completion of layer of . Then every line sum of is 1, so the sum of all these matrices (the layers) is , and therefore . Thus, such a completion is unique, if it exists. Also, condition holds as every line is alternating. Since is an ASM, for every , the sum of its first entries in a row is nonnegative, so for each ,
[TABLE]
that is, . Moreover,
[TABLE]
This proves that for each . Similarly, one obtains for each . This shows the necessity of the condition.
Conversely, assume that conditions (12) and (13) hold. Define
[TABLE]
We verify that is an ASHM. Since and , for each . Let . Consider the line in , and its subvectors and . By (12) is -alternating and is -alternating. Define and . Then we have the following cases:
(i) . Then the last nonzero of (if any) is , and the first nonzero of (if any) is . Moreover, , so the line is alternating.
(ii) , . Then the last nonzero of is 1, and the first nonzero of (if any) is , and , so the line is alternating.
(iii) , . Similar to case (ii).
(iv) , . Then the last nonzero of (if any), and the first nonzero of , is 1, and , so the line is alternating.
It only remains to show that is an ASM. Let . The computation in shows that, for each , as by (12). Moreover, as each is an ASM,
[TABLE]
Similarly, we obtain, for each , that for each , and . This shows that is an ASM, and therefore is an ASHM.
In what follows we shall make use of the following classical decomposition result ([3, 7]).
Theorem 22**.**
Let be an nonnegative integral matrix with equal row and column sums, say equal to . Then may be decomposed as the sum of permutation matrices.
Let and let be an hypermatrix where are ASMs. We consider the problem of extending by inserting ASMs so that is an ASHM. An obvious necessary condition on the vertical lines is the following:
[TABLE]
The next theorem says that no other condition is needed.
Theorem 23**.**
Let , and let be ASMs satisfying . Then there exist ASMs such that is an ASHM. Moreover, each of these additional ASMs may be chosen as a permutation matrix.
Proof. Let . Then each line sum in is . Moreover, it follows from condition that is a -matrix. Let which is also a -matrix with each line sum . Clearly and have disjoint supports.
Note that if has a 1 in position it means that , and the vertical line is alternating. Since all line sums in are , by Theorem 22, there are permutation matrices such that
[TABLE]
Define the hypermatrix . Then is an ASHM because:
(i) In positions where has a 1 the line is alternating and has sum 1 while for .
(ii) In positions where has a 0, has a 1, so exactly one , for , has a 1 in that position . Moreover, the line is -alternating so its last nonzero, if any, is . So the whole line is alternating.
We remark that one may find the permutation matrices in Theorem 23 efficiently (in polynomial time) since matching algorithms may be be used to find the decomposition in Theorem 22.
Example 24**.**
Consider Theorem 23, and its proof, with and
[TABLE]
Then
[TABLE]
So, we can extend into an ASHM by adding the permutation matrices
[TABLE]
Recall that denotes the number of negative entries of a matrix, or hypermatrix, . By Theorem 5 the maximum number of nonzeros in an ASHM is given by . Therefore the maximum number of ’s in an ASHM is
[TABLE]
Let . Our goal now is to show that, for any nonnegative integer , there exists an ASHM with (for there is nothing to show).
First, we describe a class of ASMs that are obtained from the diamond ASMs. The construction is illustrated in Example 26. Let and consider . For , the th positive diagonal of consists of the positions . Similarly, for the th negative diagonal of consists of the positions . Define which is the number of ’s in each of the negative diagonals of . We have . Let and be integers with and . Let be the matrix obtained from as follows:
(i) If , let each entry in the first positive diagonals and the first negative diagonals be zero (some of these entries may be changed again in step (ii));
(ii) If is even, let . Otherwise, when is odd, there are two subcases: (a) is odd; then let the entry be 1 in each of the first positions in the sequence , , , , , ; (b) is even; let the entry be 1 in each of the first positions in the sequence , , , , .
(iii) If , let the last entries in the last negative diagonal be zero, and the last entries of the last positive diagonal be zero. Finally, let .
Define
[TABLE]
which consists of positions in the upper right triangle and the lower left triangle.
Lemma 25**.**
Each matrix is an ASM, and . is obtained from by replacing some zeros in by , and replacing some nonzeros outside by zero.
Proof. This follows from the construction of .
Example 26**.**
Let and , so
[TABLE]
Then is odd. For and , we obtain
[TABLE]
Here the first two positive and negative diagonals of now contain zeros, and, as a compensation, we have the two ones in the upper right corner. For and , the first positive and negative diagonals are replaced by zeros, and a modification is done in the lower left corner:
[TABLE]
Theorem 27**.**
Let be a positive integer. Then, where is given by , for every integer , there exists an ASHM with .
Proof. First, note that any permutation ASHM does not have any negative entries. Let be the diamond ASHM of size . Then has negative entries. Let . Choose minimal such that the hypermatrix has at least negative entries. So .
We claim that there exists an ASM such that each vertical line in the hypermatrix is -alternating, i.e., holds and, moreover, has negative entries.
The claim follows from Lemma 25 as we can choose for suitable and so that has negative entries (the and are unique). Then is an ASM and the -alternating property follows from the second part of the lemma, as all the matrices have only zeros in positions in .
Now, due to the claim, we apply Theorem 23 to obtain permutation matrices () such that is an ASHM, and has exactly negative entries as desired.
We remark that the ASHM constructed in the proof of Theorem 27 is extreme in that it has the maximum number of elements in the first horizontal layers, and no negative entries in the last layers.
We now show that there exists an ASHM whose ’s are confined to the th horizontal level and whose number is any number below the maximum possible at the th horizontal level.
Theorem 28**.**
Let . Then there exists an ASM with negative entries and permutation matrices such that
[TABLE]
is an ASHM.
Proof. We use the construction in the proof of Theorem 27. This shows that there is an ASM with negative entries and permutation matrices such that is an ASHM.
Consider the subhypermatrix obtained from by deleting the first horizontal planes. Then, by reversing the order of these planes, each vertical line is -alternating, so we apply Theorem 23, and there exist permutation matrices () such that
[TABLE]
is an ASHM, as desired.
Recall that a matrix is convex provided the nonzeros in each of its lines are consecutive. Examples of convex ASMs are the ASMs , the th horizontal ASM of the diamond ASHM . An hypermatrix is convex provided the nonzeros in each of its three types of lines are consecutive. The diamond ASHM is convex. We call an ASM minus-convex provided in every row and column all entries between two negative entries (if any) are nonzero, i.e., each of its rows and columns has the form
[TABLE]
where the subsequences of zeros can be void.
Theorem 29**.**
Let be an matrix obtained from an ASM by replacing some nonzeros with zeros in such a way that the result is convex. Then can be completed to an ASM by changing some zeros to ones.
Before giving a proof of Theorem 29, which provides a simple algorithm to obtain , we illustrate the theorem with an example.
Example 30**.**
Consider the ASM
[TABLE]
where the shaded entries are to be replaced with zeros to obtain an convex matrix . Then a completion of to an ASM obtained by changing certain zeros to ones is
[TABLE]
Proof. (of Theorem 29) If does not have any ’s (in particular, if does not have any ’s), then consists of 1’s no two on the same line, and can be completed to a permutation matrix and hence an ASM. We now assume that contains at least one . To proceed we consider the following transformation of an ASM.
Let be an ASM with at least one negative entry. Choose with minimal such that . Then there is a unique with nonzero, and we have . Similarly, there is a unique with nonzero and . By the choice of there is no negative entry in the leading submatrix, apart from . Moreover, . Let be obtained from by letting , , and, otherwise, . Then is an ASM and . This transformation makes a change in the upper-left corner of the matrix . Clearly a similar transformation may be performed in the upper-right, lower-left or lower-right corner of . Each of these will be called a corner transform of an ASM.
Note that if is a minus-convex ASM and is obtained from by a corner transform, then is also minus-convex.
The theorem follows by a sequence of corner transforms: Let and be as stated in the theorem. If has a wherever has a , then we let . Now assume that there is at least one position in which has a and has a [math]. Choosing as above, we use a corner transformation and obtain a minus-convex ASM which has a in every position that has a . Proceeding inductively we obtain the desired ASM .
Example 31**.**
Let
[TABLE]
where the shaded entries are to be replaced with zeros to obtain a convex matrix . Then using corner transformations we obtain an ASM:
[TABLE]
We now study another completion problem, where an ASM is given and we want to extend it to an ASHM in some way. First, we introduce a generalization of an ASM. Consider a -matrix with all line sums equal to 1; such a matrix will be called a semi-ASM. Thus, if a line contains ’s, then it has ’s. If is a PASHM, then its row-vertical-planes and column-vertical-planes are semi-ASMs.
The semi-ASMs have the following simple property. With a semi-ASM of order we associate the bipartite graph of with vertices in each color class and having an edge whenever ; thus the edges correspond to the zeros and not, as is often the case, to the nonzeros. If has a cycle (which must be even), then by putting and in the positions of of this cycle (alternating), we obtain a new matrix from . Then is also a semi-ASM and has more nonzeros than .
If and are semi-ASMs of order and agrees in every nonzero entry of , we say that is a semi-ASM extension of . Thus, the cycle construction above produces an semi-ASM extension of , and we call this a cycle-extension.
Theorem 32**.**
Let be a semi-ASM of order where is odd. Then has a semi-ASM extension with all entries nonzero.
Proof. The proof of this theorem uses a standard kind of argument. Assume has at least one zero entry (otherwise we are done). Let denote the set of lines in that contain at least one zero entry. Since is a semi-ASM, each line has an odd number of nonzero entries. Therefore, as is odd, each line in has a positive even number of zeros. Consider the subgraph of induced by the vertices corresponding to (so we have just removed isolated vertices, that is, vertices corresponding to lines of all 1’s). In this subgraph each vertex has an even, nonzero degree, and therefore the subgraph contains a cycle. Now, use this cycle and perform a cycle-extension of . This gives a new matrix with fewer zeros than , and is a semi-ASM. We may repeat this process, and get a sequence of semi-ASMs with fewer zeros, and eventually we obtain a semi-ASM with no zeros, as desired.
The next example shows that the property in Theorem 32 does not hold in general when is even.
Example 33**.**
Let and let the semi-ASM be given by
[TABLE]
To find an extension, in the first row, we need to change some 0 to and another 0 to , but then we violate that all column sums should be 1. So a semi-ASM extension does not exist.
We say that two -matrices and are disjoint provided that their supports are disjoint, that is, provided that is also a -matrix.
Corollary 34**.**
Let be odd, and let be a semi-ASM of order . Then there is a decomposition of into pairwise disjoint permutation matrices such that the ones in cover all the ’s in , and the ones in cover all the ’s in .
Proof. Apply Theorem 32 to , and let be an extension with all entries nonzero. The -matrix obtained from by replacing each by [math], and multiplying the matrix by has all line sums equal to , and can therefore be written as the sum of pairwise disjoint permutation matrices. Similarly, the -matrix obtained from by replacing each by [math] has all line sums equal to , and can therefore be written as the sum of pairwise disjoint permutation matrices. These permutation matrices are pairwise disjoint, so the result follows.
We now use the previous results to solve the completion problem mentioned above, where we want to extend a given ASM into an ASHM.
Theorem 35**.**
Let be an ASM of order where is odd. Then there are permutation matrices such that
[TABLE]
is an ASHM.
Proof. First, by Corollary 34 there exist pairwise disjoint permutation matrices whose ones cover all the ’s in , but do not cover any of the ’s in . Therefore the matrix
[TABLE]
is a -matrix. Consider the hypermatrix . As is a matrix and the ’s are pairwise disjoint, each of the vertical lines is alternating (). So, (14) holds with replaced by , and by Theorem 23 there are permutation matrices such that is an ASHM.
Example 36**.**
Let and
[TABLE]
Then, in Theorem 35, we may let be the identity matrix (it covers the , but none of the ones in ), and this gives the following ASHM with as the middle plane:
[TABLE]
We now consider the case of even . First we make a general definition. Let and be -matrices. We define and to be sign-disjoint provided is also a -matrix. Thus and are sign-disjoint if and only if they have neither 1’s in the same position nor ’s in the same position. If and are -matrices, then and are sign-disjoint if and only if they are disjoint as previously defined. We also observe that if is an ASHM, then and are sign-disjoint for each .
Lemma 37**.**
Let be an even integer, and let and be sign-disjoint ASMs. Then the line sums of all equal , and the number of zeros in each row and column of is even.
Proof. Since and are ASMs, all of their line sums equal 1, and hence all of the line sums of equal 2. Also, since and are ASMs, each contains an odd number of nonzeros in each row and column. Consider some row (or column) of and . Let the number of nonzero positions in row of (respectively, ) be (respectively, ), and let be the number of positions in row in which has a and has a or the other way around. Then the number of nonzeros in row of equals , an even number. Since is also even, the number of zeros in row of is even.
Corollary 38**.**
Let be an even integer, and let and be sign-disjoint ASMs. Then there is a -matrix which extends with all entries nonzero and all line sums equal to . Moreover, there are pairwise disjoint permutation matrices such that the permutation matrices cover all the ’s of , and the permutation matrices cover all the ’s of .
Proof. The proof follows as in the proofs of Theorem 32 and Corollary 34.
Theorem 39**.**
Let and be sign-disjoint ASMs where is even. Then there are permutation matrices such that
[TABLE]
is an ASHM.
Proof. By Corollary 38, there is a -matrix which extends with all entries nonzero and all line sums equal to . Let be the -matrix obtained from by replacing each with a 0 and multiplying the matrix by . Then all line sums of equal , and the matrix is a -matrix. As in the proof of Theorem 35 there are permutation matrices such that is an ASHM.
Let be an integer and let be an ASM. An ASM is an ASM-mate of provided that is a -matrix, that is, provided that and are sign-disjoint.
Theorem 40**.**
Let be an ASM of order . Then has an ASM-mate which may be chosen as a permutation matrix.
Proof. First, assume is odd, say . By Corollary 34 there are pairwise disjoint permutation matrices such that the ones in cover all the ’s in , and the ones in cover all the ’s in . In particular, covers only entries that are or [math] (by the pairwise disjointness, and as the ones are covered by other ’s). Therefore is a -matrix, and is an ASM-mate of .
Next, assume is even, say , and let . Let be a nonempty subset of , and let
[TABLE]
If , then , since every row in has at most 1’s (as is an ASM) and therefore at least entries in . Otherwise, , and then every column in must contain a 0 or a in some row in , as every column of contains at most 1’s. So, then .
This proves that for every nonempty subset of , and by Hall’s (marriage) theorem, there must be a permutation matrix whose ones are in the positions where has entries in . Therefore is a -matrix, and is an ASM-mate of .
By definition, if we delete planes in a hypermatrix, we obtain a subhypermatrix. We next show that any -hypermatrix is the subhypermatrix of some ASHM. This result is useful for constructing classes of (“random”) ASHMs. A similar result for ASM submatrices was established in [5].
Let be an hypermatrix where are the horizontal-planes of . Let . Define the -matrix of size as follows. Let and . If the last nonzero, if any, in the (partial) vertical line is (resp. ) and (resp. ), we define (resp. ). All other entries of are zero. The idea of the construction algorithm is to insert planes between and based on the matrix . The following result will be useful, see [7]. A subpermutation matrix is a -matrix with at most one 1 in every row and column.
Theorem 41**.**
([7])* Let be a -matrix with maximum line sum . Then there are pairwise disjoint subpermutation matrices such that*
[TABLE]
We now formulate the announced result.
Theorem 42**.**
Let be an -hypermatrix of size . Then there is an integer and an ASHM with as a subhypermatrix. In fact, may be obtained from by repeatedly inserting new planes horizontal, column-vertical and row-vertical that are subpermutation matrices and their negatives.
Proof. Let . We describe an algorithm for constructing the desired ASHM . Start with the given , and let be the maximum number of ’s in a line of (so ). By Theorem 41 there are pairwise disjoint subpermutation matrices such that the union of their supports coincides with the set of positions of the ’s in . Let
[TABLE]
Therefore each vertical line of the subhypermatrix
[TABLE]
of is -alternating (which includes the possibility of the zero vector). Next, if needed, we modify by adding horizontal planes between and . Let . Let (resp. ) be the maximum number of ’s (resp. ’s) in a line of . By Theorem 41, there are pairwise disjoint subpermutation matrices (resp. ) such that the union of their supports coincides with the set of positions of the ’s (resp. the ’s) in , and, moreover, and are pairwise disjoint for each . Then we update so that
[TABLE]
Then, by construction, each vertical line in up to, and including, the matrix is -alternating. We continue in the same way, by inserting planes that are subpermutation matrices or their negatives between and , so that the resulting matrix has -alternating vertical lines up to its last plane . Then we identify those for which the vertical line misses a final 1, to make the line alternating, and add planes as above to achieve that. As a result, each vertical line in is alternating (and, therefore, nonzero).
The next step is to consider the row-vertical planes in . We repeat the procedure above by inserting suitable row-vertical planes so that new hypermatrix has alternating row lines. Note that these plane insertions do not affect the alternating property of the vertical lines because every vertical line is included in (exactly) one row-vertical plane.
Finally, we repeat the procedure another time, now for the column-vertical planes in . Again, the previous alternating properties are maintained. The resulting matrix has only alternating lines in each direction. Since every line sum in is 1, summation shows that , so is an ASHM as desired.
Finally we mention that a different kind of ASM completion problem was considered in [6]
5 Coda
As a generalization of alternating sign matrices and latin squares, we have initiated the study of the fascinating class of ASHMs and the associated class of ASHM latin squares. In view of the results obtained, there are many possible directions to pursue. In particular, a characterization of ASHM-LSs would be very interesting. A specific question is the following.
Problem 43**.**
What is the maximum number of times an integer can occur as an entry in an ASHM-LS? The ASHM-LS in (10) and the subsequent discussion shows that an integer can occur times in an ASHM-LS. Is the maximum equal to ? **
As a step in characterizing the entries of an ASHM-LS, we would like to characterize the weighted projections of ASMs.
Conjecture 44**.**
Let be a vector of positive integers such that . Then there exists an ASM whose weighted vertical projection is .
Another possible and worthwhile direction is provided by the concept of orthogonality of latin squares which is fundamentally important and well-studied in combinatorics.
Let
[TABLE]
be two latin squares, where and are permutation matrices with and . Then and are orthogonal provided when they are juxtaposed to form a matrix of ordered pairs, all pairs with occur (equivalently, there are no repeats); and are then called orthogonal LS-mates. If but , the celebrated theorem of Bose, Parker, and Shrikhande (see [13] for a discussion and more references) asserts that there exists a pair of orthogonal latin squares. It is well-known that for each , the maximum number of pairwise orthogonal latin squares is bounded by .
Another way to view orthogonality of latin squares is the following: The latin squares and in (16) are orthogonal if and only if the standard inner products (sum of products of corresponding entries) of the and the satisfy
[TABLE]
equivalently, each pair and have exactly one 1 in common positions. Let us define and to be orthogonal permutation-mates when . Thus the latin squares and in (16) are orthogonal LS-mates if and only if and are orthogonal permutation-mates for all and . If , every permutation matrix has an orthogonal permutation-mate (in fact, exactly orthogonal mates where is the st derangement number). But, as is well known, not every latin square has an orthogonal LS-mate.
Now consider two ASHM-LS’s.
[TABLE]
where and are ASHMs. Thus
[TABLE]
Generalizing orthogonality of latin squares, with the and playing the role of the permutation matrices and above, we define the ASHM-LS’s and to be orthogonal provided the inner products of the with the satisfy
[TABLE]
If and are orthogonal, then we also say that and are orthogonal ASHM-LS mates. It follows from the theorem of Bose, Parker, and Shrikhande that, if but , then there exists a pair of orthogonal ASHM-LS’s. Extending our definition above from permutation matrices to ASHMs, we define the ASMs and to be orthogonal ASM-mates when .
Example 45**.**
The ASM
[TABLE]
does not have an orthogonal ASM-mate. The ASMs
[TABLE]
are pairwise orthogonal ASM-mates.
This extension of the notion of orthogonality leads to several questions
Problem 46**.**
- (a)
Which ASMs have an orthogonal ASM-mate? Which ASMs have a permutation matrix as an orthogonal mate?
- (b)
Does there exist a pair of orthogonal ASHM-LS’s?
- (c)
Does there exist a set of more than pairwise orthogonal ASHM-LS’s?
If the answer to (b) is no, it may not be straightforward to resolve as it contains the known, but not easily verifiable, fact that there does not exist a pair of orthogonal latin squares. One possible way to consider the question (c) is to start with a set of pairwise orthogonal latin squares (so coming from permutation ASHMs, and construct an ASHM-LS orthogonal to each of them. This possibility addresses the question as to whether or not there exists a set of pairwise orthogonal ASHM-LS’s extending a set of ordinary latin squares.
If is an latin square, then corresponds to a unique -tuple of permutation matrices with , that is, to a unique permutation hypermatrix , such that . This leads to the following question for ASHM-LS’s.
Problem 47**.**
Let be the set of ASHMs and let be the set of ASHM-LS’s. If . then there exists an ASHM such that . Is the ASHM unique? Equivalently, is the mapping
[TABLE]
given by injective? In words, can two different ASHMs give identical ASHM-LS’s? Note that if is an ordinary LS, then we know from Theorem 9 that the ASHM is a permutation hypermatrix and thus is uniquely determined.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] R.E. Behrend, V.A. Knight, Higher spin alternating sign matrices, Electron. J. Combin. 14 (2007), 1–38.
- 2[2] D. Bressoud, Proofs and Confirmations: The Story of the Alternating Sign Matrix Conjecture , Math. Association of America, Cambridge University Press 1999.
- 3[3] R.A. Brualdi, Combinatorial Matrix Classes , Cambridge University Press, Cambridge, 2006.
- 4[4] R.A. Brualdi, G. Dahl, Alternating sign matrices, extensions and related cones, Advances in Applied Mathematics , 86 (2017), 19–49.
- 5[5] R.A. Brualdi, K.P. Kiernan, S.A. Meyer, M.S. Schroeder, Patterns of Alternation Sign Matrices, Linear Alg. Appl. 438 (2013), 3967–3990.
- 6[6] R.A. Brualdi, H.-K. Kim, Completions of Alternating Sign Matrices, Graphs & Combinatorics , 31 (2015), 507–522.
- 7[7] R.A. Brualdi, H.J. Ryser, Combinatorial Matrix Theory , Cambridge University Press, Cambridge, 1991.
- 8[8] R.A. Brualdi, M.W. Schroeder, Alternating sign matrices and their Bruhat order, Discrete Math. , to appear.
