AFTD Auto-Formalizing Theoretical Domains

is_menu_best_response

def

Given a set of finite sets A : Set (Finset E), an agent valuation y : E → ℝ, and an action a : Option (Finset E), is_menu_best_response A y a holds if a is available (either a = none or a = some S with S ∈ A) and the agent utility (0 for none and ∑ i ∈ S, y i for some S) is at least 0 and weakly dominates ∑ i ∈ S, y i for every S ∈ A.

Statement

def is_menu_best_response {E : Type*} (A : Set (Finset E)) (y : E → ℝ) (a : Option (Finset E)) : Prop
Defined in
arXiv:2611.33095 Section 2.1
Verified
25 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

For a type E, a set A of finite subsets of E (Set (Finset E)), a valuation function y : E → ℝ, and an optional choice a : Option (Finset E), is_menu_best_response A y a asserts that: 1. If a is some S, then S ∈ A (and trivially True if a is none); 2. For all S ∈ A, the sum ∑ i ∈ S, y i is at most 0 (if a is none) or at most ∑ i ∈ T, y i (if a is some T); 3. 0 is at most 0 (if a is none, which is always true) or at most ∑ i ∈ T, y i (if a is some T). Equivalently: - If a = none, every S ∈ A satisfies ∑ i ∈ S, y i ≤ 0. - If a = some T, then T ∈ A, ∑ i ∈ T, y i ≥ 0, and T maximizes the sum of y over all elements of A (i.e., ∑ i ∈ S, y i ≤ ∑ i ∈ T, y i for all S ∈ A).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- An action is a best response for the agent if it is available (accepted or abstention) and maximizes agent utility. -/
def is_menu_best_response {E : Type*} (A : Set (Finset E)) (y : E → ℝ) (a : Option (Finset E)) : Prop := (match a with | none => True | some S => S ∈ A) ∧
  (∀ S ∈ A, (∑ i ∈ S, y i) ≤ (match a with | none => 0 | some T => ∑ i ∈ T, y i)) ∧
  (0 ≤ match a with | none => 0 | some T => ∑ i ∈ T, y i)
See it in the graphDiscuss this resultChallenge it