Inversion
Presentation: https://youtu.be/9wpJk-wUa-w, https://www.youtube.com/watch?v=54I7Rd9_9_s
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):
5. Relative Frobenius Mapping
In a tower of extensions FPn/FPm/FP (where n=m⋅k), the Relative Frobenius Mapping Φrel on an element a∈FPn with respect to the base field FPm is defined as:
Unlike the absolute Frobenius map Φ(a)=aP, this mapping specifically fixes the elements of the intermediate field FPm. That is, for any x∈FPm, Φrel(x)=x.
6. Relative Norm
The Relative Norm of an element a∈FPn over FPm, denoted as NFPn/FPm(a), is defined as the product of a and its images under the iterated relative Frobenius mappings:
6.1. Properties and Transitivity (Tower Property)
The norm in a tower structure exhibits the property of Transitivity, which allows for step-by-step reduction across multiple layers of extension:
Mapping to Base Field: The result of the relative norm is always an element of the immediate base field: NFPn/FPm(a)∈FPm.
Absolute Norm: The norm of an element relative to the prime field FP (the absolute norm) can be computed by taking the norm of the norm:
NFPn/FP(a)=NFPm/FP(NFPn/FPm(a))
6.2. Mathematical Derivation of Transitivity
To compute the absolute norm NFPn/FP(a) using the tower property, we follow a stepwise reduction process through the intermediate field FPm.
Step 1: Relative Norm from FPn to FPm
First, we reduce the element a∈FPn to an element b∈FPm by applying the relative norm:
Step 2: Absolute Norm from FPm to FP
Next, we treat b as an element of the base field and apply its own norm mapping toward the prime field:
Step 3: Final Consolidation
By substituting the definition of b into the second equation, we obtain the double product:
This double product covers all exponents P0,P1,…,Pn−1 exactly once, proving that:
6.3. Practical Example: FP4/FP2/FP
For an element a∈FP4 where k=2 and m=2:
Relative Norm: b=NFP4/FP2(a)=a⋅aP2.
Base Norm: NFP2/FP(b)=b⋅bP.
Result: (a⋅aP2)⋅(a⋅aP2)P=a⋅aP⋅aP2⋅aP3, which is the absolute norm.
7. Recursive Inversion in Tower Extensions
The tower property of the norm provides an efficient recursive algorithm for computing the inverse x−1 in high-degree extension fields.
Compute Relative Norm: Calculate N(x)=xr∈FPm using the pre-computed relative Frobenius coefficients, where r=Pm−1(Pm)k−1.
Recursive Call: Compute the relative inverse of this norm, N(x)−1, within the base field FPm. If FPm is itself an extension field, repeat the norm-based inversion process.
Final Reconstruction: Multiply the partial product of Frobenius images by the inverse obtained from the base field:
x−1=(i=1∏k−1Φreli(x))⋅NFPn/FPm(x)−1
Written by Ryan Kim of Fractalyze
Last updated