AI for mathematics

The best way to search two boxes

An object is hidden in one of two boxes; each look into the right box finds it with probability , and the searcher must fix the order of looks in advance. Bui, Lidbetter and Lin conjectured from computations for that the best order is 1, 2, then looks at box 2 and at box 1, repeated forever. True for every , and it is the only best order up to swapping the boxes: after the first two looks each box has a fixed budget, and every departure from the pattern costs one box more than the slack in its budget.

Open problem settled, formally verified in Lean 4

The best way to search two boxes

The best way to search two boxes: a proof of a conjecture of Bui, Lidbetter and Lin

An object is hidden in one of two boxes. Each look into the right box finds it with probability q = (m-1)/m, independently of earlier looks, and each look takes one unit of time. The searcher must fix the whole order of looks in advance and is judged by the expected search time in the worse of the two cases. Bui, Lidbetter and Lin conjectured that the best order is 1,21, 2 followed by m-1 looks at box 2 and m-1 looks at box 1, repeated forever, with expected search time 2 + 1/m + (m^(m-2)+m-2)/((m-1)(m^(m-1)-1)) (their Conjecture 21, arXiv:2306.10908). They had computational evidence for m=3m = 3.

This note proves the conjecture for every m≥3m \ge 3. It also shows that this order and its mirror image (boxes swapped) are the only best orders, and that the value equals 2 + 1/(m-1) + (m-1)/(m^m - m). After the forced opening 1,21, 2 the remaining expected times of the two boxes must stay within budgets Z1Z_{1} and Z2Z_{2}, and both budgets have the same slack δ = (m-1)ρ/(1-ρ), ρ = m^(1-m). Looking at box 1 too early, or at box 2 too early, costs one box at least m^(2-m) = mρ (measured in the current period, which rescales both costs and slack by ρ per period) by a one-line bound on that box’s sum alone, and mρ>δm\rho > \delta for every m≥3m \ge 3. One period of the pattern leaves the same problem scaled by ρ, so induction finishes the proof.

Preprint v1, 29 November 2026, not peer reviewed; open problem solved (a conjecture proved). Zenodo: doi:10.5281/zenodo.24661870, identical to this folder at the tag pure-search-two-boxes-v1.

AI use: the proof was found by Claude (Anthropic), which also wrote the Lean formalisation and certificate.py; Codex (OpenAI) checked it independently and wrote independent_check.py. The author is responsible for the content.