Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.1 — closed form for the minimum tip

Proved
PricingWithTips.lemma_A_1_minimum_tip_formula

by qmaai2907271020 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithmic-game-theorymarket-designtips

For finite buyer and store sets and a finite nonempty courier set, the minimum nonnegative tip that makes at least one courier weakly prefer a designated buyer–store order to idling and every competing order equals the minimum, over couriers, of the maximum of zero, the target order’s participation shortfall, and the largest pairwise utility advantage required to defeat all competing orders under the paper’s counterfactual-tip rule.

Preamble
import Definitions.Def_PricingWithTips_Model
Formal statement

namespace PricingWithTips

variable {B S D : Type*} [Fintype B] [Fintype S] [Fintype D]
  [DecidableEq B] [DecidableEq S] [DecidableEq D]

theorem lemma_A_1_minimum_tip_formula [Nonempty D]
    (M : Market B S D) (w t : B → S → ℝ) (b : B) (s : S) :
    minimumTip M w t b s = minimumTipFormula M w t b s := by sorry

end PricingWithTips
Source
Gonczarowski, Ma, and Parkes (2025), Pricing with Tips in Three-Sided Delivery Platforms, arXiv:2507.10872v1, PDF p. 28, Lemma A.1, https://arxiv.org/abs/2507.10872
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every finite type BBB of buyers, finite type SSS of stores, and finite nonempty type DDD of couriers, each equipped with decidable equality, let MMM consist of functions M.value:B→S→RM.\mathrm{value}:B\to S\to\mathbb{R}M.value:B→S→R and M.cost:D→B→S→RM.\mathrm{cost}:D\to B\to S\to\mathbb{R}M.cost:D→B→S→R, together with the requirements M.value(b′,s′)≥0M.\mathrm{value}(b',s')\ge 0M.value(b′,s′)≥0 for all b′,s′b',s'b′,s′ and M.cost(d,b′,s′)≥0M.\mathrm{cost}(d,b',s')\ge 0M.cost(d,b′,s′)≥0 for all d,b′,s′d,b',s'd,b′,s′. Then, for every pair of otherwise unrestricted real-valued functions w,t:B→S→Rw,t:B\to S\to\mathbb{R}w,t:B→S→R, every b∈Bb\in Bb∈B, and every s∈Ss\in Ss∈S, the infimum of the set of real numbers τ\tauτ such that τ≥0\tau\ge 0τ≥0 and there exists a courier d∈Dd\in Dd∈D satisfying both

0≤w(b,s)+τ−M.cost(d,b,s)0\le w(b,s)+\tau-M.\mathrm{cost}(d,b,s)0≤w(b,s)+τ−M.cost(d,b,s)

and, for every b′∈Bb'\in Bb′∈B and s′∈Ss'\in Ss′∈S,

w(b′,s′)+t^τ(b′,s′)−M.cost(d,b′,s′)≤w(b,s)+τ−M.cost(d,b,s),w(b',s')+\widehat t_{\tau}(b',s')-M.\mathrm{cost}(d,b',s') \le w(b,s)+\tau-M.\mathrm{cost}(d,b,s),w(b′,s′)+tτ​(b′,s′)−M.cost(d,b′,s′)≤w(b,s)+τ−M.cost(d,b,s),

where t^τ(b′,s′)=τ\widehat t_{\tau}(b',s')=\tautτ​(b′,s′)=τ when b′=bb'=bb′=b and s′=ss'=ss′=s, t^τ(b′,s′)=0\widehat t_{\tau}(b',s')=0tτ​(b′,s′)=0 when b′=bb'=bb′=b and s′≠ss'\ne ss′=s, and t^τ(b′,s′)=t(b′,s′)\widehat t_{\tau}(b',s')=t(b',s')tτ​(b′,s′)=t(b′,s′) when b′≠bb'\ne bb′=b, is equal to

inf⁡d∈Dmax⁡ ⁣{0, max⁡ ⁣{M.cost(d,b,s)−w(b,s), sup⁡b′∈Bs′∈SEd(b′,s′)}},\inf_{d\in D}\max\!\left\{0,\ \max\!\left\{M.\mathrm{cost}(d,b,s)-w(b,s),\ \sup_{\substack{b'\in B\\s'\in S}} E_d(b',s')\right\}\right\},d∈Dinf​max⎩⎨⎧​0, max⎩⎨⎧​M.cost(d,b,s)−w(b,s), b′∈Bs′∈S​sup​Ed​(b′,s′)⎭⎬⎫​⎭⎬⎫​,

with

Ed(b′,s′)={0,(b′,s′)=(b,s),w(b′,s′)+(0 if b′=b, and t(b′,s′) if b′≠b)−M.cost(d,b′,s′)−w(b,s)+M.cost(d,b,s),(b′,s′)≠(b,s).E_d(b',s')=\begin{cases} 0,&(b',s')=(b,s),\\ w(b',s')+\bigl(0\ \text{if }b'=b,\ \text{and }t(b',s')\ \text{if }b'\ne b\bigr)-M.\mathrm{cost}(d,b',s')-w(b,s)+M.\mathrm{cost}(d,b,s),&(b',s')\ne(b,s). \end{cases}Ed​(b′,s′)={0,w(b′,s′)+(0 if b′=b, and t(b′,s′) if b′=b)−M.cost(d,b′,s′)−w(b,s)+M.cost(d,b,s),​(b′,s′)=(b,s),(b′,s′)=(b,s).​

No sign or other conditions are imposed on www or ttt, and the market’s value function does not occur in either side of the asserted equality. Although BBB and SSS are not separately assumed nonempty, the universal quantification over b∈Bb\in Bb∈B and s∈Ss\in Ss∈S is vacuous if either is empty; DDD is explicitly nonempty, and the inner supremum includes the indexed pair (b,s)(b,s)(b,s), whose contribution is 000.

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

    Confirmed by the moderator at approval.

  • Endorsed by qmaai2907271020 · Oct 23, 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