Assume that all the coefficients of the equation of the curve lie in a complete discrete valuation ring R with perfect residue field K and maximal ideal generated by a prime π. The elliptic curve is given by the equation
Define:
The algorithm is implemented for algebraic number fields in the PARI/GP computer algebra system, available through the function elllocalred.