Vertex-Cover-Member-Add to Kemeny-CCAV construction
DefinitionVHC_KemPCCAVcomplexitycomputational-social-choice
The Kemeny-CCAV instance built from a Vertex-Cover-Member-Add instance , as in the proof of Theorem 7 of Fitzsimmons–Hemaspaandra–Hoover–Narváez. The candidates are and for every vertex . Every arc of Karp's digraph is one voter who ranks only those two candidates.
- The registered voters are the arcs for , and , for every edge .
- The unregistered voters are the arcs for .
- The preferred candidate is and the addition limit is . An instance with a loop, or with , is mapped to an empty no-instance.
Definition code
import Definitions.Def_VHC_KemCCAC
/-!
The Kemeny′-CCAV instance built from a Vertex-Cover-Member-Add instance `(V, V', E, k, v̂)`
(Fitzsimmons–Hemaspaandra–Hoover–Narváez, *Very Hard Electoral Control Problems*, AAAI 2019,
arXiv:1811.05438, proof of Theorem 7): Karp's digraph on candidates `vx v = 2v`, `vp v = 2v + 1`
for all `v ∈ V ∪ V'`, with one two-candidate voter `[x, y]` per arc `x → y`.
* Registered voters: the arcs `vx v → vp v` for `v ∈ V`, and `vp a → vx b`, `vp b → vx a` for
every edge `{a, b}` (both endpoints vertices).
* Unregistered voters: the arcs `vx v → vp v` for `v ∈ V' \ V`.
* The preferred candidate is `vp v̂`, and the addition limit is unchanged.
-/
namespace VHC.KemP
open VHC.Kem
def cands (V V' : List ℕ) : List ℕ := ((V ++ V').map vx ++ (V ++ V').map vp).dedup
def edgeArcs (V V' : List ℕ) (E : List (ℕ × ℕ)) : List (ℕ × ℕ) :=
(E.flatMap fun e => [(vp e.1, vx e.2), (vp e.2, vx e.1)]).filter
fun e => decide (e.1 ∈ cands V V' ∧ e.2 ∈ cands V V')
def regArcs (V V' : List ℕ) (E : List (ℕ × ℕ)) : List (ℕ × ℕ) :=
(V.map (fun v => (vx v, vp v)) ++ edgeArcs V V' E).dedup
def unregArcs (V V' : List ℕ) : List (ℕ × ℕ) :=
((V'.filter fun v => v ∉ V).map fun v => (vx v, vp v)).dedup
/-- The voter of an arc `x → y`: it ranks only `x` above `y`. -/
def vote (e : ℕ × ℕ) : List ℕ := [e.1, e.2]
/-- The Kemeny′-CCAV instance built from a Vertex-Cover-Member-Add instance. -/
def kpInst (x : List ℕ × List ℕ × List (ℕ × ℕ) × ℕ × ℕ) :
List ℕ × List (List ℕ) × List (List ℕ) × ℕ × ℕ :=
let (V, V', E, k, h) := x
if Loopless E ∧ h ∈ V then
(cands V V', (regArcs V V' E).map vote, (unregArcs V V').map vote, k, vp h)
else ([], [], [], 0, 0)
end VHC.KemP
Source
Fitzsimmons, Hemaspaandra, Hoover, Narváez, Very Hard Electoral Control Problems, AAAI 2019, https://arxiv.org/abs/1811.05438, Section 3 (Theorem 7) and Appendix (Feedback-Arc-Set-Member-Add-Arcs, proof of Theorem 7); Hemaspaandra–Spakowski–Vogel 2005, Lemma 4.8