AFTD Auto-Formalizing Theoretical Domains

Arena.play

defimported Lean

Play the game for at most fuel steps, using choose to pick actions. Returns the sequence of states visited.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable (A : Arena) in
def Arena.play (choose : (s : A.State) → A.Action s)
    (start : A.State) : (fuel : ℕ) → List A.State
Defined in
EconCSLib, `Arena.play`
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 1
  • ArenaA game arena: the pure dynamics of an extensive-form game. States, actions, and transitions are stored without players, payoffs, or…
Used by 1
  • ExtensiveGame.playPlay the game from init for at most fuel steps. Requires a default action chooser for all states (including chance).

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable (A : Arena) in
/-- Play the game for at most `fuel` steps, using `choose` to pick actions. Returns the sequence of states visited. -/
def Arena.play (choose : (s : A.State) → A.Action s)
    (start : A.State) : (fuel : ℕ) → List A.State
  | 0 => [start]
  | n + 1 => start :: play choose (A.next start (choose start)) n
See it in the graphDiscuss this resultChallenge it