A polynomial ring is a set of polynomials where polynomial computations over the operators (e.g., , , ) are closed, associative, commutative, and distributive.
A polynomial ring is the set of all polynomials that have the following properties:
Summary A-5.1 Ring
For a polynomial where :
Coefficient Ring: ’s each polynomial coefficient is in integer modulo .
(i.e., ).
Degree Ring: Any polynomial can be broken down to:
, where is called a quotient polynomial and is called a remainder polynomial resulting from the polynomial division of divided by .
Polynomial Congruence: If two polynomials are congruent, they belong to the same equivalence class, in which case they are interchangeable in the polynomial operations () in the polynomial ring. For example, if:
, then the polynomial operation result of is in the same equivalence class as:
To make the notation simple, we denote the polynomial ring as
Recall that in a ring , a big number can be divided by and (the quotient gets eliminated). Similarly, in a polynomial ring , a high-degree polynomial can be divided by a polynomial modulo , which gives:
, whereas is a quotient polynomial and is a remainder polynomial. In this case, is congruent to (i.e., is in the same equivalence class as) . Thus, can be eliminated and (i.e., the simplified version of ) can be interchangeably used for polynomial operations in the polynomial ring. Polynomial simplification in a polynomial ring is done by substituting into , because in the polynomial ring (this is the same as the case of a number ring modulo where ). This way, a high-degree polynomial can be recursively simplified to a polynomial of degree less than by recursively substituting into .
For a polynomial modulo, we normally choose a cyclotomic polynomial (where is for some integer ) as the divisor, as it provides computational efficiency.
Given , suppose . Then,
Thus, is equivalent to () in the polynomial ring .
Ring | Polynomial Ring | |
Set Elements | number | polynomial |
Ring Notation | ||
& Definition | The set of all integers between and | The set of all polynomials such that |
where each coefficient | ||
and ’s degree is less than | ||
Supported | ||
Operations | (Addition, Multiplication) | (Addition, Multiplication) |
() Operation | We know how to add numbers | |
Then, is computed as: | ||
() Operation | We know how to multiply numbers | |
Then, is computed as: | ||
For | For , | |
Commutative | ||
Associative | ||
Distributive | ||
Closed | , | , |
Congruency () | Two numbers in modulo if: | Two polynomials in if: |
, | ||
and in modulo | ||
for all | ||
Congruency: If two numbers are congruent, they are in the same congruency class. The same is true for two congruent polynomials. If the computation results of two mathematical formulas belong to the same congruency class, then their computations wrap around within modulo of their congruency. This is a useful property for cryptographic schemes where encryption & decryption computations wrap around their values within a limited set of binary bits. Congruency is useful for simplifying computation. For example, a big number or a complex polynomial can be normalized to a simpler number or polynomial by using the congruency rule, which reduces the computation overhead.
Polynomial Evaluation: Note that two numbers that belong to the same congruency class are not necessarily the same number. For example, modulo 5, but these two numbers are not the same. Likewise, two congruent polynomials are not the same. While two congruent polynomials in a polynomial ring can be interchangeably used for polynomial operations supported in the ring (i.e., ), such as or , two congruent polynomials do not necessarily give the same result when they are evaluated for a certain variable value . For example, in the previous example of §A-5.1.1, the two polynomials and are congruent in the polynomial ring . However, these two polynomials do not give the same evaluation results for : the original polynomial gives 10, whereas the reduced (i.e., simplified) polynomial gives 0. This discrepency in evaluation occurs because we defined two polynomials and to be congruent over (i.e., ) if their remainder is the same after being divided by (i.e., for some polynomial ). Therefore, and will be evaluated to the same polynomial if they are evaluated at the values such that , which make the term 0. The solutions for are called the -th roots of unity, which we will learn in §A-7 and §A-9. We summarize as follows:
Summary A-5.1.2 Polynomial Evaluation over Polynomial Ring
Suppose polynomials and are congruent over the polynomial ring . This is equivalent to the following relation: for some polynomial . Then, and are guaranteed to be evaluated to the same value if is the solution for (i.e., is the -th root of unity). That is , .
Number Ring & Polynomial Ring: These two rings share many common characteristics, which are summarized in Table 1.