AFTD Auto-Formalizing Theoretical Domains

ExtensiveGame.reachProbFrom

defimported Lean

Finite-fuel probability of reaching target from start under a behavior profile. The definition records the probability of hitting target within the remaining fuel. It is intentionally fuel-indexed, matching ExtensiveGame.Play, because the Arena framework also supports infinite games.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {iota U : Type*} in
noncomputable def ExtensiveGame.reachProbFrom {G : ExtensiveGame iota U}
    [DecidableEq G.State] [(s : G.State) -> Fintype (G.Action s)]
    (beta : G.BehaviorProfile) (start target : G.State) : Nat -> Real
Defined in
EconCSLib, `ExtensiveGame.reachProbFrom`
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 9
Used by 1

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {iota U : Type*} in
/-- Finite-fuel probability of reaching `target` from `start` under a behavior profile. The definition records the probability of hitting `target` within the remaining fuel. It is intentionally fuel-indexed, matching `ExtensiveGame.Play`, because the Arena framework also supports infinite games. -/
noncomputable def ExtensiveGame.reachProbFrom {G : ExtensiveGame iota U}
    [DecidableEq G.State] [(s : G.State) -> Fintype (G.Action s)]
    (beta : G.BehaviorProfile) (start target : G.State) : Nat -> Real
  | 0 => if start = target then 1 else 0
  | fuel + 1 =>
      if start = target then
        1
      else
        Finset.univ.sum fun a : G.Action start =>
          beta.actionProb start a * reachProbFrom beta (G.next start a) target fuel
See it in the graphDiscuss this resultChallenge it