turn_is_alice
def
Given a partial colouring c : V → Option Bool on a finite vertex type V, turn_is_alice c holds if and only if the number of coloured vertices (vertices v with (c v).isSome = true) is an even natural number.
Statement
def turn_is_alice {V : Type*} [Fintype V] (c : V → Option Bool) : Prop
- Defined in
- arXiv:2611.32746 Sec 1
- Verified
- 27 Nov 2026
- Axioms
- none listed
Read back from the Lean
For a finite type V and a function c : V → Option Bool, turn_is_alice c asserts that the number of elements v : V for which c v is some _ (that is, (c v).isSome = true, or c v ≠ none) is an even natural number.
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
/-- Given a partial colouring c : V → Option Bool, it is Alice's turn when the number of coloured vertices is even. -/ def turn_is_alice {V : Type*} [Fintype V] (c : V → Option Bool) : Prop := Even (Finset.univ.filter (fun v => (c v).isSome)).card