Optimal online adversaries for comparison sorting
A comparison sorter learns the order of distinct keys by asking which of two keys is smaller. An online adversary answers each question as it arrives and must always leave at least one possible total order. Can one deterministic adversary do this in polynomial time and force every correct sorter to use nearly n n comparisons?
Why it matters and what counts as progress
Why it matters: The information bound guarantees hard inputs. An efficient online adversary explains how to keep the sorting task hard without knowing the algorithm’s later comparisons.
What counts as progress: Prove online consistency, polynomial initialization and per-query cost, and a lower bound that approaches n n against every correct sorter.
How the problem developed
- 2019 · Efficient adversary with coefficient 37/64 [3]
Haim Kaplan, Or Zamir and Uri Zwick Raised the guaranteed leading coefficient to 37/64 for a deterministic polynomial-time adversary.
Nicholas Nash and GPT 6 Astra Nash reported a model-derived adversary with leading coefficient approaching one and published a substantially expanded account in version 2.
Nicholas Nash’s project and Lean The project’s check covers legality, the lower bound, and the binary cost of initialization and reachable queries.
Follow new AI contributions to this problem.
How the problem developed
AI Proof Watch
Optimal online adversaries for comparison sorting
References
- [1]An Optimal Deterministic Adversary for Sorting
- [2]Theorem 1.1 and methodological disclosure
- [3]A sort of an adversary
- [4]Lean theorem for the online adversary
- [5]Lean theorem map and arithmetic cost model
- [6]Successful Lean CI run
AI contribution
An Optimal Deterministic Adversary for Sorting
For n distinct labeled keys, one deterministic adversary initialized from n can answer comparisons online, keeping every answer transcript consistent with a total order, using polynomially many bit operations per query. It forces every correct comparison sorter to use at least n n comparisons.
Sources
Publication history
Daily emails by default, only when there’s an update.