AFTD Auto-Formalizing Theoretical Domains

majority_game_alice_wins

def

Alice has a winning strategy in the two-colour majority colouring game on G if she can win starting from the completely uncoloured graph.

Statement

def majority_game_alice_wins {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : Prop
Defined in
arXiv:2611.32746: The majority game chromatic number for dense random graphs
Verified
27 Nov 2026
Axioms
none listed
Built on 1
  • MajorityGameAliceWinsFromIn the two-colour majority colouring game on a finite graph G, Alice can win from a partial colouring c if all vertices are coloured, or…
Used by 1

Read back from the Lean

For a finite type V with decidable equality and a simple graph G on V with decidable adjacency, majority_game_alice_wins G asserts that Alice has a winning strategy in the majority coloring game on G starting from the empty coloring (fun _ => none). The game state is a partial 2-coloring c : V → Option Bool. A partial coloring is legal (is_partial_majority_coloring G c) if for every vertex v and color col : Bool, if c v = some col, then at most half of v's neighbors in G share color col (specifically, 2 * |{w ∈ N(v) | c w = some col}| ≤ deg(v)). The winning predicate MajorityGameAliceWinsFrom G c is inductively defined: 1. (full): If every vertex v : V is colored ((c v).isSome), Alice wins from c. 2. (alice_turn): If the number of colored vertices is even, and there exists an uncolored vertex v (c v = none) and a color col : Bool such that coloring v with col is a partial majority coloring and Alice wins from the resulting coloring, then Alice wins from c. 3. (bob_turn): If the number of colored vertices is odd, there exists at least one legal move for Bob (an uncolored vertex v and color col yielding a partial majority coloring), and for every such legal move Bob can make, Alice wins from the resulting coloring, then Alice wins from c.

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

/-- Alice has a winning strategy in the two-colour majority colouring game on G. -/
def majority_game_alice_wins {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : Prop := MajorityGameAliceWinsFrom G (fun _ => none)
See it in the graphDiscuss this resultChallenge it