AFTD Auto-Formalizing Theoretical Domains

is_partial_majority_coloring

def

A partial colouring of a finite graph G by Boolean colours satisfies the majority condition if every coloured vertex has at most half its neighbours in its own colour.

Statement

def is_partial_majority_coloring {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (c : 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
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…
  • 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…

Read back from the Lean

For a finite type V with decidable equality, a simple graph G on V with decidable adjacency, and a partial coloring c : V → Option Bool, is_partial_majority_coloring G c asserts that: for all vertices v : V and all colors col : Bool, if v is colored with col (i.e., c v = some col), then 2 times the number of neighbors w of v that are also colored with col (i.e., c w = some col) is less than or equal to the total degree of v in G.

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

/-- A partial colouring satisfies the majority condition if every coloured vertex has at most half its neighbours in its own colour. -/
def is_partial_majority_coloring {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (c : V → Option Bool) : Prop := ∀ v col, c v = some col →
    2 * ((G.neighborFinset v).filter (fun w => c w = some col)).card ≤ G.degree v
See it in the graphDiscuss this resultChallenge it