AFTD Auto-Formalizing Theoretical Domains

ExtensiveGame.StrategyProfile.actionAt

defimported Lean

Given a strategy profile, extract the action at a nonterminal player-controlled state. Returns none when the state is non-player-controlled. Terminal states cannot be queried: their mover labels are semantically irrelevant and their action fibers are empty.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N : Type*} {U : Type*} in
def ExtensiveGame.StrategyProfile.actionAt {G : ExtensiveGame N U}
    (σ : StrategyProfile G) (s : G.State)
    (hnonterminal : ¬ G.isTerminal s) :
    Option (Σ _ : N, G.Action s)
Defined in
EconCSLib, `ExtensiveGame.StrategyProfile.actionAt`
Lean proof
By xbei, Lazyfill (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 5
  • ArenaA game arena: the pure dynamics of an extensive-form game. States, actions, and transitions are stored without players, payoffs, or…
  • ExtensiveGame.StrategyProfileA strategy profile: a strategy for each player.
  • ControlledGameA payoff-free controlled extensive-game skeleton. ControlledGame adds only a distinguished initial state and a mover label to the pure…
  • ExtensiveGame.isTerminalA state is terminal.
  • ExtensiveGameA state-payoff extensive game: a payoff-free controlled game together with a convenient endpoint-state payoff. * mover s = who controls…

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N : Type*} {U : Type*} in
/-- Given a strategy profile, extract the action at a nonterminal player-controlled state. Returns `none` when the state is non-player-controlled. Terminal states cannot be queried: their mover labels are semantically irrelevant and their action fibers are empty. -/
def ExtensiveGame.StrategyProfile.actionAt {G : ExtensiveGame N U}
    (σ : StrategyProfile G) (s : G.State)
    (hnonterminal : ¬ G.isTerminal s) :
    Option (Σ _ : N, G.Action s) :=
  match h : G.mover s with
  | some i => some ⟨i, σ i s h hnonterminal⟩
  | none => none
See it in the graphDiscuss this resultChallenge it