arXiv:2610.10399cs.CCOct 2026

Manuscript Offprint

arXiv:2610.10399

The smallest programmable machine and the hardness of analyzing it

J. Andres Montoya

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

J. Andres Montoya 1^{1}

Universidad Nacional de Colombia, Bogota

jamontoyaa@unal.edu.co

Abstract. We investigate the computational complexity of analyzing the structural and behavioral properties of deterministic k-pebble automata, which represent a natural framework for studying minimal programmable machines. First, we provide an explicit construction of a three-pebble automaton U3U_3 capable of simulating any deterministic finite automaton (DFA) on a given input word, establishing a link between pebble automata capabilities, Kolmogorov complexity, and automatic complexity. Next, we restrict our architectural framework to two-pebble programmable machines U2,NU_{2,N} simulating DFAs whose set of internal states is equal to {1,…,N}\{1,\ldots,N\}. We analyze the decision problem ANAL(U2,5)\text{ANAL}(\mathcal{U}_{2,5}), which asks whether a five-state program can separate two distinct finite words. By establishing a polynomial-time reduction from the quasi-identity checking problem for finite semigroups, we prove that ANAL(U2,5)\text{ANAL}(\mathcal{U}_{2,5}) is NP\mathcal{NP}-complete. Finally, we explore the complexity of separating binary strings under the Exponential Time Hypothesis (ETH), showing how computational hardness implies polynomial lower bounds for the size of the smallest DFAs separating binary strings.

1 Pebble automata

Let k≥0k \geq 0. Deterministic k-pebble automata are deterministic two-way finite state automata provided with k unlabeled pebbles which the finite control can use as markers on the input tape. The study of this restricted type of Turing machine goes back to Kreider and Ritchie [3].

Definition 1. Let k≥0k \geq 0. A deterministic k-pebble automaton is a tuple

M=(Q,q0,Σ,A,δ),\mathcal{M}=(Q,q_{0},\varSigma,A,\delta),

where:

  1. Q is a finite set of states.

  2. q0∈Qq_0 \in Q is the initial state.

  3. A⊆QA \subseteq Q is the set of accepting states.

  4. Σ\Sigma is the input alphabet.

Montoya

  1. The transition function
δ:Q×Σ×(P({1,…,k}))2→Q×({1,…,k})2×{−1,0,1}\delta:Q\times\Sigma\times(\mathcal{P}\left(\{1,\ldots,k\}\right))^{2}\rightarrow Q\times\left(\{1,\ldots,k\}\right)^{2}\times\{-1,0,1\}

is deterministic.

Let M be a k-pebble automaton. Automaton M is a two-way deterministic finite state automaton provided with k unlabeled pebbles. This automaton has the following capabilities:

– It can place its pebbles on the tape.

– It can sense the pebbles that lie in the current cell.

– It can pick pebbles from the set of pebbles that lie in the current cell.

Let (q,a,r,s)(q, a, r, s) be a tuple such that r+s≤kr + s \leq k holds. Suppose that M\mathcal{M} is processing the input ww, where:

– q is the current inner state.

– a is the character being scanned.

– r is the number of pebbles that lie in the current cell.

– s is the number of available pebbles (i.e., the number of pebbles that lie in cell 0).

Suppose δ(q,a,r,s)=(p,h,l,ε)\delta(q, a, r, s) = (p, h, l, \varepsilon). Then:

−r+s=h+l.-r + s = h + l.

– M changes its inner state from q to p.

– M leaves exactly h pebbles in the current cell.

– M moves its head in the direction indicated by ε∈{−1,0,1}\varepsilon \in \{-1, 0, 1\}.

Definition 2. We use REGk\mathcal{REG}_k to denote the set of languages accepted by deterministic k-pebble automata.

The deterministic pebble hierarchy is the chain of inclusions:

REG0⊆REG1⊆REG2⊆⋯\mathcal{R E G}_{0}\subseteq\mathcal{R E G}_{1}\subseteq\mathcal{R E G}_{2}\subseteq\cdots

We have (see Theorem 3.2.3, page 16, [5]):

Theorem 1. L=⋃0≤kREGk\mathcal{L} = \bigcup_{0 \leq k} \mathcal{REG}_k.