一句话:证明可计算索引语言 Parikh 像的最小切片半线性表示,并据此判定词方程计数约束。
索引语言是二阶下推自动机的语言等价物,在模型检测中很重要,但其非正则计数性质此前多不可判定。本文研究索引语言 Parikh 像的切片闭包:切片是对加法封闭的自然数向量集合。作者证明,给定索引语言 L,可计算包含 L 的 Parikh 像的最小切片的半线性表示。由此可计算 L 的 Parikh 像满足的所有仿射关系,并肯定回答 Kobayashi 的问题:索引语言中每个词是否 a 与 b 数量相同可判定。第二个应用是带有理约束和一类计数约束的词方程(组)的可判定性,例如可判定解中变量 X 与 Y 的 a 出现次数不同。
Indexed languages are a classical notion in formal language theory. As the language equivalent of second-order pushdown automata, they have received considerable attention in higher-order model checking. Unfortunately, counting properties are notoriously difficult to decide for indexed languages: So far, all results about non-regular counting properties show undecidability. In this paper, we initiate the study of slice closures of (Parikh images of) indexed languages. A slice is a set of vectors of natural numbers such that membership of u, u+υ, u+w implies membership of u + υ + w. Our main result is that given an indexed language L, one can compute a semilinear representation of the smallest slice containing L's Parikh image. We present two applications. First, one can compute the set of all affine relations satisfied by the Parikh image of an indexed language. In particular, this answers affirmatively a question by Kobayashi: Is it decidable whether in a given indexed language, every word has the same number of a's as b's. As a second application, we show decidability of (systems of) word equations with rational constraints and a class of counting constraints: These allow us to look for solutions where a counting function (defined by an automaton) is not zero. For example, one can decide whether a word equation with rational constraints has a solution where the number of occurrences of a differs between variables X and Y.