Left to Solve
Problems / MathOverflow (not formalized)

When are Hamming codes cyclic?

Open, not yet stated in LeanMathOverflow (not formalized)Combinatoricsdifficulty55/100

Statement

I've asked this question on math.stackexchange before, but it has not been solved.

The following statement appears to be true:

The -ary Hamming code of codimension over is equivalent to a cyclic code if and only if if and are coprime.

See for example this answer on math.stackexchange.

The -direction is not too hard to show (see for example the last paragraph of this answer), but I could not find a proof for the other direction anywhere. I've checked various sources like web search, search on mathoverflow and math.stackexchange, as well as standard books on coding theory like MacWilliams-Sloane, van Lint or Huffman-Pless.

So my question is how to show . Preferably by means available in a typical lecture on algebraic coding theory.

Posed by azimut · co.combinatorics, finite-fields, 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-373583.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-373583.lean

import Mathlib

/-!
# When are Hamming codes cyclic?

Source: https://mathoverflow.net/questions/373583
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_373583

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_373583