An Intrinsically-Typed Solution for the List-Machine Benchmark

Samuel da Silva Feitosa, R. Ribeiro
{"title":"An Intrinsically-Typed Solution for the List-Machine Benchmark","authors":"Samuel da Silva Feitosa, R. Ribeiro","doi":"10.1145/3427081.3427082","DOIUrl":null,"url":null,"abstract":"Formal models are important tools in the programming language research community. However, such models are full of intricacies and, due to that, they are subject to subtle errors. Such failures motivated the usage of tools to ensure the correctness of these formalisms. One way to eliminate such errors is to encode models in a dependently-typed language in order to ensure its \"correctness-by-construction\". In this paper, we use this idea to build a verified interpreter for the list-machine benchmark in the Agda programming language, comparing the results with formalizations developed by Appel and Leroy. We formalize the 14 tasks of the benchmark using roughly 14%of LOC compared to a Twelf solution, and 47%of LOC compared to a Coq solution, even without the use of proof automation.","PeriodicalId":350427,"journal":{"name":"Proceedings of the 24th Brazilian Symposium on Context-Oriented Programming and Advanced Modularity","volume":"89 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 24th Brazilian Symposium on Context-Oriented Programming and Advanced Modularity","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3427081.3427082","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Formal models are important tools in the programming language research community. However, such models are full of intricacies and, due to that, they are subject to subtle errors. Such failures motivated the usage of tools to ensure the correctness of these formalisms. One way to eliminate such errors is to encode models in a dependently-typed language in order to ensure its "correctness-by-construction". In this paper, we use this idea to build a verified interpreter for the list-machine benchmark in the Agda programming language, comparing the results with formalizations developed by Appel and Leroy. We formalize the 14 tasks of the benchmark using roughly 14%of LOC compared to a Twelf solution, and 47%of LOC compared to a Coq solution, even without the use of proof automation.
List-Machine基准测试的内在类型解决方案
形式化模型是编程语言研究界的重要工具。然而,这样的模型充满了复杂性,因此,它们会受到细微错误的影响。这样的失败促使人们使用工具来确保这些形式的正确性。消除此类错误的一种方法是用依赖类型语言对模型进行编码,以确保其“构造正确性”。在本文中,我们使用这一思想在Agda编程语言中为列表机基准构建了一个经过验证的解释器,并将结果与Appel和Leroy开发的形式化进行了比较。我们将基准测试的14个任务形式化,与12解决方案相比,我们使用了大约14%的LOC,与Coq解决方案相比,我们使用了47%的LOC,即使没有使用证明自动化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信