English

Type Directed Partial Evaluation for Level-1 Shift and Reset

Programming Languages 2013-09-06 v4

Abstract

We present an implementation in the Coq proof assistant of type directed partial evaluation (TDPE) algorithms for call-by-name and call-by-value versions of shift and reset delimited control operators, and in presence of strong sum types. We prove that the algorithm transforms well-typed programs to ones in normal form. These normal forms can not always be arrived at using the so far known equational theories. The typing system does not allow answer-type modification for function types and allows delimiters to be set on at most one atomic type. The semantic domain for evaluation is expressed in Constructive Type Theory as a dependently typed monadic structure combining Kripke models and continuation passing style translations.

Keywords

Cite

@article{arxiv.1210.2094,
  title  = {Type Directed Partial Evaluation for Level-1 Shift and Reset},
  author = {Danko Ilik},
  journal= {arXiv preprint arXiv:1210.2094},
  year   = {2013}
}

Comments

In Proceedings COS 2013, arXiv:1309.0924

R2 v1 2026-06-21T22:17:38.722Z