EconCSLib.GameTheory.ExtensiveGame.StochasticGameTree #
Finite perfect-information game trees with explicit chance nodes.
This module intentionally keeps stochastic trees separate from the existing
no-chance GameTree type. Chance nodes carry rational weights on a nonempty
finite successor list; the local probability-sum condition is a predicate rather
than a constructor field, so the recursive data type stays lightweight.
Main definitions #
StochasticGameTree— terminal, player, and chance nodes.StochasticGameTree.ChanceProbabilitiesSumToOne— local probability check.StochasticGameTree.Strategy— pure contingent plans at player nodes.StochasticGameTree.expectedPayoffWithFuel— executable fuel-bounded expected-payoff evaluator.StochasticGameTree.expectedPayoff— expected payoff using tree-size fuel.StochasticGameTree.ofGameTree— embed ordinary no-chance trees.
- Leaf {N : Type u_1} (payoff : N → ℚ) : StochasticGameTree N
- Player {N : Type u_1} (mover : N) (head : StochasticGameTree N) (tail : List (StochasticGameTree N)) : StochasticGameTree N
- Chance {N : Type u_1} (headProb : ℚ) (head : StochasticGameTree N) (tail : List (ℚ × StochasticGameTree N)) : StochasticGameTree N
Instances For
A pure strategy chooses a child at every player-controlled node.
Equations
- StochasticGameTree.Strategy N = (N → (h : StochasticGameTree N) → (t : List (StochasticGameTree N)) → { c : StochasticGameTree N // c ∈ h :: t })
Instances For
The trivial head-selecting strategy, useful for examples that have no strategically relevant player choice.
Equations
- StochasticGameTree.headStrategy x✝¹ h x✝ = ⟨h, ⋯⟩
Instances For
Embed an ordinary no-chance GameTree into the stochastic tree layer.
Equations
Instances For
Local probability mass check at a chance node.
Equations
Instances For
Fuel-bounded expected payoff under a pure strategy. If fuel runs out, the
default payoff is zero; expectedPayoff below supplies tree-size fuel.
Equations
- One or more equations did not get rendered due to their size.
- StochasticGameTree.expectedPayoffWithFuel 0 σ g i = 0
- StochasticGameTree.expectedPayoffWithFuel n.succ σ (StochasticGameTree.Leaf p) i = p i
- StochasticGameTree.expectedPayoffWithFuel n.succ σ (StochasticGameTree.Player m h t) i = StochasticGameTree.expectedPayoffWithFuel n σ (↑(σ m h t)) i
Instances For
Expected payoff with enough fuel for every branch of the finite tree.
Equations
Instances For
A one-step fair coin game for examples and CI regression checks.
Equations
- One or more equations did not get rendered due to their size.