依赖类型的有效处理
An Effectful Treatment of Dependent Types
摘要:
为了研究计算效应和依赖类型之间的相互作用,我们将Levy的按推值调用(CBPV)分析从简单扩展到依赖类型论(DTT)。我们定义的天真系统依赖类型的CBPV,dCBPV-,其扩展与Kleisli扩展依赖函数,dCBPV+的原则。我们从句法、范畴语义、具体模型和操作语义的角度对这些系统进行了研究,并考察了它们的影响。我们观察到,虽然dCBPV+的表达能力是必要的,如果我们想要良好定义的调用按值(CBV)和调用按名称(CBN)的DTT翻译,它是一个不那么简单的系统比dCBPV-,在存在一些影响。事实上,为了能够构建特定的模型并在操作语义中保留主语归约属性,我们需要施加某些子类型条件,其思想是,随着某些效果的执行,计算的类型可能只会变得更多(而不是更少)指定。
英文摘要:
We extend Levy's call-by-push-value (CBPV) analysis from simple to dependent type theory (DTT) in order to study the interaction between computational effects and dependent types. We define the naive system of dependently typed CBPV, dCBPV-, and its extension with a principle of Kleisli extensions for dependent functions, dCBPV+. We investigate these systems from the points of view of syntax, categorical semantics, concrete models and operational semantics, in presence of a range of effects. We observe that, while the expressive power of dCBPV+ is needed if we want well-defined call-by-value (CBV) and call-by-name (CBN) translations of DTT, it is a less straightforward system than dCBPV-, in presence of some effects. Indeed, to be able to construct specific models and to retain the subject reduction property in the operational semantics, we are required to impose certain subtyping conditions, the idea being that the type of a computation may only become more (not less) specified as certain effects are executed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。