← LibraryLLL-Based Hermite Normal Form ComputationEngineering · MathematicsLesson 244/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginLLLHermite normal formcoefficient growthlattice reduction

Integer Matrix Normal Forms

LLL-Based Hermite Normal Form Computation

Using lattice reduction to control entry growth during Hermite normal form computation, and when this beats the modular approach.

Engineering / MathematicsInteger Matrix Normal Forms2 min readKV-MATH-0542

When no determinant multiple is available, the modular Hermite algorithm cannot be used. Lattice reduction provides the alternative: keep the working basis short so the elimination never produces large entries in the first place.

The idea

The entries grow because the working basis vectors become long and nearly parallel. Reducing the basis with LLL restores near-orthogonality and short length, after which elimination proceeds with small Bezout coefficients.

Input basisLLL reducePartial eliminationLLL reduce againHermite form

LLL-based Hermite normal form

  1. Reduce the inputApply LLL to the generating set.
  2. EliminatePerform Hermite reduction steps on the reduced basis.
  3. Re-reduceInterleave further LLL passes when entries start to grow.
  4. NormaliseFinish with the standard Hermite normalisation of pivots and off-diagonal entries.

Handling dependent generators

Generating sets are often larger than the rank, so the input is a dependent family. Standard LLL assumes independence; the variant for dependent input detects and removes the zero vectors that appear — see LLL for dependent generating sets.

Choosing between LLL and modular

Selecting a growth-control strategy
ConditionPreferred method
Determinant multiple knownModular — simpler and faster
Full-rank ideal in a number fieldModular, using the norm as the multiple
Rank unknown or matrix rank deficientLLL-based
Very skewed input basisLLL-based
Kernel or image over the integers wantedLLL-based — see integer kernel via LLL

Practical note

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 2.7.1. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Recovering Abelian Group Structure from a Relation MatrixArticle · MathematicsNEXT LESSON →Lattice Definitions and Quadratic FormsArticle · MathematicsThe Smith Normal Form AlgorithmArticle · MathematicsThe Gram-Schmidt Orthogonalisation ProcedureArticle · Mathematics