Algebraic Effects Meet Hoare Logic in Cubical Agda.

Donnacha Oisín Kidney,Zhixuan Yang,Nicolas Wu

Proceedings of the ACM on Programming Languages(2024)

引用 0|浏览0
暂无评分
摘要
This paper presents a novel formalisation of algebraic effects with equations in Cubical Agda. Unlike previous work in the literature that employed setoids to deal with equations, the library presented here uses quotient types to faithfully encode the type of terms quotiented by laws. Apart from tools for equational reasoning, the library also provides an effect-generic Hoare logic for algebraic effects, which enables reasoning about effectful programs in terms of their pre- and post- conditions. A particularly novel aspect is that equational reasoning and Hoare-style reasoning are related by an elimination principle of Hoare logic.
更多
查看译文
关键词
Cubical Agda,Hoare logic,algebraic effects,program verification
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要