TY - GEN
T1 - Refinement types and computational duality
AU - Zeilberger, Noam
PY - 2009/1/1
Y1 - 2009/1/1
N2 - One lesson learned painfully over the past twenty years is the interaction of Curry-style typing with evaluation order side-effects. This led eventually to the value restriction on in ML, as well as, more recently, to similar artifacts type systems for ML with intersection and union refinement. For example, some of the traditional subtyping laws for and intersections are unsound in the presence of effects,union-elimination requires an evaluation context restriction addition to the value restriction on intersection-introduction.aim is to show that rather than being ad hoc artifacts, phenomena as the value and evaluation context restrictions arise in type systems for effectful languages, out of principles duality. Beginning with a review of recent work on the Curry-interpretation of focusing proofs as pattern-matching programs,explain how to interpret intersection and union refinements these programs, and how to logically derive the subtyping via an identity coercion interpretation. The value, etc., emerge out of this analysis. However, this abstract does not immediately yield a decidable type system, essentially the syntax is infinitary-both "infinitely wide" and "infinitely deep". We show how to mechanically construct a finitary by applying two well-known PL techniques-patterncompilation defunctionalization-and conclude by giving this syntax an algorithmic refinement type system. Parallel to text, we describe an embedding in the dependently-typed functional Agda, both for the sake of clarifying these ideas,also because formalization was an important guide in developing. As one example, the Agda encoding split very naturally an intrinsic ("Church") view of well-typed programs, and an ("Curry") view of refinement typing for those programs.and Subject Descriptors D.3.2 [Programming Languages]:(functional) languages; F.4.1 [Mathematicaland Formal Languages]: Proof theory General Terms Languages.
AB - One lesson learned painfully over the past twenty years is the interaction of Curry-style typing with evaluation order side-effects. This led eventually to the value restriction on in ML, as well as, more recently, to similar artifacts type systems for ML with intersection and union refinement. For example, some of the traditional subtyping laws for and intersections are unsound in the presence of effects,union-elimination requires an evaluation context restriction addition to the value restriction on intersection-introduction.aim is to show that rather than being ad hoc artifacts, phenomena as the value and evaluation context restrictions arise in type systems for effectful languages, out of principles duality. Beginning with a review of recent work on the Curry-interpretation of focusing proofs as pattern-matching programs,explain how to interpret intersection and union refinements these programs, and how to logically derive the subtyping via an identity coercion interpretation. The value, etc., emerge out of this analysis. However, this abstract does not immediately yield a decidable type system, essentially the syntax is infinitary-both "infinitely wide" and "infinitely deep". We show how to mechanically construct a finitary by applying two well-known PL techniques-patterncompilation defunctionalization-and conclude by giving this syntax an algorithmic refinement type system. Parallel to text, we describe an embedding in the dependently-typed functional Agda, both for the sake of clarifying these ideas,also because formalization was an important guide in developing. As one example, the Agda encoding split very naturally an intrinsic ("Church") view of well-typed programs, and an ("Curry") view of refinement typing for those programs.and Subject Descriptors D.3.2 [Programming Languages]:(functional) languages; F.4.1 [Mathematicaland Formal Languages]: Proof theory General Terms Languages.
U2 - 10.1145/1481848.1481852
DO - 10.1145/1481848.1481852
M3 - Conference contribution
AN - SCOPUS:70149092598
SN - 9781605583303
T3 - Proceedings of the 2009 ACM SIGPLAN Workshop on Programming Languages meets Program Verification, PLPV'09
SP - 15
EP - 26
BT - Proceedings of the 2009 ACM SIGPLAN Workshop on Programming Languages meets Program Verification, PLPV'09
PB - Association for Computing Machinery
T2 - 2009 ACM SIGPLAN Workshop on Programming Languages meets Program Verification, PLPV'09
Y2 - 20 January 2009 through 20 January 2009
ER -