galois.Poly.is_conway_consistent(search: bool = False) bool

Determines whether the degree-$$m$$ polynomial $$f(x)$$ over $$\mathrm{GF}(p)$$ is consistent with smaller Conway polynomials $$C_{p,n}(x)$$ for all $n\ |m$.

Why is this a method and not a property?

This is a method to indicate it is a computationally-expensive task.

Parameters:

Manually search for Conway polynomials if they are not included in Frank Luebeck’s database. The default is False.

Slower performance

Manually searching for a Conway polynomial is very computationally expensive.

Returns:

True if the polynomial $$f(x)$$ is primitive and consistent with smaller Conway polynomials $$C_{p,n}(x)$$ for all $n\ |m$.

Raises:

LookupError – If search=False and a smaller Conway polynomial $$C_{p,n}$$ is not found in Frank Luebeck’s database.

A degree-$$m$$ polynomial $$f(x)$$ over $$\mathrm{GF}(p)$$ is compatible with Conway polynomials $$C_{p,n}(x)$$ for $n\ |\ m$ if $$C_{p,n}(x^r)$$ divides $$f(x)$$, where $$r = \frac{p^m - 1}{p^n - 1}$$.

A Conway-consistent polynomial has all the properties of a Conway polynomial except that it is not necessarily lexicographically first (according to a special ordering).

Examples

All Conway polynomials are primitive.

In : GF = galois.GF(7)

In : f = galois.Poly([1, 1, 2, 4], field=GF); f
Out: Poly(x^3 + x^2 + 2x + 4, GF(7))

In : g = galois.Poly([1, 6, 0, 4], field=GF); g
Out: Poly(x^3 + 6x^2 + 4, GF(7))

In : f.is_primitive()
Out: True

In : g.is_primitive()
Out: True


They are also consistent with all smaller Conway polynomials.

In : f.is_conway_consistent()
Out: True

In : g.is_conway_consistent()
Out: True


Among the multiple candidate Conway polynomials, the lexicographically-first (accordingly to a special lexicographical order) is the Conway polynomial.

In : f.is_conway()
Out: False

In : g.is_conway()
Out: True

In : galois.conway_poly(7, 3)
Out: Poly(x^3 + 6x^2 + 4, GF(7))