Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Consumer surplus at an equal-markup optimum is log⁡(1+r)\log(1+r)log(1+r)

Proved
PriceQualityService.Surplus.consumer_surplus_at_optimum

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

consumer-surplusmultinomial-logitoperations-researchp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let p,q,t∈RN\mathbf p,\mathbf q,\mathbf t\in\mathbb R^Np,q,t∈RN and r∈Rr\in\mathbb Rr∈R. Suppose every product carries the markup 1+r1+r1+r,

pi−ciqi2−ti(ai−biqi)=1+rfor all i∈N,p_i-c_iq_i^2-t_i(a_i-b_iq_i)=1+r\quad\text{for all } i\in\mathcal N,pi​−ci​qi2​−ti​(ai​−bi​qi​)=1+rfor all i∈N,

and the profit equals rrr, Π(p,q,t;N)=r\Pi(\mathbf p,\mathbf q,\mathbf t;\mathcal N)=rΠ(p,q,t;N)=r. Then

∑i∈Nexp⁡(αiqi−pi+tisi)=randCS(p,q,t)=log⁡(1+r).\sum_{i\in\mathcal N}\exp(\alpha_iq_i-p_i+t_is_i)=r\qquad\text{and}\qquad \mathrm{CS}(\mathbf p,\mathbf q,\mathbf t)=\log(1+r).i∈N∑​exp(αi​qi​−pi​+ti​si​)=randCS(p,q,t)=log(1+r).

This is the chain of equalities in the proof of Proposition 5 that expresses the consumer surplus at each of the three optima through the optimal profit, so that the ordering of profits becomes an ordering of consumer surplus.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_Surplus_Profit
import Definitions.Def_PriceQualityService_Surplus_ConsumerSurplus
Formal statement
namespace PriceQualityService.Surplus

open Finset

/-- Consumer surplus at an equal-markup optimum, Wang, Ke & Cui, accepted manuscript
(SSRN 3766191), Online Supplement pp. 1–2, proof of Proposition 5 (the chain of equalities
ending in `log(1 + r†)`). If every product's markup `p_i − c_i q_i² − t_i(a_i − b_i q_i)` equals
`1 + r` and the profit `Π(p, q, t; 𝒩)` equals `r`, then the total attraction
`∑_i exp(α_i q_i − p_i + t_i s_i)` equals `r` and consumer surplus equals `log(1 + r)`. -/
theorem consumer_surplus_at_optimum {N : ℕ} (α a b c s : Fin N → ℝ) (p q t : Fin N → ℝ)
    (r : ℝ) (hm : ∀ i, p i - c i * q i ^ 2 - t i * (a i - b i * q i) = 1 + r)
    (hprofit : PriceQualityService.Joint.profit α a b c s p q t = r) :
    ∑ i, PriceQualityService.Joint.attraction α s p q t i = r ∧ consumerSurplus α s p q t = Real.log (1 + r) := by sorry

end PriceQualityService.Surplus
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), Online Supplement pp. 1–2 (PDF pp. 34–35), proof of Proposition 5
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · 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