<<

arXiv:2003.01453v1 [math.CO] 3 Mar 2020 ierAgbatcnqe antb ple osuytedec the study to . unc structure applied an be the of cannot keep techniques to wants Algebra one Linear if Thus, matrix. the sta nmdlrt srqie o h rnfrainma transformation di the main the for The preserve required to 2.1). is necessary Definition unimodularity (see that case is real the to analogously ru Q-6 n ytepoetMM07880P(MINECO/F MTM2017-84890-P project the by and FQM-366 group M projects the by UE). and (MINECO/FEDER, funds) PGC2018-096446-B-C21 Extremadura/FEDER de (Junta 024 UE). (MINECO/FEDER, B-C21 graph. disconnected matrix, reducible eeae ytennngtv obntoso h oun o columns the of combinations non-negative the by generated oiinof position matrix rm28 hc ttsta if mai that our states to leads which th This decom 2.8) Following the 2.4). orem and (Proposition tool. matrix form integer normal main any Hermite of the decomposition as the form relate normal Hermite (integer) elwt h optto ftedcmoiin of decompositions the of computation the with deal ucetcniinfor condition sufficient aoiladLna ler ahnr odtrieif determine to machinery Algebra Linear and natorial times rnps of ie an Given 1991 Date o nee audmtie,anto fdcmoaiiyca decomposability of notion a matrices, valued integer For h eerho h hr uhri atal upre yJu by supported partially is author third the of research The t by supported partially is author second the of the research by The supported partially is author first the of research The phrases. and words Key NDCMOAL N EUIL INTEGER REDUCIBLE AND DECOMPOSABLE ON H ac ,2020. 4, March : ahmtc ujc Classification. Subject Mathematics A emnstedcmoiiiyo h rtone. first the compl of which decomposibility reduci and the whose Algebra, termines Linear matrix elementary whole by symmetric determined norma a be Hermite associate with we its rank zeros, row of maximal of terms of matrix in integer each decomposable to Specifically, be to matrix teger Abstract. srdcbei h sa es seDfiiin27.Nw sin Now, 2.7). Definition (see sense usual the in reducible is fmxmlrwrn ihu oun fzrs h eesr a necessary the zeros, of columns without rank row maximal of A .MARIJU C. m H ilsadcmoiinof decomposition a yields × times n epooencsayadsffiin odtosfra in- an for conditions sufficient and necessary propose We nee matrix integer N .OEA N .VIGNERON-TENORIO A. AND OJEDA, I. AN, ´ H nee arx emt omlfr,dcmoal matrix, decomposable form, normal Hermite matrix, Integer A sasmercmti,w a dp h combi- the adapt can we matrix, symmetric a is Z ob eopsbei httetasoeof transpose the that is decomposable be to − 1. ouesrcuegnrtdb h oun of columns the by generated structure module MATRICES H Introduction steHrienra omo ninteger an of form normal Hermite the is A ecncnie h submonid the consider can we , 1 53 Piay,0C0 55 (Secondary). 05C50 05C40, (Primary), 15B36 S n ievra n[] h authors the [3], In versa. vice and , S t eAndaluc´ıa research de nta rjc PGC2018-096446- project fpsil,uigthe using possible, if , ersac rusFQM- groups research he A M07880Pand TM2017-84890-P u columns out sdecomposable. is DR UE). EDER, iiycan bility tl de- etely rcs hsis This trices. f eut(The- result n oiino its of position form. l agd pure hanged, A omposability eec here fference estated be n decom- A . sie,we idea, is S ethe ce of Z nd H n 2 C.MARIJUAN,´ I. OJEDA, AND A. VIGNERON-TENORIO

Note that for a symmetric real matrix is possible to decide if it can be de- composed into a direct sum of smaller symmetric real matrices by analyzing the connectivity of a certain associated graph, which is closely related to the spectral properties of the graph. All this allows us to propose an algorithm (Algorithm 2.12) for the computation of the decomposition of the matrix A, if possible. Apart from practical computational considerations, we emphasize that, given an A of maximal row rank without columns of zeros, we are able to associate it to a weighted graph whose connectivity determines the decomposition of A. In particular, this can be used to determine the decomposition of any finitely generated commutative submonoid of Zn as in [3]. Recall that the study of finitely generated commutative submonoids of Zn is of great interest due to its close relation with Toric Geometry (see [2, 7] or [8], and the references therein). Moreover, in this context, integer decom- posable matrices have their own importance; to mention a couple illustrative of examples we observe that decomposable graphical models have associated integer decomposable matrices, as it can be deduced from [9, Theorem 4.2], and that decomposable semigroups correspond to direct products of certain algebraic (toric, in a wide sense) varieties.

2. On decomposable and reducible integer matrices Definition 2.1. Let A ∈ Zm×n. We say that A is decomposable if there exist a P and a Q such that P −1AQ decomposes into a direct sum of matrices. The main aim of this note is to study decomposable matrices in terms of their . To do this, we first recall the notion of Hermite normal form of an integer matrix. Definition 2.2. Let A ∈ Zm×n of rank r. The Hermite normal form of m×n A, HNF(A), is the unique matrix H = (hij) ∈ Z such that A = PH, for the unimodular matrix P , satisfying the following three conditions:

(a) there exists a sequence of 1 ≤ j1 <...

(b) for 1 ≤ k < i ≤ n we have 0 ≤ hkji < hiji (the pivot element is the greatest along its column and the coefficients above are nonnegative). (c) The last m − r rows are zero. We will say that A is in Hermite normal form when A = HNF(A). There are well-known efficient algorithms for the computation of the Her- mite normal form of an integer matrix (see, e.g. [1]). In GAP ([4]), the command HermiteNormalFormIntegerMat computes the Hermiten normal form of an integer matrix. Example 2.3. The Hermite normal form of 2 −4 2 5 −6 A = 2 −2 2 5 −3  0 −2 1 2 −3    ON DECOMPOSABLE AND REDUCIBLE INTEGER MATRICES 3 is 1 0 −2 20010 HNF(A)= −1 1 0 A = 02003 ,  −1 1 1   00120  1 0 −2    where the matrix −1 1 0 is the product of the elementary matrices  −1 1 1  transforming the matrix A into its reduced as above, in such way that the unimodular matrix in Definition 2.2 is 1 0 −2 −1 1 −2 2 P = −1 1 0 = 1 −1 2 .  −1 1 1   0 −1 1  The next propositions provide necessary  and sufficient conditions for an integer matrix to be decomposable in terms of its Hermite normal form. Proposition 2.4. Let A ∈ Zm×n and let H = HNF(A). Then, A is decom- posable if and only if H is decomposable. −1 Proof. Let P1 be a unimodular matrix such that P1 A = H. If A is de- −1 −1 −1 −1 composable, then A1 ⊕ . . . ⊕ At = P2 AQ = P2 P1HQ = (P1 P2) HQ, for some unimodular matrix P2 and permutation matrix Q. Now, since −1 P1 P2 is unimodular, we have that H is decomposable. Conversely, as- sume that H is decomposable, so there exist a unimodular matrix P3 and −1 a permutation matrix Q1 such that P3 HQ1 = H1 ⊕ . . . ⊕ Hs. Thus, −1 −1 −1  H1 ⊕ . . . ⊕ Hs = P3 P1 AQ1 = (P1P3) AQ1 and we are done. In the following, we will use the symbol ⊤ to denote the transpose oper- ation. Proposition 2.5. Let H be an integer r × n−matrix in Hermite normal form of rank r. Then, H is decomposable if and only if there exist permu- tation matrices P and Q such that P ⊤HQ decomposes into a direct sum of matrices. Proof. The sufficiency part is obvious since the permutation matrix P is unimodular and P ⊤ = P −1. Conversely, suppose that H is decomposable, so there exist a unimodular matrix R and a permutation matrix Q such −1 that R HQ = A1 ⊕ . . . ⊕ At. For simplicity, we will assume that t = 2. −1 ⊤ Let P1 and P2 be unimodular matrices such that H1 := P1 (A1| 0)Q and −1 ⊤ H2 := P2 (0 |A2)Q are in Hermite normal form, and define the following matrix H B := 1 = (P ⊕ P )−1(A ⊕ A )Q⊤ = (P −1A ⊕ P −1A )Q⊤. H 1 2 1 2 1 1 2 2  2  Since the rank of B is r, each row of B contains a pivot element of H1 or H2. If we move the row containing the first (leftmost) pivot element to the first place, the row containing the second pivot element to the second place and so forth, the resulting matrix is necessarily in Hermite normal form. Thus, there exists a permutation matrix P such that PB = H, by the uniqueness −1 −1 ⊤ of the Hermite normal form. Therefore, H = PB = P (P1 A1 ⊕ P2 A2)Q ⊤ −1 −1  and we conclude that P HQ decomposes into P1 A1 ⊕ P2 A2. 4 C.MARIJUAN,´ I. OJEDA, AND A. VIGNERON-TENORIO

Example 2.6. By Proposition 2.5, we can easily see that the matrix A in Example 2.3 is decomposable. Indeed, 10000 1 0 0 00010 2 0 1 0 0 0 0 1 HNF(A)  01000  = 0 1 2 0 0 .     0 1 0  00100  0 0 0 2 3      00001      For symmetric matrices, decomposability can be refined to the more re- strictive notion of reducibility. This notion has a rich combinatorial nature, because of its relationship with , as we will see later on. Definition 2.7. A B ∈ Zn×n is reducible if there exists a permutation matrix Q such that Q⊤BQ decomposes into a direct sum of square matrices. Otherwise B is said to be irreducible. The following result gives a necessary and sufficient condition for an in- teger matrix (under reasonable conditions) to be decomposable in terms of the reducibility of a certain related symmetric matrix. Theorem 2.8. Let A be an r ×n integer matrix of rank r with no column of zeros. Then A is decomposable if and only if HNF(A)⊤HNF(A) is reducible. Proof. Let H be the Hermite normal form of A. By Proposition 2.4, we may assume that A = H. Now, if H is decomposable, by Proposition 2.5, there ⊤ exist permutation matrices P and Q such that P HQ = H1 ⊕. . .⊕Ht, then ⊤ ⊤ ⊤ ⊤ ⊤ ⊤ ⊤ ⊤ ⊤ Q (H H)Q = (Q H P )(P HQ) = (P HQ) (P HQ) = (H1 H1)⊕. . .⊕ ⊤ ⊤ (Ht Ht). Conversely, if H H is reducible, without loss of generality, there exists a permutation matrix Q such that ⊤ ⊤ ⊤ Q (H H)Q = (HQ) HQ = H1 ⊕ H2 s×s (n−s)×(n−s) where H1 ∈ Z ,H2 ∈ Z are symmetric and 1 ≤ s

(a) If the j−th column of R is a non-pivot column, then (i) Set k = k + 1 (ii) Let Qk be the matrix whose columns are {ei} ∪ {eℓ | ℓ ∈ supp(vj)}, where ei is the vector that has the i−th coordinate equal to 1 and all the other coordinates equal to 0. (6) Set Q = (Q1| . . . |Qr), where r = n − rank(L). −1 (7) Let P1 be the unimodular matrix such that P1 (HQ) = HNF(HQ). (8) Return P = P0P1 and Q.

Observe that steps (1)-(6) provide unimodular matrices P0 and Q such −1 that P0 AQ = A1 ⊕ . . . ⊕ At. If t = 1 then that A is not decomposable; in this case A1 = HNF(A) and Q is the . Otherwise, if A is decomposable; we cannot guarantee that the matrices Ai, i = 1,...,t, are in Hermite normal form. However, since HNF(A1) ⊕ . . . ⊕ HNF(At) = HNF(A1 ⊕ . . . ⊕ At) by the uniqueness of the Hermite normal form, step (7) −1 −1 provides the matrix P1 such that P1 P0 AQ is in Hermite normal form as desired.

References [1] Clement, P.; Stein, W. Fast computation of Hermite normal forms of random integer matrices. Journal of Number Theory, 130 (2010), 1675–1683. [2] Cox, D.; Little, B. and Schenk, H. Toric varieties, Grad. Studies Math., 124, Amer. Math. Soc. (2011) [3] Garc´ıa-Garc´ıa, J.I.;Moreno-Fr´ıas M.A.; Vigneron-Tenorio, A. On decom- posable semigroups and applications. Journal of Symbolic Computation 58 (2013), 103–116. [4] The GAP Group, GAP – Groups, Algorithms, and Programming, Version 4.8.8 ; 2017, https://www.gap-system.org. [5] Merris, R. Laplacian matrices of graphs: a survey. Appl. 197, 198 (1994), 143–176. [6] Meyer, C. Matrix analysis and applied linear algebra. Society for Industrial and Applied Mathematics (SIAM), Philadelphia, PA, 2000. [7] Miller, E.; Sturmfels, B. Combinatorial Commutative Algebra. Vol. 227 of Grad- uate Texts in Mathematics. Springer, New York. 2005. [8] Rosales, J.C.; Garca-Snchez, P.A. Finitely generated commutative monoids. Nova Science Publishers, Inc., Commack, NY, 1999. [9] Geiger, D.; Meek, C.; Sturmfels, B. On the toric algebra of graphical models. Ann. Statist. 34(3), (2006), 1463-1492.

Universidad de Valladolid Departamento de Matematica´ Aplicada E-mail address: [email protected]

Universidad de Extremadura Departamento de Matematicas´ E-mail address: [email protected]

Universidad de Cadiz´ Departamento de Matematicas/INDESS´ (Instituto Universitario para el Desarrollo Social Sostenible) E-mail address: [email protected]