complete_coloring_C
def
The minimum sum of squared fiber sizes across m colors for n inputs, (m - r) q^2 + r (q + 1)^2 where q = floor(n/m) and r = n mod m.
Statement
def complete_coloring_C (n m : ℕ) : ℕ- Defined in
- arXiv:2611.19002, Quantum Coloring Games on Complete Graphs, Section 3.2
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Used by 1
- complete_coloring_BThe critical ratio parameter B(n, m) for the complete coloring game: C/n for m = 2, and the maximum of [C - (m-2)t^2] / [n - (m-2)t] over…
Read back from the Lean
The function complete_coloring_C, which takes two natural numbers n and m and returns the natural number (m - r) * q^2 + r * (q + 1)^2, where q = n / m (integer quotient) and r = n % m (remainder).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Minimum sum of squares of color occupancies for n inputs and m colors. -/ def complete_coloring_C (n m : ℕ) : ℕ := let q := n / m let r := n % m (m - r) * q ^ 2 + r * (q + 1) ^ 2