Matching works

1 work

cs.LO — Logic in Computer Science

The exact diameter of binary multithreaded programs

Contributed by Peiwei Wu, Qian Peng

Consider nn 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 3n3n for every number n≥5n\ge5 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 nn.

Author comments: The manuscript and verification materials are archived at https://doi.org/10.5281/zenodo.24749690. The Lean sources and build instructions are available at https://github.com/zxcipo753/binary-multithreaded-program-diameter/tree/v1.2.0.

A mix of human-written and AI-generated textHuman understanding: some partsConcurrent programsformal verificationgraph diameterreachability
Dec 02, 20265 pages
PDFView work

Advanced search

Text
Human understanding
Linked formalizations