Vertex-Cover-Member-Add to Kemeny-CCAC construction
DefinitionVHC_KemCCACcomplexitycomputational-social-choice
The Kemeny-CCAC instance built from a Vertex-Cover-Member-Add instance , as in the proof of Theorem 6 of Fitzsimmons–Hemaspaandra–Hoover–Narváez. It composes Karp's vertex cover to feedback arc set digraph with McGarvey's election.
- Every graph vertex gives candidates and , with an arc . Every edge gives arcs and .
- The registered candidates are for and for every . The addable candidates are for .
- For every arc there are two voters, and . Together they raise the margin of over by and leave every other pair balanced.
- The preferred candidate is and the addition limit is . An instance whose edge list has a loop, or whose , is mapped to an empty no-instance.
Definition code
import Definitions.Def_VHC_Elections
/-!
The Kemeny-CCAC instance built from a Vertex-Cover-Member-Add instance
(Fitzsimmons–Hemaspaandra–Hoover–Narváez, *Very Hard Electoral Control Problems*, AAAI 2019,
arXiv:1811.05438, proof of Theorem 6), composing Karp's vertex cover → feedback arc set digraph
with McGarvey's construction of an election realising a digraph.
* Every graph vertex `v` gives two candidates `vx v = 2v` and `vp v = 2v + 1`, with an arc
`vx v → vp v`; every edge `{a, b}` gives arcs `vp a → vx b` and `vp b → vx a`.
* Registered candidates: `vx v` for `v ∈ V` and `vp v` for every vertex `v ∈ V ∪ V'`;
unregistered (addable) candidates: `vx v` for `v ∈ V' \ V`.
* McGarvey: every arc `(x, y)` gives the two voters `x y rest` and `rest⁻¹ x y`, where `rest`
lists the other candidates, so that the net margin of `x` over `y` grows by 2 and every other
pair is balanced.
* The preferred candidate is `vp v̂`, and the addition limit is unchanged.
-/
namespace VHC.Kem
def vx (v : ℕ) : ℕ := 2 * v
def vp (v : ℕ) : ℕ := 2 * v + 1
/-- The candidates other than `x` and `y`. -/
def rest (all : List ℕ) (x y : ℕ) : List ℕ := all.filter (fun c => c ≠ x ∧ c ≠ y)
/-- The two voters of an arc `(x, y)`: `x y rest` and `rest⁻¹ x y`. -/
def pairVotes (all : List ℕ) (e : ℕ × ℕ) : List (List ℕ) :=
[[e.1, e.2] ++ rest all e.1 e.2, (rest all e.1 e.2).reverse ++ [e.1, e.2]]
/-- McGarvey's election for an arc list. -/
def mcVotes (all : List ℕ) (A : List (ℕ × ℕ)) : List (List ℕ) := A.flatMap (pairVotes all)
def Clist (V V' : List ℕ) : List ℕ := V.map vx ++ (V ++ V').map vp
def Dlist (V V' : List ℕ) : List ℕ := (V'.filter fun v => v ∉ V).map vx
def allL (V V' : List ℕ) : List ℕ := (Clist V V' ++ Dlist V V').dedup
def arcBase (V V' : List ℕ) (E : List (ℕ × ℕ)) : List (ℕ × ℕ) :=
(V ++ V').map (fun v => (vx v, vp v)) ++
E.flatMap (fun e => [(vp e.1, vx e.2), (vp e.2, vx e.1)])
def arcs (V V' : List ℕ) (E : List (ℕ × ℕ)) : List (ℕ × ℕ) :=
((arcBase V V' E).filter fun e => decide (e.1 ∈ allL V V' ∧ e.2 ∈ allL V V')).dedup
instance (E : List (ℕ × ℕ)) : Decidable (Loopless E) := by unfold Loopless; infer_instance
/-- The Kemeny-CCAC instance built from a Vertex-Cover-Member-Add instance. -/
def kemInst (x : List ℕ × List ℕ × List (ℕ × ℕ) × ℕ × ℕ) :
List ℕ × List ℕ × List (List ℕ) × ℕ × ℕ :=
let (V, V', E, k, h) := x
if Loopless E ∧ h ∈ V then
(Clist V V', Dlist V V', mcVotes (allL V V') (arcs V V' E), k, vp h)
else ([], [], [], 0, 0)
end VHC.Kem
Source
Fitzsimmons, Hemaspaandra, Hoover, Narváez, Very Hard Electoral Control Problems, AAAI 2019, https://arxiv.org/abs/1811.05438, Appendix, Proof of Theorem 6 (Kemeny-CCAC is Σ2p-complete); McGarvey 1953; Hemaspaandra–Spakowski–Vogel 2005, Lemmas 4.2 and 4.8