计算机科学 > 程序设计语言
[提交于 2009年7月12日]
标题:A Type System For Call-By-Name Exceptions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present an extension of System F with call-by-name exceptions. The type system is enriched with two syntactic constructs: a union type for programs whose execution may raise an exception at top level, and a corruption type for programs that may raise an exception in any evaluation context (not necessarily at top level). We present the syntax and reduction rules of the system, as well as its typing and subtyping rules. We then study its properties, such as confluence. Finally, we construct a realizability model using orthogonality techniques, from which we deduce that well-typed programs are weakly normalizing and that the ones who have the type of natural numbers really compute a natural number, without raising exceptions.
提交历史
来自:Sylvain Lebresne[v1] 2009年7月12日 星期日 18:30:31 UTC