{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,20]],"date-time":"2026-08-20T14:40:45Z","timestamp":1787236845963,"version":"build-2736575974"},"reference-count":85,"publisher":"Association for Computing Machinery (ACM)","issue":"5","license":[{"start":{"date-parts":[[2023,10,11]],"date-time":"2023-10-11T00:00:00Z","timestamp":1696982400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100001809","name":"NSFC","doi-asserted-by":"crossref","award":["12231007, 12001181"],"award-info":[{"award-number":["12231007, 12001181"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["J. ACM"],"published-print":{"date-parts":[[2023,10,31]]},"abstract":"<jats:p>\n                    We give a domain-theoretic semantics to a statistical programming language, using the plain old category of dcpos, in contrast to some more sophisticated recent proposals. Remarkably, our monad of minimal valuations is commutative, which allows for program transformations that permute the order of independent random draws, as one would expect. A similar property is not known for Jones and Plotkin\u2019s monad of continuous valuations. Instead of working with true real numbers, we work with exact real arithmetic, providing a bridge towards possible implementations (implementations by themselves are not addressed here). Rather remarkably, we show that restricting ourselves to minimal valuations does not restrict us much:\n                    <jats:italic>All<\/jats:italic>\n                    measures on the real line can be modeled by minimal valuations on the domain\n                    <jats:bold>I<\/jats:bold>\n                    \u211d\n                    <jats:sub>\u22a5<\/jats:sub>\n                    of exact real arithmetic. We give three operational semantics for our language, and we show that they are all adequate with respect to the denotational semantics. We also explore quite a few examples to demonstrate that our semantics computes exactly as one would expect and to debunk the myth that a semantics based on continuous maps would not be expressive enough to encode measures with non-compact support using only measures with compact support, or to encode measures via non-continuous density functions, for instance. Our examples also include some useful, non-trivial cases of distributions on higher-order objects.\n                  <\/jats:p>","DOI":"10.1145\/3611660","type":"journal-article","created":{"date-parts":[[2023,8,19]],"date-time":"2023-08-19T05:56:22Z","timestamp":1692424582000},"page":"1-63","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":5,"title":["A Domain-theoretic Approach to Statistical Programming Languages"],"prefix":"10.1145","volume":"70","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5879-3304","authenticated-orcid":false,"given":"Jean","family":"Goubault-Larrecq","sequence":"first","affiliation":[{"name":"Universit\u00e9 Paris-Saclay, CNRS, ENS Paris-Saclay, Laboratoire M\u00e9thodes Formelles, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9310-6143","authenticated-orcid":false,"given":"Xiaodong","family":"Jia","sequence":"additional","affiliation":[{"name":"School of Mathematics &amp; College of Computer Science and Electronic Engineering, Hunan University, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2703-4289","authenticated-orcid":false,"given":"Cl\u00e9ment","family":"Th\u00e9ron","sequence":"additional","affiliation":[{"name":"Universit\u00e9 Paris-Saclay, CNRS, ENS Paris-Saclay, Laboratoire M\u00e9thodes Formelles, France"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,10,11]]},"reference":[{"key":"e_1_3_3_2_2","series-title":"(Handbook of Logic in Computer Science","first-page":"1","volume-title":"Semantic Structures","author":"Abramsky Samson","year":"1994","unstructured":"Samson Abramsky and Achim Jung. 1994. Domain theory. In Semantic Structures, Samson Abramsky, Dov M. Gabbay, and Thomas Stephen Edward Maibaum (Eds.), (Handbook of Logic in Computer Science, Vol. 3). Clarendon Press, Oxford, 1\u2013168."},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2011.49"},{"key":"e_1_3_3_4_2","doi-asserted-by":"publisher","DOI":"10.1002\/mana.19770780108"},{"key":"e_1_3_3_5_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0166-8641(01)00249-8"},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1112\/S0024610700008681"},{"key":"e_1_3_3_7_2","volume-title":"Probability and Measure (3rd, 1995 ed.)","author":"Billingsley Patrick","year":"1986","unstructured":"Patrick Billingsley. 1986. Probability and Measure (3rd, 1995 ed.). John Wiley and Sons."},{"key":"e_1_3_3_8_2","volume-title":"Introduction to Functional Programming Using Haskell","author":"Bird Richard","year":"1998","unstructured":"Richard Bird. 1998. Introduction to Functional Programming Using Haskell (2nd ed.). Prentice-Hall Europe, 98005681433 pages.","edition":"2"},{"key":"e_1_3_3_9_2","doi-asserted-by":"publisher","DOI":"10.1145\/319838.319860"},{"key":"e_1_3_3_10_2","doi-asserted-by":"publisher","DOI":"10.1214\/aoms\/1177706645"},{"key":"e_1_3_3_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2019.8785663"},{"key":"e_1_3_3_12_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.apal.2012.11.001"},{"key":"e_1_3_3_13_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2019.07.014"},{"key":"e_1_3_3_14_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2004.08.021"},{"key":"e_1_3_3_15_2","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1999.2844"},{"key":"e_1_3_3_16_2","first-page":"248","volume-title":"Proceedings of the 12th Annual IEEE Symposium on Logic in Computer Science","author":"Edalat Abbas","year":"1997","unstructured":"Abbas Edalat, Mart\u00edn H\u00f6tzel Escard\u00f3, and Peter Potts. 1997. Semantics of exact real arithmetic. In Proceedings of the 12th Annual IEEE Symposium on Logic in Computer Science. IEEE Computer Society, 248\u2013257."},{"key":"e_1_3_3_17_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0166-8641(97)00227-7"},{"key":"e_1_3_3_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3158147"},{"key":"e_1_3_3_19_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(96)00167-3"},{"key":"e_1_3_3_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00250-2"},{"key":"e_1_3_3_21_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00250-2"},{"key":"e_1_3_3_22_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCC47050.2019.9064220"},{"key":"e_1_3_3_23_2","doi-asserted-by":"publisher","DOI":"10.1214\/aos\/1176342360"},{"key":"e_1_3_3_24_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1994.316083"},{"key":"e_1_3_3_25_2","doi-asserted-by":"publisher","DOI":"10.1090\/S0025-5718-1972-0315863-9"},{"key":"e_1_3_3_26_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2009.05.001"},{"key":"e_1_3_3_27_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-3470-8"},{"key":"e_1_3_3_28_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511542725"},{"key":"e_1_3_3_29_2","first-page":"68","article-title":"A categorical approach to probability theory","volume":"915","author":"Giry Mich\u00e8le","year":"1982","unstructured":"Mich\u00e8le Giry. 1982. A categorical approach to probability theory. Categor. Asp. Topol. Anal. 915 (Jan. 1982), 68\u201385.","journal-title":"Categor. Asp. Topol. Anal."},{"key":"e_1_3_3_30_2","first-page":"220","volume-title":"Proceedings of the 24th Conference on Uncertainty in Artificial Intelligence (UAI\u201908)","author":"Goodman Noah","year":"2008","unstructured":"Noah Goodman, Vikash Mansinghka, Daniel Murphy Roy, Keith Bonawitz, and Joshua Brett Tenenbaum. 2008. Church: A language for generative models. In Proceedings of the 24th Conference on Uncertainty in Artificial Intelligence (UAI\u201908). AUAI Press, 220\u2013229."},{"key":"e_1_3_3_31_2","article-title":"The Design and Implementation of Probabilistic Programming Languages","author":"Goodman Noah D.","year":"2014","unstructured":"Noah D. Goodman and Andreas Stuhlm\u00fcller. 2014. The Design and Implementation of Probabilistic Programming Languages. Retrieved from http:\/\/dippl.org","journal-title":"R"},{"key":"e_1_3_3_32_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781139524438"},{"key":"e_1_3_3_33_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jlamp.2014.09.003"},{"key":"e_1_3_3_34_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2019.8785809"},{"key":"e_1_3_3_35_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129521000141"},{"key":"e_1_3_3_36_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129521000384"},{"key":"e_1_3_3_37_2","volume-title":"Spaces of Valuations","author":"Heckmann Reinhold","year":"1995","unstructured":"Reinhold Heckmann. 1995. Spaces of Valuations. Technical Report A 09\/95. FB 14 Informatik, Universit\u00e4t des Saarlandes, 66041 Saarbr\u00fccken, Germany."},{"key":"e_1_3_3_38_2","doi-asserted-by":"publisher","DOI":"10.1111\/j.1749-6632.1996.tb49168.x"},{"key":"e_1_3_3_39_2","doi-asserted-by":"publisher","DOI":"10.5555\/3329995.3330072"},{"key":"e_1_3_3_40_2","first-page":"1","volume-title":"Proceedings of the 1st Asian Technology Conference in Mathematics (ATCM\u201913)","author":"Ho Weng Kin","year":"2013","unstructured":"Weng Kin Ho. 2013. Exact real calculator for everyone. In Proceedings of the 1st Asian Technology Conference in Mathematics (ATCM\u201913), W.-C. Yang, M. Majweski, T. Alwis, and I. K. Rana (Eds.). Mathematics and Technology, LLC, 1\u201315."},{"key":"e_1_3_3_41_2","doi-asserted-by":"publisher","DOI":"10.1017\/9781108770750.004"},{"key":"e_1_3_3_42_2","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9939-1981-0589150-5"},{"key":"e_1_3_3_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS52264.2021.9470611"},{"key":"e_1_3_3_44_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.topol.2022.108192"},{"key":"e_1_3_3_45_2","volume-title":"Probabilistic Non-determinism","author":"Jones Claire","year":"1990","unstructured":"Claire Jones. 1990. Probabilistic Non-determinism. Ph.D. Dissertation. University of Edinburgh, Edinburgh."},{"key":"e_1_3_3_46_2","doi-asserted-by":"publisher","DOI":"10.5555\/77350.77370"},{"key":"e_1_3_3_47_2","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(05)80216-6"},{"key":"e_1_3_3_48_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4757-4015-8"},{"key":"e_1_3_3_49_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2018.11.012"},{"key":"e_1_3_3_50_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.apal.2008.06.019"},{"key":"e_1_3_3_51_2","volume-title":"Bereiche und Bewertungen","author":"Kirch Olaf","year":"1993","unstructured":"Olaf Kirch. 1993. Bereiche und Bewertungen. Master\u2019s thesis. Technische Hochschule Darmstadt."},{"key":"e_1_3_3_52_2","doi-asserted-by":"publisher","DOI":"10.7146\/math.scand.a-11042"},{"issue":"4","key":"e_1_3_3_53_2","first-page":"97","article-title":"Commutative monads as a theory of distributions","volume":"26","author":"Kock Anders","year":"2012","unstructured":"Anders Kock. 2012. Commutative monads as a theory of distributions. Theor. Applic. Categ. 26, 4 (2012), 97\u2013131.","journal-title":"Theor. Applic. Categ."},{"key":"e_1_3_3_54_2","first-page":"133","volume-title":"CiE 2005: New Computational Paradigms (ILLC Technical Notes (X) Series)","author":"Lambov Branimir","year":"2005","unstructured":"Branimir Lambov. 2005. Complexity in a type-1 framework for computable analysis. In CiE 2005: New Computational Paradigms (ILLC Technical Notes (X) Series), S. B. Cooper, B. L\u00f6we, and L. Torenvliet (Eds.). Institute for Logic, Language, and Computation, Springer, Amsterdam, 133\u2013145."},{"key":"e_1_3_3_55_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129597002363"},{"key":"e_1_3_3_56_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4471-3196-0_18"},{"key":"e_1_3_3_57_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-9860-1"},{"key":"e_1_3_3_58_2","article-title":"Venture: A Higher-order Probabilistic Programming Platform with Programmable Inference","author":"Mansinghka Vikash K.","year":"2014","unstructured":"Vikash K. Mansinghka, Daniel Selsam, and Yura N. Perov. 2014. Venture: A Higher-order Probabilistic Programming Platform with Programmable Inference. Retrieved from http:\/\/arxiv.org\/abs\/1404.0099","journal-title":"Retrieved from http:\/\/arxiv.org\/abs\/1404.0099"},{"key":"e_1_3_3_59_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2004.1319637"},{"key":"e_1_3_3_60_2","first-page":"14","volume-title":"Logic in Computer Science","author":"Moggi Eugenio","year":"1989","unstructured":"Eugenio Moggi. 1989. Computational lambda-calculus and monads. In Logic in Computer Science. IEEE Computer Society Press, 14\u201323."},{"key":"e_1_3_3_61_2","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"key":"e_1_3_3_62_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-29604-3_5"},{"key":"e_1_3_3_63_2","doi-asserted-by":"publisher","DOI":"10.1145\/1452044.1452048"},{"key":"e_1_3_3_64_2","volume-title":"Relational Properties of Domains","author":"Pitts Andrew M.","year":"1993","unstructured":"Andrew M. Pitts. 1993. Relational Properties of Domains. Technical Report 321. Cambridge University Computer Laboratory."},{"key":"e_1_3_3_65_2","article-title":"A Calculator for Exact Real Number Computation","author":"Plume David","year":"1998","unstructured":"David Plume. 1998. A Calculator for Exact Real Number Computation. Retrieved from http:\/\/www.dcs.ed.ac.uk\/home\/mhe\/plume\/index.html","journal-title":"R"},{"key":"e_1_3_3_66_2","volume-title":"Computability, Inference and Modeling in Probabilistic Programming","author":"Roy Daniel Murphy","year":"2011","unstructured":"Daniel Murphy Roy. 2011. Computability, Inference and Modeling in Probabilistic Programming. Ph.D. Dissertation. MIT."},{"key":"e_1_3_3_67_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(80)90003-1"},{"key":"e_1_3_3_68_2","volume-title":"Measures, Integrals and Martingales (2nd ed.)","author":"Schilling Ren\u00e9 L.","year":"2017","unstructured":"Ren\u00e9 L. Schilling. 2017. Measures, Integrals and Martingales (2nd ed.). Cambridge University Press."},{"key":"e_1_3_3_69_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jco.2006.05.003"},{"key":"e_1_3_3_70_2","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(05)82509-5"},{"key":"e_1_3_3_71_2","unstructured":"Dana Stewart Scott. 1969. A Type Theoretic Alternative to ISWIM CUCH OWHY. Manuscript University of Oxford."},{"key":"e_1_3_3_72_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(93)90095-B"},{"key":"e_1_3_3_73_2","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009852"},{"key":"e_1_3_3_74_2","volume-title":"General Theory of Markov Processes","author":"Sharpe Michael","year":"1988","unstructured":"Michael Sharpe. 1988. General Theory of Markov Processes. Academic Press, Cambridge."},{"key":"e_1_3_3_75_2","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0055795"},{"key":"e_1_3_3_76_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54434-1_32"},{"key":"e_1_3_3_77_2","doi-asserted-by":"publisher","DOI":"10.1145\/2933575.2935313"},{"key":"e_1_3_3_78_2","unstructured":"Thomas Streicher. 2002. Mathematical Foundations of Functional Programming. Retrieved from http:\/\/www.mathematik.tu-darmstadt.de\/streicher\/MGFP\/mgfp.ps.gz"},{"key":"e_1_3_3_79_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00054-Z"},{"key":"e_1_3_3_80_2","volume-title":"Stetige Bewertungen auf topologischen R\u00e4umen","author":"Tix Regina","year":"1995","unstructured":"Regina Tix. 1995. Stetige Bewertungen auf topologischen R\u00e4umen. Master\u2019s thesis. Technische Hochschule Darmstadt."},{"issue":"2","key":"e_1_3_3_81_2","first-page":"246","article-title":"Sull\u2019integrazione per parti","volume":"18","author":"Tonelli Leonida","year":"1909","unstructured":"Leonida Tonelli. 1909. Sull\u2019integrazione per parti. Atti della Accademia Nazionale dei Lincei 18, 2 (1909), 246\u2013253.","journal-title":"Atti della Accademia Nazionale dei Lincei"},{"key":"e_1_3_3_82_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290349"},{"key":"e_1_3_3_83_2","unstructured":"Steven J. Vickers. 2011. A Monad of Valuation Locales. Retrieved from https:\/\/www.cs.bham.ac.uk\/sjv\/Riesz.pdf"},{"key":"e_1_3_3_84_2","doi-asserted-by":"publisher","DOI":"10.5555\/28904"},{"key":"e_1_3_3_85_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(98)00298-9"},{"key":"e_1_3_3_86_2","series-title":"Proceedings of the 17th International Conference on Artificial Intelligence and Statistics (AISTATS\u201914)","first-page":"1024","volume":"33","author":"Wood Frank","year":"2014","unstructured":"Frank Wood, Jan Willem van de Meent, and Vikash Mansinghka. 2014. A new approach to probabilistic programming inference. In Proceedings of the 17th International Conference on Artificial Intelligence and Statistics (AISTATS\u201914)(Proceedings of Machine Learning Research, Vol. 33), Samuel Kaski and Jukka Corander (Eds.). PMLR, 1024\u20131032."}],"container-title":["Journal of the ACM"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3611660","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3611660","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T12:37:08Z","timestamp":1750163828000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3611660"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,11]]},"references-count":85,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2023,10,31]]}},"alternative-id":["10.1145\/3611660"],"URL":"https:\/\/doi.org\/10.1145\/3611660","relation":{},"ISSN":["0004-5411","1557-735X"],"issn-type":[{"value":"0004-5411","type":"print"},{"value":"1557-735X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,11]]},"assertion":[{"value":"2021-10-15","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-07-26","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-10-11","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}