StochasticGameTree.expectedPayoffWithFuel
defimported Lean
Fuel-bounded expected payoff under a pure strategy. If fuel runs out, the default payoff is zero; expectedPayoff below supplies tree-size fuel.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open StochasticGameTree in variable {N : Type*} in noncomputable def StochasticGameTree.expectedPayoffWithFuel (fuel : ℕ) (σ : Strategy N) (g : StochasticGameTree N) (i : N) : ℚ
- Defined in
- EconCSLib, `StochasticGameTree.expectedPayoffWithFuel`
- Lean proof
- By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at
1a88f809b538(Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.StochasticGameTree.expectedPayoffWithFuel← StochasticGameTree.expectedPayoffWithFuel (EconCSLib/GameTheory/ExtensiveGame/StochasticGameTree.lean:64): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 4
- GameTree.outcome_LeafGameTree.outcome_Leaf
- GameTree.outcome_NodeGameTree.outcome_Node
- StochasticGameTree.StrategyA pure strategy chooses a child at every player-controlled node.
- StochasticGameTreeStochasticGameTree
- Used by 2
- StochasticGameTree.fairCoin_expected_player0StochasticGameTree.fairCoin_expected_player0
- StochasticGameTree.expectedPayoffExpected payoff with enough fuel for every branch of the finite tree.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open StochasticGameTree in variable {N : Type*} in /-- Fuel-bounded expected payoff under a pure strategy. If fuel runs out, the default payoff is zero; `expectedPayoff` below supplies tree-size fuel. -/ noncomputable def StochasticGameTree.expectedPayoffWithFuel (fuel : ℕ) (σ : Strategy N) (g : StochasticGameTree N) (i : N) : ℚ := match fuel with | 0 => 0 | n + 1 => match g with | Leaf p => p i | Player m h t => expectedPayoffWithFuel n σ (σ m h t).val i | Chance p h t => p * expectedPayoffWithFuel n σ h i + (t.map (fun child => child.1 * expectedPayoffWithFuel n σ child.2 i)).sum