Documentation

CslibFrontier.GameTheory.PredictionMarket.NoTrade

Information Partitions, Agreement, Rational Expectations, and No-Trade #

This module formalizes the partition model of knowledge, common knowledge, rational expectations equilibria, Aumann's agreement theorem, and the Milgrom–Stokey no-trade theorem from [PennockSami2007, §26.2, pp. 653–657; §26.7, pp. 671–673].

Model and conventions #

Let Ω be a finite state space ([Fintype Ω]) equipped with a nonnegative prior P : Ω → ℝ (typically a probability distribution IsMixedStrategy P). Each agent i : ι observes a partition of Ω, represented by an equivalence relation π i : Setoid Ω:

For agreement and no-trade results, posterior hypotheses are quantified over positive-probability states 0 < P ω (which automatically guarantees 0 < eventProb P (infoCell (π i) ω) and avoids division-by-zero artifacts on null cells).

Main definitions #

Main results #

References #

def Cslib.GameTheory.PredictionMarket.combinedPartition {Ω : Type u_1} {ι : Type u_2} (π : ι → Setoid Ω) :

The combined information partition π̂ = ⨅ i, π i: the coarsest common refinement of all agents' information partitions [PennockSami2007, Definition 26.1, p. 653].

theorem Cslib.GameTheory.PredictionMarket.combinedPartition_rel {Ω : Type u_1} {ι : Type u_2} {π : ι → Setoid Ω} {ω₁ ω₂ : Ω} :
(combinedPartition π) ω₁ ω₂ ↔ ∀ (i : ι), (π i) ω₁ ω₂

The common-knowledge (meet) partition ⨆ i, π i: the finest common coarsening of all agents' information partitions (Aumann 1976; [PennockSami2007, §26.7, p. 671]).

noncomputable def Cslib.GameTheory.PredictionMarket.infoCell {Ω : Type u_1} [Fintype Ω] (r : Setoid Ω) (ω : Ω) :

The information cell {ω' : Ω | r ω ω'} containing state ω in the partition represented by equivalence relation r : Setoid Ω [PennockSami2007, Definition 26.1, p. 653].

@[simp]
theorem Cslib.GameTheory.PredictionMarket.mem_infoCell {Ω : Type u_1} [Fintype Ω] {r : Setoid Ω} {ω ω' : Ω} :
ω' ∈ infoCell r ω ↔ r ω ω'
theorem Cslib.GameTheory.PredictionMarket.mem_infoCell_self {Ω : Type u_1} [Fintype Ω] (r : Setoid Ω) (ω : Ω) :
ω ∈ infoCell r ω
theorem Cslib.GameTheory.PredictionMarket.infoCell_eq_of_rel {Ω : Type u_1} [Fintype Ω] {r : Setoid Ω} {ω₁ ω₂ : Ω} (h : r ω₁ ω₂) :
infoCell r ω₁ = infoCell r ω₂

An event E is self-evident under partition r if whenever ω ∈ E, every state indistinguishable from ω under r also lies in E (equivalently, E is a union of r-cells).

def Cslib.GameTheory.PredictionMarket.IsCommonKnowledgeEvent {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] (π : ι → Setoid Ω) (E : Finset Ω) :

An event E is a common-knowledge (public) event for partition profile π if it is self-evident for every agent i.

def Cslib.GameTheory.PredictionMarket.IsCommonKnowledgeAt {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] (π : ι → Setoid Ω) (E : Finset Ω) (ω : Ω) :

An event E is common knowledge at state ω if the meet-partition cell containing ω is contained in E (Aumann 1976).

An event is self-evident for every agent if and only if it is self-evident for the meet partition commonKnowledgePartition π.

Every meet-partition cell infoCell (commonKnowledgePartition π) ω is a common-knowledge event.

theorem Cslib.GameTheory.PredictionMarket.isCommonKnowledgeAt_iff_exists_commonKnowledgeEvent {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] {π : ι → Setoid Ω} {E : Finset Ω} {ω : Ω} :
IsCommonKnowledgeAt π E ω ↔ ∃ (F : Finset Ω), ω ∈ F ∧ F ⊆ E ∧ IsCommonKnowledgeEvent π F

Aumann's characterization of common knowledge at a state: E is common knowledge at ω if and only if there exists a common-knowledge (mutually self-evident) event F with ω ∈ F and F ⊆ E.

def Cslib.GameTheory.PredictionMarket.eventProb {Ω : Type u_1} (P : Ω → ℝ) (E : Finset Ω) :

Total prior probability ∑ ω ∈ E, P ω of event E under prior P.

@[simp]
theorem Cslib.GameTheory.PredictionMarket.eventProb_apply {Ω : Type u_1} (P : Ω → ℝ) (E : Finset Ω) :
eventProb P E = ∑ ω ∈ E, P ω
noncomputable def Cslib.GameTheory.PredictionMarket.condExp {Ω : Type u_1} (P : Ω → ℝ) (E : Finset Ω) (f : Ω → ℝ) :

Conditional expectation E_P[f | E] = (∑ ω ∈ E, P ω * f ω) / eventProb P E of a real-valued random variable f : Ω → ℝ given event E [PennockSami2007, §26.2.1, pp. 653–654].

@[simp]
theorem Cslib.GameTheory.PredictionMarket.condExp_apply {Ω : Type u_1} (P : Ω → ℝ) (E : Finset Ω) (f : Ω → ℝ) :
condExp P E f = (∑ ω ∈ E, P ω * f ω) / eventProb P E
theorem Cslib.GameTheory.PredictionMarket.eventProb_pos_of_mem {Ω : Type u_1} {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {E : Finset Ω} {ω : Ω} (hω : ω ∈ E) (hPω : 0 < P ω) :
0 < eventProb P E
theorem Cslib.GameTheory.PredictionMarket.condExp_eq_const {Ω : Type u_1} {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {E : Finset Ω} (hE : 0 < eventProb P E) {f : Ω → ℝ} {c : ℝ} (hf : ∀ ω ∈ E, 0 < P ω → f ω = c) :
condExp P E f = c

On an event of positive prior probability, if f equals c on every positive-probability state of E, then condExp P E f = c.

theorem Cslib.GameTheory.PredictionMarket.sum_mul_condExp_infoCell_eq {Ω : Type u_1} [Fintype Ω] {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {r : Setoid Ω} {E : Finset Ω} (hE : IsSelfEvident r E) (f : Ω → ℝ) :
∑ ω ∈ E, P ω * condExp P (infoCell r ω) f = ∑ ω ∈ E, P ω * f ω

Weighted law of iterated expectations over a self-evident event E: integrating condExp P (infoCell r ω) f against P over E recovers ∑ ω ∈ E, P ω * f ω, even when some cells inside E carry zero prior mass.

theorem Cslib.GameTheory.PredictionMarket.condExp_condExp_infoCell_eq {Ω : Type u_1} [Fintype Ω] {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {r : Setoid Ω} {E : Finset Ω} (hE : IsSelfEvident r E) (f : Ω → ℝ) :
(condExp P E fun (ω : Ω) => condExp P (infoCell r ω) f) = condExp P E f

Law of iterated expectations (tower property): for any self-evident event E, E[E[f | r] | E] = E[f | E].

Aumann's Agreement Theorem #

theorem Cslib.GameTheory.PredictionMarket.aumann_agreement {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {π : ι → Setoid Ω} {E : Finset Ω} (hE : IsCommonKnowledgeEvent π E) (hE_pos : 0 < eventProb P E) (f : Ω → ℝ) {i j : ι} {q_i q_j : ℝ} (hi : ∀ ω ∈ E, 0 < P ω → condExp P (infoCell (π i) ω) f = q_i) (hj : ∀ ω ∈ E, 0 < P ω → condExp P (infoCell (π j) ω) f = q_j) :
q_i = q_j ∧ q_i = condExp P E f

Aumann's Agreement Theorem (Aumann 1976; [PennockSami2007, §26.2.2.3 & §26.7, pp. 657, 671]): under a common nonnegative prior P, if E is a common-knowledge event of positive prior probability on which agent i's posterior expectation of f is constant q_i and agent j's posterior expectation of f is constant q_j (on positive-probability states), then q_i = q_j (and both equal condExp P E f).

theorem Cslib.GameTheory.PredictionMarket.aumann_agreement_at {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {π : ι → Setoid Ω} (f : Ω → ℝ) {ω : Ω} (hPω : 0 < P ω) {i j : ι} {q_i q_j : ℝ} {E_i E_j : Finset Ω} (hck_i : IsCommonKnowledgeAt π E_i ω) (hck_j : IsCommonKnowledgeAt π E_j ω) (hEi : ∀ ω' ∈ E_i, 0 < P ω' → condExp P (infoCell (π i) ω') f = q_i) (hEj : ∀ ω' ∈ E_j, 0 < P ω' → condExp P (infoCell (π j) ω') f = q_j) :
q_i = q_j

Pointwise form of Aumann's Agreement Theorem at a positive-probability state ω: if it is common knowledge at ω that agent i's posterior is q_i and agent j's posterior is q_j, then q_i = q_j.

Rational Expectations Equilibrium (§26.2.2.3, Definition 26.2, pp. 656–657) #

The information partition π_{P*} induced by observing price mapping Pstar : Ω → ℝ: two states are indistinguishable under Pstar iff they yield the same price [PennockSami2007, §26.2.2.3, p. 656].

@[simp]
theorem Cslib.GameTheory.PredictionMarket.pricePartition_rel {Ω : Type u_1} (Pstar : Ω → ℝ) (ω₁ ω₂ : Ω) :
(pricePartition Pstar) ω₁ ω₂ ↔ Pstar ω₁ = Pstar ω₂
def Cslib.GameTheory.PredictionMarket.infoWithPrice {Ω : Type u_1} {ι : Type u_2} (π : ι → Setoid Ω) (Pstar : Ω → ℝ) (i : ι) :

Agent i's refined information π_i ⊓ π_{P*} after observing both her private partition π i and the market price Pstar ω [PennockSami2007, Definition 26.2, p. 656].

def Cslib.GameTheory.PredictionMarket.IsFullyRevealingPrice {Ω : Type u_1} {ι : Type u_2} (π : ι → Setoid Ω) (Pstar : Ω → ℝ) :

A price mapping Pstar : Ω → ℝ is fully revealing for partition profile π when the price-induced partition equals the agents' combined information partition: π_{P*} = π̂ [PennockSami2007, §26.2.2.3, p. 657].

theorem Cslib.GameTheory.PredictionMarket.isFullyRevealingPrice_of_injective {Ω : Type u_1} {ι : Type u_2} {π : ι → Setoid Ω} {Pstar : Ω → ℝ} (hfull : combinedPartition π = ⊥) (hinj : Function.Injective Pstar) :

When combined information identifies the true state (π̂ = ⊥), any injective price mapping is fully revealing [PennockSami2007, §26.2.2.3, p. 657].

theorem Cslib.GameTheory.PredictionMarket.infoWithPrice_eq_combinedPartition_of_isFullyRevealing {Ω : Type u_1} {ι : Type u_2} {π : ι → Setoid Ω} {Pstar : Ω → ℝ} (hfr : IsFullyRevealingPrice π Pstar) (i : ι) :

In any fully revealing price mapping (π_{P*} = π̂), conditioning on (π_i, P*) gives every agent the exact combined information π̂ [PennockSami2007, §26.2.2.3, p. 657].

def Cslib.GameTheory.PredictionMarket.IsREE {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] (P : Ω → ℝ) (π : ι → Setoid Ω) (v : ι → Ω → ℝ) (clearPrice : (ι → Ω → ℝ) → Ω → ℝ) (Pstar : Ω → ℝ) :

Rational Expectations Equilibrium [PennockSami2007, Definition 26.2, p. 656]: given valuation functions v : ι → Ω → ℝ and a market-clearing operator clearPrice : (ι → Ω → ℝ) → Ω → ℝ computing the clearing price from agents' effective valuations ṽ_i(ω) = E[v_i | π_i(ω), P*(ω)], a price mapping Pstar : Ω → ℝ is a rational expectations equilibrium if clearPrice ṽ ω = Pstar ω in every state ω.

theorem Cslib.GameTheory.PredictionMarket.condExp_infoWithPrice_eq_omniscient_of_isFullyRevealing {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] (P : Ω → ℝ) {π : ι → Setoid Ω} {Pstar : Ω → ℝ} (hfr : IsFullyRevealingPrice π Pstar) (f : Ω → ℝ) (i : ι) (ω : Ω) :
condExp P (infoCell (infoWithPrice π Pstar i) ω) f = condExp P (infoCell (combinedPartition π) ω) f

Omniscient forecast and belief agreement under fully revealing prices [PennockSami2007, §26.2.2.3, p. 657]: if Pstar is fully revealing, then every agent i assigns the exact omniscient conditional expectation E[f | π̂(ω)] to any security f, and all agents hold identical posterior expectations.

theorem Cslib.GameTheory.PredictionMarket.isREE_commonValue_iff_omniscient_of_isFullyRevealing {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] {P : Ω → ℝ} {π : ι → Setoid Ω} {f : Ω → ℝ} {clearPrice : (ι → Ω → ℝ) → Ω → ℝ} (hunanimous : ∀ (g : ι → Ω → ℝ) (ω : Ω) (c : ℝ), (∀ (i : ι), g i ω = c) → clearPrice g ω = c) {Pstar : Ω → ℝ} (hfr : IsFullyRevealingPrice π Pstar) :
IsREE P π (fun (x : ι) => f) clearPrice Pstar ↔ ∀ (ω : Ω), Pstar ω = condExp P (infoCell (combinedPartition π) ω) f

Strong-form efficient market characterization of a fully revealing REE [PennockSami2007, §26.2.2.3, pp. 656–657]: for a common-value security f and any clearing operator that outputs c whenever all agents value the security at c, a fully revealing price mapping Pstar is a rational expectations equilibrium if and only if Pstar ω equals the omniscient forecast E[f | π̂(ω)] in every state ω.

Milgrom–Stokey No-Trade Theorem and Sharpness (§26.2.2.3, p. 657) #

theorem Cslib.GameTheory.PredictionMarket.milgrom_stokey_no_trade {Ω : Type u_1} {ι : Type u_2} [Fintype Ω] [Fintype ι] {P : Ω → ℝ} (hP : ∀ (ω : Ω), 0 ≤ P ω) {π : ι → Setoid Ω} {E : Finset Ω} (hE : IsCommonKnowledgeEvent π E) {t : ι → Ω → ℝ} (hzero : ∀ ω ∈ E, ∑ i : ι, t i ω = 0) (hir : ∀ (i : ι), ∀ ω ∈ E, 0 < P ω → 0 ≤ condExp P (infoCell (π i) ω) (t i)) (i : ι) (ω : Ω) :
ω ∈ E → 0 < P ω → condExp P (infoCell (π i) ω) (t i) = 0

Milgrom–Stokey No-Trade Theorem (Milgrom–Stokey 1982; [PennockSami2007, §26.2.2.3 & §26.7, pp. 657, 671]): suppose finitely many risk-neutral Bayesian agents share a nonnegative common prior P and execute a trade t : ι → Ω → ℝ that is zero-sum on a common-knowledge event E (∀ ω ∈ E, ∑ i, t i ω = 0). If the trade is interim individually rational for every agent on positive-probability states of E (∀ i, ∀ ω ∈ E, 0 < P ω → 0 ≤ E[t_i | π_i(ω)]), then every agent has zero interim expected gain from trade on every positive-probability state in E. In particular, no strictly mutually beneficial speculative trade can occur.

theorem Cslib.GameTheory.PredictionMarket.exists_strict_zeroSum_trade_of_ne_prior {Ω : Type u_1} [Fintype Ω] {P₁ P₂ : Ω → ℝ} (hP₁ : IsMixedStrategy P₁) (hP₂ : IsMixedStrategy P₂) (hne : P₁ ≠ P₂) :
∃ (t : Fin 2 → Ω → ℝ), (∀ (ω : Ω), t 0 ω + t 1 ω = 0) ∧ 0 < ∑ ω : Ω, P₁ ω * t 0 ω ∧ 0 < ∑ ω : Ω, P₂ ω * t 1 ω

Sharpness of the common-prior hypothesis (original mathematical companion to [PennockSami2007, §26.2.2.3, p. 657]): whenever two agents hold distinct probability priors P₁ ≠ P₂ on a finite state space Ω, there exists a zero-sum trade t : Fin 2 → Ω → ℝ (∀ ω, t 0 ω + t 1 ω = 0) yielding strictly positive expected profit for both agents (equal to (1 / 2) * ∑ ω, (P₁ ω - P₂ ω) ^ 2 > 0), even with no private information.