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

同步规划中多速率流的相关类型

Dependent Types for Multi-Rate Flows in Synchronous Programming

William Blair, Hongwei Xi

摘要:

同步程序设计语言出现于20世纪80年代,作为实现反应式系统的工具,它与来自物理环境的事件交互,并且通常必须在严格的时间约束下进行。在这份报告中,我们在ATS内部编码各种实时原语的实验同步语言称为前奏曲,其中ATS是一个静态类型的语言与ML类似的功能核心,支持依赖类型(的DML风格)和线性类型。我们表明,这些原语上施加的验证要求可以正式表示在ATS中的依赖类型。此外,我们修改了Prelude编译器,自动生成ATS代码从Prelude源。这个修改后的编译器允许我们仅仅依靠ATS中的类型检查来履行源于对Prelude代码进行类型检查的需要的证明义务。而ATS通常被用作通用程序设计语言,我们在此证明,它也可以方便地用于支持某些形式的高级静态检查的语言配备了较少的表达类型。

英文摘要:

Synchronous programming languages emerged in the 1980s as tools for implementing reactive systems, which interact with events from physical environments and often must do so under strict timing constraints. In this report, we encode inside ATS various real-time primitives in an experimental synchronous language called Prelude, where ATS is a statically typed language with an ML-like functional core that supports both dependent types (of DML-style) and linear types. We show that the verification requirements imposed on these primitives can be formally expressed in terms of dependent types in ATS. Moreover, we modify the Prelude compiler to automatically generate ATS code from Prelude source. This modified compiler allows us to solely rely on typechecking in ATS to discharge proof obligations originating from the need to typecheck Prelude code. Whereas ATS is typically used as a general purpose programming language, we hereby demonstrate that it can also be conveniently used to support some forms of advanced static checking in languages equipped with less expressive types.

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

↑