计算机科学 > 计算机科学中的逻辑
[提交于 2010年7月24日]
标题:Initial Algebra Semantics for Cyclic Sharing Tree Structures
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Terms are a concise representation of tree structures. Since they can be naturally defined by an inductive type, they offer data structures in functional programming and mechanised reasoning with useful principles such as structural induction and structural recursion. However, for graphs or "tree-like" structures - trees involving cycles and sharing - it remains unclear what kind of inductive structures exists and how we can faithfully assign a term representation of them. In this paper we propose a simple term syntax for cyclic sharing structures that admits structural induction and recursion principles. We show that the obtained syntax is directly usable in the functional language Haskell and the proof assistant Agda, as well as ordinary data structures such as lists and trees. To achieve this goal, we use a categorical approach to initial algebra semantics in a presheaf category. That approach follows the line of Fiore, Plotkin and Turi's models of abstract syntax with variable binding.
提交历史
来自:Makoto Hamana[v1] 2010年7月24日 星期六 11:12:56 UTC