A metalanguage for cost-aware denotational semantics

09/26/2022
by   Yue Niu, et al.
0

We present two metalanguages for developing synthetic cost-aware denotational semantics of programming languages. Extending the recent work of Niu et al. [2022] on calf, a dependent type theory for both cost and behavioral verification, we define two metalanguages, calf^⋆ and calf^ω, for studying cost-aware metatheory. calf^⋆ is an extension of calf with universes and inductive types, and calf^ω is a an extension of calf^⋆ 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 cost-aware generalization of the classic Plotkin-type computational adequacy theorem. Moreover, by developing our proofs in a synthetic language of phase-separated constructions of intension and extension, our results easily restrict to the corresponding extensional theorems. Our work provides a positive answer to the conjecture raised in Niu et al. [2022] and in light of op. cit.'s work on algorithm analysis, contributes a metalanguage for doing both cost-aware programming and verification and cost-aware metatheory of programming languages.

READ FULL TEXT
research
04/20/2022

Sheaf semantics of termination-insensitive noninterference

We propose a new sheaf semantics for secure information flow over a spac...
research
11/28/2022

Mechanized Noninterference for Gradual Security

This paper presents the first machine-checked proof of noninterference f...
research
05/04/2019

A Type System for First-Class Layers with Inheritance, Subtyping, and Swapping

Context-Oriented Programming (COP) is a programming paradigm to encourag...
research
07/09/2021

A cost-aware logical framework

We present calf, a cost-aware logical framework for studying quantitativ...
research
11/23/2022

Data-Codata Symmetry and its Interaction with Evaluation Order

Data types and codata types are, as the names suggest, often seen as dua...
research
01/08/2021

Polymorphic System I

System I is a simply-typed lambda calculus with pairs, extended with an ...
research
01/07/2020

Retentive Lenses

Based on Foster et al.'s lenses, various bidirectional programming langu...

Please sign up or login with your details

Forgot password? Click here to reset