arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.02145cs.PL
收藏

面向效果处理器的渐近类型化

Gradual Typing for Effect Handlers

Max S. New, Eric Giovannini, Daniel R. Licata

AI总结:

提出支持效果处理器的渐近类型化语言GrEff,通过精化到核心语言并构建逻辑关系模型,实现了从未检查到已检查效果类型化的安全迁移,并证明了其渐近性定理。

摘要:

我们提出了一种支持效果和处理器的渐近类型化语言GrEff,它支持从未检查到已检查效果类型化的迁移。这作为一个简单的模型,展示了将效果类型化规范与不追踪细粒度效果信息的现有带效果类型化语言相集成。我们的语言支持简单的模块系统,以Typed Racket的风格模拟从未检查到已检查效果类型化的渐进迁移编程模型。表层语言GrEff通过精化到核心语言Core GrEff来给出语义。我们为Core GrEff配备了不等式理论,用于推理语义错误排序以及使用效果和处理器编程所需的程序等价性。我们从该理论中可证明的等式推导出该语言的操作语义。随后,我们通过构建操作逻辑关系模型来证明该理论的可靠性,从而证明渐近性定理。这将先前关于渐近类型化的嵌入-投影对模型的工作扩展到处理效果类型化和子类型化。

英文摘要:

We present a gradually typed language, GrEff, with effects and handlers that supports migration from unchecked to checked effect typing. This serves as a simple model of the integration of an effect typing discipline with an existing effectful typed language that does not track fine-grained effect information. Our language supports a simple module system to model the programming model of gradual migration from unchecked to checked effect typing in the style of Typed Racket. The surface language GrEff is given semantics by elaboration to a core language Core GrEff. We equip Core GrEff with an inequational theory for reasoning about the semantic error ordering and desired program equivalences for programming with effects and handlers. We derive an operational semantics for the language from the equations provable in the theory. We then show that the theory is sound by constructing an operational logical relations model to prove the graduality theorem. This extends prior work on embedding-projection pair models of gradual typing to handle effect typing and subtyping.

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

↑