arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.03784cs.LO
收藏

计算范畴论重写

Computational category-theoretic rewriting

Kristopher Brown, Evan Patterson, Tyler Hanks, James Fairbanks

AI总结:

本研究将范畴论规范应用于图重写领域,在有限展示C-sets抽象层实现高效算法,提供可扩展的开源库以支持多种数据结构上的重写操作。

摘要:

我们展示了范畴论如何提供可通过命令式算法高效实现的规范,并将其应用于图重写领域。通过示例,我们展示了这种软件开发范式如何使得快速编写正确且高性能的代码变得容易。我们在有限展示 C-sets 的抽象层面上提供了图重写技术的现代实现,并阐明了 C-sets 与现有重写软件支持的类型化图之间的联系。我们强调我们的开源库是可扩展的:通过采用新的范畴构造(如切片范畴、结构化余span和分布式图)并将其极限和余极限与其底层范畴的极限和余极限相关联,用户继承了用于推出补和(最终)拉回补的高效算法。这使得能够在广泛的数据结构类上执行双推出、单推出和sesqui-pushout重写。

英文摘要:

We demonstrate how category theory provides specifications that can efficiently be implemented via imperative algorithms and apply this to the field of graph rewriting. By examples, we show how this paradigm of software development makes it easy to quickly write correct and performant code. We provide a modern implementation of graph rewriting techniques at the level of abstraction of finitely-presented C-sets and clarify the connections between C-sets and the typed graphs supported in existing rewriting software. We emphasize that our open-source library is extensible: by taking new categorical constructions (such as slice categories, structured cospans, and distributed graphs) and relating their limits and colimits to those of their underlying categories, users inherit efficient algorithms for pushout complements and (final) pullback complements. This allows one to perform double-, single-, and sesqui-pushout rewriting over a broad class of data structures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑