Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A glut of one good is balanced by a shortage of another

Proved
SaysLaw.glut_balanced_by_shortage

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

economicsgeneral-equilibriummacroeconomicssays-law

Throughout, ι\iotaι is a finite set of agents and GGG a finite set of goods; p=(pg)g∈Gp=(p_g)_{g\in G}p=(pg​)g∈G​ is a real price vector; si=(si,g)gs_i=(s_{i,g})_gsi​=(si,g​)g​ and di=(di,g)gd_i=(d_{i,g})_gdi​=(di,g​)g​ are real vectors giving the quantities agent iii brings to market (supplies) and plans to buy (demands); ⟨p,x⟩=∑g∈Gpgxg\langle p,x\rangle=\sum_{g\in G}p_g x_g⟨p,x⟩=∑g∈G​pg​xg​ is the market value of a bundle xxx; and zg=∑i∈ι(di,g−si,g)z_g=\sum_{i\in\iota}(d_{i,g}-s_{i,g})zg​=∑i∈ι​(di,g​−si,g​) is the aggregate excess demand for good ggg.

Assume all prices are strictly positive, pg>0p_g>0pg​>0 for every ggg, and every agent obeys Say's budget principle ⟨p,di⟩=⟨p,si⟩\langle p,d_i\rangle=\langle p,s_i\rangle⟨p,di​⟩=⟨p,si​⟩. If some good g0g_0g0​ is in excess supply, zg0<0z_{g_0}<0zg0​​<0, then some other good is in excess demand:

∃ g≠g0  with  zg>0.\exists\, g\neq g_0\ \text{ with }\ z_g>0 .∃g=g0​  with  zg​>0.

This is Say's claim that "the superabundance of goods of one description arises from the deficiency of goods of another description".

Preamble
import Mathlib
import Definitions.Def_SaysLaw_Model
Formal statement
namespace SaysLaw

theorem glut_balanced_by_shortage {ι G : Type*} [Fintype ι] [Fintype G]
    (p : G → ℝ) (hp : ∀ g, 0 < p g) (supply demand : ι → G → ℝ)
    (hsay : SaysBudget p supply demand) (g₀ : G)
    (hglut : excessDemand supply demand g₀ < 0) :
    ∃ g, g ≠ g₀ ∧ 0 < excessDemand supply demand g := by sorry

end SaysLaw
Source
Wikipedia, "Say's law" (PDF export supplied with the request); https://en.wikipedia.org/wiki/Say%27s_law
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Disclosure — NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, with full knowledge of the source article and of the intended meaning. It is not independent, blind testimony and must not be mistaken for one. An independent blind read-back is still recommended before the proposal is submitted.

Let ι\iotaι and GGG be arbitrary finite types, p:G→Rp:G\to\mathbb Rp:G→R with pg>0p_g>0pg​>0 for every g∈Gg\in Gg∈G, and s,d:ι→G→Rs,d:\iota\to G\to\mathbb Rs,d:ι→G→R arbitrary. Write zg=∑i∈ι(di,g−si,g)z_g=\sum_{i\in\iota}(d_{i,g}-s_{i,g})zg​=∑i∈ι​(di,g​−si,g​). Assume (i) for every agent iii, ∑gpgdi,g=∑gpgsi,g\sum_g p_g d_{i,g}=\sum_g p_g s_{i,g}∑g​pg​di,g​=∑g​pg​si,g​, and (ii) a specified good g0∈Gg_0\in Gg0​∈G has zg0<0z_{g_0}<0zg0​​<0. Then there exists a good g∈Gg\in Gg∈G with g≠g0g\neq g_0g=g0​ and zg>0z_g>0zg​>0 (strictly). Hypothesis (ii) forces GGG to be nonempty; if ι\iotaι is empty then z≡0z\equiv 0z≡0, so (ii) cannot hold and the statement is vacuous for that case. Nothing is said about how many goods are in excess demand or about the size of zgz_gzg​.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me