计算机科学 > 程序设计语言
[提交于 2011年1月24日]
标题:Untangling Typechecking of Intersections and Unions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Intersection and union types denote conjunctions and disjunctions of properties. Using bidirectional typechecking, intersection types are relatively straightforward, but union types present challenges. For union types, we can case-analyze a subterm of union type when it appears in evaluation position (replacing the subterm with a variable, and checking that term twice under appropriate assumptions). This technique preserves soundness in a call-by-value semantics. Sadly, there are so many choices of subterms that a direct implementation is not practical. But carefully transforming programs into let-normal form drastically reduces the number of choices. The key results are soundness and completeness: a typing derivation (in the system with too many subterm choices) exists for a program if and only if a derivation exists for the let-normalized program.
提交历史
来自:EPTCS[v1] 2011年1月24日 星期一 01:39:46 UTC