The exact diameter of binary multithreaded programs
Version 1 / Dec 02, 2026 / CC BY 4.0
Abstract
Consider labelled threads, each with one private bit, communicating through a single shared bit. Each thread has its own transition rules. We prove Malkis's conjecture that the maximum finite distance between states is exactly for every number of threads. The lower bound was known. For the upper bound we show that every reachable endpoint admits an execution in which at most three threads act more than once. Three are sometimes necessary, even when there are only three threads. Once the other threads act only once, two counters and a visit condition suffice to put their moves back into a short execution. A finite certificate, verified in Lean, establishes the controller exchanges and the length bounds needed for all .
Provenance statement
Tools used
- OpenAI
- Codex
References
- A. Malkis, Maximum diameter for an -threaded binary program , OEIS A290642, 2017. https://oeis.org/A290642.link
- A. Malkis and S. Borgwardt, Reachability in binary multithreaded programs is polynomial, 37th IEEE International Conference on Distributed Computing Systems , 2017, 2083--2088. doi:10.1109/ICDCS.2017.290 (https://doi.org/10.1109/ICDCS.2017.290).DOI
- A. Malkis, Reachability in parallel programs is polynomial in the number of threads, J. Parallel Distrib. Comput. 162 (2022), 1--16. doi:10.1016/j.jpdc.2021.11.008 (https://doi.org/10.1016/j.jpdc.2021.11.008).DOI