This paper introduces "web grammars" as a novel framework for defining languages of directed graphs, moving beyond traditional string-based grammars. The authors develop a formal system for rewriting and generating these graph structures, laying the groundwork for a more general theory of picture languages.
TL;DR
This paper introduces "web grammars" that generate languages of directed graphs, generalizing string grammars to handle more complex structures. The authors define the formalisms for web rewriting rules and grammars, demonstrating their application to generating trees and series-parallel networks, and exploring connections to context-sensitive and acyclic graph structures.
What Problem Does This Paper Address?
Traditional formal language theory, exemplified by Chomsky's grammars, deals with languages composed of strings of symbols. However, many real-world "languages" are not linear strings but rather graphical structures, such as images, circuit diagrams, or network topologies. The challenge is to develop a formal grammar system that can generate and manipulate these more complex, non-linear structures. This paper addresses this by proposing "web grammars," which operate on directed graphs with symbols at their vertices, thus generalizing the concept of strings to a broader class of graphical representations.
Methods
The core of the paper introduces the concept of "webs," which are directed graphs with symbols assigned to their vertices (V-labelled graphs). The authors then define "web rewriting rules" as triples $(a, \beta, E)$, where $a$ and $\beta$ are webs, and $E$ is an "embedding" that specifies how $\beta$ is to be integrated into a host web in place of $a$. This embedding mechanism is crucial for defining how subwebs are replaced.
The paper categorizes web grammars into context-sensitive and context-free variants, analogous to their string grammar counterparts. A context-sensitive rule rewrites only a single point, while a context-free rule involves a single-point subweb $a$. The authors also introduce the notion of graph homomorphism as a way to formalize the "contraction" of subwebs, which is essential for parsing and understanding the structure of generated webs. They explore properties of acyclic webs and introduce the concept of "convex" subgraphs, which are crucial for characterizing the structure of webs generated by these grammars.
Datasets
Not discussed in the paper. The paper focuses on defining a theoretical framework and demonstrating its generative power with examples, rather than empirical evaluation on datasets.
Key Insights and Ideas
- Generalization of Strings to Graphs: The fundamental insight is that strings can be viewed as a special case of directed graphs, and thus grammars can be generalized to operate on these more complex graph structures.
- Web Rewriting Rules: The formalization of rewriting rules using webs and embeddings provides a powerful mechanism for manipulating graphical structures.
- Context-Sensitivity in Graphs: The paper extends the notions of context-sensitive and context-free grammars to the realm of graphs, allowing for the generation of languages with specific structural properties.
- Convexity as a Key Property: The concept of "convex" subgraphs in acyclic graphs emerges as a critical property, analogous to substrings in strings, for understanding and parsing web languages.
- Acyclic Graphs as Natural Generalizations of Strings: The paper highlights that acyclic graphs, with their partial order relations, serve as a natural generalization of strings, which have total order relations.
Key Results
The paper presents several key results:
- Formal Definition of Web Grammars: A rigorous definition of web grammars, including vocabularies, initial webs, and rewriting rules with embeddings, is provided.
- Context-Free Grammar for Directed Trees: A context-free web grammar is presented that generates the language of all directed trees with least elements.
- Context-Free Grammar for Two-Terminal Series-Parallel Networks: Another context-free grammar is defined for generating directed two-terminal series-parallel networks.
- Characterization of Acyclic Graphs: Proposition 5.1 establishes that an acyclic graph is convex if and only if every subgraph on a single point is convex.
- Contractability and Convexity: Theorem 5.3 proves that a subgraph of an acyclic graph is contractable (can be mapped to a single point via a homomorphism) if and only if it is convex.
- Composition of Contractions: Theorem 5.6 shows that any contraction can be decomposed into a series of contractions of two-point subgraphs.
Limitations and Future Work
- Complexity of Embeddings: The paper acknowledges that defining embeddings for web grammars is more complex than for string grammars, and various embedding strategies can be employed. The paper focuses on specific embedding types for its examples.
- Practical Applicability: The authors note that the general definitions of web rewriting rules and grammars are "too broad to be of much practical use" and that special types of web grammars (analogous to context-sensitive and context-free string grammars) are more relevant.
- Comparison to Existing Systems: The paper briefly compares its framework to "plex grammars" and "picture grammars," suggesting potential equivalences and areas for further investigation.
- Automata Equivalence: The authors suggest it would be of interest to define and study automata that are "equivalent" to the various classes of web grammars (context-free, context-sensitive, etc.), analogous to pushdown automata for context-free string languages.
- Generalization of Kuroda's Results: The paper hints at the possibility of proving an analog of Kuroda's results for context-sensitive web grammars, suggesting that they might be equivalent to grammars with rules involving only small subwebs.
Summary updated