作者: Rowan Davies , Frank Pfenning
关键词:
摘要: We show that a type system based on the intuitionistic modal logic S4 provides an expressive framework for specifying and analyzing computation stages in context of functional languages. Our main technical result is conservative embedding Nielson & Nielson's two-level language our Mini-ML, thus proving binding-time correctness equivalent to this fragment. In addition Mini-ML can also express immediate evaluation sharing code across multiple stages, supporting run-time generation as well partial evaluation.