Documentation

CslibFrontier.GameTheory.SocialChoice.Ranking

Rankings of alternatives #

The preference model of social choice. A voter's preference is a Ranking A, a strict linear order on the alternatives A. A social ranking is a WeakRanking A, a complete preorder, so society may be indifferent. A Profile V A assigns a ranking to every voter. Arrow's theorem (CslibFrontier.GameTheory.SocialChoice.Arrow) and the Gibbard–Satterthwaite theorem (CslibFrontier.GameTheory.SocialChoice.GibbardSatterthwaite) are stated on this model.

Representation. Rankings are bundled structures holding one relation, not instances of Mathlib's LinearOrder. A profile assigns different orders on the same type A to different voters, and the proofs build new rankings pointwise (Ranking.toTop, Ranking.toBottom, Ranking.toTopSet, Ranking.extend). Typeclass-carried orders, which also hold decidability and min/max data, would make both awkward. Bridge instances (IsStrictTotalOrder A r.Prefers, IsPreorder A R.AtLeast, Std.Total R.AtLeast) give access to Mathlib's unbundled order API.

Main definitions #

Main results #

References #

A ranking of the alternatives A: a strict linear order, read r.Prefers a b as "a is ranked above b".

Instances For
    theorem Cslib.GameTheory.SocialChoice.Ranking.ext {A : Type u_1} {x y : Ranking A} (Prefers : x.Prefers = y.Prefers) :
    x = y

    A weak ranking of the alternatives A: a complete preorder, read R.AtLeast a b as "a is ranked at least as high as b". Ties are allowed.

    theorem Cslib.GameTheory.SocialChoice.WeakRanking.ext {A : Type u_1} {x y : WeakRanking A} (AtLeast : x.AtLeast = y.AtLeast) :
    x = y
    theorem Cslib.GameTheory.SocialChoice.Ranking.asymm {A : Type u_1} (r : Ranking A) {a b : A} (h : r.Prefers a b) :
    ¬r.Prefers b a
    theorem Cslib.GameTheory.SocialChoice.Ranking.ne_of_prefers {A : Type u_1} (r : Ranking A) {a b : A} (h : r.Prefers a b) :
    a ≠ b
    theorem Cslib.GameTheory.SocialChoice.Ranking.prefers_of_not_prefers {A : Type u_1} (r : Ranking A) {a b : A} (hab : a ≠ b) (h : ¬r.Prefers a b) :
    r.Prefers b a
    theorem Cslib.GameTheory.SocialChoice.Ranking.not_prefers_iff {A : Type u_1} (r : Ranking A) {a b : A} (hab : a ≠ b) :
    ¬r.Prefers a b ↔ r.Prefers b a

    The reverse ranking.

    Move the alternatives of S to the top of r, keeping the order within S and within its complement ([Nis07], Definition 9.9).

    theorem Cslib.GameTheory.SocialChoice.Ranking.toTopSet_prefers_iff {A : Type u_1} (r : Ranking A) {S : Set A} {x y : A} :
    (r.toTopSet S).Prefers x y ↔ x ∈ S ∧ y ∉ S ∨ (x ∈ S ↔ y ∈ S) ∧ r.Prefers x y

    toTopSet S ranks x above y when x ∈ S and y ∉ S, or when x and y are on the same side of S and r ranks x above y.

    theorem Cslib.GameTheory.SocialChoice.Ranking.toTopSet_prefers_of_mem_of_notMem {A : Type u_1} (r : Ranking A) {S : Set A} {x y : A} (hx : x ∈ S) (hy : y ∉ S) :
    (r.toTopSet S).Prefers x y
    theorem Cslib.GameTheory.SocialChoice.Ranking.toTopSet_prefers_iff_of_mem {A : Type u_1} (r : Ranking A) {S : Set A} {x y : A} (hx : x ∈ S) (hy : y ∈ S) :
    (r.toTopSet S).Prefers x y ↔ r.Prefers x y
    theorem Cslib.GameTheory.SocialChoice.Ranking.toTopSet_prefers_of_mem {A : Type u_1} (r : Ranking A) {S : Set A} {x y : A} (hx : x ∈ S) :
    (r.toTopSet S).Prefers x y ↔ y ∉ S ∨ r.Prefers x y

    If x ∈ S, toTopSet S ranks x above y exactly when y ∉ S or r ranks x above y.

    theorem Cslib.GameTheory.SocialChoice.Ranking.toTopSet_prefers_of_notMem {A : Type u_1} (r : Ranking A) {S : Set A} {x y : A} (hx : x ∉ S) :
    (r.toTopSet S).Prefers x y ↔ y ∉ S ∧ r.Prefers x y

    If x ∉ S, toTopSet S ranks x above y exactly when y ∉ S and r ranks x above y.

    Move b to the top of r, keeping the order of the other alternatives: toTopSet {b}.

    Move b to the bottom of r, keeping the order of the other alternatives.

    b is ranked above every other alternative.

    b is ranked below every other alternative.

    theorem Cslib.GameTheory.SocialChoice.Ranking.toTop_prefers_of_ne {A : Type u_1} (r : Ranking A) {b x y : A} (hx : x ≠ b) (hy : y ≠ b) :
    (r.toTop b).Prefers x y ↔ r.Prefers x y
    theorem Cslib.GameTheory.SocialChoice.Ranking.toBottom_prefers_of_ne {A : Type u_1} (r : Ranking A) {b x y : A} (hx : x ≠ b) (hy : y ≠ b) :
    (r.toBottom b).Prefers x y ↔ r.Prefers x y
    theorem Cslib.GameTheory.SocialChoice.Ranking.prefers_iff_of_isTop {A : Type u_1} (r : Ranking A) {s : Ranking A} {b x y : A} (hr : r.IsTop b) (hs : s.IsTop b) (hxy : x = b ∨ y = b) :
    r.Prefers x y ↔ s.Prefers x y

    If b is at the top of two rankings, they agree on every comparison involving b.

    theorem Cslib.GameTheory.SocialChoice.Ranking.prefers_iff_of_isBottom {A : Type u_1} (r : Ranking A) {s : Ranking A} {b x y : A} (hr : r.IsBottom b) (hs : s.IsBottom b) (hxy : x = b ∨ y = b) :
    r.Prefers x y ↔ s.Prefers x y

    If b is at the bottom of two rankings, they agree on every comparison involving b.

    Every type carries a ranking, by the Szpilrajn extension theorem (extend_partialOrder).

    theorem Cslib.GameTheory.SocialChoice.Ranking.IsTop.unique {A : Type u_1} {r : Ranking A} {a b : A} (ha : r.IsTop a) (hb : r.IsTop b) :
    a = b

    Two alternatives at the top of the same ranking coincide.

    noncomputable def Cslib.GameTheory.SocialChoice.Ranking.top {A : Type u_1} (r : Ranking A) [Finite A] [Nonempty A] :
    A

    The top alternative of a ranking of a finite nonempty type.

    def Cslib.GameTheory.SocialChoice.Ranking.extend {A : Type u_1} (r : Ranking A) {S : Set A} (s : Ranking ↑S) :

    Extend a ranking s of the alternatives in S to all alternatives, ranking S above its complement, which is ordered by r.

    theorem Cslib.GameTheory.SocialChoice.Ranking.extend_prefers_of_mem {A : Type u_1} (r : Ranking A) {S : Set A} (s : Ranking ↑S) {x y : A} (hx : x ∈ S) (hy : y ∈ S) :
    (r.extend s).Prefers x y ↔ s.Prefers ⟨x, hx⟩ ⟨y, hy⟩

    On alternatives of S, the extension of s agrees with s.

    The restriction of a ranking to the alternatives in S.

    @[simp]
    theorem Cslib.GameTheory.SocialChoice.Ranking.restrict_prefers {A : Type u_1} (r : Ranking A) {S : Set A} {x y : ↑S} :
    (r.restrict S).Prefers x y ↔ r.Prefers ↑x ↑y
    theorem Cslib.GameTheory.SocialChoice.Ranking.extend_prefers_iff {A : Type u_1} (r : Ranking A) {S : Set A} (s : Ranking ↑S) {x y : A} :
    (r.extend s).Prefers x y ↔ (∃ (hx : x ∈ S) (hy : y ∈ S), s.Prefers ⟨x, hx⟩ ⟨y, hy⟩) ∨ x ∈ S ∧ y ∉ S ∨ x ∉ S ∧ y ∉ S ∧ r.Prefers x y

    r.extend s ranks x above y when both lie in S and s ranks x above y, when x ∈ S and y ∉ S, or when neither lies in S and r ranks x above y.

    theorem Cslib.GameTheory.SocialChoice.Ranking.extend_prefers_of_mem_of_notMem {A : Type u_1} (r : Ranking A) {S : Set A} (s : Ranking ↑S) {x y : A} (hx : x ∈ S) (hy : y ∉ S) :
    (r.extend s).Prefers x y

    The extension of a ranking of S ranks the alternatives of S above the others.

    theorem Cslib.GameTheory.SocialChoice.Ranking.extend_prefers_of_notMem {A : Type u_1} (r : Ranking A) {S : Set A} (s : Ranking ↑S) {x y : A} (hx : x ∉ S) (hy : y ∉ S) :
    (r.extend s).Prefers x y ↔ r.Prefers x y

    Off S, the extension of a ranking of S agrees with r.

    theorem Cslib.GameTheory.SocialChoice.Ranking.prefers_iff_swap {A : Type u_1} {s t : Ranking A} {a b : A} (h : s.Prefers a b ↔ t.Prefers a b) :
    s.Prefers b a ↔ t.Prefers b a

    Two rankings that agree on whether a is above b also agree on whether b is above a.

    The strict part of a weak ranking: a is ranked strictly above b.

    theorem Cslib.GameTheory.SocialChoice.WeakRanking.prefers_trans {A : Type u_1} (R : WeakRanking A) {a b c : A} (hab : R.Prefers a b) (hbc : R.Prefers b c) :
    R.Prefers a c

    b is ranked strictly above every other alternative.

    b is ranked strictly below every other alternative.

    A ranking, viewed as a weak ranking with no ties.

    @[reducible, inline]
    abbrev Cslib.GameTheory.SocialChoice.Profile (V : Type u_2) (A : Type u_3) :
    Type (max u_2 u_3)

    A preference profile: one ranking for each voter.