Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Simultaneous shifts: Ibn Taymiyyah's law of price

Proved
SupplyDemand.ibn_taymiyyah

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 S1,S2S_1,S_2S1​,S2​ be supply curves strictly increasing on III and D1,D2D_1,D_2D1​,D2​ demand curves strictly decreasing on III. Let (p1,q1)(p_1,q_1)(p1​,q1​) be a market equilibrium of (S1,D1)(S_1,D_1)(S1​,D1​) and (p2,q2)(p_2,q_2)(p2​,q2​) a market equilibrium of (S2,D2)(S_2,D_2)(S2​,D2​), with p1,p2∈Ip_1,p_2\in Ip1​,p2​∈I. Then:

  1. if demand increases (D1<D2D_1<D_2D1​<D2​ on III) while supply decreases (S2<S1S_2<S_1S2​<S1​ on III), then p1<p2p_1<p_2p1​<p2​;
  2. if demand decreases (D2<D1D_2<D_1D2​<D1​ on III) while supply increases (S1<S2S_1<S_2S1​<S2​ on III), then p2<p1p_2<p_1p2​<p1​.

This is the precise form of the quotation "If desire for goods increases while its availability decreases, its price rises. On the other hand, if availability of the good increases and the desire for it decreases, the price comes down." Nothing is asserted about the quantity, whose direction is undetermined.

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 ibn_taymiyyah (I : Set ℝ) (S₁ S₂ D₁ D₂ : ℝ → ℝ)
    (hS₁ : StrictMonoOn S₁ I) (hS₂ : StrictMonoOn S₂ I)
    (hD₁ : StrictAntiOn D₁ 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 ∈ I, D₁ p < D₂ p) → (∀ p ∈ I, S₂ p < S₁ p) → p₁ < p₂) ∧
    ((∀ p ∈ I, D₂ p < D₁ p) → (∀ p ∈ I, S₁ p < S₂ p) → p₂ < p₁) := 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 "History" (quotation of Ibn Taymiyyah)
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 I⊆RI\subseteq\mathbb RI⊆R, all functions S1,S2,D1,D2:R→RS_1,S_2,D_1,D_2:\mathbb R\to\mathbb RS1​,S2​,D1​,D2​:R→R with S1,S2S_1,S_2S1​,S2​ strictly increasing on III and D1,D2D_1,D_2D1​,D2​ strictly decreasing on III, and all reals p1,q1,p2,q2p_1,q_1,p_2,q_2p1​,q1​,p2​,q2​ with p1,p2∈Ip_1,p_2\in Ip1​,p2​∈I, D1(p1)=q1D_1(p_1)=q_1D1​(p1​)=q1​, S1(p1)=q1S_1(p_1)=q_1S1​(p1​)=q1​, D2(p2)=q2D_2(p_2)=q_2D2​(p2​)=q2​, S2(p2)=q2S_2(p_2)=q_2S2​(p2​)=q2​, the statement asserts both of the following implications: (a) if D1(p)<D2(p)D_1(p)<D_2(p)D1​(p)<D2​(p) for all p∈Ip\in Ip∈I and S2(p)<S1(p)S_2(p)<S_1(p)S2​(p)<S1​(p) for all p∈Ip\in Ip∈I, then p1<p2p_1<p_2p1​<p2​; (b) if D2(p)<D1(p)D_2(p)<D_1(p)D2​(p)<D1​(p) for all p∈Ip\in Ip∈I and S1(p)<S2(p)S_1(p)<S_2(p)S1​(p)<S2​(p) for all p∈Ip\in Ip∈I, then p2<p1p_2<p_1p2​<p1​. No conclusion about q1,q2q_1,q_2q1​,q2​ is drawn.

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