Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weitzman (1979), cited in the proof of Theorem 1, p. A2 (PDF 33) — Pandora's rule is optimal for the box problem with recall and outside option 0

Proved
NoisyPrototyping.ReservationPolicy.weitzman_pandora_rule

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

optimal-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pandora-boxreservation-pricesequential-searchweitzman

Pandora's box problem P^\hat{\mathcal P}P^: there are NNN boxes; box iii contains an independent value Xi∼GiX_i \sim G_iXi​∼Gi​, where GiG_iGi​ is a probability distribution with finite mean, and opening it costs wi>0w_i > 0wi​>0 and reveals XiX_iXi​. The searcher opens boxes adaptively, in any order, may stop at any time, and then takes the value of one opened box or nothing (value 000). Let RiR_iRi​ be the smallest solution of

E[max⁡{0,Xi−R}]=wi,E[\max\{0, X_i - R\}] = w_i ,E[max{0,Xi​−R}]=wi​,

and let σ\sigmaσ order the boxes so that Rσ(1)≥Rσ(2)≥⋯≥Rσ(N)R_{\sigma(1)} \ge R_{\sigma(2)} \ge \cdots \ge R_{\sigma(N)}Rσ(1)​≥Rσ(2)​≥⋯≥Rσ(N)​. Pandora's rule opens boxes in the order σ\sigmaσ, and after nnn boxes stops as soon as Vn=max⁡{0,Xσ(1),…,Xσ(n)}≥Rσ(n+1)V_n = \max\{0, X_{\sigma(1)}, \dots, X_{\sigma(n)}\} \ge R_{\sigma(n+1)}Vn​=max{0,Xσ(1)​,…,Xσ(n)​}≥Rσ(n+1)​ (or n=Nn = Nn=N), taking the box attaining VnV_nVn​ (nothing if every opened value is negative).

Then Pandora's rule is admissible, and its expected net payoff is at least that of every admissible adaptive policy.

This is the classical result the paper invokes once Claims 1 and 2 have reduced the noisy problem to P^\hat{\mathcal P}P^.

Formalization Note P^\hat{\mathcal P}P^ is pandoraProblem G w: the observed measurement of box iii equals its value. Pandora's rule is fidelityPolicy with QiQ_iQi​ the identity. Ties between equal values go to the box opened later, the paper's rule for BnB_nBn​.

Preamble
import Mathlib
import Definitions.Def_NoisyPrototyping_ReservationPolicy_Model
Formal statement
namespace NoisyPrototyping.ReservationPolicy
open MeasureTheory
theorem weitzman_pandora_rule {N : ℕ} (G : Fin N → Measure ℝ)
    [∀ i, IsProbabilityMeasure (G i)] (hG : ∀ i, Integrable (fun x : ℝ => x) (G i))
    (w : Fin N → ℝ) (hw : ∀ i, 0 < w i) (R : Fin N → ℝ)
    (hR : ∀ i, IsLeast {r : ℝ | ∫ x, max (x - r) 0 ∂(G i) = w i} (R i))
    (σ : Fin N ≃ Fin N) (hσ : ∀ a b, a ≤ b → R (σ b) ≤ R (σ a)) :
    Admissible (pandoraProblem G w) (fidelityPolicy (fun _ => id) σ R) ∧
    ∀ ρ : Policy N, Admissible (pandoraProblem G w) ρ →
      value (pandoraProblem G w) ρ ≤
        value (pandoraProblem G w) (fidelityPolicy (fun _ => id) σ R) := by sorry
end NoisyPrototyping.ReservationPolicy
Source
Bhaskaran and Erat, Optimal Prototyping with Noisy Measurements, author manuscript of 6 Nov 2024 (MSOM 2025, doi:10.1287/msom.2024.1133), p. A2 (PDF 33), proof of Theorem 1, citing Weitzman (1979), Optimal search for the best alternative, Econometrica 47(3):641–654
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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