AFTD Auto-Formalizing Theoretical Domains

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.
Verified
08 Oct 2026
Axioms
none listed
Built on 4
Used by 2

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
See it in the graphDiscuss this resultChallenge it