The hyperedge replacement grammar (HRG) formalism is a natural and well-known generalization of context-free grammars. HRGs inherit a number of properties of context-free grammars, e.g. the pumping lemma. This lemma turns out to be a strong restriction in the hypergraph case: it implies that languages of unbounded connectivity cannot be generated by HRGs. We introduce a formalism that turns out to be more powerful than HRGs while having the same algorithmic complexity (NP-complete). Namely, we introduce hypergraph Lambek grammars; they are based on the hypergraph Lambek calculus, which may be considered as a logic of hypergraph languages. We explain the underlying principles of hypergraph Lambek grammars, establish their basic properties, and show some languages of unbounded connectivity that can be generated by them (e.g. the language of all graphs, the language of all bipartite graphs, the language of all regular graphs).
A polynomial time algorithm for the Lambek calculus with brackets of bounded order
National Research University Higher School of Economics(国立研究型大学高等经济学院);Steklov Mathematical Institute of RAS(俄罗斯科学院斯捷克洛夫数学研究所);Universitat Politècnica de Catalunya(加泰罗尼亚理工大学);University of Pennsylvania(宾夕法尼亚大学)
Fraunhofer Institute for Ceramic Technologies and Systems IKTS(弗劳恩霍夫陶瓷技术与系统研究所IKTS);Brandenburgische Technische Universität (BTU) Cottbus–Senftenberg(科特布斯-森夫滕伯格勃兰登堡工业大学(BTU))