AFTD Auto-Formalizing Theoretical Domains

MajorityGameAliceWinsFrom

inductive

In 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 on Alice's turn (an even number of coloured vertices) there is an uncoloured vertex and colour yielding a valid majority colouring from which Alice can win, or on Bob's turn (an odd number of coloured vertices) Bob has a legal move and for every legal move of Bob, Alice can win.

Statement

inductive MajorityGameAliceWinsFrom {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : (V → Option Bool) → 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
  • is_partial_majority_coloringA partial colouring of a finite graph G by Boolean colours satisfies the majority condition if every coloured vertex has at most half its…
Used by 2
  • op_2472_partial_two_claws_bob_winsIf a finite graph F has at least two connected components isomorphic to the once-subdivided claw, then Alice does not have a winning…
  • majority_game_alice_winsAlice has a winning strategy in the two-colour majority colouring game on G if she can win starting from the completely uncoloured graph.

Read back from the Lean

An inductive predicate MajorityGameAliceWinsFrom parameterized by a finite type V with decidable equality, a simple graph G : SimpleGraph V with decidable adjacency, and indexed by a partial 2-coloring c : V → Option Bool. It asserts that Alice has a winning strategy in the majority coloring game from configuration c, defined by three constructors: 1. full: For any c : V → Option Bool, if every vertex in V is colored (∀ v : V, (c v).isSome), then MajorityGameAliceWinsFrom G c holds. 2. alice_turn: For any c : V → Option Bool, vertex v : V, and color col : Bool, if: - the number of colored vertices ((Finset.filter (fun u => (c u).isSome) Finset.univ).card) is even, - vertex v is uncolored (c v = none), - assigning color col to v yields a valid partial majority coloring (is_partial_majority_coloring G (Function.update c v (some col))), and - Alice wins from the resulting configuration (MajorityGameAliceWinsFrom G (Function.update c v (some col))), then MajorityGameAliceWinsFrom G c holds. 3. bob_turn: For any c : V → Option Bool, if: - the number of colored vertices ((Finset.filter (fun u => (c u).isSome) Finset.univ).card) is odd, - there exists at least one legal move for Bob: some uncolored vertex v (c v = none) and color col : Bool such that Function.update c v (some col) is a valid partial majority coloring, and - for every uncolored vertex v and color col : Bool, whenever Function.update c v (some col) is a valid partial majority coloring, Alice wins from that configuration (MajorityGameAliceWinsFrom G (Function.update c v (some col))), then MajorityGameAliceWinsFrom G c holds.

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 can win the two-colour majority game from a partial colouring c. -/
inductive MajorityGameAliceWinsFrom {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : (V → Option Bool) → Prop where
  | full (c : V → Option Bool) :
      (∀ v, (c v).isSome) →
      MajorityGameAliceWinsFrom G c
  | alice_turn (c : V → Option Bool) (v : V) (col : Bool)
      (heven : Even (Finset.filter (fun u => (c u).isSome) Finset.univ).card)
      (hnone : c v = none)
      (hlegal : is_partial_majority_coloring G (Function.update c v (some col)))
      (hwin : MajorityGameAliceWinsFrom G (Function.update c v (some col))) :
      MajorityGameAliceWinsFrom G c
  | bob_turn (c : V → Option Bool)
      (hodd : Odd (Finset.filter (fun u => (c u).isSome) Finset.univ).card)
      (hex : ∃ (v : V) (col : Bool), c v = none ∧ is_partial_majority_coloring G (Function.update c v (some col)))
      (hall : ∀ (v : V) (col : Bool), c v = none →
        is_partial_majority_coloring G (Function.update c v (some col)) →
        MajorityGameAliceWinsFrom G (Function.update c v (some col))) :
      MajorityGameAliceWinsFrom G c
See it in the graphDiscuss this resultChallenge it