Proving properties of shared data structures application to functional programming

ACM '82 Pub Date : 1900-01-01 DOI:10.1145/800174.809779
J. Hagelstein
{"title":"Proving properties of shared data structures application to functional programming","authors":"J. Hagelstein","doi":"10.1145/800174.809779","DOIUrl":null,"url":null,"abstract":"We describe a proof-oriented semantics for languages handling shared pointer structures. The main difficulty is to describe the store containing the pointer structure in an appropriate way. On the one hand, it should be easy to express the effect of the instructions handling pointers and on the other, it should be possible to state high-level properties of the structure (involving the concepts of lists, graphs,...). We review the previous works and propose an original solution which considers the store as a graph described by means of a collection of trees. This allows us to use a calculus of recursive functions in the domain of trees to specify properties of the pointer structure. We have chosen to illustrate those concepts in the case of a functional programming language, as no proof-oriented semantics of pointer handling has been proposed for such languages. To perform symbolic execution, we need to record both the value and the effect of a program at different stages of evaluation. To do so, we use the states (p;e)where p is a partially evaluated program and e is a store (described as stated above). To obtain a suitable proof method, we define (p;e) in a way which hides all details that are not observable by the user of the language. We axiomatize the needed relations between these pairs and use the resulting axioms as a basis of a formal proof technique, where the proofs proceed by symbolic execution and induction over trees. The language Lisp has been chosen because it is well-known. Nevertheless, no prior knowledge in Lisp is required.","PeriodicalId":321698,"journal":{"name":"ACM '82","volume":"21 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM '82","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/800174.809779","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We describe a proof-oriented semantics for languages handling shared pointer structures. The main difficulty is to describe the store containing the pointer structure in an appropriate way. On the one hand, it should be easy to express the effect of the instructions handling pointers and on the other, it should be possible to state high-level properties of the structure (involving the concepts of lists, graphs,...). We review the previous works and propose an original solution which considers the store as a graph described by means of a collection of trees. This allows us to use a calculus of recursive functions in the domain of trees to specify properties of the pointer structure. We have chosen to illustrate those concepts in the case of a functional programming language, as no proof-oriented semantics of pointer handling has been proposed for such languages. To perform symbolic execution, we need to record both the value and the effect of a program at different stages of evaluation. To do so, we use the states (p;e)where p is a partially evaluated program and e is a store (described as stated above). To obtain a suitable proof method, we define (p;e) in a way which hides all details that are not observable by the user of the language. We axiomatize the needed relations between these pairs and use the resulting axioms as a basis of a formal proof technique, where the proofs proceed by symbolic execution and induction over trees. The language Lisp has been chosen because it is well-known. Nevertheless, no prior knowledge in Lisp is required.
证明共享数据结构在函数式编程中的应用
我们为处理共享指针结构的语言描述了一种面向证明的语义。主要的困难是如何以适当的方式描述包含指针结构的存储。一方面,它应该很容易表达处理指针的指令的效果,另一方面,它应该可以声明结构的高级属性(涉及列表、图等概念)。我们回顾了以前的工作,并提出了一个原始的解决方案,该解决方案将商店视为通过树的集合来描述的图形。这允许我们在树域中使用递归函数的演算来指定指针结构的属性。我们选择在函数式编程语言的情况下说明这些概念,因为没有针对此类语言提出指针处理的面向证明语义。为了执行符号执行,我们需要记录程序在不同求值阶段的值和效果。为此,我们使用状态(p;e),其中p是部分求值程序,e是存储(如上所述)。为了获得一种合适的证明方法,我们定义(p;e)的方式隐藏了语言使用者无法观察到的所有细节。我们公理化了这些对之间所需的关系,并使用所得公理作为正式证明技术的基础,其中证明通过符号执行和树上的归纳法进行。之所以选择Lisp语言,是因为它很有名。然而,不需要Lisp的先验知识。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信