galois.is_irreducible(poly) seems to return some false negatives in large odd exponent GFs
See original GitHub issueHi Matt, hope all is well.
Even though it works fine for other groups (e.g. even groups likes GF(2^256) work well), still I 've been getting the following false negative result when using the galois.is_irreducible(poly) over odd groups tο produce irreducible polynomials over GF(2^233).
For example, we know from previous publications and research that x^233+x^74+1 is irreducible over GF(2) for creating the quotient ring of GF(2^233) but the following code returns Null for every polynomial (including the aforementioned one):
def loop_init_trinomial():
#initial detection loop
for k in range(1, 233):
poly = galois.Poly.Degrees([233, k, 0])
if galois.is_irreducible(poly):
print("Found one: ", k, poly, poly.string)
Care to share some thoughts?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
galois.GF - Read the Docs
Construct various Galois field array class for GF ( 2 ) , GF ( 2 m ) , GF ( p ) ,...
Read more >Galois Theory - University of Oregon
Theorem 1 An irreducible polynomial equation F(x)=0 with rational coefficients can be solved by radicals if and only if all composition ...
Read more >Demystifying the LFSR - moria.us
This requires an exponential increasing amount of CPU power and memory as the polynomials grow larger, but in practice, it works fine if...
Read more >Fields and Galois Theory - James Milne
These notes give a concise exposition of the theory of fields, including the Galois theory of finite and infinite extensions and the theory...
Read more >Galois Theory - Math
Galois theory is based on a remarkable correspondence between subgroups of the Galois group of an extension E/F and intermediate fields between E...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And to be clear, I was incorrect about prime exponents. That wasn’t the issue. The issue was large exponents (that were secretly
np.int64
). I believe this bug was introduced after the refactor and major speed-ups from v0.0.26.Again, I appreciate the bug report! 🙏
Yep sorry, bad reference!