Hermite normal form
In linear algebra, the Hermite normal form is an analogue of reduced echelon form for matrices over the integers Z. Just as reduced echelon form can be used to solve problems about the solution to the linear system Ax=b where x is in Rn, the Hermite normal form can solve problems about the solution to the linear system Ax=b where this time x is restricted to have integer coordinates only. Other applications of the Hermite normal form include integer programming,[1] cryptography,[2] and abstract algebra.[3]
Definition
Various authors may prefer to talk about Hermite normal form in either row-style or column-style. They are essentially the same up to transposition.
Row-style Hermite normal form
An m by n matrix A with integer entries has a (row) Hermite normal form H if there is a square unimodular matrix U where H=UA and H has the following restrictions:[4][5][6]
- H is upper triangular (that is, hij = 0 for i > j), and any rows of zeros are located below any other row.
- The leading coefficient (the first nonzero entry from the left, also called the pivot) of a nonzero row is always strictly to the right of the leading coefficient of the row above it; moreover, it is positive.
- The elements below pivots are zero and elements above pivots are nonnegative and strictly smaller than the pivot.
The third condition is not standard among authors, for example some sources force non-pivots to be nonpositive[7][8] or place no sign restriction on them.[9] However, these definitions are equivalent by using a different unimodular matrix U. A unimodular matrix is a square invertible integer matrix whose determinant is 1 or −1.
Column-style Hermite normal form
A m-by-n matrix A with integer entries has a (column) Hermite normal form H if there is a square unimodular matrix U where H=AU and H has the following restrictions:[8][10]
- H is lower triangular, hij = 0 for i < j, and any columns of zeros are located on the right.
- The leading coefficient (the first nonzero entry from the top, also called the pivot) of a nonzero column is always strictly below of the leading coefficient of the column before it; moreover, it is positive.
- The elements to the right of pivots are zero and elements to the left of pivots are nonnegative and strictly smaller than the pivot.
Note that the row-style definition has a unimodular matrix U multiplying A on the left (meaning U is acting on the rows of A), while the column-style definition has the unimodular matrix action on the columns of A. The two definitions of Hermite normal forms are simply transposes of each other.
Existence and uniqueness of the Hermite normal form
Every full row rank m-by-n matrix A with integer entries has a unique m-by-n matrix H in Hermite normal form, such that H=UA for some square unimodular matrix U.[5][11][12]
Examples
In the examples below, H is the Hermite normal form of the matrix A, and U is a unimodular matrix such that UA = H. [math]\displaystyle{ A=\begin{pmatrix} 3 & 3 & 1 & 4 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 19 & 16 \\ 0 & 0 & 0 & 3 \end{pmatrix} \qquad H=\begin{pmatrix} 3 & 0 & 1 & 1\\ 0 & 1 & 0 & 0\\ 0 & 0 &19 & 1\\ 0 & 0 & 0 & 3 \end{pmatrix} \qquad U = \left(\begin{array}{rrrr} 1 & -3 & 0 & -1 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & -5 \\ 0 & 0 & 0 & 1 \end{array}\right) }[/math]
[math]\displaystyle{ A = \begin{pmatrix} 2 & 3 & 6 & 2 \\ 5 & 6 & 1 & 6 \\ 8 & 3 & 1 & 1 \end{pmatrix} \qquad H = \left(\begin{array}{rrrr} 1 & 0 & 50 & -11 \\ 0 & 3 & 28 & -2 \\ 0 & 0 & 61 & -13 \end{array}\right) \qquad U = \left(\begin{array}{rrr} 9 & -5 & 1 \\ 5 & -2 & 0 \\ 11 & -6 & 1 \end{array}\right) }[/math]
If A has only one row then either H = A or H = −A, depending on whether the single row of A has a positive or negative leading coefficient.
Algorithms
There are many algorithms for computing the Hermite normal form, dating back to 1851. One such algorithm is described in [13](pp43--45). But only in 1979 when an algorithm for computing the Hermite normal form that ran in strongly polynomial time was first developed;[14] that is, the number of steps to compute the Hermite normal form is bounded above by a polynomial in the dimensions of the input matrix, and the space used by the algorithm (intermediate numbers) is bounded by a polynomial in the binary encoding size of the numbers in the input matrix.
One class of algorithms is based on Gaussian elimination in that special elementary matrices are repeatedly used.[11][15][16] The LLL algorithm can also be used to efficiently compute the Hermite normal form.[17][18]
Applications
Lattice calculations
A typical lattice in Rn has the form [math]\displaystyle{ L = \left\{\left. \sum_{i=1}^n \alpha_i \mathbf a_i \; \right\vert \; \alpha_i \in{\textbf Z} \right\} }[/math] where the ai are in Rn. If the columns of a matrix A are the ai, the lattice can be associated with the columns of a matrix, and A is said to be a basis of L. Because the Hermite normal form is unique, it can be used to answer many questions about two lattice descriptions. For what follows, [math]\displaystyle{ L_A }[/math] denotes the lattice generated by the columns of A. Because the basis is in the columns of the matrix A, the column-style Hermite normal form must be used. Given two bases for a lattice, A and A', the equivalence problem is to decide if [math]\displaystyle{ L_{A} = L_{A'}. }[/math] This can be done by checking if the column-style Hermite normal form of A and A' are the same up to the addition of zero columns. This strategy is also useful for deciding if a lattice is a subset ([math]\displaystyle{ L_{A} \subseteq L_{A'} }[/math] if and only if [math]\displaystyle{ L_{[A \mid A']} = L_{A'} }[/math]), deciding if a vector v is in a lattice ([math]\displaystyle{ v \in L_{A} }[/math] if and only if [math]\displaystyle{ L_{[v \mid A]} = L_A }[/math]), and for other calculations.[19]
Integer solutions to linear systems
The linear system Ax = b has an integer solution x if and only if the system Hy = b has an integer solution y where y = U−1x and H is the column-style Hermite normal form of A. Checking that Hy = b has an integer solution is easier than Ax = b because the matrix H is triangular.[11]:55
Implementations
Many mathematical software packages can compute the Hermite normal form:
- Maple with HermiteForm
- Mathematica with HermiteDecomposition
- MATLAB with hermiteForm
- NTL with HNF
- PARI/GP with mathnf
- SageMath with hermite_form
Over an arbitrary Dedekind domain
Hermite normal form can be defined when we replace Z by an arbitrary Dedekind domain.[20] (for instance, any principal-ideal domain). For instance, in control theory it can be useful to consider Hermite normal form for the polynomials F[x] over a given field F.
See also
References
- ↑ Hung, Ming S.; Rom, Walter O. (1990-10-15). "An application of the Hermite normal form in integer programming". Linear Algebra and Its Applications 140: 163–179. doi:10.1016/0024-3795(90)90228-5.
- ↑ Evangelos, Tourloupis, Vasilios (2013-01-01). "Hermite normal forms and its cryptographic applications". University of Wollongong Thesis Collection 1954-2016 (University of Wollongong). http://ro.uow.edu.au/theses/3788/.
- ↑ Adkins, William; Weintraub, Steven (2012-12-06) (in en). Algebra: An Approach via Module Theory. Springer Science & Business Media. p. 306. ISBN 9781461209232. https://books.google.com/books?id=RFzdBwAAQBAJ.
- ↑ "Dense matrices over the integer ring — Sage Reference Manual v7.2: Matrices and Spaces of Matrices". http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/matrix_integer_dense.html.
- ↑ 5.0 5.1 Mader, A. (2000-03-09) (in en). Almost Completely Decomposable Groups. CRC Press. ISBN 9789056992255. https://books.google.com/books?id=i3RktxvUgB8C.
- ↑ Micciancio, Daniele; Goldwasser, Shafi (2012-12-06) (in en). Complexity of Lattice Problems: A Cryptographic Perspective. Springer Science & Business Media. ISBN 9781461508977. https://books.google.com/books?id=-HjrBwAAQBAJ.
- ↑ Weisstein, Eric W.. "Hermite Normal Form" (in en). http://mathworld.wolfram.com/HermiteNormalForm.html.
- ↑ 8.0 8.1 Bouajjani, Ahmed; Maler, Oded (2009-06-19) (in en). Computer Aided Verification: 21st International Conference, CAV 2009, Grenoble, France, June 26 - July 2, 2009, Proceedings. Springer Science & Business Media. ISBN 9783642026577. https://books.google.com/books?id=4DwAX3-3ovQC.
- ↑ "Hermite normal form of a matrix - MuPAD". http://www.mathworks.com/help/symbolic/mupad_ref/linalg-hermiteform.html.
- ↑ Martin, Richard Kipp (2012-12-06) (in en). Large Scale Linear and Integer Optimization: A Unified Approach. Springer Science & Business Media. ISBN 9781461549758. https://books.google.com/books?id=c_7xBwAAQBAJ.
- ↑ 11.0 11.1 11.2 Schrijver, Alexander (1998-07-07) (in en). Theory of Linear and Integer Programming. John Wiley & Sons. ISBN 9780471982326. https://books.google.com/books?id=zEzW5mhppB8C.
- ↑ Cohen, Henri (2013-04-17) (in en). A Course in Computational Algebraic Number Theory. Springer Science & Business Media. ISBN 9783662029459. https://books.google.com/books?id=5TP6CAAAQBAJ.
- ↑ Template:Cite Geometric Algorithms and Combinatorial Optimization
- ↑ Kannan, R.; Bachem, A. (1979-11-01). "Polynomial Algorithms for Computing the Smith and Hermite Normal Forms of an Integer Matrix". SIAM Journal on Computing 8 (4): 499–507. doi:10.1137/0208040. ISSN 0097-5397. http://www.math.tamu.edu/~rojas/kannanbachemhermitesmith79.pdf.
- ↑ "Euclidean Algorithm and Hermite Normal Form". 2 March 2010. http://www.ifor.math.ethz.ch/teaching/lectures/integer_prog_ss10/chapter02.
- ↑ Martin, Richard Kipp (2012-12-06). "Chapter 4.2.4 Hermite Normal Form" (in en). Large Scale Linear and Integer Optimization: A Unified Approach. Springer Science & Business Media. ISBN 9781461549758. https://books.google.com/books?id=c_7xBwAAQBAJ.
- ↑ Bremner, Murray R. (2011-08-12). "Chapter 14: The Hermite Normal Form" (in en). Lattice Basis Reduction: An Introduction to the LLL Algorithm and Its Applications. CRC Press. ISBN 9781439807040. https://books.google.com/books?id=XGjMBQAAQBAJ.
- ↑ Havas, George; Majewski, Bohdan S.; Matthews, Keith R. (1998). "Extended GCD and Hermite normal form algorithms via lattice basis reduction". Experimental Mathematics 7 (2): 130–131. doi:10.1080/10586458.1998.10504362. ISSN 1058-6458. https://projecteuclid.org/euclid.em/1048515660.
- ↑ Micciancio, Daniele. "Basic Algorithms". https://cseweb.ucsd.edu/classes/sp14/cse206A-a/lec4.pdf.
- ↑ Cohen, Henri (1999). Advanced Topics in Computational Number Theory. Springer. §1.4.2. ISBN 0-387-98727-4.
![]() | Original source: https://en.wikipedia.org/wiki/Hermite normal form.
Read more |