跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:1003.5954 (cs)
[提交于 2010年3月31日 (v1),最后修订于 2010年9月30日 (此版本, v3)]

标题:Multi-Stage Programs are Generalized Arrows

作者:Adam Megacz
查看论文《Multi-Stage Programs are Generalized Arrows》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The lambda calculus, subject to typing restrictions, provides a syntax for the internal language of cartesian closed categories. This paper establishes a parallel result: staging annotations, subject to named level restrictions, provide a syntax for the internal language of Freyd categories, which are known to be in bijective correspondence with Arrows. The connection is made by interpreting multi-stage type systems as indexed functors from polynomial categories to their reindexings. This result applies only to multi-stage languages which are (1) homogeneous, (2) allow cross-stage persistence and (3) place no restrictions on the use of structural rules in typing derivations. Removing these restrictions and repeating the construction yields generalized arrows, of which Arrows are a particular case. A translation from well-typed multi-stage programs to single-stage GArrow terms is provided. The translation is defined by induction on the structure of the proof that the multi-stage program is well-typed, relying on information encoded in the proof's use of structural rules. Metalanguage designers can now factor out the syntactic machinery of metaprogramming by providing a single translation from staging syntax into expressions of generalized arrow type. Object language providers need only implement the functions of the generalized arrow type class in point-free style. Object language users may write metaprograms over these object languages in a point-ful style, using the same binding, scoping, abstraction, and application mechanisms in both the object language and metalanguage. This paper's principal contributions are the GArrow definition of Figures 2 and 3, the translation in Figure 5 and the category-theoretic semantics of Definition 16. An accompanying Coq proof formalizes the type system, translation procedure, and key theorems.
评论: This paper is obsolete and has been superceded by {\it Multi-Level Programs are Generalized Arrows} available here: http://arxiv.org/pdf/1007.2885
主题: 程序设计语言 (cs.PL); 计算机科学中的逻辑 (cs.LO); 范畴论 (math.CT)
引用方式: arXiv:1003.5954 [cs.PL]
  (或者 arXiv:1003.5954v3 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1003.5954

提交历史

来自:Adam Megacz
[v1] 2010年3月31日 星期三 00:42:30 UTC
[v3] 2010年9月30日 星期四 20:40:44 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

math.CT
< 上一篇   |   下一篇 >
最新 | 近期 | 2010-09
切换浏览方式为:
cs
cs.PL
cs.LO

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站