Publications

Detailed Information

Interaction trees: Representing recursive and impure programs in Coq

DC Field Value Language
dc.contributor.authorXia, Li-Yao-
dc.contributor.authorZakowski, Yannick-
dc.contributor.authorHe, Paul-
dc.contributor.authorHur, Chung-Kil-
dc.contributor.authorMalecha, Gregory-
dc.contributor.authorPierce, Benjamin C.-
dc.contributor.authorZdancewic, Steve-
dc.date.accessioned2023-10-30T02:04:05Z-
dc.date.available2023-10-30T02:04:05Z-
dc.date.created2020-09-21-
dc.date.issued2020-01-
dc.identifier.citationProceedings of the ACM on Programming Languages, Vol.4 No.POPL, p. 51-
dc.identifier.issn2475-1421-
dc.identifier.urihttps://hdl.handle.net/10371/196037-
dc.description.abstractInteraction trees (ITrees) are a general-purpose data structure for representing the behaviors of recursive 5 programs that interact with their environments. A coinductive variant of "free monads," ITrees are built out of uninterpreted events and their continuations. They support compositional construction of interpreters from event handlers, which give meaning to events by defining their semantics as monadic actions. ITrees are expressive enough to represent impure and potentially nonterminating, mutually recursive computations, while admitting a rich equational theory of equivalence up to weak bisimulation. In contrast to other approaches such as relationally specified operational semantics. ITrees re executable via code extraction, making them suitable for debugging, testing, and implementing software artifacts that are amenable to formal verification. We have implemented ITrees and their associated theory as a Coq library, mechanizing classic domain- and category-theoretic results about program semantics, iteration, monadic structures, and equational reasoning. Although the internals of the library rely heavily on coinductive proofs, the interface hides these details so that clients can use and reason about ITrees without explicit use of Coq's coinduction tactics. To showcase the utility of our theory, we prove the termination-sensitive correctness of a compiler from a simple imperative source language to an assembly-like target whose meanings are given in an ITree-based denotational semantics. Unlike previous results using operational techniques, our bisimulation proof follows straightforwardly by structural induction and elementary rewriting via an equational theory of combinators for control-flow graphs.-
dc.language영어-
dc.publisherAssociation for Computing Machinery (ACM)-
dc.titleInteraction trees: Representing recursive and impure programs in Coq-
dc.typeArticle-
dc.identifier.doi10.1145/3371119-
dc.citation.journaltitleProceedings of the ACM on Programming Languages-
dc.identifier.wosid000685202400052-
dc.identifier.scopusid2-s2.0-85083995421-
dc.citation.numberPOPL-
dc.citation.startpage51-
dc.citation.volume4-
dc.description.isOpenAccessY-
dc.contributor.affiliatedAuthorHur, Chung-Kil-
dc.type.docTypeArticle-
dc.description.journalClass1-
dc.subject.keywordPlusDELAY MONAD-
dc.subject.keywordAuthorCoq-
dc.subject.keywordAuthormonads-
dc.subject.keywordAuthorcoinduction-
dc.subject.keywordAuthorcompiler correctness-
Appears in Collections:
Files in This Item:
There are no files associated with this item.

Altmetrics

Item View & Download Count

  • mendeley

Items in S-Space are protected by copyright, with all rights reserved, unless otherwise indicated.

Share