← LibraryLLL for Linearly Dependent Generating SetsEngineering · MathematicsLesson 253/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginLLLdependent vectorsgenerating setkernel

Lattices and LLL Reduction

LLL for Linearly Dependent Generating Sets

Extending LLL to generating sets that are not independent, and using the resulting zero vectors to extract relations.

Engineering / MathematicsLattices and LLL Reduction2 min readKV-MATH-0550

Standard LLL assumes an independent basis. Generating sets in practice are frequently dependent, and the extension that handles them turns the dependency into useful output rather than an error.

What goes wrong

The modification

When a Gram-Schmidt vector vanishes, the corresponding basis vector lies in the span of its predecessors. Size reduction against those predecessors then reduces it to the zero vector, which is moved to the end and dropped.

LLL with dependent input

  1. DetectIdentify a vanishing Gram-Schmidt vector.
  2. Size reduce fullyReduce the offending vector against all predecessors; it becomes zero.
  3. RecordThe coefficients used constitute a dependency relation.
  4. RemoveMove the zero vector to the end and reduce the working rank.
  5. ContinueResume reduction on the remaining vectors.

Two outputs

What the dependent-input variant returns
OutputMeaning
Surviving non-zero vectorsA reduced basis of the lattice generated by the input
Recorded relationsA generating set for the integer kernel
Transformation matrixExpresses the output in terms of the input; unimodular

Numerical caution

Applications

Dependent-input LLL is the workhorse behind integer kernel computation, and it also underlies dependence detection, where a deliberately over-determined generating set is constructed so that the relations found reveal the sought dependency.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 2.6.4. 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

Integral LLL: Avoiding Floating PointArticle · MathematicsNEXT LESSON →Integer Kernel and Image via LLLArticle · MathematicsLLL with Deep InsertionsArticle · MathematicsDetecting Algebraic and Linear Dependence with LLLArticle · Mathematics