{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,15]],"date-time":"2026-10-15T03:57:51Z","timestamp":1792036671360,"version":"4.4.0"},"reference-count":51,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2023,1,9]],"date-time":"2023-01-09T00:00:00Z","timestamp":1673222400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,1,9]]},"abstract":"<jats:p>This paper introduces ctrees, a monad for modeling nondeterministic, recursive, and impure programs in Coq. Inspired by Xia et al.'s itrees, this novel data structure embeds computations into coinductive trees with three kind of nodes: external events, and two variants of nondeterministic branching. This apparent redundancy allows us to provide shallow embedding of denotational models with internal choice in the style of CCS, while recovering an inductive LTS view of the computation. ctrees inherit a vast collection of bisimulation and refinement tools, with respect to which we establish a rich equational theory.<\/jats:p>\n          <jats:p>We connect ctrees to the itree infrastructure by showing how a monad morphism embedding the former into the latter permits to use ctrees to implement nondeterministic effects. We demonstrate the utility of ctrees by using them to model concurrency semantics in two case studies: CCS and cooperative multithreading.<\/jats:p>","DOI":"10.1145\/3571254","type":"journal-article","created":{"date-parts":[[2023,1,11]],"date-time":"2023-01-11T21:58:14Z","timestamp":1673474294000},"page":"1770-1800","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":19,"title":["Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3732-7704","authenticated-orcid":false,"given":"Nicolas","family":"Chappe","sequence":"first","affiliation":[{"name":"University of Lyon - ENS Lyon - UCBL - CNRS - Inria - LIP, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6305-4335","authenticated-orcid":false,"given":"Paul","family":"He","sequence":"additional","affiliation":[{"name":"University of Pennsylvania, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7137-3523","authenticated-orcid":false,"given":"Ludovic","family":"Henrio","sequence":"additional","affiliation":[{"name":"University of Lyon - ENS Lyon - UCBL - CNRS - Inria - LIP, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4585-6470","authenticated-orcid":false,"given":"Yannick","family":"Zakowski","sequence":"additional","affiliation":[{"name":"University of Lyon - ENS Lyon - UCBL - CNRS - Inria - LIP, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3516-1512","authenticated-orcid":false,"given":"Steve","family":"Zdancewic","sequence":"additional","affiliation":[{"name":"University of Pennsylvania, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,1,11]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-6(4:2)2010"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1999.782638"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3458926"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594347"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54458-7_31"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/B978-044482830-9\/50038-2"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73580"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-18941-3_1"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45694-5_31"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-1(2:1)2005"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.23638\/LMCS-13(3:35)2017"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7227966"},{"key":"e_1_2_1_13_1","volume-title":"Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq \u2014 extended version. arxiv:2211.06863","author":"Chappe Nicolas","year":"2023","unstructured":"Nicolas Chappe , Paul He , Ludovic Henrio , Yannick Zakowski , and Steve Zdancewic . 2023 . Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq \u2014 extended version. arxiv:2211.06863 Nicolas Chappe, Paul He, Ludovic Henrio, Yannick Zakowski, and Steve Zdancewic. 2023. Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq \u2014 extended version. arxiv:2211.06863"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28729-9_15"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2013.45"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66902-1_2"},{"key":"e_1_2_1_17_1","volume-title":"Violet Ka I Pun, and Silvia Lizeth Tapia Tarifa.","author":"Din Crystal Chang","year":"2022","unstructured":"Crystal Chang Din , Reiner H\u00e4hnle , Ludovic Henrio , Einar Broch Johnsen , Violet Ka I Pun, and Silvia Lizeth Tapia Tarifa. 2022 . LAGC Semantics of Concurrent Programming Languages . https:\/\/doi.org\/10.48550\/ARXIV.2202.12195 10.48550\/ARXIV.2202.12195 Crystal Chang Din, Reiner H\u00e4hnle, Ludovic Henrio, Einar Broch Johnsen, Violet Ka I Pun, and Silvia Lizeth Tapia Tarifa. 2022. LAGC Semantics of Concurrent Programming Languages. https:\/\/doi.org\/10.48550\/ARXIV.2202.12195"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.CONCUR.2021.20"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781316576892"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-39570-8_12"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429093"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009850"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360252"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/2804302.2804319"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3373718.3394799"},{"key":"e_1_2_1_26_1","volume-title":"Pierce","author":"Lampropoulos Leonidas","year":"2018","unstructured":"Leonidas Lampropoulos and Benjamin C . Pierce . 2018 . QuickChick: Property- Based Testing in Coq. Electronic textbook. https:\/\/softwarefoundations.cis.upenn.edu\/qc-current\/index.html Leonidas Lampropoulos and Benjamin C. Pierce. 2018. QuickChick: Property-Based Testing in Coq. Electronic textbook. https:\/\/softwarefoundations.cis.upenn.edu\/qc-current\/index.html"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3386010"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3167083"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3527324"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-95582-7_20"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371072"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74407-8_27"},{"key":"e_1_2_1_33_1","volume-title":"Communication and Concurrency","author":"Milner Robin","unstructured":"Robin Milner . 1989. Communication and Concurrency . Prentice-Hall, Inc. , USA. isbn:978-0-13-114984-7 Robin Milner. 1989. Communication and Concurrency. Prentice-Hall, Inc., USA. isbn:978-0-13-114984-7"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(92)90008-4"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3498703"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-76637-7_24"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/2933575.2934564"},{"key":"e_1_2_1_38_1","unstructured":"Damien Pous. 2022. The coq-coinduction library. https:\/\/github.com\/damien-pous\/coinduction \t\t\t\t  Damien Pous. 2022. The coq-coinduction library. https:\/\/github.com\/damien-pous\/coinduction"},{"key":"e_1_2_1_39_1","unstructured":"Damien Pous. 2022. The coq-coinduction library: examples. https:\/\/github.com\/damien-pous\/coinduction-examples \t\t\t\t  Damien Pous. 2022. The coq-coinduction library: examples. https:\/\/github.com\/damien-pous\/coinduction-examples"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2011.13"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129598002527"},{"key":"e_1_2_1_42_1","volume-title":"Advanced Topics in Bisimulation and Coinduction","author":"Sangiorgi Davide","unstructured":"Davide Sangiorgi and Jan Rutten . 2012. Advanced Topics in Bisimulation and Coinduction ( 2 nd ed.). Cambridge University Press , USA. isbn:9781107004979 Davide Sangiorgi and Jan Rutten. 2012. Advanced Topics in Bisimulation and Coinduction (2nd ed.). Cambridge University Press, USA. isbn:9781107004979","edition":"2"},{"key":"e_1_2_1_43_1","volume-title":"The \u03c0 -calculus","author":"Sangiorgi Davide","unstructured":"Davide Sangiorgi and David Walker . 2001. The \u03c0 -calculus ( 1 st ed.). Cambridge University Press , USA. Davide Sangiorgi and David Walker. 2001. The \u03c0 -calculus (1st ed.). Cambridge University Press, USA.","edition":"1"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2487241.2487248"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-07854-1_226"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.5846982"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371119"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3547630"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/3547630"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3473572"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3372885.3373813"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3571254","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3571254","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T18:08:22Z","timestamp":1750183702000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3571254"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,1,9]]},"references-count":51,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2023,1,9]]}},"alternative-id":["10.1145\/3571254"],"URL":"https:\/\/doi.org\/10.1145\/3571254","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,1,9]]},"assertion":[{"value":"2023-01-11","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}