Coefficient arithmetic modulo X^r - 1 and n #
An element of (ℤ / n)[X] / (X^r - 1) is represented by the r coefficients of its reduced
polynomial, as natural numbers below n. This file gives the coefficient formulas that a program
evaluates and identifies them with the ring operations: Cslib.AKS.toQuot n r c is the class of
∑_{i < r} c i X^i, products of classes have the coefficients Cslib.AKS.mulCoeff
(Cslib.AKS.toQuot_mulCoeff), the classes of X^e + a have the coefficients
Cslib.AKS.powAddCoeff (Cslib.AKS.toQuot_powAddCoeff), and reduced coefficient vectors
determine their classes (Cslib.AKS.toQuot_eq_toQuot_iff). In particular the AKS congruence
holds exactly when the n-th power of the class of X + a has the coefficients of X^n + a
(Cslib.AKS.congruence_iff_toQuot).
Main definitions #
Cslib.AKS.coeffPoly,Cslib.AKS.toQuot: the polynomial with given coefficients and its class.Cslib.AKS.mulCoeff: the coefficients of a product.Cslib.AKS.powAddCoeff: the coefficients ofX^e + a.
Main results #
Cslib.AKS.toQuot_mulCoeff: coefficients of products.Cslib.AKS.toQuot_powAddCoeff: coefficients ofX^e + a.Cslib.AKS.toQuot_eq_toQuot_iff: reduced coefficients determine their class.Cslib.AKS.congruence_iff_toQuot: the AKS congruence in coefficients.
References #
The polynomial ∑_{i < r} c i X^i over ℤ / n.
The class of ∑_{i < r} c i X^i in (ℤ / n)[X] / (X^r - 1).
The coefficients of X^e + a, reduced modulo X^r - 1 and n.
The root of X^r - 1 is an r-th root of unity.
Powers of the root depend only on the exponent modulo r.
Natural numbers in (ℤ / n)[X] / (X^r - 1) depend only on their residue modulo n.
The class of ∑_{i < r} c i X^i as a sum of powers of the root.
Coefficients of X^e + a.
The AKS congruence in coefficients: (X + a)^n ≡ X^n + a (mod X^r - 1, n) exactly when
the n-th power of the class with the coefficients of X + a is the class with the coefficients
of X^n + a.
Coefficients of X^e + a are reduced modulo n.