Refinements of Futures Past: Higher-Order Specification with Implicit Refinement Types (Extended Version)

Anish Tondwalkar, Matthew Kolosick, Ranjit Jhala
{"title":"Refinements of Futures Past: Higher-Order Specification with Implicit Refinement Types (Extended Version)","authors":"Anish Tondwalkar, Matthew Kolosick, Ranjit Jhala","doi":"10.4230/LIPIcs.ECOOP.2021.18","DOIUrl":null,"url":null,"abstract":"Refinement types decorate types with assertions that enable automatic verification. Like assertions, refinements are limited to binders that are in scope, and hence, cannot express higher-order specifications. Ghost variables circumvent this limitation but are prohibitively tedious to use as the programmer must divine and explicate their values at all call-sites. We introduce Implicit Refinement Types which turn ghost variables into implicit pair and function types, in a way that lets the refinement typechecker automatically synthesize their values at compile time. Implicit Refinement Types further take advantage of refinement type information, allowing them to be used as a lightweight verification tool, rather than merely as a technique to automate programming tasks. We evaluate the utility of Implicit Refinement Types by showing how they enable the modular specification and automatic verification of various higher-order examples including stateful protocols, access control, and resource usage. 2012 ACM Subject Classification Theory of computation → Program constructs; Theory of computation → Program specifications; Theory of computation → Program verification","PeriodicalId":172012,"journal":{"name":"European Conference on Object-Oriented Programming","volume":"81 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-05-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"European Conference on Object-Oriented Programming","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.ECOOP.2021.18","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Refinement types decorate types with assertions that enable automatic verification. Like assertions, refinements are limited to binders that are in scope, and hence, cannot express higher-order specifications. Ghost variables circumvent this limitation but are prohibitively tedious to use as the programmer must divine and explicate their values at all call-sites. We introduce Implicit Refinement Types which turn ghost variables into implicit pair and function types, in a way that lets the refinement typechecker automatically synthesize their values at compile time. Implicit Refinement Types further take advantage of refinement type information, allowing them to be used as a lightweight verification tool, rather than merely as a technique to automate programming tasks. We evaluate the utility of Implicit Refinement Types by showing how they enable the modular specification and automatic verification of various higher-order examples including stateful protocols, access control, and resource usage. 2012 ACM Subject Classification Theory of computation → Program constructs; Theory of computation → Program specifications; Theory of computation → Program verification
期货过去的改进:具有隐式改进类型的高阶规范(扩展版)
细化类型用支持自动验证的断言修饰类型。与断言一样,细化也仅限于范围内的绑定,因此不能表示高阶规范。幽灵变量规避了这一限制,但是使用起来非常繁琐,因为程序员必须在所有的调用点推测并解释它们的值。我们引入了隐式优化类型,它将隐式变量转换为隐式对和函数类型,从而使优化类型检查器在编译时自动合成它们的值。隐式细化类型进一步利用了细化类型信息,允许它们被用作轻量级的验证工具,而不仅仅是作为一种自动化编程任务的技术。我们通过展示它们如何支持模块化规范和各种高阶示例(包括有状态协议、访问控制和资源使用)的自动验证来评估隐式细化类型的效用。2012 ACM学科分类:计算理论→程序构造;计算理论→程序规范;计算理论→程序验证
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信