AFTD Auto-Formalizing Theoretical Domains

ExchangeEconomy

structure

A pure exchange economy with agent type Agent and commodity type Good consists of a non-negative initial endowment of each good for each agent (endowment : Agent → Good → ℝ with endowment_nonneg : ∀ i g, 0 ≤ endowment i g) and a real-valued utility function over consumption bundles for each agent (utility : Agent → (Good → ℝ) → ℝ).

Statement

structure ExchangeEconomy (Agent Good : Type*)
Defined in
Mas-Colell, Whinston, and Green, Microeconomic Theory (1995), Chapter 15, Section 15.B; Debreu, Theory of Value (1959).
Verified
01 Oct 2026
Axioms
none listed
Used by 12
  • is_walrasian_equilibriumIn a pure exchange economy E with finite agents Agent and finite commodities Good, a price vector p : Good → ℝ and an allocation x : Agent…
  • pareto_optimal_implies_weakly_pareto_optimalIn a pure exchange economy E with finite, nonempty agent type Agent, if an allocation x : Agent → Good → ℝ is Pareto optimal in E, then x…
  • first_welfare_theoremThe First Fundamental Theorem of Welfare Economics: in a pure exchange economy E with finite, nonempty agent type Agent and finite,…
  • is_weakly_pareto_optimalIn a pure exchange economy E with finite agents Agent, an allocation x : Agent → Good → ℝ is weakly Pareto optimal if x is feasible in E…
  • walrasian_expenditure_gt_of_utility_gtIn a pure exchange economy E with finite agents Agent and finite commodities Good, if (p, x) is a Walrasian equilibrium, then for any…
  • endowment_is_feasibleIn any pure exchange economy with finite agents, the initial endowment allocation is feasible.
  • walras_lawIn a pure exchange economy E with finite agents Agent and finite commodities Good, if an allocation x : Agent → Good → ℝ satisfies budget…
  • first_welfare_theorem_weakIn a pure exchange economy E with finite, nonempty agent type Agent and finite commodity type Good, if price vector p : Good → ℝ has…
  • is_feasible_allocationIn a pure exchange economy E with finite agents Agent, an allocation x : Agent → Good → ℝ is feasible if every agent receives a…
  • is_pareto_optimalIn a pure exchange economy E with finite agents Agent, an allocation x : Agent → Good → ℝ is Pareto optimal if x is feasible in E and…
  • walrasian_expenditure_ge_of_utility_geIn a pure exchange economy E with finite agents Agent and finite, nonempty commodity type Good, if price vector p has strictly positive…
  • walrasian_budget_exhaustionIn a pure exchange economy E with finite agents Agent and finite, nonempty commodity type Good, if price vector p has strictly positive…

Read back from the Lean

A structure ExchangeEconomy parameterized by types Agent and Good, containing: 1. endowment: a function Agent → Good → ℝ specifying the quantity of each good held by each agent; 2. utility: a function Agent → (Good → ℝ) → ℝ assigning to each agent a real-valued utility function defined on consumption bundles (functions from Good to ℝ); 3. endowment_nonneg: the condition that for every agent i : Agent and every good g : Good, 0 ≤ endowment i g.

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

/-- A pure exchange economy with agents `Agent` and commodities `Good`. -/
structure ExchangeEconomy (Agent Good : Type*) where
  endowment : Agent → Good → ℝ
  utility : Agent → (Good → ℝ) → ℝ
  endowment_nonneg : ∀ i g, 0 ≤ endowment i g
See it in the graphDiscuss this resultChallenge it