ArticlePublisher preview available

The regular languages of wire linear AC^0

Authors:
To read the full-text of this research, you can request a copy directly from the authors.

Abstract and Figures

In this paper, the regular languages of wire linear AC0AC0\hbox {AC}^0are characterized as the languages expressible in the two-variable fragment of first-order logic with regular predicates, FO2[reg]FO2[reg]\mathrm{FO}^2[\mathrm{reg}]. Additionally, they are characterized as the languages recognized by the algebraic class QLDAQLDA\mathbf {QLDA}. The class is shown to be decidable and examples of languages in and outside of it are presented.
This content is subject to copyright. Terms and conditions apply.
Acta Informatica (2022) 59:321–336
https://doi.org/10.1007/s00236-022-00432-2
ORIGINAL ARTICLE
The regular languages of wire linear AC0
Michaël Cadilhac1·Charles Paperman2
Received: 15 September 2021 / Accepted: 17 June 2022 / Published online: 25 July 2022
© The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature 2022
Abstract
In this paper, the regular languages of wire linear AC0are characterized as the languages
expressible in the two-variable fragment of first-order logic with regular predicates, FO2[reg].
Additionally, they are characterized as the languages recognized by the algebraic class
QLDA. The class is shown to be decidable and examples of languages in and outside of
it are presented.
Contents
1 Introduction .............................................. 321
2 Preliminaries .............................................. 323
3 Algebra, logic, and circuits ...................................... 326
3.1 From algebra to logic ....................................... 326
3.2 From logic to circuits ....................................... 327
3.3 Back to algebra .......................................... 329
3.4 Closing the circle: from circuits to algebra ............................ 332
4 Applications .............................................. 332
4.1 Decidability ............................................ 332
4.2 LAC0Reg, Straubing and Crane Beach properties ....................... 333
4.3 Bounded-depth Dyck languages ................................. 333
5 Conclusion ............................................... 334
References ................................................. 335
1 Introduction
A recurring theme in the work of Klaus–Jörn Lange is the interplay of logic, algebra, and
circuit complexity. In this paper dedicated to his 70th birthday, we exhibit one of these tight
relationships by looking at the class of regular languages recognized by circuits of very low
complexity.
BMichaël Cadilhac
michael@cadilhac.name
BCharles Paperman
charles@paperman.name
1School of Computing, DePaul University, 243 S. Wabash Ave., Chicago, IL 60604, USA
2Inria LINKS Team & University of Lille, 40 avenue Halley, 59000 Villeneuve d’Ascq, France
123
Content courtesy of Springer Nature, terms of use apply. Rights reserved.
... This class can be proven to include all regular languages in C-RASP, but it also includes various languages that transformers length-generalize poorly on, such as Tomita-3. A natural subclass, obtained by restricting the size of AC 0 circuits to a linear number of wires, yields the class FO 2 [Reg] (Cadilhac and Paperman, 2022), which does not match transformers' behavior well either, e.g. it includes {0, 1, 2} * 02 * (bottom right, equals Σ * be * from Lemma 11) but does not include D-12. Taken together, established circuit complexity classes do not account for Transformers' length generalization behavior. ...
Preprint
Full-text available
A major challenge for transformers is generalizing to sequences longer than those observed during training. While previous works have empirically shown that transformers can either succeed or fail at length generalization depending on the task, theoretical understanding of this phenomenon remains limited. In this work, we introduce a rigorous theoretical framework to analyze length generalization in causal transformers with learnable absolute positional encodings. In particular, we characterize those functions that are identifiable in the limit from sufficiently long inputs with absolute positional encodings under an idealized inference scheme using a norm-based regularizer. This enables us to prove the possibility of length generalization for a rich family of problems. We experimentally validate the theory as a predictor of success and failure of length generalization across a range of algorithmic and formal language tasks. Our theory not only explains a broad set of empirical observations but also opens the way to provably predicting length generalization capabilities in transformers.
... An outstanding example of the connection between the Straubing Property of a circuit class and its computational power is given in [8,18]: FO 2 [arb] has the Straubing Property if and only if addition cannot be computed with a linear number of gates. This latter question, pertaining to the precise complexity of addition, was asked, in particular, by Furst, Saxe, and Sipser [11,Section 5]. ...
Preprint
Full-text available
The regular languages with a neutral letter expressible in first-order logic with one alternation are characterized. Specifically, it is shown that if an arbitrary Σ2\Sigma_2 formula defines a regular language with a neutral letter, then there is an equivalent Σ2\Sigma_2 formula that only uses the order predicate. This shows that the so-called Central Conjecture of Straubing holds for Σ2\Sigma_2 over languages with a neutral letter, the first progress on the Conjecture in more than 20 years. To show the characterization, lower bounds against polynomial-size depth-3 Boolean circuits with constant top fan-in are developed. The heart of the combinatorial argument resides in studying how positions within a language are determined from one another, a technique of independent interest.
Conference Paper
Full-text available
The effect of severely tightening the uniformity of Boolean circuit families is investigated. The impact on NC 1 and its subclasses is shown to depend on the characterization chosen for the class, while classes such as P appear to be more robust. Tightly uniform subclasses of NC 1 whose separation may be within reach of current techniques emerge.
Conference Paper
Full-text available
In this paper we prove that the class of functions expressible by first order formulas with only two variables coincides with the class of functions computable by AC0 circuits with a linear number of gates. We then investigate the feasibility of using Ehrenfeucht-Fraisse games to prove lower bounds for that class of circuits, as well as for general AC0 circuits
Conference Paper
We extend the familiar program of understanding circuit complexity in terms of regular languages to visibly counter languages. Like the regular languages, the visibly counter languages are NC1\mathrm {NC}^{1}- complete. We investigate what the visibly counter languages in certain constant depth circuit complexity classes are. We have initiated this in a previous work for AC0\mathrm {AC}^{0}. We present characterizations and decidability results for various logics and circuit classes. In particular, our approach yields a way to understand TC0\mathrm {TC}^{0}, where the regular approach fails.
Conference Paper
We investigate the decidability of the definability problem for fragments of first order logic over finite words enriched with regular numerical predicates. In this paper, we focus on the quantifier alternation hierarchies of first order logic. We obtain that deciding this problem for each level of the alternation hierarchy of both first order logic and its two-variable fragment when equipped with all regular numerical predicates is not harder than deciding it for the corresponding level equipped with only the linear order. Relying on some recent results, this proves the decidability for each level of the alternation hierarchy of the two-variable first order fragment while in the case of the first order logic the question remains open for levels greater than two. The main ingredients of the proofs are syntactic transformations of first-order formulas as well as the infinitely testable property, a new algebraic notion on varieties that we define.
Article
We examine visibly counter languages, which are languages recognized by visibly counter automata (a.k.a. input driven counter automata). We are able to effectively characterize the visibly counter languages in AC0 and show that they are contained in FO[+].
Book
Part 1 Mathematical preliminaries: words and languages automata and regular languages semigroups and homomorphisms. Part 2 Formal languages and formal logic: examples definitions. Part 3 Finite automata: monadic second-order sentences and regular languages regular numerical predicates infinite words and decidable theories. Part 4 Model-theoretic games: the Ehrenfeucht-Fraisse game application to FO [decreasing] application to FO [+1]. Part 5 Finite semigroups: the syntactic monoid calculation of the syntactic monoid application to FO [decreasing] semidirect products categories and path conditions pseudovarieties. Part 6 First-order logic: characterization of FO [decreasing] a hierarchy in FO [decreasing] another characterization of FO [+1] sentences with regular numerical predicates. Part 7 Modular quantifiers: definition and examples languages in (FO + MOD(P))[decreasing] languages in (FO + MOD)[+1] languages in (FO + MOD)[Reg] summary. Part 8 Circuit complexity: examples of circuits circuits and circuit complexity classes lower bounds. Part 9 Regular languages and circuit complexity: regular languages in NC1 formulas with arbitrary numerical predicates regular languages and non-regular numerical predicates special cases of the central conjecture. Appendices: proof of the Krohn-Rhodes theorem proofs of the category theorems.
Article
Using purely syntactical arguments, it is shown that every nontrivial pseudovariety of monoids contained in DO whose corresponding variety of languages is closed under unambiguous product, for instance DA, is local in the sense of Tilson.
Article
We consider the quantifier alternation hierarchy within two-variable first-order logic FO^2[<,suc] over finite words with linear order and binary successor predicate. We give a single identity of omega-terms for each level of this hierarchy. This shows that it is decidable for a given regular language and a non-negative integer m, whether the language is definable by a formula in FO^2[<,suc] which has at most m quantifier alternations. We also consider the alternation hierarchy of unary temporal logic TL[X,F,Y,P] defined by the maximal number of nested negations. This hierarchy coincides with the FO^2[<,suc] alternation hierarchy.
Conference Paper
Uniformity notions more restrictive than the usual FO[<, +, *]-uniformity = FO[<, Bit]-uniformity are introduced. It is shown that the general framework exhibited by Barrington et al. still holds if the fan-in of the gates in the corresponding circuits is considered
Article
A language L over an alphabet A is said to have a neutral letter if there is a letter e∈A such that inserting or deleting e's from any word in A* does not change its membership or non-membership in L.The presence of a neutral letter affects the definability of a language in first-order logic. It was conjectured that it renders all numerical predicates apart from the order predicate useless, i.e., that if a language L with a neutral letter is not definable in first-order logic with linear order, then it is not definable in first-order logic with any set N of numerical predicates. Named after the location of its first, flawed, proof this conjecture is called the Crane Beach conjecture (CBC, for short). The CBC is closely related to uniformity conditions in circuit complexity theory and to collapse results in database theory.We investigate the CBC in detail, showing that it fails for N={+,×}, or, possibly stronger, for any set N that allows counting up to the m times iterated logarithm, for any constant m. On the positive side, we prove the conjecture for the case of all monadic numerical predicates, for the addition predicate +, for the fragment BC(Σ1) of first-order logic, for regular languages, and for languages over a binary alphabet. We explain the precise relation between the CBC and so-called natural-generic collapse results in database theory. Furthermore, we introduce a framework that gives better understanding of what exactly may cause a failure of the conjecture.