Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 13 — with k = 0, π*_b ≤ max{λqv, λ(v − v̄)} if q ≤ 1/2, or q > 1/2 and v − v̄ ≤ v/(1+A1)

Proved
BuyXFree.Threshold.lemma_2

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

loyalty-programp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-managementreward-program

Throughout, the standing assumptions of §3 hold: 0≤λ≤10\le\lambda\le10≤λ≤1, 0≤q≤10\le q\le10≤q≤1, 0<δ<10<\delta<10<δ<1, v≥vˉ≥0v\ge\bar v\ge0v≥vˉ≥0, k≥0k\ge0k≥0, and the program has a threshold X≥1X\ge1X≥1. Suppose k=0k=0k=0 and either (a) q≤1/2q\le1/2q≤1/2, or (b) q>1/2q>1/2q>1/2 and v−vˉ≤v1+A1v-\bar v\le\frac{v}{1+A_1}v−vˉ≤1+A1​v​. Then for every threshold XXX, every τ∈{1,…,X−1}\tau\in\{1,\dots,X-1\}τ∈{1,…,X−1} and every price with pD(τ−1)<p≤min⁡{pB(τ),pD(τ)}p^D(\tau-1)<p\le\min\{p^B(\tau),p^D(\tau)\}pD(τ−1)<p≤min{pB(τ),pD(τ)},

λqXτ+q(X−τ+1) p ≤ max⁡{λqv, λ(v−vˉ)}.\frac{\lambda qX}{\tau+q(X-\tau+1)}\,p\ \le\ \max\{\lambda qv,\ \lambda(v-\bar v)\}.τ+q(X−τ+1)λqX​p ≤ max{λqv, λ(v−vˉ)}.

Thus πb∗\pi^*_bπb∗​, the optimal value of problem (4), is at most the no-program profit.

Formalization Note πb∗\pi^*_bπb∗​ is the supremum of (4) over a possibly empty feasible set; the statement is the equivalent pointwise bound at every feasible (p,X,τ)(p,X,\tau)(p,X,τ).

Preamble
import Mathlib
import Definitions.Def_BuyXFree_Threshold_Model
Formal statement
namespace BuyXFree.Threshold

/-- Lemma 2, p. 13, pointwise: with `k = 0`, every feasible point `(p, X, τ)` of problem (4)
(`1 ≤ τ ≤ X − 1`, `p^D(τ − 1) < p ≤ min{p^B(τ), p^D(τ)}`) has objective
`λqX/(τ + q(X − τ + 1)) · p ≤ max{λqv, λ(v − v̄)}` if (a) `q ≤ 1/2` or (b) `q > 1/2` and
`v − v̄ ≤ v/(1 + A₁)`. -/
theorem lemma_2 (P : Params) (hP : P.Standing) (hk : P.k = 0)
    (hcond : P.q ≤ 1 / 2 ∨ (1 / 2 < P.q ∧ P.v - P.vbar ≤ P.v / (1 + A1 P)))
    (X τ : ℕ) (hτ1 : 1 ≤ τ) (hτX : τ + 1 ≤ X) (p : ℝ)
    (hlo : pD P X (τ - 1) < p) (hhi : p ≤ min (pB P X τ) (pD P X τ)) :
    P.lam * P.q * X / ((τ : ℝ) + P.q * ((X : ℝ) - τ + 1)) * p ≤ noProgramProfit P := by sorry
end BuyXFree.Threshold
Source
Liu, Sun & Zhang, An Analysis of "Buy X, Get One Free" Reward Programs, accepted manuscript (Operations Research 69(6), 2021; version of March 26, 2021), p. 13, Lemma 2; problem (4), pp. 12–13
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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