English

Finite-Horizon First-Order Rank Profiles of Regular Languages

Formal Languages and Automata Theory 2026-05-01 v1 Logic in Computer Science

Abstract

We introduce the finite-horizon first-order rank profile of a language LΣL \subseteq \Sigma^*: the least quantifier rank needed by an FO[<]\mathrm{FO}[<] sentence to classify membership in LL correctly on all words of length at most nn. The invariant measures quantifier depth only; formula size is deliberately not bounded. First, we prove a rank calculus that is independent of regularity. Every language satisfies ρL(n)log2n+4\rho_L(n) \le \lceil \log_2 n \rceil + 4, via balanced first-order distance formulas and exact-word definitions. Moreover, supnρL(n)<\sup_n \rho_L(n) < \infty holds exactly when LL is globally FO[<]\mathrm{FO}[<]-definable, and the supremum equals the minimum quantifier rank of such a definition. Second, for regular languages we prove a sharp aperiodicity gap: if the syntactic monoid of LL is aperiodic, then ρL(n)=O(1)\rho_L(n) = O(1); otherwise ρL(n)=log2n+OL(1)\rho_L(n) = \log_2 n + O_L(1). The lower bound extracts a nontrivial cyclic component from the syntactic monoid and combines it with an Ehrenfeucht-Fraisse power lemma for long repetitions of a fixed word. Thus, for full FO[<]\mathrm{FO}[<] quantifier rank, regular languages admit no intermediate finite-horizon growth between bounded and logarithmic rank.

Keywords

Cite

@article{arxiv.2604.27024,
  title  = {Finite-Horizon First-Order Rank Profiles of Regular Languages},
  author = {Madina Bazarova and Faruk Alpay},
  journal= {arXiv preprint arXiv:2604.27024},
  year   = {2026}
}