Overview

Axiom Class

class pref_voting.axiom.Axiom(name, has_violation, find_all_violations)[source]

A class to represent voting method axioms.

Parameters:
  • name (string) – The human-readable name of the axiom.

  • has_violation (function) – function that returns a Boolean which is True when there is a violation of the axiom.

  • find_all_violations (function) – function that returns all instances of violations of the axiom.

  • satisfying_vms (list) – list of voting methods satisfying the axiom.

  • violating_vms (list) – list of voting methods violating the axiom.