Abstract:We study how to relate well-known hypergraph grammars based on the double pushout (DPO) approach and grammars over the hypergraph Lambek calculus HL (called HL-grammars). It turns out that DPO rules can be naturally encoded by types of HL using methods similar to those used by Kanazawa for multiplicative-exponential linear logic. In order to generalize his reasonings we extend the hypergraph Lambek calculus by adding the exponential modality, which results in a new calculus HMEL0; then we prove that any DPO grammar can be converted into an equivalent HMEL0-grammar. We also define the conjunctive Kleene star, which behaves similarly to this exponential modality, and establish a similar result. If we add neither the exponential modality nor the conjunctive Kleene star to HL, then we can still use the same encoding and show that any DPO grammar with a linear restriction on the length of derivations can be converted into an equivalent HL-grammar.
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: how to establish a connection between hypergraph grammars based on the Double Pushout (DPO) method and Hypergraph Lambek Grammars (HL - grammars). Specifically, the author aims to explore whether any DPO grammar can be transformed into an equivalent HL - grammar or its extended form HMEL₀ - grammar, and to study the equivalence of these grammars in generating hypergraph languages.
### Core of the Problem
1. **Relationship between DPO Grammar and HL - Grammar**
- DPO grammar is a formal method for graph transformation and is widely used in the study of graph grammars.
- HL - grammar is based on the Hypergraph Lambek Calculus. It inherits the main principles of the Lambek Calculus and extends them to hypergraphs.
2. **Equivalence Transformation**
- Research whether each DPO grammar can be transformed into an HL - grammar or HMEL₀ - grammar that generates the same language.
- Pay special attention to the HMEL₀ - grammar after adding the exponential modality (!), and the HL - grammar when the exponential modality is not added.
3. **Complexity Analysis**
- DPO grammar is Turing - complete, while the membership problem of HL - grammar is decidable (even NP - complete). Therefore, a direct equivalence transformation is impossible.
- By introducing a linear restriction (i.e., a restriction on the length of derivation), study whether an equivalence transformation can be achieved under this restriction.
### Main Contributions
- **Encoding Method**: A simple method of naturally encoding DPO rules into HL types is proposed, similar to the encoding method defined by Kanazawa for multiplicative - exponential linear logic.
- **New Calculus HMEL₀**: By adding the exponential modality!, a new Hypergraph Multiplicative - Exponential Lambek Calculus (HMEL₀) is defined, and it is proved that DPO grammar can be transformed into an equivalent HMEL₀ - grammar.
- **Equivalence under Linear Restriction**: For DPO grammars with linear restrictions, it is proved that they can be transformed into equivalent HL - grammars.
### Formula Representation
- **Exponential Modality**:!A represents the exponential modality of type A, where \( \text{rk}(!A)=0 \).
- **Hypergraph Substitution**: Given a hypergraph \( G \) and a hypergraph \( H \), \( G[e_0/H] \) represents replacing the hyper - edge \( e_0 \) in \( G \) with \( H \).
- **Derivation Rules**: For example, the introduction rules of the exponential modality are as follows:
\[
\frac{H + A^\bullet \rightarrow B}{H + (!A)^\bullet \rightarrow B} \quad (\text{!}\rightarrow)
\]
\[
\frac{\sum_{i = 1}^n (!A_i)^\bullet \rightarrow A}{\sum_{i = 1}^n (!A_i)^\bullet \rightarrow!A} \quad (\rightarrow\text{!})
\]
Through the research of these problems, the paper provides theoretical basis and methodological support for understanding and transforming different types of hypergraph grammars.