Documentation

CslibFrontier.GameTheory.SocialChoice.Condorcet

Condorcet winners, Condorcet's paradox, plurality and the Borda count #

Pairwise majority comparisons and positional voting rules on strict preference profiles ([Nis07], §9.2.1–9.2.2). Given a finite electorate V, support P a b counts the voters who rank a above b, and MajorityPrefers P a b holds when strictly more voters prefer a to b than b to a. An alternative that beats every other alternative in pairwise majority is a Condorcet winner (IsCondorcetWinner).

With at least three voters and three alternatives, pairwise majority can cycle (Condorcet's paradox, [Nis07], §9.2.1, p. 211), leaving no Condorcet winner. Positional methods such as plurality (SocialChoiceFunction.plurality) and the Borda count (SocialWelfareFunction.borda) aggregate every profile, at a cost ([Nis07], §9.2.2, pp. 211–212): plurality can fail to select a Condorcet winner when one exists and encourages strategic voting, while the Borda count is weakly Pareto yet violates independence of irrelevant alternatives.

Main definitions #

Main results #

References #

noncomputable def Cslib.GameTheory.SocialChoice.support {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (a b : A) :

The number of voters in P who rank a strictly above b.

@[simp]
theorem Cslib.GameTheory.SocialChoice.support_self {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (a : A) :
support P a a = 0
theorem Cslib.GameTheory.SocialChoice.support_add_support {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) {a b : A} (hab : a ≠ b) :

For distinct alternatives a and b, every voter ranks either a above b or b above a.

theorem Cslib.GameTheory.SocialChoice.support_eq_card_of_forall {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (h : ∀ (i : V), (P i).Prefers a b) :
theorem Cslib.GameTheory.SocialChoice.support_eq_zero_of_forall {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (h : ∀ (i : V), (P i).Prefers a b) :
support P b a = 0
def Cslib.GameTheory.SocialChoice.MajorityPrefers {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (a b : A) :

Strictly more voters rank a above b than b above a.

theorem Cslib.GameTheory.SocialChoice.MajorityPrefers.asymm {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (h : MajorityPrefers P a b) :
theorem Cslib.GameTheory.SocialChoice.MajorityPrefers.ne {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (h : MajorityPrefers P a b) :
a ≠ b
theorem Cslib.GameTheory.SocialChoice.majorityPrefers_iff_card_lt_two_mul {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (hab : a ≠ b) :
theorem Cslib.GameTheory.SocialChoice.majorityPrefers_of_forall {V : Type u_1} {A : Type u_2} [Fintype V] [Nonempty V] {P : Profile V A} {a b : A} (h : ∀ (i : V), (P i).Prefers a b) :
def Cslib.GameTheory.SocialChoice.IsCondorcetWinner {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (a : A) :

Alternative a is a Condorcet winner of P if a strict majority of voters prefers a to every other alternative.

theorem Cslib.GameTheory.SocialChoice.IsCondorcetWinner.unique {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (ha : IsCondorcetWinner P a) (hb : IsCondorcetWinner P b) :
a = b

A preference profile has at most one Condorcet winner.

theorem Cslib.GameTheory.SocialChoice.isCondorcetWinner_of_forall_isTop {V : Type u_1} {A : Type u_2} [Fintype V] [Nonempty V] {P : Profile V A} {a : A} (h : ∀ (i : V), (P i).IsTop a) :

A social choice function is Condorcet consistent if it chooses the Condorcet winner whenever one exists.

Three-block profile constructions and Condorcet's paradox #

theorem Cslib.GameTheory.SocialChoice.exists_condorcetCycle {V : Type u_1} {A : Type u_2} [Fintype V] (hV : 3 ≤ Fintype.card V) (hV4 : Fintype.card V ≠ 4) {a b c : A} (hab : a ≠ b) (hac : a ≠ c) (hbc : b ≠ c) :

Condorcet's paradox ([Nis07], §9.2.1, p. 211): for any finite electorate with 3 ≤ |V| and |V| ≠ 4, and any three distinct alternatives a, b, c, there is a profile in which a strict majority prefers a to b, b to c, and c to a.

theorem Cslib.GameTheory.SocialChoice.exists_profile_forall_not_isCondorcetWinner {V : Type u_1} {A : Type u_2} [Fintype V] (hV : 3 ≤ Fintype.card V) (h3 : ∃ (a : A) (b : A) (c : A), a ≠ b ∧ a ≠ c ∧ b ≠ c) :
∃ (P : Profile V A), ∀ (x : A), ¬IsCondorcetWinner P x

With at least three voters and at least three alternatives, there is a preference profile that has no Condorcet winner (including |V| = 4, where two alternatives tie and every alternative fails to beat all others by a strict majority).

Plurality rule #

noncomputable def Cslib.GameTheory.SocialChoice.pluralityCount {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (a : A) :

The plurality count of a in P: the number of voters ranking a strictly first ([Nis07], §9.2.2, p. 211).

theorem Cslib.GameTheory.SocialChoice.pluralityCount_eq_card_of_forall_isTop {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a : A} (h : ∀ (i : V), (P i).IsTop a) :
theorem Cslib.GameTheory.SocialChoice.pluralityCount_eq_zero_of_forall_isTop {V : Type u_1} {A : Type u_2} [Fintype V] {P : Profile V A} {a b : A} (hab : b ≠ a) (h : ∀ (i : V), (P i).IsTop a) :
theorem Cslib.GameTheory.SocialChoice.sum_pluralityCount {V : Type u_1} {A : Type u_2} [Fintype V] [Fintype A] [Nonempty A] (P : Profile V A) :
∑ a : A, pluralityCount P a = Fintype.card V

Each voter ranks a unique alternative at the top, so the plurality counts sum to |V|.

noncomputable def Cslib.GameTheory.SocialChoice.pluralityRanking {V : Type u_1} {A : Type u_2} [Fintype V] (P : Profile V A) (t : Ranking A) :

Rank alternatives by descending plurality count, breaking ties according to t.

Deterministic plurality rule with tie-breaking ranking t ([Nis07], §9.2.2, p. 211): choose the alternative maximizing pluralityCount P, breaking ties by t.

For a nonempty electorate, plurality rule is onto A.

With at least two voters and two alternatives, plurality has no dictator.

theorem Cslib.GameTheory.SocialChoice.SocialChoiceFunction.not_isStrategyProof_plurality {V : Type u_1} {A : Type u_2} [Fintype V] [Finite A] [Nonempty A] (hV : 2 ≤ Fintype.card V) (h3 : ∃ (a : A) (b : A) (c : A), a ≠ b ∧ a ≠ c ∧ b ≠ c) (t : Ranking A) :

Plurality rule is manipulable ([Nis07], §9.2.2, pp. 211–212): with at least two voters and at least three alternatives, deterministic tie-broken plurality is not strategy-proof.

theorem Cslib.GameTheory.SocialChoice.SocialChoiceFunction.not_isCondorcetConsistent_plurality {V : Type u_1} {A : Type u_2} [Fintype V] [Finite A] [Nonempty A] (hV : 3 ≤ Fintype.card V) (hV4 : Fintype.card V ≠ 4) (h3 : ∃ (a : A) (b : A) (c : A), a ≠ b ∧ a ≠ c ∧ b ≠ c) (t : Ranking A) :

With 3 ≤ |V|, |V| ≠ 4, and at least three alternatives, tie-broken plurality is not Condorcet consistent: a candidate w can beat every rival in pairwise majority while receiving at most as many first-place votes as t.top. (At |V| = 4 and |A| = 3 a Condorcet winner must receive at least two first-place votes while each rival receives at most one, so plurality is Condorcet consistent there.)

The Borda count #

noncomputable def Cslib.GameTheory.SocialChoice.bordaScore {V : Type u_1} {A : Type u_2} [Fintype V] [Fintype A] (P : Profile V A) (a : A) :

The Borda score of a in P: the total number of (voter, rival) pairs in which the voter ranks a strictly above the rival ([Nis07], §9.2.2, p. 211).

The Borda social welfare function: alternatives are ranked by descending Borda score, with ties allowed ([Nis07], §9.2.2, p. 211).

For a nonempty electorate, the Borda count satisfies weak Pareto: if every voter ranks a above b, each voter ranks a above strictly more alternatives than b.

With at least two voters and two alternatives, the Borda count has no dictator: if voter i ranks a first and b last while all other voters reverse that ranking, b's Borda score is at least a's.

With at least two voters and at least three alternatives, the Borda count violates IIA.