arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.12669cs.PL
收藏

代价感知指称语义的元语言

A metalanguage for cost-aware denotational semantics

Yue Niu, Robert Harper

摘要:

本文提出了两种用于开发程序设计语言的$\textit{synthetic cost-aware denotational semantics}$的元语言。扩展了Niu等人最近的工作。[2022]关于$\textbf{calf}$,一种用于成本和行为验证的依赖类型理论,我们定义了两种元语言,$\textbf{calf}^\star$和$\textbf{calf}^ω$,用于研究成本感知元理论。$\textbf{calf}^\star$是$\textbf{calf}$的具有论域和归纳类型的扩展,$\textbf{calf}^ω$是$\textbf{calf}^\star$的具有无界迭代的扩展.我们构造指称模型的简单类型的lambda演算和现代化的Algol,一阶存储和while循环的语言,并表明它们满足$\textit{cost-aware}$推广的经典Plotkin型计算充分性定理。此外,通过用内涵和外延的$\textit{phase-separated}$结构的综合语言来证明,我们的结果很容易地$\textit{restrict}$到相应的外延定理。我们的工作对Niu et al. [2022]中提出的猜想提供了肯定的回答,并根据$\textit{op. cit.}$在算法分析方面的工作,为程序设计语言的成本感知编程和验证以及成本感知元理论提供了元语言。

英文摘要:

We present two metalanguages for developing $\textit{synthetic cost-aware denotational semantics}$ of programming languages. Extending the recent work of Niu et al. [2022] on $\textbf{calf}$, a dependent type theory for both cost and behavioral verification, we define two metalanguages, $\textbf{calf}^\star$ and $\textbf{calf}^ω$, for studying cost-aware metatheory. $\textbf{calf}^\star$ is an extension of $\textbf{calf}$ with universes and inductive types, and $\textbf{calf}^ω$ is a an extension of $\textbf{calf}^\star$ 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 $\textit{cost-aware}$ generalization of the classic Plotkin-type computational adequacy theorem. Moreover, by developing our proofs in a synthetic language of $\textit{phase-separated}$ constructions of intension and extension, our results easily $\textit{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 $\textit{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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑