Inversion
Presentation: https://youtu.be/9wpJk-wUa-w
1. Frobenius Mapping
Given a prime P, the Frobenius Mapping Φ on an element a∈FPk is defined as: Φ(a)=aP
This mapping is a crucial endomorphism of the field FPk that fixes the elements of the prime subfield FP.
2. Efficient Computation of Φ(a)
Let the field element a be represented as a polynomial over the prime field: a=∑i=0k−1aixi, where ai∈FP.
2.1. Basic Computation using Characteristic P
Since the characteristic of the field is P, we can apply the Freshman's Dream property:
Since ai∈FP, by Fermat's Little Theorem, we have aiP=ai. Thus, the mapping simplifies to:
2.2. Optimized Computation when P≡1(modk)
If the extension is defined by an irreducible polynomial such that xk=ξ (where ξ∈FP), and P≡1(modk) (meaning P−1 is divisible by k), we can further optimize the expression.
Let q=kP−1. We can rewrite xiP using the field relation xk=ξ:
Substituting this back into the formula for Φ(a):
This demonstrates that if the set of scalar factors (ξkP−1,…,ξ(k−1)kP−1) is pre-computed, the Frobenius mapping can be calculated efficiently using only scalar multiplications and polynomial addition.
Pre-computation Note: Since Φk(a)=a, we only need to pre-compute the set of iterated mappings (Φ(a),Φ2(a),…,Φk−1(a)) for use in the Norm and Inversion calculations.
3. Norm
The Norm of an element a∈FPk, denoted N(a), is defined as the product of a and all its images under the iterated Frobenius mappings:
3.1. Key Property of the Norm
The most important property of the norm is that its result is an element of the prime subfield FP. N(a)∈FP
Proof: We apply the Frobenius mapping to N(a):
Since Φk(a)=a, we can replace the last term:
The condition Φ(N(a))=N(a) means N(a)P=N(a), which, by Fermat's Little Theorem, implies that N(a) must belong to the prime field FP.
4. Inversion on the Extension Field FPk
The norm N(x) is instrumental in efficiently computing the inverse x−1 for any non-zero element x∈FPk.
4.1. Defining the Factor r
Let r be defined as the sum of powers of P:
We can rewrite x−1 using r:
4.2. Calculating xr−1
The exponent r−1 can be expressed as a sum of powers of P:
This allows xr−1 to be calculated as a product of iterated Frobenius images:
4.3. Calculating x−r
Note that xr=x⋅xr−1. Comparing this to the Norm definition, we see that:
Since xr=N(x) is an element of FP (a scalar), its inverse x−r=N(x)−1 can be computed quickly within the prime field FP.
In practice, N(x) is simply the constant term of the polynomial resulting from the product xr−1⋅x:
where (A)0 denotes the constant coefficient of polynomial A.
4.4. Final Inversion Formula
The inverse x−1 is calculated as the product of the pre-computed Frobenius images xr−1 and the inverse of the constant term N(x):
Written by Ryan Kim of Fractalyze
Last updated