Lune

LICS2025Top-tier venue

Regular Grammars for Sets of Graphs of Tree-Width 2

Marius Bozga, Radu Iosif, Florian Zuleger

Abstract

Regular word grammars are restricted context-free grammars that define all the recognizable languages of words. This paper generalizes regular grammars from words to certain classes of graphs, by defining regular grammars for unordered unranked trees and graphs of tree-width 2 at most. The qualifier "regular" is justified because these grammars define precisely the recognizable (equivalently, CMSO-definable) sets of the respective graph classes. The proof of equivalence between regular and recognizable sets of graphs relies on the effective construction of a recognizer algebra of size doubly-exponential in the size of the grammar. This sets a 2EXPTIME upper bound on the (EXPTIME-hard) problem of inclusion of a context-free language in a regular language, for graphs of tree-width 2 at most. A further syntactic restriction of regular grammars suffices to capture precisely the MSO-definable sets of graphs of tree-width 2 at most, i.e., the sets defined by CMSO formulæ without cardinality constraints. Moreover, we show that MSO-definability coincides with recognizability by algebras having an aperiodic parallel composition semigroup, for each class of graphs defined by a bound on the tree-width.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Recognisability Equals Definability for Finitely Representable Matroids of Bounded Path-WidthRutger Campbell, Bruno Guillon, Mamadou Moustapha Kanté, Eun Jung Kim et al.LICS 2025 · 4 citations
  2. Graphs of unbounded linear cliquewidth must transduce all treesMikolaj Bojanczyk, Pierre OhlmannLICS 2025
  3. Characterization and Decidability of FC-Definable Regular LanguagesSam M. Thompson, Nicole Schweikardt, Dominik D. FreydenbergerLICS 2025
  4. Bounded Treewidth, Multiple Context-Free Grammars, and Downward ClosuresC. Aiswarya, Pascal Baumann, Prakash Saivasan, Lia Schütze et al.POPL 2026 · 1 citation
  5. A proof theory of right-linear (ω-)grammars via cyclic proofsAnupam Das, Abhishek DeLICS 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines