Documentation

CslibFrontier.GameTheory.Extensive.PerfectInfo

Finite extensive games of perfect information and Zermelo's theorem #

A finite extensive-form game of perfect information (PerfectInfoTree ι) is a finite rooted tree whose nodes are terminal leaves with payoff vectors (leaf), decision nodes assigned to a player with a nonempty finite action set (decision), and chance nodes with a probability distribution (chance). A pure strategy of player i (PureStrategy i T) specifies an action at every decision node of player i in T, including nodes in unreachable subtrees.

Every subgame of T is rooted at a node of T. A pure strategy profile is a subgame-perfect equilibrium (IsPureSPE, [vS07], Section 3.8) if its restriction to every subgame is a pure Nash equilibrium of that subgame's CostGame (toCostGame). By the one-shot deviation principle (isPureSPE_iff_oneShot), this holds iff every decision node chooses a best response given continuation equilibrium payoffs. Backward induction (backwardInduction, [vS07], Algorithm 3.9 specialized to perfect-information trees) constructs a pure subgame-perfect equilibrium (isPureSPE_backwardInduction), establishing Zermelo's theorem (exists_isPureSPE).

When continuation values at every decision node are pairwise distinct for the deciding player (HasNoContinuationTies), the subgame-perfect equilibrium is unique (existsUnique_isPureSPE_of_hasNoContinuationTies). In particular, for chance-free trees (IsDeterministic) whose distinct leaves assign distinct payoffs to each player (HasDistinctLeafPayoffs), there is a unique pure subgame-perfect equilibrium (existsUnique_isPureSPE).

Contrast with Cslib.GameTheory.PerfectInfoGame in CslibFrontier.GameTheory.PerfectInformation, which models two-player win/loss games on descriptive set theory trees.

Main definitions #

Main results #

References #

A finite extensive-form game tree of perfect information over player set ι.

A pure strategy of player i on T: at every decision node of T belonging to p, it supplies a map p = i → A, and recursively a strategy on every child subtree.

Instances For
    def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.choiceFun {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (s : PureStrategy i (PerfectInfoTree.decision p next)) :
    p = i → A

    Extract the function from p = i to A stored in a decision strategy.

    def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.headChoice {ι : Type u} {p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (s : PureStrategy p (PerfectInfoTree.decision p next)) :
    A

    Extract the chosen action when player p is the player to move at .decision p next.

    def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.childDecision {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (s : PureStrategy i (PerfectInfoTree.decision p next)) (a : A) :
    PureStrategy i (next a)

    Restrict a strategy at .decision p next to the child subtree for action a.

    def Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.childChance {ι : 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) :
    PureStrategy i (next c)

    Restrict a strategy at .chance prob hprob next to the child subtree for chance move c.

    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.choiceFun_decision {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (choice : p = i → A) (sub : (a : A) → PureStrategy i (next a)) :
    (decision choice sub).choiceFun = choice
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.headChoice_decision {ι : Type u} {p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (choice : p = p → A) (sub : (a : A) → PureStrategy p (next a)) :
    (decision choice sub).headChoice = choice ⋯
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.childDecision_decision {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (choice : p = i → A) (sub : (a : A) → PureStrategy i (next a)) (a : A) :
    (decision choice sub).childDecision a = sub a
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.childChance_chance {ι : Type u} {i : ι} {C : Type} {instF : Fintype C} {prob : C → ℝ} {hprob : IsMixedStrategy prob} {next : C → PerfectInfoTree ι} (sub : (c : C) → PureStrategy i (next c)) (c : C) :
    (chance sub).childChance c = sub c
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.decision_ext {ι : Type u} {i p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} {s₁ s₂ : PureStrategy i (PerfectInfoTree.decision p next)} (hhead : ∀ (h : p = i), s₁.choiceFun h = s₂.choiceFun h) (hchild : ∀ (a : A), s₁.childDecision a = s₂.childDecision a) :
    s₁ = s₂

    Two pure strategies at a decision node coincide iff their root choices (when p = i) and all child sub-strategies coincide.

    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.PureStrategy.chance_ext {ι : Type u} {i : ι} {C : Type} {instF : Fintype C} {prob : C → ℝ} {hprob : IsMixedStrategy prob} {next : C → PerfectInfoTree ι} {s₁ s₂ : PureStrategy i (PerfectInfoTree.chance prob hprob next)} (hchild : ∀ (c : C), s₁.childChance c = s₂.childChance c) :
    s₁ = s₂

    Two pure strategies at a chance node coincide iff all child sub-strategies coincide.

    Every PureStrategy i T is nonempty because every decision node has [Nonempty A].

    @[instance_reducible]

    PureStrategy i T is finite for every player i and tree T.

    The expected payoff vector under a pure strategy profile s.

    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.expectedPayoff_leaf {ι : Type u} (w : ι → ℝ) (s : (i : ι) → PureStrategy i (leaf w)) :
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.expectedPayoff_decision {ι : Type u} (p : ι) {A : Type} {instF : Fintype A} {instN : Nonempty A} (next : A → PerfectInfoTree ι) (s : (i : ι) → PureStrategy i (decision p next)) :
    (decision p next).expectedPayoff s = (next (s p).headChoice).expectedPayoff fun (i : ι) => (s i).childDecision (s p).headChoice
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.expectedPayoff_decision_of_headChoice_eq {ι : Type u} {p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} {s : (i : ι) → PureStrategy i (decision p next)} {a : A} (ha : (s p).headChoice = a) :
    (decision p next).expectedPayoff s = (next a).expectedPayoff fun (i : ι) => (s i).childDecision a
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.expectedPayoff_chance {ι : Type u} {C : Type} [Fintype C] (prob : C → ℝ) (hprob : IsMixedStrategy prob) (next : C → PerfectInfoTree ι) (s : (i : ι) → PureStrategy i (chance prob hprob next)) (j : ι) :
    (chance prob hprob next).expectedPayoff s j = ∑ c : C, prob c * (next c).expectedPayoff (fun (i : ι) => (s i).childChance c) j

    The strategic game in cost-minimization form induced by T: player i's cost is its negated expected payoff.

    @[simp]

    Output of backward induction on T: a pure strategy profile together with its equilibrium payoff vector.

    • strategy (i : ι) : PureStrategy i T

      The strategy profile chosen by backward induction.

    • payoff : ι → ℝ

      The subgame-perfect equilibrium payoff vector induced by strategy.

    Backward induction ([vS07], Algorithm 3.9 specialized to finite perfect-information trees): computes a pure strategy profile and its equilibrium payoff vector by bottom-up recursion.

    The payoff vector returned by backwardInduction equals the expected payoff of its strategy profile.

    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.backwardInduction_chance_payoff {ι : Type u} {C : Type} [Fintype C] (prob : C → ℝ) (hprob : IsMixedStrategy prob) (next : C → PerfectInfoTree ι) (j : ι) :
    (chance prob hprob next).backwardInduction.payoff j = ∑ c : C, prob c * (next c).backwardInduction.payoff j

    A pure strategy profile s is a subgame-perfect equilibrium (IsPureSPE, [vS07], Section 3.8) of T if its restriction to every subgame of T is a pure Nash equilibrium of that subgame.

    Every subgame-perfect equilibrium of T is a pure Nash equilibrium of T.toCostGame.

    Local optimality at every decision node (the one-shot deviation condition): at every .decision p next, player p's chosen action achieves at least the payoff of any alternative action given the continuation strategy profile.

    One-shot deviation principle for finite extensive games of perfect information: a pure strategy profile is a subgame-perfect equilibrium iff no player can strictly gain by a single deviation at any decision node.

    Backward induction produces a pure subgame-perfect equilibrium ([vS07], Section 3.8, Algorithm 3.9).

    Zermelo's theorem ([vS07], Section 3.8, Algorithm 3.9): every finite game tree of perfect information (with arbitrary finite player set and optional chance nodes) possesses a pure subgame-perfect equilibrium.

    Every finite game tree of perfect information possesses a pure Nash equilibrium in its strategic form.

    A root-to-leaf path in T.

    The payoff vector at a terminal leaf of T.

    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.LeafPath.payoff_decision {ι : Type u} {p : ι} {A : Type} {instF : Fintype A} {instN : Nonempty A} {next : A → PerfectInfoTree ι} (a : A) (sub : (next a).LeafPath) :
    (decision a sub).payoff = sub.payoff
    @[simp]
    theorem Cslib.GameTheory.Extensive.PerfectInfoTree.LeafPath.payoff_chance {ι : Type u} {C : Type} {instF : Fintype C} {prob : C → ℝ} {hprob : IsMixedStrategy prob} {next : C → PerfectInfoTree ι} (c : C) (sub : (next c).LeafPath) :
    (chance c sub).payoff = sub.payoff

    A tree is deterministic if it contains no chance nodes.

    Distinct leaves of T assign distinct payoffs to every player.

    No decision node in T has a tie in backward-induction continuation payoffs for the deciding player across distinct actions.

    In a deterministic tree, the backward-induction payoff vector equals the payoff of some terminal leaf.

    A deterministic tree with distinct leaf payoffs has no continuation ties.

    When distinct actions at every decision node yield distinct backward-induction continuation payoffs for the deciding player, every pure subgame-perfect equilibrium coincides with backwardInduction.

    Under HasNoContinuationTies, T has a unique pure subgame-perfect equilibrium.

    Uniqueness of pure subgame-perfect equilibrium: every deterministic finite perfect-information game tree with pairwise distinct leaf payoffs has a unique pure subgame-perfect equilibrium (a corollary of existsUnique_isPureSPE_of_hasNoContinuationTies).