← LibraryHensel Lifting for Polynomial FactorsEngineering · MathematicsLesson 271/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginHensel liftingp-adicquadratic liftingprime power

Polynomial Factorisation

Hensel Lifting for Polynomial Factors

Lifting a factorisation modulo a prime to a factorisation modulo a prime power, the quadratic variant, and the coprimality condition.

Engineering / MathematicsPolynomial Factorisation2 min readKV-MATH-0568

Hensel lifting converts a factorisation modulo a prime into one modulo an arbitrarily high power of that prime. It is the bridge between the easy finite field problem and the hard integer one.

The principle

Given a factorisation modulo p into coprime factors, there is a unique lift modulo p^2 agreeing with it, and the process iterates. The correction is computed from the Bezout coefficients of the factors.

f = g h (mod p^k) => f = G H (mod p^(2k))With G congruent to g and H congruent to h modulo p^k.

Hensel lifting

  1. Factor modulo pUsing finite field methods.
  2. Compute Bezout coefficientsExpress one as a combination of the factors — see the extended algorithm.
  3. Compute the errorThe difference between f and the product of the current factors, divisible by the current modulus.
  4. CorrectDistribute the error between the factors using the Bezout coefficients.
  5. IterateRepeat to the required precision.

Linear versus quadratic lifting

Two lifting strategies
VariantPrecision growthPer-step cost
LinearOne power per stepCheap; Bezout coefficients reused
QuadraticDoubles each stepMore expensive; coefficients must also be lifted

The coprimality condition

Multifactor lifting

With more than two factors, lift pairwise in a tree: split the factors into two groups, lift the two products, then recurse. This is more efficient than lifting each factor against the product of all others.

How far to lift

Far enough that the true integer coefficients are determined — that is, until the prime power exceeds twice the Mignotte bound. The factor of two accommodates signed representatives.

Other uses

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

Mignotte Bounds on Polynomial FactorsArticle · MathematicsNEXT LESSON →Factoring Polynomials over the IntegersArticle · MathematicsThe Berlekamp Factorisation AlgorithmArticle · MathematicsFactoring Polynomials over Algebraic Number FieldsArticle · Mathematics