{"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.