Equivalence of finite-valued streaming string transducers is decidable

Anca Muscholl, Michael Benedikt · DOI

Abstract

This paper provides a positive answer to a question left open by Alur and Deshmukh in 2011 by showing that the equivalence problem for finite-valued copyless streaming string transducers (SSTs) is decidable. By combining novel normalization techniques with the resolution of word equations, the authors demonstrate that it is algorithmically possible to determine if two such machines perform identical string transformations.

Introduction

In formal language theory, a transducer is a computational model that transforms an input string into one or more output strings. Streaming String Transducers (SSTs) represent a powerful modern paradigm for these transformations. Unlike traditional transducers that produce output bit-by-bit, SSTs utilize a set of write-only registers to construct outputs "piece-wise" as they process the input. This allows for complex operations like shuffling and concatenation.

The "equivalence problem"—determining if two different machines always produce the same output for any given input—is a fundamental challenge. While this was known to be decidable for simple deterministic SSTs, the case for finite-valued SSTs (which can produce up to k different outputs for a single input) remained an open problem for over a decade. The difficulty stems from the non-linear way SSTs manipulate registers, making it hard to track when different internal operations lead to the same final string.

Methodology: Normalization and Approximation

The authors resolve this problem by adapting the classic Culik-Karhumäki approach, which requires several new layers of normalization to handle the unique properties of SSTs.

Flow-Normalization and Gap Variables

To manage the non-linear behavior of SSTs, the authors first apply Flow-Normalization. This process transforms any SST into a version where registers are never erased and maintain a predictable order. This "linearizes" the data flow, making the SST behave more like a traditional one-way transducer.

Crucially, the authors introduce gap variables to track the strings that appear between the contents of registers in the final output. This allows for a complete algebraic representation of the output string at any point during execution.

Alignment of register contents and gap variables during normalization.

α-Approximants

Because the exact strings in registers can be infinitely varied, the authors use α-approximants to over-approximate register contents using simple patterns (e.g., "this register contains a string of the form $(ab)^*a$"). By focusing on the "shape" of the string—its length and periodicity—rather than its exact value, the algorithm can detect when two machines begin to diverge.

Lattice of patterns used for α-approximants to represent string shapes.

Word Equations and the Ehrenfeucht Conjecture

The final step involves reducing the equivalence problem to solving systems of word equations, a problem known to be decidable via Makanin’s algorithm. The authors utilize the Ehrenfeucht Conjecture to prove the existence of a finite "test set" of inputs. If two machines agree on this finite set, they are guaranteed to be equivalent for all possible inputs.

Key Results

The primary contribution of this work is Theorem 1, which officially establishes that the equivalence problem for finite-valued SSTs is decidable.

Beyond the main theorem, the authors proved several auxiliary results:

  • Bounded Edge Ambiguity: For any $k$-valued SST, an equivalent version can be constructed where the number of ways to transition between states using the same letter is strictly bounded.
  • Effective Test Sets: For any class of SSTs with a fixed number of states and registers, there exists a finite set of input strings that can distinguish any two non-equivalent machines.

Limitations and Future Directions

While the problem is now known to be decidable, the practical complexity of the proposed algorithm is likely very high. Because it relies on word equations and the Ehrenfeucht Conjecture, the running time could be non-elementary.

Future research may focus on the Decomposition Conjecture, which suggests that every finite-valued SST can be decomposed into a finite union of unambiguous SSTs. Proving this would significantly simplify the theory and potentially lead to more efficient algorithms. Additionally, these normalization techniques may help settle the expressive equivalence between finite-valued SSTs and two-way transducers.

Summary updated

Abstract

In this paper we provide a positive answer to a question left open by Alur and and Deshmukh in 2011 by showing that equivalence of finite-valued copyless streaming string transducers is decidable.
BibTeX
@inproceedings{muscholl2019equivalence,
  author = {Anca Muscholl and Michael Benedikt},
  title = {{Equivalence of finite-valued streaming string transducers is decidable}},
  booktitle = {DROPS},
  year = {2019},
  doi = {10.4230/lipics.icalp.2019.122},
}

Loading related content...

Figure