440 research outputs found
Equational reasoning with context-free families of string diagrams
String diagrams provide an intuitive language for expressing networks of
interacting processes graphically. A discrete representation of string
diagrams, called string graphs, allows for mechanised equational reasoning by
double-pushout rewriting. However, one often wishes to express not just single
equations, but entire families of equations between diagrams of arbitrary size.
To do this we define a class of context-free grammars, called B-ESG grammars,
that are suitable for defining entire families of string graphs, and crucially,
of string graph rewrite rules. We show that the language-membership and
match-enumeration problems are decidable for these grammars, and hence that
there is an algorithm for rewriting string graphs according to B-ESG rewrite
patterns. We also show that it is possible to reason at the level of grammars
by providing a simple method for transforming a grammar by string graph
rewriting, and showing admissibility of the induced B-ESG rewrite pattern.Comment: International Conference on Graph Transformation, ICGT 2015. The
final publication is available at Springer via
http://dx.doi.org/10.1007/978-3-319-21145-9_
A first-order logic for string diagrams
Equational reasoning with string diagrams provides an intuitive means of
proving equations between morphisms in a symmetric monoidal category. This can
be extended to proofs of infinite families of equations using a simple
graphical syntax called !-box notation. While this does greatly increase the
proving power of string diagrams, previous attempts to go beyond equational
reasoning have been largely ad hoc, owing to the lack of a suitable logical
framework for diagrammatic proofs involving !-boxes. In this paper, we extend
equational reasoning with !-boxes to a fully-fledged first order logic called
with conjunction, implication, and universal quantification over !-boxes. This
logic, called !L, is then rich enough to properly formalise an induction
principle for !-boxes. We then build a standard model for !L and give an
example proof of a theorem for non-commutative bialgebras using !L, which is
unobtainable by equational reasoning alone.Comment: 15 pages + appendi
!-Graphs with Trivial Overlap are Context-Free
String diagrams are a powerful tool for reasoning about composite structures
in symmetric monoidal categories. By representing string diagrams as graphs,
equational reasoning can be done automatically by double-pushout rewriting.
!-graphs give us the means of expressing and proving properties about whole
families of these graphs simultaneously. While !-graphs provide elegant proofs
of surprisingly powerful theorems, little is known about the formal properties
of the graph languages they define. This paper takes the first step in
characterising these languages by showing that an important subclass of
!-graphs--those whose repeated structures only overlap trivially--can be
encoded using a (context-free) vertex replacement grammar.Comment: In Proceedings GaM 2015, arXiv:1504.0244
Tensors, !-graphs, and non-commutative quantum structures
Categorical quantum mechanics (CQM) and the theory of quantum groups rely
heavily on the use of structures that have both an algebraic and co-algebraic
component, making them well-suited for manipulation using diagrammatic
techniques. Diagrams allow us to easily form complex compositions of
(co)algebraic structures, and prove their equality via graph rewriting. One of
the biggest challenges in going beyond simple rewriting-based proofs is
designing a graphical language that is expressive enough to prove interesting
properties (e.g. normal form results) about not just single diagrams, but
entire families of diagrams. One candidate is the language of !-graphs, which
consist of graphs with certain subgraphs marked with boxes (called !-boxes)
that can be repeated any number of times. New !-graph equations can then be
proved using a powerful technique called !-box induction. However, previously
this technique only applied to commutative (or cocommutative) algebraic
structures, severely limiting its applications in some parts of CQM and
(especially) quantum groups. In this paper, we fix this shortcoming by offering
a new semantics for non-commutative !-graphs using an enriched version of
Penrose's abstract tensor notation.Comment: In Proceedings QPL 2014, arXiv:1412.810
Functorial String Diagrams for Reverse-Mode Automatic Differentiation
We formulate a reverse-mode automatic differentiation (RAD) algorithm for (applied) simply typed lambda calculus in the style of Pearlmutter and Siskind [Barak A. Pearlmutter and Jeffrey Mark Siskind, 2008], using the graphical formalism of string diagrams. Thanks to string diagram rewriting, we are able to formally prove for the first time the soundness of such an algorithm. Our approach requires developing a calculus of string diagrams with hierarchical features in the spirit of functorial boxes, in order to model closed monoidal (and cartesian closed) structure. To give an efficient yet principled implementation of the RAD algorithm, we use foliations of our hierarchical string diagrams
- …