Optimal rule for multiple stopping times for defect finding
Statement
Suppose a quality inspector is inspecting black amongst which are known to be defective and white gadgets amongst which are known to be defective. The gadgets come down along an assembly line one by one in uniformly distributed random order. As each gadget passes, the inspector observes its color, and he chooses to let the gadget pass or use a device to detect whether the gadget is defective. But he can only use the device a total of times. What is the optimal stopping rule to use the inspecting device to maximize the expected number of defective gadgets found.
Edit: As fedja points out below, there is a difference between detecting a defect by the device and deducing for sure by logic a defect. Both are legitimate objectives. The solution to the first is easier than that to the second. I for now choose the first definition, i.e., to define finding a defective gadget as only indicated by the device and use up one quota of using the device even if the quality inspector is sure by logic alone the gadget under inspection is defective.
Suppose at a pass the number of black gadgets already inspected by the device is , amongst them are detected to be …
Posed by Hans · stochastic-processes, oc.optimization-and-control, combinatorial-optimization
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-366646.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-366646.lean
import Mathlib /-! # Optimal rule for multiple stopping times for defect finding Source: https://mathoverflow.net/questions/366646 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_366646 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_366646