The residue is the self-defeating value
ProvedModularSchur.unsafe_witness_residueadditive-combinatoricscombinatoricsmodular-schur-numbersnumber-theorysum-free-sets
This theorem exhibits the single residue that no colouring can accommodate, which is the engine of the upper bound.
Throughout, is the modulus, the number of summands, the number of colour classes, and .
For and , the residue satisfies
Combined with the singleton safety criterion, this says the one-element class is not -sum-free: copies of sum back to . The value defeats itself.
This is the sharpest possible such witness, because is the least positive residue with this property, and it is why the modular Schur number stops exactly one step below rather than at some coarser bound such as .
Preamble
import Mathlib
open Finset Nat
variable {m ℓ : ℕ}
Formal statement
theorem ModularSchur.unsafe_witness_residue (hm : 2 ≤ m) (hℓ : 2 ≤ ℓ) :
((ℓ : ZMod m) - 1) * ((m / Nat.gcd m (ℓ - 1) : ℕ) : ZMod m) = 0 := by sorrySource
McKenna 2026, "Prime-power structure of the stable regime for modular Schur numbers", docs/paper/modular-schur.pdf in the same repository, the key step of Theorem 3.1, the self-defeating value described in Section 3. Lean source: https://github.com/mysticflounder/modular-schur/blob/eb6098890f05eff39190e6cd8e41fdea53fa81f9/lean/ModularSchur/UnifiedValue.lean#L23-L32