Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 10.3.3 — the secretary problem's optimal rule and its 1/e limit

Proved
MDPFinance.OptimalStopping.theorem_10_3_3

by Shuze Chen · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-programmingoperations-researchoptimal-stoppingoptimizationprobability

Theorem 10.3.3 (p. 323). The optimal stopping time for the secretary problem is as follows: make interviews with the first k∗k^*k∗ candidates and reject them all (where k∗k^*k∗ is given by equation (10.5)). Afterwards, take the first candidate who is better than her predecessors. The probability for choosing the best candidate is then given by k∗Nh(k∗)\frac{k^*}{N}h(k^*)Nk∗​h(k∗). … It holds that

lim⁡N→∞k∗(N)N=1e.\lim_{N\to\infty}\frac{k^*(N)}{N} = \frac1e .N→∞lim​Nk∗(N)​=e1​.

The classical answer, and the reason the problem is famous: "if the number of candidates is large, approximately the first 37% will be rejected and the next one is accepted who is better than her predecessors."

The three claims are separately substantial. The rule is that the states in which stopping is optimal are exactly those above k∗k^*k∗, which is what "reject the first k∗k^*k∗, then take the first leader" means for this chain: the state xxx records the time at which a candidate is leading, so entering {x>k∗}\{x > k^*\}{x>k∗} is meeting a candidate better than all her predecessors after the rejection phase. The probability is the value at the initial state, V0(1)V_0(1)V0​(1), which the book identifies as "the maximal probability for choosing the best candidate" (p. 322). The 1/e1/e1/e limit is a statement about the family k∗(N)k^*(N)k∗(N) as NNN varies, so it is phrased against the horizon-indexed k∗(N)k^*(N)k∗(N) rather than one fixed problem.

Moderation note. Checked; unchanged (the stopping-set identity holds on the states {1,…,N} for every n ≤ k^*, since the closed form of Proposition 10.3.2 is independent of n there).

Preamble
import Mathlib
import Definitions.Def_MDPFinance_OptimalStopping_Applications

open Filter Topology
Formal statement
namespace MDPFinance.OptimalStopping

/-- **Theorem 10.3.3** (p. 323). The optimal rule: reject the first `k^*` candidates, then take
the first leader — the stopping sets `{V_n = g}` are `{x > k^*}` on the states; the probability of
choosing the best candidate is `V_0(1) = (k^*/N) h(k^*)`; and `k^*(N)/N → 1/e`. -/
theorem theorem_10_3_3 (S : Secretary) :
    (∀ n : ℕ, n ≤ S.kStar →
      {x : ℕ | x ∈ Finset.Icc 1 S.N ∧ S.V n x = S.g x} =
        {x : ℕ | x ∈ Finset.Icc 1 S.N ∧ S.kStar < x}) ∧
    S.V 0 1 = ((S.kStar : ℝ) / (S.N : ℝ)) * S.h S.kStar ∧
    Tendsto (fun N : ℕ => (secretaryKStar N : ℝ) / (N : ℝ)) atTop (𝓝 (1 / Real.exp 1)) := by sorry

end MDPFinance.OptimalStopping
Source
Bäuerle and Rieder, Markov Decision Processes with Applications to Finance, Universitext, Springer 2011, DOI 10.1007/978-3-642-18324-9, p. 323 (PDF 331), Theorem 10.3.3
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 1, 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