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

递归抽取和具有递归定义的指称语义

Recurrence extraction and denotational semantics with recursive definitions

Norman Danner

摘要:

除了一个例外,我们以前的递归提取和指称语义的工作集中在一个源语言,支持归纳类型和结构递归。异常通过初始转换为按推值调用来处理一般递归。本文给出了一个从具有一般递归函数定义和递归类型的语言直接到类似PCF的递归语言的抽取函数。我们证明了主要的合理性结果(即语法递归实际上限制了操作成本),而不使用逻辑关系,从而大大简化了证明相比,我们以前的工作(在成本上提出更多的要求模型的递归语言)。然后,我们定义了两个模型的递归语言,一个用于分析归并排序,另一个用于分析快速排序,作为案例研究,以了解模型定义的理由提取递归。

英文摘要:

With one exception, our previous work on recurrence extraction and denotational semantics has focused on a source language that supports inductive types and structural recursion. The exception handles general recursion via an initial translation into call-by-push-value. In this note we give an extraction function from a language with general recursive function definitions and recursive types directly to a PCF-like recurrence language. We prove the main soundness result (that the syntactic recurrences in fact bound the operational cost) without the use of a logical relation, thereby significantly simplifying the proof compared to our previous work (at the cost of placing more demands on the models of the recurrence language). We then define two models of the recurrence language, one for analyzing merge sort, and another for analyzing quick sort, as case studies to understand model definitions for justifying the extracted recurrences.

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

↑