Documentation

CslibFrontier.GameTheory.Cooperative.Nucleolus

The nucleolus, prenucleolus, and Kohlberg's balanced-collection theorem #

This module formalizes the nucleolus and prenucleolus of finite transferable-utility cooperative games ([Sch69], [Koh71]):

  1. Descending order statistics (sortDesc): characterizes the nonincreasingly sorted tuple of any finite real vector u : κ → ℝ via the minimax order-statistic formula max_{|T| = k + 1} min_{s ∈ T} u s, proving continuity in u, antitone ordering (sortDesc_antitone), list-permutation equivalence (sortDesc_perm_list), threshold counting (le_sortDesc_iff, sortDesc_lex_lt_iff_countGe), and Schmeidler's midpoint descent lemma (sortDesc_midpoint_lt_of_ne).
  2. Schmeidler's existence and uniqueness theorems ([Sch69]):
  3. Kohlberg's balanced-collection criterion ([Koh71]): Using the affine Farkas lemma (Matrix.exists_dual_le_of_forall_le), proves exact balanced-family characterizations for both the prenucleolus (CooperativeGame.isPrenucleolus_iff_kohlberg) and the nucleolus (CooperativeGame.isNucleolus_iff_kohlberg).
  4. Axiomatic properties and cost-sharing dual: anonymity (perm), symmetry (AreSymmetric), strategic-equivalence covariance (mapAffine), dummy player zero payoff (IsDummyAgent), and the dual CostSharingGame.nucleolus / CostSharingGame.prenucleolus.

Main definitions #

Main results #

References #

Descending order statistics and lexicographic comparison #

noncomputable def Cslib.GameTheory.sortDesc {κ : Type u_1} [Fintype κ] (u : κ → ℝ) (k : Fin (Fintype.card κ)) :

The k-th largest (0-indexed) entry of u : κ → ℝ, defined via the minimax order-statistic formula max_{|T| = k + 1} min_{s ∈ T} u s.

noncomputable def Cslib.GameTheory.countGe {κ : Type u_1} [Fintype κ] (u : κ → ℝ) (r : ℝ) :

Number of coordinates s : κ satisfying r ≤ u s.

theorem Cslib.GameTheory.le_sortDesc_iff {κ : Type u_1} [Fintype κ] (u : κ → ℝ) (k : Fin (Fintype.card κ)) (r : ℝ) :
r ≤ sortDesc u k ↔ ↑k + 1 ≤ countGe u r

r ≤ sortDesc u k holds iff at least k + 1 coordinates of u satisfy r ≤ u s.

theorem Cslib.GameTheory.sortDesc_lt_iff {κ : Type u_1} [Fintype κ] (u : κ → ℝ) (k : Fin (Fintype.card κ)) (r : ℝ) :
sortDesc u k < r ↔ countGe u r ≤ ↑k
theorem Cslib.GameTheory.sortDesc_antitone {κ : Type u_1} [Fintype κ] (u : κ → ℝ) :
theorem Cslib.GameTheory.sortDesc_mem_range {κ : Type u_1} [Fintype κ] (u : κ → ℝ) (k : Fin (Fintype.card κ)) :
∃ (s : κ), sortDesc u k = u s
theorem Cslib.GameTheory.sortDesc_comp_equiv {κ₁ : Type u_1} {κ₂ : Type u_2} [Fintype κ₁] [Fintype κ₂] (e : κ₁ ≃ κ₂) (u : κ₂ → ℝ) (k : Fin (Fintype.card κ₁)) :
sortDesc (u ∘ ⇑e) k = sortDesc u (Fin.cast ⋯ k)
theorem Cslib.GameTheory.sortDesc_scale_add {κ : Type u_1} [Fintype κ] (u : κ → ℝ) {a : ℝ} (ha : 0 ≤ a) (b : ℝ) (k : Fin (Fintype.card κ)) :
sortDesc (fun (s : κ) => a * u s + b) k = a * sortDesc u k + b

List.ofFn (sortDesc u) is a permutation of (Finset.univ : Finset κ).toList.map u.

theorem Cslib.GameTheory.sortDesc_lex_lt_iff_countGe {κ : Type u_1} [Fintype κ] (u v : κ → ℝ) :
toLex (sortDesc u) < toLex (sortDesc v) ↔ ∃ (r : ℝ), countGe u r < countGe v r ∧ ∀ (t : ℝ), r < t → countGe u t = countGe v t

Threshold characterization of lexicographic strict inequality between sorted tuples sortDesc u and sortDesc v: sortDesc u is lexicographically strictly smaller iff at the highest threshold r where their upper-tail counts differ, u has strictly fewer entries ≥ r.

theorem Cslib.GameTheory.sortDesc_midpoint_lt_of_ne {κ : Type u_1} [Fintype κ] {u v : κ → ℝ} (heq : sortDesc u = sortDesc v) (hne : u ≠ v) :
toLex (sortDesc fun (s : κ) => (u s + v s) / 2) < toLex (sortDesc u)

Schmeidler's midpoint descent lemma ([Sch69]): if u, v : κ → ℝ are distinct vectors with identical descendingly sorted tuples sortDesc u = sortDesc v, then their midpoint (u + v) / 2 has a lexicographically strictly smaller sortDesc.

theorem Cslib.GameTheory.continuous_sortDesc {κ : Type u_1} [Fintype κ] (k : Fin (Fintype.card κ)) :
Continuous fun (u : κ → ℝ) => sortDesc u k

Symmetries, affine rescaling, and dummy players on CooperativeGame #

Pushforward of a cooperative game along a permutation π of the agents: coalition S receives the value of its preimage S.map π.symm.toEmbedding.

Positive affine strategic equivalence rescaling (G.mapAffine a b).val S = a * G.val S + ∑ i ∈ S, b i ([Sch69]; S-equivalence).

@[simp]
theorem Cslib.GameTheory.CooperativeGame.mapAffine_val {A : Type u_1} (G : CooperativeGame A) (a : ℝ) (b : A → ℝ) (S : Finset A) :
(G.mapAffine a b).val S = a * G.val S + ∑ i ∈ S, b i

Two agents i, j are symmetric in G if adding either one to any coalition avoiding both produces the same value.

Agent i is a dummy agent in G if G.val (insert i S) = G.val S whenever i ∉ S.

Excesses, preimputations, and imputations #

def Cslib.GameTheory.CooperativeGame.excess {A : Type u_1} (G : CooperativeGame A) (S : Finset A) (x : A → ℝ) :

Coalition excess e(S, x) := G.val S - ∑ i ∈ S, x i measuring the dissatisfaction of coalition S at payoff allocation x ([Sch69]).

@[simp]
theorem Cslib.GameTheory.CooperativeGame.excess_midpoint {A : Type u_1} (G : CooperativeGame A) (S : Finset A) (x y : A → ℝ) :
G.excess S ((1 / 2) • x + (1 / 2) • y) = (G.excess S x + G.excess S y) / 2
theorem Cslib.GameTheory.CooperativeGame.inCore_iff_excess {A : Type u_1} [Fintype A] (G : CooperativeGame A) (x : A → ℝ) :
G.InCore x ↔ ∑ i : A, x i = G.val Finset.univ ∧ ∀ (S : Finset A), G.excess S x ≤ 0

The finite set of nonempty proper coalitions ∅ ⊂neq S ⊂neq Finset.univ.

noncomputable def Cslib.GameTheory.CooperativeGame.sortExcess {A : Type u_1} [Fintype A] (G : CooperativeGame A) (x : A → ℝ) :

Descendingly sorted vector of all 2 ^ |A| coalition excesses at allocation x.

Descendingly sorted vector of excesses over proper nonempty coalitions S ⊊ univ.

Set of preimputations (efficient payoff vectors) ∑ i, x i = G.val univ.

Set of imputations (efficient and individually rational payoff vectors).

Equivalence of full-coalition and proper-nonempty-coalition comparisons #

Schmeidler's existence and uniqueness theorems #

def Cslib.GameTheory.CooperativeGame.IsLexMinimizerOn {A : Type u_1} [Fintype A] (G : CooperativeGame A) (K : Set (A → ℝ)) (x : A → ℝ) :

x is a lexicographic excess minimizer of G over the payoff set K ([Sch69]).

theorem Cslib.GameTheory.CooperativeGame.exists_isLexMinimizerOn_of_isCompact {A : Type u_1} [Fintype A] (G : CooperativeGame A) {K : Set (A → ℝ)} (hKne : K.Nonempty) (hKcomp : IsCompact K) :
∃ (x : A → ℝ), G.IsLexMinimizerOn K x

Schmeidler's existence theorem ([Sch69]): every nonempty compact payoff set K ⊆ (A → ℝ) contains at least one lexicographic excess minimizer.

theorem Cslib.GameTheory.CooperativeGame.unique_isLexMinimizerOn_of_convex {A : Type u_1} [Fintype A] (G : CooperativeGame A) {K : Set (A → ℝ)} (hKconv : Convex ℝ K) {x y : A → ℝ} (hx : G.IsLexMinimizerOn K x) (hy : G.IsLexMinimizerOn K y) :
x = y

Schmeidler's uniqueness theorem ([Sch69]): every convex payoff set K has at most one lexicographic excess minimizer.

theorem Cslib.GameTheory.CooperativeGame.existsUnique_isLexMinimizerOn {A : Type u_1} [Fintype A] (G : CooperativeGame A) {K : Set (A → ℝ)} (hKne : K.Nonempty) (hKcomp : IsCompact K) (hKconv : Convex ℝ K) :
∃! x : A → ℝ, G.IsLexMinimizerOn K x

Predicate characterizing the nucleolus of G: lexicographic excess minimizer over G.imputations ([Sch69]).

Predicate characterizing the prenucleolus of G: lexicographic excess minimizer over all preimputations G.preimputations.

Existence and uniqueness of the nucleolus ([Sch69]): whenever the imputation set is nonempty (∑ i, G.val {i} ≤ G.val Finset.univ), G admits a unique nucleolus.

noncomputable def Cslib.GameTheory.CooperativeGame.nucleolus {A : Type u_1} [Fintype A] (G : CooperativeGame A) :
A → ℝ

The nucleolus of a TU cooperative game G (returning 0 as a total junk value when the imputation set is empty).

theorem Cslib.GameTheory.CooperativeGame.IsNucleolus.inCore {A : Type u_1} [Fintype A] {G : CooperativeGame A} {x : A → ℝ} (hx : G.IsNucleolus x) (hcore : G.NonemptyCore) :
G.InCore x

Core containment of the nucleolus ([Sch69]): if G has a nonempty core, its nucleolus lies in the core.

Existence and uniqueness of the prenucleolus (unconditional over arbitrary TU games G): restricting to a compact lower-bounded box around an arbitrary preimputation x₀ yields a unique lexicographic minimizer on all of G.preimputations.

noncomputable def Cslib.GameTheory.CooperativeGame.prenucleolus {A : Type u_1} [Fintype A] (G : CooperativeGame A) :
A → ℝ

The unique prenucleolus of a TU cooperative game G.

Kohlberg's balanced-collection theorem #

A coalition family ℬ : Finset (Finset A) is positively balanced if there exist strictly positive weights on ℬ (zero outside ℬ) whose incidence indicators sum to 1 on every agent j : A ([Koh71]).

theorem Cslib.GameTheory.CooperativeGame.IsPositiveBalancedOn.exists_isBalancedWeights {A : Type u_1} [Fintype A] [DecidableEq A] {ℬ : Finset (Finset A)} (hℬ : IsPositiveBalancedOn ℬ) :
∃ (w : Finset A → ℝ), IsBalancedWeights w ∧ (∀ S ∈ ℬ, 0 < w S) ∧ ∀ S ∉ ℬ, w S = 0

Imputation balancedness at x ([Koh71]): ℬ can be balanced using strictly positive weights on ℬ together with nonnegative singleton multipliers u j ≥ 0 supported on agents where individual rationality G.val {j} = x j is tight.

noncomputable def Cslib.GameTheory.CooperativeGame.upperLevel {A : Type u_1} [Fintype A] [DecidableEq A] (G : CooperativeGame A) (x : A → ℝ) (t : ℝ) :

Proper nonempty coalitions whose excess at x is at least t.

Kohlberg's balanced-collection theorem for the prenucleolus ([Koh71]): a preimputation x ∈ G.preimputations is the prenucleolus of G iff every nonempty upper-level coalition family G.upperLevel x t (t ≤ G.excess S x for proper nonempty S) is positively balanced.

Kohlberg's balanced-collection theorem for the nucleolus ([Koh71]): an imputation x ∈ G.imputations is the nucleolus of G iff every nonempty upper-level coalition family G.upperLevel x t is imputation-balanced at x (IsImputationBalancedAt).

Axiomatic properties: anonymity, symmetry, covariance, and dummy players #

theorem Cslib.GameTheory.CooperativeGame.excess_perm {A : Type u_1} (π : Equiv.Perm A) (G : CooperativeGame A) (S : Finset A) (x : A → ℝ) :
(perm π G).excess S (x ∘ ⇑(Equiv.symm π)) = G.excess (Finset.map (Equiv.symm π).toEmbedding S) x

Anonymity (equivariance) of the prenucleolus ([Sch69]): permuting agent names by π permutes the prenucleolus allocation accordingly.

theorem Cslib.GameTheory.CooperativeGame.nucleolus_perm {A : Type u_1} [Fintype A] (π : Equiv.Perm A) (G : CooperativeGame A) (hle : ∑ i : A, G.val {i} ≤ G.val Finset.univ) :

Anonymity (equivariance) of the nucleolus ([Sch69]).

Symmetry of the prenucleolus: symmetric agents i, j receive identical payoffs in G.prenucleolus.

Symmetry of the nucleolus: symmetric agents i, j receive identical payoffs in G.nucleolus.

theorem Cslib.GameTheory.CooperativeGame.excess_mapAffine {A : Type u_1} (G : CooperativeGame A) (a : ℝ) (b : A → ℝ) (S : Finset A) (x : A → ℝ) :
((G.mapAffine a b).excess S fun (i : A) => a * x i + b i) = a * G.excess S x
theorem Cslib.GameTheory.CooperativeGame.sortExcess_mapAffine {A : Type u_1} [Fintype A] (G : CooperativeGame A) {a : ℝ} (ha : 0 ≤ a) (b x : A → ℝ) :
((G.mapAffine a b).sortExcess fun (i : A) => a * x i + b i) = fun (k : Fin (Fintype.card (Finset A))) => a * G.sortExcess x k
theorem Cslib.GameTheory.CooperativeGame.isPrenucleolus_mapAffine {A : Type u_1} [Fintype A] (G : CooperativeGame A) {a : ℝ} (ha : 0 < a) (b x : A → ℝ) :
((G.mapAffine a b).IsPrenucleolus fun (i : A) => a * x i + b i) ↔ G.IsPrenucleolus x
theorem Cslib.GameTheory.CooperativeGame.isNucleolus_mapAffine {A : Type u_1} [Fintype A] (G : CooperativeGame A) {a : ℝ} (ha : 0 < a) (b x : A → ℝ) :
((G.mapAffine a b).IsNucleolus fun (i : A) => a * x i + b i) ↔ G.IsNucleolus x
theorem Cslib.GameTheory.CooperativeGame.prenucleolus_mapAffine {A : Type u_1} [Fintype A] (G : CooperativeGame A) {a : ℝ} (ha : 0 < a) (b : A → ℝ) :
(G.mapAffine a b).prenucleolus = fun (i : A) => a * G.prenucleolus i + b i

Covariance (S-equivalence) of the prenucleolus ([Sch69]): positive affine rescaling a * v(S) + ∑_{i ∈ S} b_i (0 < a) rescales the prenucleolus by a * x_i + b_i.

theorem Cslib.GameTheory.CooperativeGame.nucleolus_mapAffine {A : Type u_1} [Fintype A] (G : CooperativeGame A) {a : ℝ} (ha : 0 < a) (b : A → ℝ) (hle : ∑ i : A, G.val {i} ≤ G.val Finset.univ) :
(G.mapAffine a b).nucleolus = fun (i : A) => a * G.nucleolus i + b i

Covariance (S-equivalence) of the nucleolus ([Sch69]).

theorem Cslib.GameTheory.CooperativeGame.nucleolus_isDummyAgent {A : Type u_1} [Fintype A] [DecidableEq A] {G : CooperativeGame A} {i : A} (hle : ∑ k : A, G.val {k} ≤ G.val Finset.univ) (hd : G.IsDummyAgent i) :
G.nucleolus i = 0

Dummy-player property of the nucleolus: a dummy agent receives zero payoff in G.nucleolus (assuming imputations exist).

Dummy-player property of the prenucleolus: a dummy agent receives zero payoff in G.prenucleolus.

noncomputable def Cslib.GameTheory.CostSharingGame.nucleolus {A : Type u_1} [Fintype A] (C : CostSharingGame A) :
A → ℝ

The nucleolus cost allocation of a cost-sharing game C, defined via the dual cooperative surplus game C.toCooperativeGame (α = -x) whenever imputations exist (C.cost Finset.univ ≤ ∑ i, C.cost {i}).

noncomputable def Cslib.GameTheory.CostSharingGame.prenucleolus {A : Type u_1} [Fintype A] (C : CostSharingGame A) :
A → ℝ

The prenucleolus cost allocation of a cost-sharing game C.

Whenever a cost-sharing game C has a nonempty core, C.nucleolus lies in C.InCore.