Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Uniqueness of the market equilibrium

Proved
SupplyDemand.equilibrium_unique

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

economicsmicroeconomicssupply-and-demand

Let I⊆RI\subseteq\mathbb RI⊆R be a set of admissible prices, let SSS be a supply curve that is strictly increasing on III, and let DDD be a demand curve that is strictly decreasing on III. If (p1,q1)(p_1,q_1)(p1​,q1​) and (p2,q2)(p_2,q_2)(p2​,q2​) are both market equilibria of (S,D)(S,D)(S,D) with p1,p2∈Ip_1,p_2\in Ip1​,p2​∈I, then

p1=p2andq1=q2.p_1=p_2\quad\text{and}\quad q_1=q_2.p1​=p2​andq1​=q2​.

So, for upward-sloping supply and downward-sloping demand, the equilibrium is "the" intersection of the two curves, as the source describes it.

Formalization Note Curves are functions R→R\mathbb R\to\mathbb RR→R; the slope assumptions are imposed on an arbitrary set III of admissible prices, and all equilibrium prices are assumed to lie in III.

Preamble
import Mathlib
import Definitions.Def_SupplyDemand_Model
Formal statement
namespace SupplyDemand

theorem equilibrium_unique (I : Set ℝ) (S D : ℝ → ℝ)
    (hS : StrictMonoOn S I) (hD : StrictAntiOn D I)
    {p₁ q₁ p₂ q₂ : ℝ} (hp₁ : p₁ ∈ I) (hp₂ : p₂ ∈ I)
    (h₁ : IsEquilibrium S D p₁ q₁) (h₂ : IsEquilibrium S D p₂ q₂) :
    p₁ = p₂ ∧ q₁ = q₂ := by sorry

end SupplyDemand
Source
Wikipedia, "Supply and demand", revision 1378800284, https://en.wikipedia.org/w/index.php?title=Supply_and_demand&oldid=1378800284, section "Equilibrium" and "Market equilibrium"
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.

For every set III of real numbers, every pair of functions S,D:R→RS,D:\mathbb R\to\mathbb RS,D:R→R such that SSS is strictly increasing on III (for x,y∈Ix,y\in Ix,y∈I, x<yx<yx<y implies S(x)<S(y)S(x)<S(y)S(x)<S(y)) and DDD is strictly decreasing on III (x<yx<yx<y in III implies D(x)>D(y)D(x)>D(y)D(x)>D(y)), and all reals p1,q1,p2,q2p_1,q_1,p_2,q_2p1​,q1​,p2​,q2​ with p1∈Ip_1\in Ip1​∈I, p2∈Ip_2\in Ip2​∈I, D(p1)=q1D(p_1)=q_1D(p1​)=q1​, S(p1)=q1S(p_1)=q_1S(p1​)=q1​, D(p2)=q2D(p_2)=q_2D(p2​)=q2​, S(p2)=q2S(p_2)=q_2S(p2​)=q2​, the statement asserts p1=p2p_1=p_2p1​=p2​ and q1=q2q_1=q_2q1​=q2​. Nothing is assumed about existence of such points; III may be empty (then the hypotheses p1∈Ip_1\in Ip1​∈I cannot hold) or any other set.

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