In linear algebra, the Hermite normal form is an analogue of reduced echelon form for matrices over the integers . Just as reduced echelon form can be used to solve problems about the solution to the linear system where , the Hermite normal form can solve problems about the solution to the linear system where this time is restricted to have integer coordinates only. Other applications of the Hermite normal form include integer programming, cryptography, and abstract algebra.
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.
A matrix has a (row) Hermite normal form if there is a square unimodular matrix such that and:
The third condition is not standard among authors, for example some sources force non-pivots to be nonpositive or place no sign restriction on them. However, these definitions are equivalent by using a different unimodular matrix . A unimodular matrix is a square integer matrix whose determinant is 1 or âÂÂ1 (and hence invertible). In fact, a unimodular matrix is invertible over the integers, as can be seen, for example, from Cramer's Rule.
A matrix has a (column) Hermite normal form if there is a square unimodular matrix where and has the following restrictions:
Note that the row-style definition has a unimodular matrix multiplying on the left (meaning is acting on the rows of ), while the column-style definition has the unimodular matrix action on the columns of . The two definitions of Hermite normal forms are simply transposes of each other.
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.
In the examples below, is the Hermite normal form of the matrix , and is a unimodular matrix such that .
If has only one row then either or , depending on whether the single row of has a positive or negative leading coefficient.
There are many algorithms for computing the Hermite normal form, dating back to 1851. One such algorithm is described in. But only in 1979 an algorithm for computing the Hermite normal form that ran in strongly polynomial time was first developed; 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. The LLL algorithm can also be used to efficiently compute the Hermite normal form.
A typical lattice in R<sup>n</sup> has the form where the a<sub>i</sub> are in R<sup>n</sup>. If the columns of a matrix A are the a<sub>i</sub>, 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, 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'<nowiki/>, the equivalence problem is to decide if This can be done by checking if the column-style Hermite normal form of A and A'<nowiki/> are the same up to the addition of zero columns. This strategy is also useful for deciding if a lattice is a subset ( if and only if ), deciding if a vector v is in a lattice ( if and only if ), and for other calculations.
The linear system has an integer solution if and only if the system has an integer solution where and is the column-style Hermite normal form of . Checking that has an integer solution is easier than because the matrix is triangular.
Many mathematical software packages can compute the Hermite normal form:
Hermite normal form can be defined when we replace Z by an arbitrary Dedekind domain. (for instance, any principal-ideal domain). For instance, in control theory it can be useful to consider Hermite normal form for the polynomials over a given field .