Monadic W in Coq

R. C. Silva, Cristiano D. Vasconcellos, K. Roggia
{"title":"Monadic W in Coq","authors":"R. C. Silva, Cristiano D. Vasconcellos, K. Roggia","doi":"10.1145/3427081.3427085","DOIUrl":null,"url":null,"abstract":"Though mechanized proofs for the type inference algorithm W have already been presented in the literature, none of them can be said to be similar to a usual functional implementation as they are not monadic and they carry extra parameters. Also, the proofs of those formalizations rely on axioms because, at the time, the formal certifications of the unification algorithm was still to be done. Recent developments have shown how to reason within proof assistants using monadic/effectful frameworks and how they may simplify parts of the certification. In this paper, we present a complete monadic formalization in Coq of algorithm W and Damas-Milner type system, which includes proofs of correctness and completeness of type inference, as well soundness, completeness, and termination of the unification algorithm. Our approach uses an extension of the Hoare State Monad to simply proofs.","PeriodicalId":350427,"journal":{"name":"Proceedings of the 24th Brazilian Symposium on Context-Oriented Programming and Advanced Modularity","volume":"128 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","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.3427085","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Though mechanized proofs for the type inference algorithm W have already been presented in the literature, none of them can be said to be similar to a usual functional implementation as they are not monadic and they carry extra parameters. Also, the proofs of those formalizations rely on axioms because, at the time, the formal certifications of the unification algorithm was still to be done. Recent developments have shown how to reason within proof assistants using monadic/effectful frameworks and how they may simplify parts of the certification. In this paper, we present a complete monadic formalization in Coq of algorithm W and Damas-Milner type system, which includes proofs of correctness and completeness of type inference, as well soundness, completeness, and termination of the unification algorithm. Our approach uses an extension of the Hoare State Monad to simply proofs.
Coq中的一元W
虽然文献中已经提出了类型推断算法W的机械化证明,但它们都不能说是类似于通常的函数实现,因为它们不是一元的,并且它们携带额外的参数。而且,这些形式化的证明依赖于公理,因为在当时,统一算法的形式化证明还没有完成。最近的发展显示了如何使用单一/有效的框架在证明助手中进行推理,以及它们如何简化部分认证。本文给出了算法W和Damas-Milner类型系统在Coq中的完全一元形式化,包括类型推理的正确性和完备性证明,以及统一算法的健全性、完备性和终止性证明。我们的方法使用了Hoare状态单子的扩展来简化证明。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信