Efficient computation of $x^n \bmod g(x)$ in $\mathbb{F}_2[x]$
Statement
Related to this question. I wish to compute in for some fixed and known upfront . This problem pops up in computing the 'pure' CRC function of a bit sequence of an one followed by zeroes. Omitting a lot of unnecessary information, having a fast method to compute the coefficients of the resulting polynomial lets us very quickly compute CRC-32C checksums via instruction-level parallelism.
My best method to solve this is logarithmic in and uses a trick vaguely resembling repeated squaring, i.e. I compute in steps. I am somewhat skeptical of the existence of the closed form, as the period of the binary sequences formed by the resulting polynomial for increasing seems very high.
We know for a fact that , so any method requiring reasonable (computationally) amounts of tabulation is acceptable.
Posed by Kamila Szewczyk · ra.rings-and-algebras, polynomials, coding-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-478472.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-478472.lean
import Mathlib
/-!
# Efficient computation of $x^n \bmod g(x)$ in $\mathbb{F}_2[x]$
Source: https://mathoverflow.net/questions/478472
Credit: @<your GitHub handle>
State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/
namespace OMA.S_mo_478472
-- definitions the statement needs (no sorry, no axiom)
theorem main : sorry := by
sorry
end OMA.S_mo_478472