{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T23:36:18Z","timestamp":1790811378970,"version":"4.1.0"},"reference-count":65,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2025,9,23]],"date-time":"2025-09-23T00:00:00Z","timestamp":1758585600000},"content-version":"unspecified","delay-in-days":265,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2025]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    This paper introduces Choice Trees (CTrees), a monad for modeling nondeterministic, recursive, and impure programs in\n                    <jats:monospace>Rocq<\/jats:monospace>\n                    . Inspired by Xia\n                    <jats:italic>et al<\/jats:italic>\n                    .\u2019s ((2019)\n                    <jats:italic>Proc. ACM Program. Lang.<\/jats:italic>\n                    <jats:bold>4<\/jats:bold>\n                    (POPL)) ITrees, this novel data structure embeds computations into coinductive trees with three kinds of nodes: external events, internal steps, and delayed branching. This structure allows us to provide shallow embedding of denotational models with nondeterministic choice in the style of\n                    <jats:monospace>ccs<\/jats:monospace>\n                    , while recovering an inductive LTS view of the computation. CTrees leverage a vast collection of bisimulation and refinement tools well-studied on LTSs, with respect to which we establish a rich equational theory. We connect CTrees to the ITrees infrastructure by showing how a monad morphism embedding the former into the latter permits using CTrees to implement nondeterministic effects. We demonstrate the utility of CTrees by using them to model concurrency semantics in two case studies:\n                    <jats:monospace>ccs<\/jats:monospace>\n                    and cooperative multithreading.\n                  <\/jats:p>","DOI":"10.1017\/s0956796825100105","type":"journal-article","created":{"date-parts":[[2025,9,23]],"date-time":"2025-09-23T08:17:22Z","timestamp":1758615442000},"update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":4,"title":["Choice trees: Representing and reasoning about nondeterministic, recursive, and impure programs in Rocq"],"prefix":"10.1017","volume":"35","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3732-7704","authenticated-orcid":false,"given":"NICOLAS","family":"CHAPPE","sequence":"first","affiliation":[{"name":"ENS de Lyon, Univ Lyon, UCBL, CNRS"}],"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 Toronto"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7137-3523","authenticated-orcid":false,"given":"LUDOVIC","family":"HENRIO","sequence":"additional","affiliation":[{"name":"CNRS, Univ Lyon, ENS de Lyon, UCBL"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2749-797X","authenticated-orcid":false,"given":"ELEFTHERIOS","family":"IOANNIDIS","sequence":"additional","affiliation":[{"name":"University of Pennsylvania"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4585-6470","authenticated-orcid":false,"given":"YANNICK","family":"ZAKOWSKI","sequence":"additional","affiliation":[{"name":"Inria"}],"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"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2025,9,23]]},"reference":[{"key":"S0956796825100105_ref45","doi-asserted-by":"crossref","first-page":"351","DOI":"10.1007\/978-3-540-76637-7_24","volume-title":"Programming Languages and Systems","author":"Pous","year":"2007"},{"key":"S0956796825100105_ref60","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-57208-2_6"},{"key":"S0956796825100105_ref14","article-title":"Games and strategies as event structures","volume":"13","author":"Castellan","year":"2017","journal-title":"Log. Methods Comput. Sci."},{"key":"S0956796825100105_ref50","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129598002527"},{"key":"S0956796825100105_ref37","doi-asserted-by":"crossref","unstructured":"Levy, P. B. (2006) Infinitary Howe\u2019s method. Electron. Notes Theoret. Comput. Sci. 164(1), 85\u2013104. Proceedings of the Eighth Workshop on Coalgebraic Methods in Computer Science (CMCS 2006).","DOI":"10.1016\/j.entcs.2006.06.006"},{"key":"S0956796825100105_ref7","doi-asserted-by":"publisher","DOI":"10.1145\/3607855"},{"key":"S0956796825100105_ref52","volume-title":"Advanced Topics in Bisimulation and Coinduction","author":"Sangiorgi","year":"2012"},{"key":"S0956796825100105_ref38","doi-asserted-by":"crossref","unstructured":"Maillard, K. , Hritcu, C. , Rivas, E. & Van Muylder, A. (2019) The next 700 relational program logics. Proc. ACM Program. Lang. 4(POPL), Article 4, 1\u201333.","DOI":"10.1145\/3371072"},{"key":"S0956796825100105_ref41","volume-title":"Communication and Concurrency","author":"Milner","year":"1989"},{"key":"S0956796825100105_ref4","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594347"},{"key":"S0956796825100105_ref29","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009850"},{"key":"S0956796825100105_ref12","doi-asserted-by":"crossref","unstructured":"Brookes, S. D. (2002) Traces, pomsets, fairness and full abstraction for communicating processes. In Proceedings of the 13th International Conference, on Concurrency Theory (CONCUR 2002). Berlin Heidelberg: Springer, pp. 466\u2013482.","DOI":"10.1007\/3-540-45694-5_31"},{"key":"S0956796825100105_ref9","unstructured":"Bergstra, J. , Ponse, A. & Smolka, S. (eds.) (2001) Handbook of Process Algebra. Elsevier Science."},{"key":"S0956796825100105_ref21","doi-asserted-by":"crossref","unstructured":"Cristescu, I. , Krivine, J. & Varacca, D. (2013) A Compositional Semantics for the Reversible $\\pi$ -Calculus. In Proceedings - Symposium on Logic in Computer Science, pp. 388\u2013397.","DOI":"10.1109\/LICS.2013.45"},{"key":"S0956796825100105_ref31","doi-asserted-by":"publisher","DOI":"10.1145\/2804302.2804319"},{"key":"S0956796825100105_ref25","unstructured":"Foster, S. , Hur, C. & Woodcock, J. (2021) Formally verified simulations of state-rich processes using interaction trees in Isabelle\/HOL. In 32nd International Conference on Concurrency Theory, CONCUR 2021, August 24\u201327, 2021, Virtual Conference. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, pp. 20:1\u201320:18."},{"key":"S0956796825100105_ref33","doi-asserted-by":"crossref","unstructured":"Lee, S. , Cho, M. , Podkopaev, A. , Chakraborty, S. , Hur, C. , Lahav, O. & Vafeiadis, V. (2020) Promising 2.0: Global optimizations in relaxed memory concurrency. In Proceedings of the 41st ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2020, London, UK, June 15\u201320, 2020. ACM, pp. 362\u2013376.","DOI":"10.1145\/3385412.3386010"},{"key":"S0956796825100105_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74407-8_27"},{"key":"S0956796825100105_ref26","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781316576892"},{"key":"S0956796825100105_ref44","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-57785-8_171"},{"key":"S0956796825100105_ref32","doi-asserted-by":"publisher","DOI":"10.1145\/3373718.3394799"},{"key":"S0956796825100105_ref35","doi-asserted-by":"crossref","unstructured":"Lesani, M. , Xia, L. , Kaseorg, A. , Bell, C. J. , Chlipala, A. , Pierce, B. C. & Zdancewic, S. (2022) C4: Verified transactional objects. Proc. ACM Program. Lang. 6(OOPSLA), 1\u201331.","DOI":"10.1145\/3527324"},{"key":"S0956796825100105_ref42","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(92)90008-4"},{"key":"S0956796825100105_ref43","doi-asserted-by":"crossref","unstructured":"Oliveira Vale, A. , Melli\u00e8s, P.-A. , Shao, Z. , Koenig, J. & Stefanesco, L. (2022) Layered and object-based game semantics. Proc. ACM Program. Lang. 6(POPL), Article 42, 1\u201332.","DOI":"10.1145\/3498703"},{"key":"S0956796825100105_ref54","doi-asserted-by":"crossref","unstructured":"Sch\u00e4fer, S. & Smolka, G. (2017) Tower induction and up-to techniques for CCS with fixed points. In Relational and Algebraic Methods in Computer Science - 16th International Conference, RAMiCS 2017, Lyon, France, May 15\u201318, 2017, Proceedings, pp. 274\u2013289.","DOI":"10.1007\/978-3-319-57418-9_17"},{"key":"S0956796825100105_ref2","unstructured":"Abramsky, S. & Melli\u00e8s, P.-A. (1999) Concurrent games and full completeness. In Proceedings of the 14th Annual ACM\/IEEE Symposium on Logic in Computer Science. IEEE Computer Society Press."},{"key":"S0956796825100105_ref40","doi-asserted-by":"publisher","DOI":"10.1145\/3674646"},{"key":"S0956796825100105_ref58","doi-asserted-by":"publisher","DOI":"10.1145\/3341690"},{"key":"S0956796825100105_ref64","doi-asserted-by":"crossref","unstructured":"Zakowski, Y. , Beck, C. , Yoon, I. , Zaichuk, I. , Zaliva, V. & Zdancewic, S. (2021) Modular, compositional, and executable formal semantics for LLVM IR. Proc. ACM Program. Lang. 5(ICFP), Article 67, 1\u201330.","DOI":"10.1145\/3473572"},{"key":"S0956796825100105_ref34","doi-asserted-by":"crossref","first-page":"107","DOI":"10.1145\/1538788.1538814","article-title":"Formal verification of a realistic compiler","volume":"52","author":"Leroy","year":"2009","journal-title":"Commun. ACM"},{"key":"S0956796825100105_ref23","doi-asserted-by":"crossref","first-page":"22","DOI":"10.1007\/978-3-319-66902-1_2","volume-title":"Automated Reasoning with Analytic Tableaux and Related Methods","author":"Din","year":"2017"},{"key":"S0956796825100105_ref24","unstructured":"Din, C. C. , H\u00e4hnle, R. , Henrio, L. , Johnsen, E. B. , Pun, V. K. I. & Tarifa, S. L. T. (2022) Lagc semantics of concurrent programming languages."},{"key":"S0956796825100105_ref30","doi-asserted-by":"crossref","first-page":"385","DOI":"10.1145\/360248.360252","article-title":"Symbolic execution and program testing","volume":"19","author":"King","year":"1976","journal-title":"Commun. ACM."},{"key":"S0956796825100105_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54458-7_31"},{"key":"S0956796825100105_ref8","doi-asserted-by":"publisher","DOI":"10.1145\/3674652"},{"key":"S0956796825100105_ref62","doi-asserted-by":"crossref","unstructured":"Xia, L. , Zakowski, Y. , He, P. , Hur, C.-K. , Malecha, G. , Pierce, B. C. & Zdancewic, S. (2019) Interaction trees: representing recursive and impure programs in Coq. Proc. ACM Program. Lang. 4(POPL), Article 51, 1\u201332.","DOI":"10.1145\/3371119"},{"key":"S0956796825100105_ref53","doi-asserted-by":"publisher","DOI":"10.1017\/9781316134924"},{"key":"S0956796825100105_ref51","volume-title":"Introduction to Bisimulation and Coinduction","author":"Sangiorgi","year":"2012"},{"key":"S0956796825100105_ref49","doi-asserted-by":"crossref","unstructured":"Rideau, S. & Winskel, G. (2011) Concurrent strategies. In Proceedings of the 26th Annual IEEE Symposium on Logic in Computer Science, LICS 2011, June 21\u201324, 2011, Toronto, Ontario, Canada. IEEE Computer Society, pp. 409\u2013418.","DOI":"10.1109\/LICS.2011.13"},{"key":"S0956796825100105_ref6","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-020-09553-0"},{"key":"S0956796825100105_ref3","doi-asserted-by":"publisher","DOI":"10.1145\/3458926"},{"key":"S0956796825100105_ref27","doi-asserted-by":"publisher","DOI":"10.1145\/359576.359585"},{"key":"S0956796825100105_ref18","doi-asserted-by":"publisher","DOI":"10.1145\/3703595.3705890"},{"key":"S0956796825100105_ref1","first-page":"1","article-title":"A model of cooperative threads","volume":"6","author":"Abadi","year":"2010","journal-title":"Logical Methods Comput. Sci."},{"key":"S0956796825100105_ref22","unstructured":"De Nicola, R. (2014) A gentle introduction to process algebras. Notes."},{"key":"S0956796825100105_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28729-9_15"},{"key":"S0956796825100105_ref59","unstructured":"The Coq Development Team. (2024) The Coq proof assistant."},{"key":"S0956796825100105_ref46","doi-asserted-by":"publisher","DOI":"10.1145\/2933575.2934564"},{"key":"S0956796825100105_ref10","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73580"},{"key":"S0956796825100105_ref36","doi-asserted-by":"crossref","unstructured":"Letan, T. , R\u00e9gis-Gianas, Y. , Chifflier, P. & Hiet, G. (2018) Modular verification of programs with effects and effect handlers in Coq. In Formal Methods - 22nd International Symposium, FM 2018, Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, July 15\u201317, 2018, Proceedings, pp. 338\u2013354.","DOI":"10.1007\/978-3-319-95582-7_20"},{"key":"S0956796825100105_ref15","doi-asserted-by":"crossref","unstructured":"Chappe, N. , He, P. , Henrio, L. , Zakowski, Y. & Zdancewic, S. (2023) Choice trees: Representing nondeterministic, recursive, and impure programs in Coq. Proc. ACM Program. Lang. 7(POPL), 1770\u20131800.","DOI":"10.1145\/3571254"},{"key":"S0956796825100105_ref61","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(96)00251-4"},{"key":"S0956796825100105_ref28","doi-asserted-by":"crossref","unstructured":"Hur, C.-K. , Neis, G. , Dreyer, D. & Vafeiadis, V. (2013) The power of parameterization in coinductive proof. In Proceedings of the 40th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. New York, NY, USA: ACM, pp. 193\u2013206.","DOI":"10.1145\/2429069.2429093"},{"key":"S0956796825100105_ref63","doi-asserted-by":"crossref","unstructured":"Yoon, I. , Zakowski, Y. & Zdancewic, S. (2022) Formal reasoning about layered monadic interpreters. Proc. ACM Program. Lang. 6(ICFP), 254\u2013282.","DOI":"10.1145\/3547630"},{"key":"S0956796825100105_ref47","unstructured":"Pous, D. (2024a) The coq-coinduction library."},{"key":"S0956796825100105_ref57","volume-title":"Mathematical Foundations of Computer Science","author":"Smyth","year":"1976"},{"key":"S0956796825100105_ref55","doi-asserted-by":"publisher","DOI":"10.1145\/2487241.2487248"},{"key":"S0956796825100105_ref19","doi-asserted-by":"publisher","DOI":"10.1145\/3622857"},{"key":"S0956796825100105_ref65","doi-asserted-by":"publisher","DOI":"10.1145\/3372885.3373813"},{"key":"S0956796825100105_ref17","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7148504"},{"key":"S0956796825100105_ref56","unstructured":"Silver, L. , He, P. , Cecchetti, E. , Hirsch, A. K. & Zdancewic, S. (2023) Semantics for noninterference with interaction trees. In 37th European Conference on Object-Oriented Programming, ECOOP 2023, July 17\u201321, 2023, Seattle, Washington, USA. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, pp. 29:1\u201329:29."},{"key":"S0956796825100105_ref16","unstructured":"Chappe, N. , He, P. , Ioannidis, E. , Henrio, L. , Zakowski, Y. & Zdancewic, S. (2025a) Choice Trees. Available at: https:\/\/github.com\/vellvm\/ctrees."},{"key":"S0956796825100105_ref11","doi-asserted-by":"crossref","unstructured":"Borthelle, P. , Hirschowitz, T. , Jaber, G. & Zakowski, Y. (2025) An abstract, certified account of operational game semantics. In ESOP.","DOI":"10.1007\/978-3-031-91118-7_8"},{"key":"S0956796825100105_ref48","unstructured":"Pous, D. (2024b) The coq-coinduction library: Examples."},{"key":"S0956796825100105_ref13","article-title":"General recursion via coinductive types","volume":"1","author":"Capretta","year":"2005","journal-title":"Log. Methods Comput. Sci."}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796825100105","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:53Z","timestamp":1779835013000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796825100105\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025]]},"references-count":65,"alternative-id":["S0956796825100105"],"URL":"https:\/\/doi.org\/10.1017\/s0956796825100105","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025]]},"assertion":[{"value":"\u00a9 The Author(s), 2025. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https:\/\/creativecommons.org\/licenses\/by\/4.0\/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.","name":"license","label":"License","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This content has been made available to all.","name":"free","label":"Free to read"}],"article-number":"e21"}}