AFTD Auto-Formalizing Theoretical Domains

EconCSLib.StrategicGame.deviate

abbrevimported Lean

Unilateral deviation in a game-bound profile: player i switches to s', while all other players keep their current strategies.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N U : Type*} in
abbrev EconCSLib.StrategicGame.deviate {G : EconCSLib.StrategicGame N U} [DecidableEq N]
    (σ : G.Profile) (i : N) (s' : G.strategy i) : G.Profile
Defined in
EconCSLib, `StrategicGame.deviate`
Lean proof
By xbei, Claude (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.
What was changed in EconCSLib.StrategicGame.deviate
--- EconCSLib/GameTheory/StrategicGame/Basic.lean:53 (StrategicGame.deviate)
+++ as compiled here
@@ -1,4 +1,5 @@
-/-- Unilateral deviation in a game-bound profile: player `i` switches to `s'`,
-    while all other players keep their current strategies. -/
-abbrev deviate {G : StrategicGame N U} [DecidableEq N]
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+variable {N U : Type*} in
+abbrev EconCSLib.StrategicGame.deviate {G : EconCSLib.StrategicGame N U} [DecidableEq N]
     (σ : G.Profile) (i : N) (s' : G.strategy i) : G.Profile :=
Verified
08 Oct 2026
Axioms
none listed
Built on 2
  • EconCSLib.StrategicGame.ProfileThe type of strategy profiles for game G: each player picks a strategy. This is a dependent function ∀ i, G.strategy i. The profile…
  • EconCSLib.StrategicGameA strategic game (normal-form game) with players N and utilities in U. The structure records only the bare data: strategy spaces and a…
Used by 26

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N U : Type*} in
/-- Unilateral deviation in a game-bound profile: player `i` switches to `s'`, while all other players keep their current strategies. -/
abbrev EconCSLib.StrategicGame.deviate {G : EconCSLib.StrategicGame N U} [DecidableEq N]
    (σ : G.Profile) (i : N) (s' : G.strategy i) : G.Profile :=
  Function.update σ i s'
See it in the graphDiscuss this resultChallenge it