AFTD Auto-Formalizing Theoretical Domains

isNashEq_iff

theoremverifiedformalizationimported Lean

T6: The checker correctly decides Nash equilibrium (soundness and completeness).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N U : Type*} [DecidableEq N] [Preorder U] [DecidableRel (· ≤ · : U → U → Prop)] in
open EconCSLib.StrategicGame in
theorem isNashEq_iff [Fintype N] (G : EconCSLib.StrategicGame N U) [∀ i, Fintype (G.strategy i)]
    (σ : G.Profile) :
    isNashEq G σ = true ↔ IsNashEquilibrium G σ
Formalizes
EconCSLib, `isNashEq_iff`
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.
What was changed in isNashEq_iff
--- EconCSLib/GameTheory/StrategicGame/Checker.lean:30 (isNashEq_iff)
+++ as compiled here
@@ -1,3 +1,6 @@
-/-- T6: The checker correctly decides Nash equilibrium (soundness and completeness). -/
-theorem isNashEq_iff [Fintype N] (G : StrategicGame N U) [∀ i, Fintype (G.strategy i)]
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+variable {N U : Type*} [DecidableEq N] [Preorder U] [DecidableRel (· ≤ · : U → U → Prop)] in
+open EconCSLib.StrategicGame in
+theorem isNashEq_iff [Fintype N] (G : EconCSLib.StrategicGame N U) [∀ i, Fintype (G.strategy i)]
     (σ : G.Profile) :
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 9

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true invariable {N U : Type*} [DecidableEq N] [Preorder U] [DecidableRel (· ≤ · : U → U → Prop)] inopen EconCSLib.StrategicGame in/-- T6: The checker correctly decides Nash equilibrium (soundness and completeness). -/theorem isNashEq_iff [Fintype N] (G : EconCSLib.StrategicGame N U) [∀ i, Fintype (G.strategy i)]    (σ : G.Profile) :    isNashEq G σ = true ↔ IsNashEquilibrium G σ := by  simp [isNashEq, IsNashEquilibrium, IsBestResponse]
See it in the graphDiscuss this resultChallenge it