Modulus amplification for an arbitrary modulus #
The polynomial p_ℓ = parityAmplifier ℓ satisfies p_ℓ ≡ 1 (mod X ^ ℓ) and
p_ℓ ≡ 0 (mod (1 - X) ^ ℓ); its complement 1 - p_ℓ is the optimal-degree modulus-amplifying
polynomial P_ℓ of Beigel and Tarui [BeigelTarui1994, Section 2.3], refining Toda's [Tod91].
Hence for every integer modulus m and integer y,
m ∣ y → p_ℓ(y) ≡ 1 (mod m ^ ℓ) (Polynomial.parityAmplifier_eval_modEq_one_of_dvd) and
m ∣ y - 1 → p_ℓ(y) ≡ 0 (mod m ^ ℓ)
(Polynomial.parityAmplifier_eval_modEq_zero_of_dvd_sub_one), both proved in ParityAmplifier.
Composed with Fermat's little theorem, 1 - p_ℓ(z ^ (p - 1)) is the indicator of
z ≢ 0 (mod p) modulo p ^ ℓ for a prime p
(Polynomial.one_sub_parityAmplifier_eval_pow_modEq); its degree in z is at most
(2ℓ - 1)(p - 1) (Polynomial.natDegree_parityAmplifier_le).
Main results #
Polynomial.one_sub_parityAmplifier_eval_pow_modEq: the Fermat-normalizedMOD_pindicator modulop ^ ℓ.
References #
Fermat-normalized modulus amplification. For a prime p, 1 - p_ℓ(z ^ (p - 1)) is
congruent modulo p ^ ℓ to the indicator of z ≢ 0 (mod p).