Logical Methods in Computer Science (Apr 2019)

The height of piecewise-testable languages and the complexity of the logic of subwords

  • Prateek Karandikar,
  • Philippe Schnoebelen

DOI
https://doi.org/10.23638/LMCS-15(2:6)2019
Journal volume & issue
Vol. Volume 15, Issue 2

Abstract

Read online

The height of a piecewise-testable language $L$ is the maximum length of the words needed to define $L$ by excluding and requiring given subwords. The height of $L$ is an important descriptive complexity measure that has not yet been investigated in a systematic way. This article develops a series of new techniques for bounding the height of finite languages and of languages obtained by taking closures by subwords, superwords and related operations. As an application of these results, we show that $\mathsf{FO}^2(A^*,\sqsubseteq)$, the two-variable fragment of the first-order logic of sequences with the subword ordering, can only express piecewise-testable properties and has elementary complexity.

Keywords