Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, pp. 21–22 — deterministic maximin ratio and optimal price from one conversion rate, regular (α = 0) and mhr (α = 1)

Proved
SinglePointPricing.Det.theorem_2

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

lambert-wmaximin-ratiomonotone-hazard-ratep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pricingregular-distribution

Fix the deterministic mechanisms Pd={δγ:γ≥0}\mathcal P_d = \{\delta_\gamma:\gamma\ge0\}Pd​={δγ​:γ≥0}, a historical price w>0w>0w>0 and its conversion rate q=F‾(w)∈(0,1)q = \overline F(w)\in(0,1)q=F(w)∈(0,1).

  1. Regular laws (α=0\alpha=0α=0). The price
pd∗(w,q)=w(2q1+q1{q∈(0,14]}+q(3−4q)1−q1{q∈(14,12]}+1{q∈(12,1)})p^*_d(w,q) = w\Big(\tfrac{2\sqrt q}{1+\sqrt q}\mathbf 1\{q\in(0,\tfrac14]\} + \tfrac{q(3-4q)}{1-q}\mathbf 1\{q\in(\tfrac14,\tfrac12]\} + \mathbf 1\{q\in(\tfrac12,1)\}\Big)pd∗​(w,q)=w(1+q​2q​​1{q∈(0,41​]}+1−qq(3−4q)​1{q∈(41​,21​]}+1{q∈(21​,1)})

is optimal, and the maximin ratio is

R(Pd,F0(w,q))=2q1+q1{q∈(0,14]}+3−4q4(1−q)1{q∈(14,12]}+(1−q)1{q∈(12,1)}.\mathcal R(\mathcal P_d,\mathcal F_0(w,q)) = \tfrac{2\sqrt q}{1+\sqrt q}\mathbf 1\{q\in(0,\tfrac14]\} + \tfrac{3-4q}{4(1-q)}\mathbf 1\{q\in(\tfrac14,\tfrac12]\} + (1-q)\mathbf 1\{q\in(\tfrac12,1)\}.R(Pd​,F0​(w,q))=1+q​2q​​1{q∈(0,41​]}+4(1−q)3−4q​1{q∈(41​,21​]}+(1−q)1{q∈(21​,1)}.
  1. Monotone hazard rate laws (α=1\alpha=1α=1). The price
pd∗(w,q)=w(βq(eq)1{q∈(0,q^]}+βq(1log⁡(q−1))1{q∈(q^,e−e−1]}+1{q∈(e−e−1,1)})p^*_d(w,q) = w\Big(\beta_q\big(\tfrac eq\big)\mathbf 1\{q\in(0,\hat q]\} + \beta_q\big(\tfrac1{\log(q^{-1})}\big)\mathbf 1\{q\in(\hat q,e^{-e^{-1}}]\} + \mathbf 1\{q\in(e^{-e^{-1}},1)\}\Big)pd∗​(w,q)=w(βq​(qe​)1{q∈(0,q^​]}+βq​(log(q−1)1​)1{q∈(q^​,e−e−1]}+1{q∈(e−e−1,1)})

is optimal, and the maximin ratio is

R(Pd,F1(w,q))=βq(eq)1{q∈(0,q^]}+ρ(q)1{q∈(q^,e−e−1]}+eqlog⁡(q−1)1{q∈(e−e−1,1)}.\mathcal R(\mathcal P_d,\mathcal F_1(w,q)) = \beta_q\big(\tfrac eq\big)\mathbf 1\{q\in(0,\hat q]\} + \rho(q)\mathbf 1\{q\in(\hat q,e^{-e^{-1}}]\} + eq\log(q^{-1})\mathbf 1\{q\in(e^{-e^{-1}},1)\}.R(Pd​,F1​(w,q))=βq​(qe​)1{q∈(0,q^​]}+ρ(q)1{q∈(q^​,e−e−1]}+eqlog(q−1)1{q∈(e−e−1,1)}.

Here WWW is the Lambert function (the inverse of x↦xexx\mapsto xe^xx↦xex on [0,∞)[0,\infty)[0,∞)), βq(x)=1−1log⁡(q−1)(W(x)+1W(x)−2)\beta_q(x) = 1-\frac1{\log(q^{-1})}\big(W(x)+\frac1{W(x)}-2\big)βq​(x)=1−log(q−1)1​(W(x)+W(x)1​−2), ρ(q)=βq(1log⁡(q−1))elog⁡(q−1)e−log⁡(q−1)βq(1/log⁡(q−1))\rho(q) = \beta_q\big(\frac1{\log(q^{-1})}\big)e\log(q^{-1})e^{-\log(q^{-1})\beta_q(1/\log(q^{-1}))}ρ(q)=βq​(log(q−1)1​)elog(q−1)e−log(q−1)βq​(1/log(q−1)), and q^\hat qq^​ is the unique solution in [0,1][0,1][0,1] of W(1log⁡(q−1))W(eq)=1W\big(\frac1{\log(q^{-1})}\big)W\big(\frac eq\big) = 1W(log(q−1)1​)W(qe​)=1; numerically q^∈[0.52,0.53]\hat q\in[0.52,0.53]q^​∈[0.52,0.53]. "Optimal" means that the worst-case ratio of δpd∗\delta_{p^*_d}δpd∗​​ over the whole class Fα(w,q)\mathcal F_\alpha(w,q)Fα​(w,q) equals the maximin ratio.

The theorem gives in closed form the value of one observed conversion rate for deterministic pricing and the price to post: for example, about 85% of the oracle revenue is guaranteed for mhr laws when half of the customers bought at www.

Differences from the source:

  • reading: F̄ = 1 − F for a right-continuous cdf F (p. 9) → F̄(p) = μ([p, ∞)), the closed tail P(v ≥ p); reason: the page defines the data as the fraction of values greater than or equal to w (p. 2), the revenue as ∫ p 1{v ≥ p} dF(v) = p F̄(p) (p. 9), and its worst cases (3.1) as ccdfs equal to the atom's size at the top of the support; only the closed tail makes these agree, and the two tails differ only at atoms
  • reading: α-strong regularity: a positive density on the support [a, b] except possibly at its maximum, with (1 − α)v − F̄(v)/f(v) monotone (p. 11, App-1) → Γ_α^{−1} ∘ F̄ is convex on {v ≥ 0 : F̄(v) > 0}, with no absolute-continuity requirement; reason: with h = Γ_α^{−1} ∘ F̄ the α-virtual value is (1 − α)v − (1 + (1 − α)h)/h′, which is non-decreasing exactly when h is convex; convexity on {F̄ > 0} allows exactly an atom at the top of the support (as p. 11 does) and excludes interior atoms and singular parts. The printed 'non-increasing' (p. 11) is a slip for non-decreasing (App. A; proof of Lemma C-1)
  • encoding: sup and inf in R(Ψ, F), opt(F) and R(P′, 𝓕) → sSup and sInf on ℝ; reason: every set involved is nonempty and bounded (ratios lie in [0, 1], revenues are bounded by the mean), so the real sSup and sInf are the paper's sup and inf; no junk value arises
  • reading: 'the optimal price is given by p_d(w, q)' → pd(w, q) ≥ 0 and inf{F ∈ F_α(w,q)} R(δ_{pd}, F) = R(P_d, F_α(w, q)); reason: δ{p_d} attains the supremum defining the maximin ratio; the page claims optimality, not uniqueness, of the price
  • reading: w and q: an observed price and conversion rate → hypotheses 0 < w and q ∈ (0, 1); reason: standing assumptions: w is a posted price, and I ∩ {0, 1} = ∅ throughout (p. 11)
  • encoding: q̂ 'the unique solution in [0, 1]' of W(1/log(q^{−1}))W(e/q) = 1 (undefined at q ∈ {0, 1}) → ∃! over [0, 1] with Lean's log(0⁻¹) = 0 and 1/0 = 0; reason: at q ∈ {0, 1} the product is W(0)·W(·) = 0 ≠ 1, so the endpoints are not solutions under either reading; the bound q̂ ∈ [0.52, 0.53] and the mhr formulas are stated for every solution, hence for the unique one
Preamble
import Mathlib
import Definitions.Def_SinglePointPricing_Det_Setting
Formal statement
namespace SinglePointPricing.Det

open MeasureTheory

/-- Theorem 2 (Maximin Ratio for deterministic mechanisms), pp. 21–22. With `P_d` the
deterministic prices: for regular laws (`α = 0`) and for mhr laws (`α = 1`), every `w > 0` and
`q ∈ (0, 1)`, the maximin ratio `R(P_d, F_α(w, q))` equals the printed piecewise closed form and the
printed price `p*_d(w, q) ≥ 0` attains it (its worst-case ratio over `F_α(w, q)` equals the maximin
ratio); `q̂` is the unique solution in `[0, 1]` of `W(1/log(q^{−1})) W(e/q) = 1` and lies in
`[0.52, 0.53]`. -/
theorem theorem_2 :
    (∀ w q : ℝ, 0 < w → q ∈ Set.Ioo (0 : ℝ) 1 →
      maximin Pd (FClass 0 w q) =
          2 * Real.sqrt q / (1 + Real.sqrt q) * (Set.Ioc (0 : ℝ) (1 / 4)).indicator 1 q
          + (3 - 4 * q) / (4 * (1 - q)) * (Set.Ioc (1 / 4 : ℝ) (1 / 2)).indicator 1 q
          + (1 - q) * (Set.Ioo (1 / 2 : ℝ) 1).indicator 1 q ∧
      0 ≤ w * (2 * Real.sqrt q / (1 + Real.sqrt q) * (Set.Ioc (0 : ℝ) (1 / 4)).indicator 1 q
          + q * (3 - 4 * q) / (1 - q) * (Set.Ioc (1 / 4 : ℝ) (1 / 2)).indicator 1 q
          + (Set.Ioo (1 / 2 : ℝ) 1).indicator 1 q) ∧
      sInf (ratio (Measure.dirac
          (w * (2 * Real.sqrt q / (1 + Real.sqrt q) * (Set.Ioc (0 : ℝ) (1 / 4)).indicator 1 q
            + q * (3 - 4 * q) / (1 - q) * (Set.Ioc (1 / 4 : ℝ) (1 / 2)).indicator 1 q
            + (Set.Ioo (1 / 2 : ℝ) 1).indicator 1 q))) '' FClass 0 w q) =
        maximin Pd (FClass 0 w q)) ∧
    (∃! qh : ℝ, qh ∈ Set.Icc 0 1 ∧
      lambertW (1 / Real.log qh⁻¹) * lambertW (Real.exp 1 / qh) = 1) ∧
    (∀ qh : ℝ, qh ∈ Set.Icc 0 1 →
      lambertW (1 / Real.log qh⁻¹) * lambertW (Real.exp 1 / qh) = 1 →
      qh ∈ Set.Icc (0.52 : ℝ) 0.53 ∧
      ∀ w q : ℝ, 0 < w → q ∈ Set.Ioo (0 : ℝ) 1 →
        maximin Pd (FClass 1 w q) =
            betaQ q (Real.exp 1 / q) * (Set.Ioc 0 qh).indicator 1 q
            + rhoQ q * (Set.Ioc qh (Real.exp (-Real.exp (-1)))).indicator 1 q
            + Real.exp 1 * q * Real.log q⁻¹ * (Set.Ioo (Real.exp (-Real.exp (-1))) 1).indicator 1 q ∧
        0 ≤ w * (betaQ q (Real.exp 1 / q) * (Set.Ioc 0 qh).indicator 1 q
            + betaQ q (1 / Real.log q⁻¹) * (Set.Ioc qh (Real.exp (-Real.exp (-1)))).indicator 1 q
            + (Set.Ioo (Real.exp (-Real.exp (-1))) 1).indicator 1 q) ∧
        sInf (ratio (Measure.dirac
            (w * (betaQ q (Real.exp 1 / q) * (Set.Ioc 0 qh).indicator 1 q
              + betaQ q (1 / Real.log q⁻¹) * (Set.Ioc qh (Real.exp (-Real.exp (-1)))).indicator 1 q
              + (Set.Ioo (Real.exp (-Real.exp (-1))) 1).indicator 1 q))) '' FClass 1 w q) =
          maximin Pd (FClass 1 w q)) := by sorry

end SinglePointPricing.Det
Source
Allouah, Bahamou & Besbes, Optimal Pricing with a Single Point, arXiv:2103.05611v2, Theorem 2, pp. 21–22
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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