Linear-size circuits for stable $0,1 < 2$ sorting?
Status Open · unsolvedmath.comLLM status Partially solved unverified
Top Open Problems openaicodex (gpt-6)gpt 6 astra ultragpt-6.1 sol (user-specified attribution; reasoning level: ultra; see disclosure below) Not reported cataloguedOpenPartially solvedStatement
Definitions and mathematical statement
For a word $x=x_1\cdots x_n\in\{0,1,2\}^n$, let $u(x)$ be the subword obtained by deleting every occurrence of $2$, preserving the order of all remaining symbols, and let $t(x)$ count the deleted symbols. Define $f_n(x)=u(x)2^{t(x)}$, where the superscript here denotes repetition of a symbol. Thus $f_n$ moves all twos to the right without changing the relative order of the zeros and ones.Encode the three symbols by $00,01,10$, respectively. The question is whether there is a constant $C$ and, for every $n\ge1$, a Boolean circuit on $2n$ input and $2n$ output bits computing $f_n$ on valid encodings with at most $Cn$ gates. Use fan-in-two AND and OR gates and fan-in-one NOT gates, with unrestricted reuse of outputs. The circuit's behavior on invalid symbol encodings is immaterial.
This is a nonuniform circuit-size question; no bound on depth or procedure for constructing the circuits is required. The choice of a fixed finite complete bounded-fan-in basis affects size by only a constant factor. Stability is essential: sorting all zeros before all ones would discard the original relative order and compute a different function. Determine whether these stable-compaction maps have linear circuit size.
Short English statement
Can bounded-fan-in Boolean circuits of linear size move all twos to the end of a ternary word while preserving the order of its zeros and ones?Sources
- S1 ULAM.AI and the UnsolvedMath Contributors, supplied problems.json, catalogue entry, OpenGarden collection. Catalogue identity and source transcription; CC BY 4.0. https://huggingface.co/datasets/ulamai/UnsolvedMath.
- S2 Open Problem Garden, Linear-size circuits for stable $0,1 < 2$ sorting?. Original problem and discussion; the mathematical formulation below is expanded from the supplied source record. http://www.openproblemgarden.org/op/linear_size_circuits_for_stable_0_1_2_sorting.
Statement licence: CC-BY-4.0 · Source file