A metalanguage for cost-aware denotational semantics
Abstract
We present two metalanguages for developing of programming languages. Extending the recent work of Niu et al. [2022] on , a dependent type theory for both cost and behavioral verification, we define two metalanguages, and , for studying cost-aware metatheory. is an extension of with universes and inductive types, and is a an extension of with unbounded iteration. We construct denotational models of the simply-typed lambda calculus and Modernized Algol, a language with first-order store and while loops, and show that they satisfy a generalization of the classic Plotkin-type computational adequacy theorem. Moreover, by developing our proofs in a synthetic language of constructions of intension and extension, our results easily to the corresponding extensional theorems. Our work provides a positive answer to the conjecture raised in Niu et al. [2022] and in light of 's work on algorithm analysis, contributes a metalanguage for doing both cost-aware programming and verification and cost-aware metatheory of programming languages.
Cite
@article{arxiv.2209.12669,
title = {A metalanguage for cost-aware denotational semantics},
author = {Yue Niu and Robert Harper},
journal= {arXiv preprint arXiv:2209.12669},
year = {2022}
}