AFTD Auto-Formalizing Theoretical Domains

complete_coloring_B

def

The 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 0 <= t <= floor((n-1)/(m-2)) for m >= 3.

Statement

def complete_coloring_B (n m : ℕ) : ℚ
Defined in
arXiv:2611.19002, Quantum Coloring Games on Complete Graphs, Section 3.4
Verified
18 Nov 2026
Axioms
none listed
Built on 1
  • complete_coloring_CThe 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.
Used by 1
  • complete_coloring_p_starThe conjectured classical synchrony threshold p_* = (B - 1) / (n + B - 2) in the complete-graph coloring game.

Read back from the Lean

A definition of a function complete_coloring_B mapping two natural numbers n and m to a rational number: Let C : ℚ be complete_coloring_C n m. - If m ≤ 2, the value is C / n. - If m > 2, the value is the maximum (supremum) over natural numbers t ∈ {0, 1, …, ⌊(n - 1) / (m - 2)⌋} of (C - (m - 2) * t²) / (n - (m - 2) * t) evaluated in ℚ.

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

/-- The critical ratio parameter B for the complete coloring game. -/
def complete_coloring_B (n m : ℕ) : ℚ :=
  let C : ℚ := complete_coloring_C n m
  if m ≤ 2 then C / n
  else
    (Finset.range ((n - 1) / (m - 2) + 1)).sup' Finset.nonempty_range_add_one (fun t =>
      (C - (m - 2 : ℚ) * (t : ℚ) ^ 2) / (n - (m - 2 : ℚ) * (t : ℚ)))
See it in the graphDiscuss this resultChallenge it