Finding k elements with count queries
Statement
Given a 'count in range' query access to an array of elements, our goal is to find missing elements with as few queries as possible (worst case, deterministic).
To clarify, we can query
how many missing elements are in range ?
for any
It's easy to see that we can accomplish this task with queries (simply using binary search for each of the elements). But our query potentially returns bits of information. Can we do better?
Any reference is appreciated. Thank you good people!
Posed by Mar Blonde · algorithms, computer-science, it.information-theory
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-373769.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-373769.lean
import Mathlib /-! # Finding k elements with count queries Source: https://mathoverflow.net/questions/373769 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_373769 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_373769