AFTD Auto-Formalizing Theoretical Domains

knapsack5_expected_payoff

def

The expected principal payoff knapsack5_expected_payoff from an agent choice function choice : Bool × Bool × Bool → Option (Finset (Fin 5)) in the five-item knapsack instance, defined as the sum over ω : Bool × Bool × Bool of (knapsack5_prob ω : ℝ) * menu_principal_payoff (knapsack5_principal_val ω) (choice ω).

Statement

open scoped BigOperators in
noncomputable def knapsack5_expected_payoff
    (choice : Bool × Bool × Bool → Option (Finset (Fin 5))) : ℝ
Defined in
arXiv:2611.33095 Section 3
Verified
29 Nov 2026
Axioms
none listed
Built on 3
  • knapsack5_probThe rational probability mass function knapsack5_prob : Bool × Bool × Bool → ℚ assigns to each state (a, b, j) the product of (if a then 1…
  • knapsack5_principal_valThe function knapsack5_principal_val : Bool × Bool × Bool → Fin 5 → ℝ maps an uncurried state tuple (a, b, j) and an item i : Fin 5 to the…
  • menu_principal_payoffGiven an item valuation x : E → ℝ, the principal's payoff from an agent action a : Option (Finset E) is ∑ i ∈ S, x i if a = some S and 0…
Used by 1

Read back from the Lean

Given a decision policy choice : Bool × Bool × Bool → Option (Finset (Fin 5)), knapsack5_expected_payoff choice is defined as the sum over all states ω = (a, b, j) in Bool × Bool × Bool of the probability knapsack5_prob ω (cast to ℝ) multiplied by menu_principal_payoff (knapsack5_principal_val ω) (choice ω).

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

open scoped BigOperators in
/-- Expected principal payoff under agent choices. -/
noncomputable def knapsack5_expected_payoff
    (choice : Bool × Bool × Bool → Option (Finset (Fin 5))) : ℝ := ∑ ω : Bool × Bool × Bool, (knapsack5_prob ω : ℝ) *
    menu_principal_payoff (knapsack5_principal_val ω) (choice ω)
See it in the graphDiscuss this resultChallenge it