Documentation

CslibFrontier.GameTheory.Bayesian.Mediated

Mediated games and k-resilient correlated equilibria #

This module formalizes mediated Bayesian games and interim versus ex-ante k-resilient correlated equilibria following [DR07], Sections 8.2 and 8.4.1 (pp. 187–189, 191–192):

Main definitions #

Main results #

References #

Mediators and k-resilient correlated equilibria (§8.2, §8.4.1) #

@[reducible, inline]
abbrev Cslib.GameTheory.Bayesian.Mediator (ι : Type u_1) (T : ι → Type u_2) (S : ι → Type u_3) :
Type (max (max u_1 u_2) u_1 u_3)

A mediator for a Bayesian game with types T and actions S ([DR07], Section 8.2, p. 188): given each player's report in Option (T i) (where none models refusal or an invalid type ⊥), the mediator samples a correlated action recommendation profile in PMF (∀ i, S i) and privately delivers coordinate s i to player i.

def Cslib.GameTheory.Bayesian.Mediator.honestKernel {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} (f : Mediator ι T S) (t : (j : ι) → T j) :
PMF ((j : ι) → S j)

The honest mediated action-profile kernel: every player reports some (t j) and plays the recommended action s j.

def Cslib.GameTheory.Bayesian.Mediator.ofDist {ι : Type u_1} {S : ι → Type u_3} (σ : PMF ((i : ι) → S i)) :
Mediator ι (fun (x : ι) => Unit) S

A complete-information mediator ignoring trivial reports and always sampling from σ.

@[simp]
theorem Cslib.GameTheory.Bayesian.Mediator.ofDist_honestKernel {ι : Type u_1} {S : ι → Type u_3} (σ : PMF ((i : ι) → S i)) (t : ι → Unit) :
structure Cslib.GameTheory.Bayesian.InterimCoalitionDev {ι : Type u_1} (T : ι → Type u_2) (S : ι → Type u_3) (C : Finset ι) :
Type (max (max u_1 u_2) u_3)

An interim coalition deviation by coalition C in a mediated game ([DR07], Section 8.4.1, p. 192): coalition C pools its true types t|_C, chooses joint reports report tC : ∀ j : C, Option (T j.val) (allowing refusal none), observes the full vector of recommendations s|_C delivered by the mediator to C, and jointly samples actions play tC sC : PMF (∀ j : C, S j.val).

  • report : ((j : ↥C) → T ↑j) → (j : ↥C) → Option (T ↑j)

    Joint report vector submitted by C to the mediator given pooled true types tC.

  • play : ((j : ↥C) → T ↑j) → ((j : ↥C) → S ↑j) → PMF ((j : ↥C) → S ↑j)

    Correlated action distribution played by C given pooled true types tC and pooled recommendations sC.

structure Cslib.GameTheory.Bayesian.ExAnteCoalitionDev {ι : Type u_1} (T : ι → Type u_2) (S : ι → Type u_3) (C : Finset ι) :
Type (max (max u_1 u_2) u_3)

An ex-ante coalition deviation by coalition C in a mediated game ([DR07], Section 8.4.1, p. 192): coalition C pools its true types t|_C before contacting the mediator to choose joint reports report tC and independent per-member switching kernels switch tC j : S j.val → PMF (S j.val), so each member j ∈ C modifies its own recommendation without seeing the recommendations sent to other members of C.

  • report : ((j : ↥C) → T ↑j) → (j : ↥C) → Option (T ↑j)

    Joint report vector submitted by C to the mediator given pooled true types tC.

  • switch : ((j : ↥C) → T ↑j) → (j : ↥C) → S ↑j → PMF (S ↑j)

    Local switching kernel for each member j ∈ C, depending only on tC and j's own recommendation.

noncomputable def Cslib.GameTheory.Bayesian.ExAnteCoalitionDev.toInterim {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [(j : ι) → Fintype (S j)] {C : Finset ι} (dev : ExAnteCoalitionDev T S C) :

Every ex-ante coalition deviation embeds as an interim coalition deviation whose post-mediation action choice is the independent product of the local switching kernels.

noncomputable def Cslib.GameTheory.Bayesian.Mediator.interimDeviateKernel {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [DecidableEq ι] (f : Mediator ι T S) (C : Finset ι) (dev : InterimCoalitionDev T S C) (t : (j : ι) → T j) :
PMF ((j : ι) → S j)

The action-profile kernel induced when coalition C executes interim deviation dev and outsiders j ∉ C report some (t j) and follow their recommendations.

noncomputable def Cslib.GameTheory.Bayesian.Mediator.exAnteDeviateKernel {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [DecidableEq ι] [(j : ι) → Fintype (S j)] (f : Mediator ι T S) (C : Finset ι) (dev : ExAnteCoalitionDev T S C) (t : (j : ι) → T j) :
PMF ((j : ι) → S j)

The action-profile kernel induced when coalition C executes ex-ante deviation dev.

theorem Cslib.GameTheory.Bayesian.Mediator.sum_interimDeviateKernel_mul {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [DecidableEq ι] [Fintype ι] [(j : ι) → Fintype (S j)] (f : Mediator ι T S) (C : Finset ι) (dev : InterimCoalitionDev T S C) (t : (j : ι) → T j) (g : ((j : ι) → S j) → ℝ) :
∑ a : (j : ι) → S j, ((f.interimDeviateKernel C dev t) a).toReal * g a = ∑ s : (j : ι) → S j, ((f (patchCoalition C (dev.report fun (j : ↥C) => t ↑j) fun (j : ι) => some (t j))) s).toReal * ∑ aC : (j : ↥C) → S ↑j, ((dev.play (fun (j : ↥C) => t ↑j) fun (j : ↥C) => s ↑j) aC).toReal * g (patchCoalition C aC s)
def Cslib.GameTheory.Bayesian.Game.IsInterimKResilientCE {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] (G : Game ι T S) (k : ℕ) (f : Mediator ι T S) :

A mediator f is an interim k-resilient correlated equilibrium of G ([DR07], Section 8.4.1, p. 192) if for every coalition C of cardinality at most k, every interim deviation dev : InterimCoalitionDev T S C, and every i ∈ C, player i's expected payoff under dev is at most its honest mediated expected payoff.

def Cslib.GameTheory.Bayesian.Game.IsExAnteKResilientCE {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] (G : Game ι T S) (k : ℕ) (f : Mediator ι T S) :

A mediator f is an ex-ante k-resilient correlated equilibrium of G ([DR07], Section 8.4.1, p. 192) if for every coalition C of cardinality at most k, every ex-ante deviation dev : ExAnteCoalitionDev T S C, and every i ∈ C, player i's expected payoff under dev is at most its honest mediated expected payoff.

theorem Cslib.GameTheory.Bayesian.Game.IsInterimKResilientCE.toExAnte {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] {G : Game ι T S} {k : ℕ} {f : Mediator ι T S} (h : G.IsInterimKResilientCE k f) :

Every interim k-resilient correlated equilibrium is an ex-ante k-resilient correlated equilibrium ([DR07], Section 8.4.1, p. 192).

theorem Cslib.GameTheory.Bayesian.Game.IsInterimKResilientCE.anti {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] {G : Game ι T S} {k₁ k₂ : ℕ} {f : Mediator ι T S} (h : G.IsInterimKResilientCE k₂ f) (hk : k₁ ≤ k₂) :

Interim k-resilient correlated equilibrium is antitone in k.

theorem Cslib.GameTheory.Bayesian.Game.IsExAnteKResilientCE.anti {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] {G : Game ι T S} {k₁ k₂ : ℕ} {f : Mediator ι T S} (h : G.IsExAnteKResilientCE k₂ f) (hk : k₁ ≤ k₂) :

Ex-ante k-resilient correlated equilibrium is antitone in k.

theorem Cslib.GameTheory.Bayesian.Game.IsInterimKResilientCE.forall_randomized_le {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] {G : Game ι T S} {k : ℕ} {f : Mediator ι T S} (h : G.IsInterimKResilientCE k f) {C : Finset ι} (hC : C.card ≤ k) {α : Type u_4} (μ : PMF α) (dev : α → InterimCoalitionDev T S C) {i : ι} (hi : i ∈ C) :
G.expectedPayoff (fun (t : (j : ι) → T j) => μ.bind fun (a : α) => f.interimDeviateKernel C (dev a) t) i ≤ G.expectedPayoff f.honestKernel i

Pre-mediation shared randomness adds no power to interim deviations: if f is an interim k-resilient CE, then sampling an interim deviation dev a from any shared-randomness distribution μ : PMF α cannot increase any coalition member's expected payoff.

theorem Cslib.GameTheory.Bayesian.Game.IsExAnteKResilientCE.forall_randomized_le {ι : Type u_1} {T : ι → Type u_2} {S : ι → Type u_3} [Fintype ι] [DecidableEq ι] [(j : ι) → Fintype (T j)] [(j : ι) → Fintype (S j)] {G : Game ι T S} {k : ℕ} {f : Mediator ι T S} (h : G.IsExAnteKResilientCE k f) {C : Finset ι} (hC : C.card ≤ k) {α : Type u_4} (μ : PMF α) (dev : α → ExAnteCoalitionDev T S C) {i : ι} (hi : i ∈ C) :
G.expectedPayoff (fun (t : (j : ι) → T j) => μ.bind fun (a : α) => f.exAnteDeviateKernel C (dev a) t) i ≤ G.expectedPayoff f.honestKernel i

Pre-mediation shared randomness adds no power to ex-ante deviations: if f is an ex-ante k-resilient CE, then sampling an ex-ante deviation dev a from any shared-randomness distribution μ : PMF α cannot increase any coalition member's expected payoff.

On a complete-information game ofPayoffGame G₀, interim 1-resilient correlated equilibria of Mediator.ofDist σ coincide with classical CostGame.IsCorrelatedEquilibrium of Cslib.Probability.PMF.toStdSimplex σ.

At k = 1, ex-ante and interim correlated equilibria coincide on complete-information games (and equal CostGame.IsCorrelatedEquilibrium).

2-resilient ex-ante vs. interim CE separation (§8.4.1, p. 192) #

3-player Boolean parity-anticoordination game witnessing the separation between 2-resilient ex-ante and 2-resilient interim correlated equilibria ([DR07], Section 8.4.1, p. 192): each player i : Fin 3 plays a bit a i : Bool and receives 1 if the global XOR is false (a 0 ^^ a 1 ^^ a 2 = false) plus 1 if a i ≠ a (i + 1).

The uniform distribution over the four even-parity profiles (b₀, b₁, b₀ ^^ b₁) : Fin 3 → Bool. Each pair of coordinates uniquely determines the third, while every single coordinate is independent of each other coordinate.

Ex-ante 2-resilience of evenParityUniform in parityAntiCoordGame: no coalition of size at most 2 acting without sharing recommendations can increase any member's expected payoff above 3 / 2.

Non-existence of 2-resilient interim CE in parityAntiCoordGame ([DR07], Section 8.4.1, p. 192): no mediator f is a 2-resilient interim correlated equilibrium of parityAntiCoordGame.

3-player safe parity-anticoordination game (Option Bool actions) witnessing that a 2-resilient ex-ante CE can strictly Pareto-dominate every 2-resilient interim CE in a game where 2-resilient interim CEs exist ([DR07], Section 8.4.1, p. 192): if every player chooses some b_j, payoffs match parityAntiCoordGame; if any player opts out with none, every player receives 0.

All-none is a 2-resilient interim correlated equilibrium of safeParityAntiCoordGame (with payoff 0 for every player).

In safeParityAntiCoordGame, lifting evenParityUniform via Option.some gives a 2-resilient ex-ante correlated equilibrium whose payoff 3 / 2 strictly Pareto-dominates every 2-resilient interim correlated equilibrium (all of which yield 0).