Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix B, p. 43 — Q_d(z) = E[max{z, max_k W̃_k}] − z − c_d = ∫_z^∞ (1 − H(w)) dw − c_d

Proved
SearchDiscovery.Reservation.appendixB_Qd_formula

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

discovery-valueeventual-purchasep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pandora-boxtail-integral

Let zsz^szs be a search value function, Qs(x,cs,zs(x))=0Q_s(x,c_s,z^s(x))=0Qs​(x,cs​,zs(x))=0 for every xxx. Draw ndn_dnd​ i.i.d. pairs (Xk,Yk)∼G⊗FY∣X(X_k,Y_k)\sim G\otimes F_{Y\mid X}(Xk​,Yk​)∼G⊗FY∣X​ and set

W~k=min⁡{zs(Xk), Xk+Yk},k=1,…,nd,\tilde W_k=\min\{z^s(X_k),\,X_k+Y_k\},\qquad k=1,\dots,n_d,W~k​=min{zs(Xk​),Xk​+Yk​},k=1,…,nd​,

so that W~k=Xk+min⁡{Yk,ξXk}\tilde W_k=X_k+\min\{Y_k,\xi_{X_k}\}W~k​=Xk​+min{Yk​,ξXk​​}. Let HHH be the cumulative distribution function of max⁡kW~k\max_k\tilde W_kmaxk​W~k​. Then for every z∈Rz\in\mathbb Rz∈R,

Qd(cd,cs,z)=EX,Y[max⁡{z,max⁡kW~k}]−z−cd=EX,Y[max⁡{0,max⁡kW~k−z}]−cd=∫z∞(1−H(w)) dw−cd.Q_d(c_d,c_s,z)=\mathbb E_{\boldsymbol X,\boldsymbol Y}\Big[\max\Big\{z,\max_{k}\tilde W_k\Big\}\Big]-z-c_d=\mathbb E_{\boldsymbol X,\boldsymbol Y}\Big[\max\Big\{0,\max_{k}\tilde W_k-z\Big\}\Big]-c_d=\int_z^\infty\big(1-H(w)\big)\,\mathrm dw-c_d .Qd​(cd​,cs​,z)=EX,Y​[max{z,kmax​W~k​}]−z−cd​=EX,Y​[max{0,kmax​W~k​−z}]−cd​=∫z∞​(1−H(w))dw−cd​.

The first equality evaluates the optimal value of the reduced problem inside (9) (an outside option zzz and the ndn_dnd​ newly discovered products, no further discovery) in closed form; the last expresses QdQ_dQd​ through the tail of HHH, from which the monotonicity and uniqueness of the discovery value follow.

Formalization Note. The maximum over kkk is a supremum over the nonempty finite index set {1,…,nd}\{1,\dots,n_d\}{1,…,nd​}; HHH is the cdf of the image of the product law under max⁡kW~k\max_k\tilde W_kmaxk​W~k​. QdQ_dQd​ is defined from the optimal value of the reduced problem, not from this closed form.

Preamble
import Mathlib
import Definitions.Def_SearchDiscovery_Reservation_Model
Formal statement
namespace SearchDiscovery.Reservation

open MeasureTheory ProbabilityTheory

theorem appendixB_Qd_formula (M : SDModel) (hM : M.Standing)
    (zs : ℝ → ℝ) (hzs : ∀ x, M.Qs x (zs x) = 0) (z : ℝ) :
    let W : (Fin M.nd → ℝ × ℝ) → ℝ :=
      fun p => ⨆ k : Fin M.nd, min (zs (p k).1) ((p k).1 + (p k).2)
    let μ : Measure (Fin M.nd → ℝ × ℝ) := Measure.pi fun _ : Fin M.nd => M.G ⊗ₘ M.κ
    M.Qd z = (∫ p, max z (W p) ∂μ) - z - M.cd ∧
    M.Qd z = (∫ p, max 0 (W p - z) ∂μ) - M.cd ∧
    M.Qd z = (∫ w in Set.Ioi z, (1 - cdf (μ.map W) w)) - M.cd := by sorry

end SearchDiscovery.Reservation
Source
Greminger, Optimal Search and Discovery, arXiv:1911.07773v5, p. 43, Appendix B (display for Q_d); p. 18 and p. 38 for the definition of w̃
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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