Hensel lifting (source code)

= Hensel lifting
{c}

<Hensel lifting> improves a solution of a <polynomial congruence> modulo a <prime power> to one modulo a higher power. For $f\in\mathbb Z[X]$, suppose $f(a)\equiv0\pmod{p^k}$ and $f'(a)\not\equiv0\pmod p$. A lift $a+tp^k$ satisfies
$$
f(a+tp^k)\equiv f(a)+tp^kf'(a)\pmod{p^{k+1}}.
$$
The invertible derivative therefore determines a unique $t$ modulo $p$.

For $f(X)=X^2-2$, the root $3$ modulo seven lifts to $10$ modulo $49$, since $3+7=10$ and $10^2-2=98$. Repetition gives a root in the <p-adic integers>. The simple-root hypothesis ensures uniqueness; when the derivative vanishes modulo $p$, there may be multiple lifts or none.