尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。
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.
DOI 原文 ·
@article{paperbot2613,
title = {Algebraic Effects Meet Hoare Logic in Cubical Agda},
author = {Donnacha Oisín Kidney and Zhixuan Yang and Nicolas Wu},
journal = {Proceedings of the ACM on Programming Languages},
volume = {8},
number = {POPL},
year = {2024},
doi = {10.1145/3632898}
}