Table of Contents
Fetching ...

A proof theory of right-linear (omega-)grammars via cyclic proofs

Anupam Das, Abhishek De

TL;DR

The paper introduces right-linear algebras ($\mathsf{RLA}$) and a cyclic proof system ($\mathsf{CRLA}$) to reason about right-linear μ-expressions for regular languages, proving CRLA is sound and complete for the model $\mathcal{L}(\cdot)$ and enabling extraction of inductive invariants that yield completeness of $\mathsf{RLA}$ (making regular languages the free right-linear algebra). It then extends the framework to ω-words with greatest fixed points via $\nu\mathsf{CRLA}$, achieving soundness and guarded completeness for the $\omega$-regular language model using game-theoretic techniques. The work positions RLAs as a broader alternative to left-handed Kleene algebras, offering a simpler proof-theoretic approach and a robust, extractable invariants methodology for fixed-point reasoning.

Abstract

Right-linear (or left-linear) grammars are a well-known class of context-free grammars computing just the regular languages. They may naturally be written as expressions with (least) fixed points but with products restricted to letters as left arguments, giving an alternative to the syntax of regular expressions. In this work, we investigate the resulting logical theory of this syntax. Namely, we propose a theory of right-linear algebras (RLA) over of this syntax and a cyclic proof system CRLA for reasoning about them. We show that CRLA is sound and complete for the intended model of regular languages. From here we recover the same completeness result for RLA by extracting inductive invariants from cyclic proofs, rendering the model of regular languages the free right-linear algebra. Finally, we extend system CRLA by greatest fixed points, nuCRLA, naturally modelled by languages of omega-words thanks to right-linearity. We show a similar soundness and completeness result of (the guarded fragment of) nuCRLA for the model of omega-regular languages, employing game theoretic techniques.

A proof theory of right-linear (omega-)grammars via cyclic proofs

TL;DR

The paper introduces right-linear algebras () and a cyclic proof system () to reason about right-linear μ-expressions for regular languages, proving CRLA is sound and complete for the model and enabling extraction of inductive invariants that yield completeness of (making regular languages the free right-linear algebra). It then extends the framework to ω-words with greatest fixed points via , achieving soundness and guarded completeness for the -regular language model using game-theoretic techniques. The work positions RLAs as a broader alternative to left-handed Kleene algebras, offering a simpler proof-theoretic approach and a robust, extractable invariants methodology for fixed-point reasoning.

Abstract

Right-linear (or left-linear) grammars are a well-known class of context-free grammars computing just the regular languages. They may naturally be written as expressions with (least) fixed points but with products restricted to letters as left arguments, giving an alternative to the syntax of regular expressions. In this work, we investigate the resulting logical theory of this syntax. Namely, we propose a theory of right-linear algebras (RLA) over of this syntax and a cyclic proof system CRLA for reasoning about them. We show that CRLA is sound and complete for the intended model of regular languages. From here we recover the same completeness result for RLA by extracting inductive invariants from cyclic proofs, rendering the model of regular languages the free right-linear algebra. Finally, we extend system CRLA by greatest fixed points, nuCRLA, naturally modelled by languages of omega-words thanks to right-linearity. We show a similar soundness and completeness result of (the guarded fragment of) nuCRLA for the model of omega-regular languages, employing game theoretic techniques.
Paper Structure (9 sections, 9 theorems, 8 equations, 1 figure)

This paper contains 9 sections, 9 theorems, 8 equations, 1 figure.

Key Result

Proposition 5

$L\subseteq \mathcal{A}^*$ is regular $\iff$$L = \mathcal{L}(e)$ for some $\mu$-expression $e$.

Figures (1)

  • Figure 1: Summary of our main contributions. Each arrow $\rightarrow$ denotes an inclusion of equational theories, over right-linear expressions. The gray arrow marked \ref{['thm:crla-soundness']} is consequence of the black solid ones.

Theorems & Definitions (32)

  • Remark 1: Right-linear grammars as NFAs
  • Definition 2: Regular language model $\mathcal{L}(\cdot)$
  • Example 3: Empty and universal languages
  • Example 4: Right-linear grammars
  • Proposition 5
  • proof : Proof of $\implies$ direction of \ref{['prop:rl-langs-are-just-reg-langs']}
  • Remark 6: One-variable fragment
  • Definition 7: Fisher-Ladner
  • Proposition 8: Properties of $\mathrm{FL}$
  • proof : Proof idea
  • ...and 22 more