Steklov Mathematical Institute, 8 Gubkina Str. Moscow, Russia and https://www.researchgate.net/profile/Tikhon-Pshenitsyn [email protected]://orcid.org/0000-0003-4779-3143 {CCSXML} <ccs2012> <concept> <concept_id>10003752.10003790.10003801</concept_id> <concept_desc>Theory of computation Linear logic</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10003752.10003766.10003771</concept_id> <concept_desc>Theory of computation Grammars and context-free languages</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10003752.10003766.10003767.10003769</concept_id> <concept_desc>Theory of computation Rewrite systems</concept_desc> <concept_significance>300</concept_significance> </concept> </ccs2012> \ccsdesc[500]Theory of computation Linear logic \ccsdesc[500]Theory of computation Grammars and context-free languages \ccsdesc[300]Theory of computation Rewrite systems \fundingThis work was supported by the Russian Science Foundation under grant no.23-11-00104, https://rscf.ru/project/23-11-00104/.
First-Order Intuitionistic Linear Logic and Hypergraph Languages
Abstract
The Lambek calculus is a substructural logic known to be closely related to the formal language theory: on the one hand, it is used for generating formal languages by means of categorial grammars and, on the other hand, it is sound and complete with respect to formal language semantics. This paper studies a similar relation between first-order intuitionistic linear logic ILL1 along with its multiplicative fragment MILL1 and the hypergraph grammar theory.
In the first part, we introduce a novel concept of hypergraph first-order logic categorial grammar, which is a generalisation of string MILL1 grammars studied in (Moot, 2014). We prove that hypergraph ILL1 grammars generate all recursively enumerable hypergraph languages and that hypergraph MILL1 grammars are as powerful as linear-time hypergraph transformation systems. Using these results, we solve an open problem from the article (Moot, 2014), which asks whether string MILL1 grammars generate exactly multiple context-free languages. We show that the class of languages generated by string MILL1 grammars is closed under intersection and that it includes a non-semilinar language as well as an NP-complete one. This shows how powerful string MILL1 grammars are as compared to Lambek categorial grammars.
In the second part, we develop hypergraph language models for MILL1. In such models, formulae of the logic are interpreted as hypergraph languages and multiplicative conjunction is interpreted using parallel composition, which is one of the operations of HR-algebras introduced by Courcelle. We prove completeness of the universal-implicative fragment of MILL1 with respect to these models and thus present a new kind of semantics for a fragment of first-order linear logic.
keywords:
linear logic, categorial grammar, MILL1 grammar, first-order logic, hypergraph language, graph transformation, language semantics, HR-algebra1 Introduction
There is a strong connection between substructural logics, especially non-commutative ones, and the theory of formal languages and grammars [Buszkowski03, MootR12]. This connection is two-way. On the one hand, a logic can be used as a derivational mechanism for generating formal languages, which is the essence of categorial grammars. One prominent example is Lambek categorial grammars based on the Lambek calculus [Lambek58]; formulae of the latter are built using multiplicative conjunction ‘’ and two directed implications ‘’, ‘’. In a Lambek categorial grammar, one assigns a finite number of formulae of to each symbol of an alphabet and chooses a distinguished formula ; then, the grammar accepts a string if the sequent is derivable in where, for , is one of the formulae assigned to . A famous result by Pentus [Pentus93] says that Lambek categorial grammars generate exactly context-free languages (without the empty word, to be precise).
On the other hand, algebras of formal languages can serve as models for substructural logics. For example, one can define language semantics for the Lambek calculus as follows: a language model is a function mapping formulas of to formal languages such that , , and ; a sequent is interpreted as inclusion . Another famous result by Pentus with a very complicated proof [Pentus95] is that is sound and complete w.r.t. language semantics; completeness for the fragment of without ‘’ had been proved earlier by Buszkowski in [Buszkowski82].
Numerous variants and extensions of the Lambek calculus have been studied, including its nonassociative version [MootR12], commutative version [vanBenthem95] (i.e. multiplicative intuitionistic linear logic), the multimodal Lambek calculus [Moortgat96], the displacement calculus [MorrillVF10] etc. These logics have many common properties, which motivates searching for a unifying logic. One such “umbrella” logic is the first-order multiplicative intuitionistic linear logic [Moot14, MootP01], which is the multiplicative fragment of first-order intuitionistic linear logic . The Lambek calculus can be embedded in [MootP01]: for example, the sequent is translated into the sequent . Although is a first-order generalisation of , derivability problems in these logics have the same complexity, namely, they are NP-complete.
One can define categorial grammars in the same manner as Lambek categorial grammars [Moot14, Slavnov23]. The former generalise of the latter, hence generate all context-free languages. Moot proved in [Moot14] that grammars generate all multiple context-free languages, hence some non-context-free ones, e.g. . However, it has remained an open question whether the upper bound is the same:
“Do grammars without complex terms <…> generate exactly the multiple context-free languages or strictly more?” [Moot14]
It turns out that the interplay between propositional substructural logics and formal grammars can be elevated fruitfully to that between first-order substructural logics and hypergraph grammars, which is the subject of this article. Hypergraph grammar approaches generate sets of hypergraphs; usually they are designed as generalisations of grammar formalisms generating strings. For example, hyperedge replacement grammar [DrewesKH97] is a formalism that extends context-free grammar. A rule of a hyperedge replacement grammar allows one to replace a hyperedge in a hypergraph by another hypergraph; see an example below.