Documentation

CslibFrontier.GameTheory.Extensive.PerfectInfoEmbedding

Embedding perfect-information trees into extensive-form games #

Every finite perfect-information game tree (PerfectInfoTree ι) embeds into an extensive-form game tree (ExtensiveTree) in which each decision node of player i forms its own singleton information set (PerfectInfoTree.InfoSet) ([vS07], Section 3.7).

Every node of T.toExtensiveTree matching an information set h of player i is unique (toExtensiveTree_isSingletonInfoSet), so T.toExtensiveTree has perfect recall for every player (toExtensiveTree_perfectRecall). Under the canonical pure-strategy bijection PureStrategy.toExtensiveEquiv, extensive-form payoffs coincide with T.expectedPayoff (toExtensiveTree_evalPure, toExtensiveTree_evalPure_ofExtensive), strategic-form pure and mixed Nash equilibria coincide (toExtensiveTree_isPureNash_iff, toExtensiveTree_isMixedNash_iff), backward induction yields a Nash equilibrium of the embedded game (toExtensiveTree_backwardInduction_isPureNash), and Kuhn's theorem applies directly (toExtensiveTree_kuhn_theorem).

Main definitions #

Main results #

References #

Singleton information sets and the tree embedding #

inductive Cslib.GameTheory.Extensive.PerfectInfoTree.InfoSet {ι : Type u} (i : ι) :
PerfectInfoTree ι → Type (max u 1)

Decision node of player i inside T : PerfectInfoTree ι, serving as its singleton information set in T.toExtensiveTree ([vS07], Section 3.7).

Instances For
    @[reducible]

    The finite nonempty action type available at singleton information set h.

    Instances For
      @[instance_reducible]
      @[instance_reducible]
      def Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} (T : PerfectInfoTree ι) (f : (i : ι) → InfoSet i T → H i) :
      ((i : ι) → (h : InfoSet i T) → Act i (f i h) ≃ h.Act) → ExtensiveTree ι H Act

      Embed T : PerfectInfoTree ι into an extensive-form game with given information-set map f and action-type equivalences eqv.

      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn_leaf {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} (w : ι → ℝ) (f : (i : ι) → InfoSet i (leaf w) → H i) (eqv : (i : ι) → (h : InfoSet i (leaf w)) → Act i (f i h) ≃ h.Act) :
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn_chance {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} {C : Type} [Fintype C] (prob : C → ℝ) (hprob : IsMixedStrategy prob) (next : C → PerfectInfoTree ι) (f : (i : ι) → InfoSet i (chance prob hprob next) → H i) (eqv : (i : ι) → (h : InfoSet i (chance prob hprob next)) → Act i (f i h) ≃ h.Act) :
      (chance prob hprob next).toExtensiveTreeOn f eqv = ExtensiveTree.chance prob hprob fun (c : C) => (next c).toExtensiveTreeOn (fun (i : ι) (h : InfoSet i (next c)) => f i (InfoSet.chance c h)) fun (i : ι) (h : InfoSet i (next c)) => eqv i (InfoSet.chance c h)
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn_decision {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} (p : ι) {A : Type} [instF : Fintype A] [instN : Nonempty A] (next : A → PerfectInfoTree ι) (f : (i : ι) → InfoSet i (decision p next) → H i) (eqv : (i : ι) → (h : InfoSet i (decision p next)) → Act i (f i h) ≃ h.Act) :
      (decision p next).toExtensiveTreeOn f eqv = ExtensiveTree.decision p (f p InfoSet.here) fun (a : Act p (f p InfoSet.here)) => have a' := (eqv p InfoSet.here) a; (next a').toExtensiveTreeOn (fun (i : ι) (h : InfoSet i (next a')) => f i (InfoSet.decision a' h)) fun (i : ι) (h : InfoSet i (next a')) => eqv i (InfoSet.decision a' h)
      def Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree {ι : Type u} (T : PerfectInfoTree ι) :
      ExtensiveTree ι (fun (i : ι) => InfoSet i T) fun (x : ι) (h : InfoSet x T) => h.Act

      Canonical embedding of a finite perfect-information tree T into ExtensiveTree, assigning a singleton information set T.InfoSet i to each decision node of player i ([vS07], Section 3.7).

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree_def {ι : Type u} (T : PerfectInfoTree ι) :
      T.toExtensiveTree = T.toExtensiveTreeOn (fun (x : ι) (h : InfoSet x T) => h) fun (x : ι) (x_1 : InfoSet x T) => Equiv.refl x_1.Act

      Singleton information sets and perfect recall #

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.eq_of_isDecisionOf_toExtensiveTreeOn {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} {T : PerfectInfoTree ι} {f : (j : ι) → InfoSet j T → H j} {eqv : (j : ι) → (h : InfoSet j T) → Act j (f j h) ≃ h.Act} :
      (∀ (j : ι), Function.Injective (f j)) → ∀ {i : ι} {h₀ : H i} {v₁ v₂ : Node (T.toExtensiveTreeOn f eqv)}, Node.IsDecisionOf i h₀ v₁ → Node.IsDecisionOf i h₀ v₂ → v₁ = v₂

      Whenever f maps distinct decision nodes to distinct information sets, every information set of T.toExtensiveTreeOn f eqv contains at most one decision node.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree_isSingletonInfoSet {ι : Type u} (T : PerfectInfoTree ι) {i : ι} {h : InfoSet i T} {v₁ v₂ : Node T.toExtensiveTree} (hv₁ : Node.IsDecisionOf i h v₁) (hv₂ : Node.IsDecisionOf i h v₂) :
      v₁ = v₂

      Every information set of T.toExtensiveTree contains at most one decision node.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn_perfectRecall {ι : Type u} [DecidableEq ι] {H : ι → Type v} {Act : (i : ι) → H i → Type} {T : PerfectInfoTree ι} (f : (j : ι) → InfoSet j T → H j) (eqv : (j : ι) → (h : InfoSet j T) → Act j (f j h) ≃ h.Act) (hf : ∀ (j : ι), Function.Injective (f j)) (i : ι) :

      Any embedded extensive-form game with injective information sets satisfies perfect recall for every player.

      Perfect recall of perfect-information games ([vS07], Section 3.7, p. 67, and Section 3.10, p. 70): the extensive-form embedding T.toExtensiveTree satisfies PerfectRecall for every player i.

      In T.toExtensiveTree, no play visits any information set of player i more than once.

      Strategy and payoff bridges #

      def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensive {ι : Type u} {i : ι} {T : PerfectInfoTree ι} :
      PureStrategy i T → Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i

      Translate a PerfectInfoTree pure strategy s into an ExtensiveTree pure strategy on T.toExtensiveTree.

      def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.ofExtensive {ι : Type u} [DecidableEq ι] {i : ι} (T : PerfectInfoTree ι) :
      Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i → PureStrategy i T

      Recover a PerfectInfoTree pure strategy from a pure strategy on T.toExtensiveTree.

      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.ofExtensive_decision {ι : Type u} [DecidableEq ι] {i : ι} (p : ι) {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (sE : Extensive.PureStrategy (fun (j : ι) => InfoSet j (PerfectInfoTree.decision p next)) (fun (x : ι) (h : InfoSet x (PerfectInfoTree.decision p next)) => h.Act) i) :
      ofExtensive (PerfectInfoTree.decision p next) sE = decision (fun (hp : p = i) => Eq.ndrec (motive := fun {i : ι} => Extensive.PureStrategy (fun (j : ι) => InfoSet j (PerfectInfoTree.decision p next)) (fun (x : ι) (h : InfoSet x (PerfectInfoTree.decision p next)) => h.Act) i → A) (fun (sE : Extensive.PureStrategy (fun (j : ι) => InfoSet j (PerfectInfoTree.decision p next)) (fun (x : ι) (h : InfoSet x (PerfectInfoTree.decision p next)) => h.Act) p) => sE InfoSet.here) hp sE) fun (a : A) => ofExtensive (next a) fun (h : (fun (j : ι) => InfoSet j (next a)) i) => sE (InfoSet.decision a h)
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.ofExtensive_chance {ι : Type u} [DecidableEq ι] {i : ι} {C : Type} {instF : Fintype C} {prob : C → ℝ} {hprob : IsMixedStrategy prob} {next : C → PerfectInfoTree ι} (sE : Extensive.PureStrategy (fun (j : ι) => InfoSet j (PerfectInfoTree.chance prob hprob next)) (fun (x : ι) (h : InfoSet x (PerfectInfoTree.chance prob hprob next)) => h.Act) i) :
      ofExtensive (PerfectInfoTree.chance prob hprob next) sE = chance fun (c : C) => ofExtensive (next c) fun (h : (fun (j : ι) => InfoSet j (next c)) i) => sE (InfoSet.chance c h)
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensive_decision {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (s : PureStrategy i (PerfectInfoTree.decision p next)) (a : A) (h : InfoSet i (next a)) :
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensive_chance {ι : Type u} {i : ι} {C : Type} {instF : Fintype C} {prob : C → ℝ} {hprob : IsMixedStrategy prob} {next : C → PerfectInfoTree ι} (s : PureStrategy i (PerfectInfoTree.chance prob hprob next)) (c : C) (h : InfoSet i (next c)) :
      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensive_ofExtensive_eq {ι : Type u} [DecidableEq ι] {i : ι} (T : PerfectInfoTree ι) (sE : Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i) :
      def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensiveEquiv {ι : Type u} [DecidableEq ι] (T : PerfectInfoTree ι) (i : ι) :
      PureStrategy i T ≃ Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i

      Canonical bijection between PerfectInfoTree.PureStrategy i T and extensive-form pure strategies on T.toExtensiveTree.

      @[simp]
      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.toExtensiveEquiv_symm_apply {ι : Type u} [DecidableEq ι] (T : PerfectInfoTree ι) (i : ι) (sE : Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i) :

      Bijection between root-to-leaf paths of T and terminal paths of T.toExtensiveTree.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTreeOn_evalPure {ι : Type u} {H : ι → Type v} {Act : (i : ι) → H i → Type} {T : PerfectInfoTree ι} (f : (j : ι) → InfoSet j T → H j) (eqv : (j : ι) → (h : InfoSet j T) → Act j (f j h) ≃ h.Act) (s : (j : ι) → PureStrategy j T) (sE : (j : ι) → Extensive.PureStrategy H Act j) :
      (∀ (j : ι) (h : InfoSet j T), (eqv j h) (sE j (f j h)) = (s j).toExtensive h) → ExtensiveTree.evalPure sE (T.toExtensiveTreeOn f eqv) = T.expectedPayoff s

      Pure payoffs of T.toExtensiveTree equal T.expectedPayoff when strategies are translated via PureStrategy.toExtensive.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree_evalPure_ofExtensive {ι : Type u} [DecidableEq ι] (T : PerfectInfoTree ι) (sE : (i : ι) → Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i) :

      Pure payoffs of T.toExtensiveTree equal T.expectedPayoff after pulling strategies back via PureStrategy.ofExtensive.

      Equivalence of pure Nash equilibria between T.toCostGame and (T.toExtensiveTree).toCostGame.

      Backward induction constructs a pure Nash equilibrium of the embedded game (T.toExtensiveTree).toCostGame.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree_isMixedNash_iff {ι : Type u} [Fintype ι] [DecidableEq ι] (T : PerfectInfoTree ι) [(i : ι) → DecidableEq (InfoSet i T)] (μ : (i : ι) → PureStrategy i T → ℝ) :
      (T.toExtensiveTree.toCostGame.IsMixedNash fun (i : ι) (sE : Extensive.PureStrategy (fun (i : ι) => InfoSet i T) (fun (x : ι) (h : InfoSet x T) => h.Act) i) => μ i (PureStrategy.ofExtensive T sE)) ↔ T.toCostGame.IsMixedNash μ

      Under the pure-strategy bijection, mixed Nash equilibria of T.toCostGame correspond precisely to mixed Nash equilibria of (T.toExtensiveTree).toCostGame.

      theorem Cslib.GameTheory.Extensive.PerfectInfoTree.toExtensiveTree_kuhn_theorem {ι : Type u} [Fintype ι] [DecidableEq ι] (T : PerfectInfoTree ι) {i : ι} [(j : ι) → DecidableEq (InfoSet j T)] {μ : Extensive.PureStrategy (fun (j : ι) => InfoSet j T) (fun (x : ι) (h : InfoSet x T) => h.Act) i → ℝ} (hμ : IsMixedStrategy μ) :

      Kuhn's theorem for embedded perfect-information games: every mixed strategy μ of player i in T.toExtensiveTree is realization-equivalent to an explicit behavioral strategy.