{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T05:58:27Z","timestamp":1794808707472,"version":"4.9.1"},"publisher-location":"Cham","reference-count":40,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783031911200","type":"print"},{"value":"9783031911217","type":"electronic"}],"license":[{"start":{"date-parts":[[2025,1,1]],"date-time":"2025-01-01T00:00:00Z","timestamp":1735689600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2025,5,1]],"date-time":"2025-05-01T00:00:00Z","timestamp":1746057600000},"content-version":"vor","delay-in-days":120,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>We introduce a sound and complete equational theory capturing equivalence of discrete probabilistic programs, that is, programs extended with primitives for Bernoulli distributions and conditioning, to model distributions over finite sets of events. To do so, we translate these programs into a graphical syntax of probabilistic circuits, formalised as string diagrams, the two-dimensional syntax of symmetric monoidal categories. We then prove a first completeness result for the equational theory of the conditioning-free fragment of our syntax. Finally, we extend this result to a complete equational theory for the entire language. Our first result gives a presentation of the category of Markov kernels, restricted to objects that are powers of the two-elements set.<\/jats:p>","DOI":"10.1007\/978-3-031-91121-7_9","type":"book-chapter","created":{"date-parts":[[2025,5,2]],"date-time":"2025-05-02T08:42:22Z","timestamp":1746175342000},"page":"202-229","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":3,"title":["A Complete Axiomatisation of Equivalence for Discrete Probabilistic Programming"],"prefix":"10.1007","author":[{"given":"Robin","family":"Piedeleu","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mateo","family":"Torres-Ruiz","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alexandra","family":"Silva","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fabio","family":"Zanasi","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,5,1]]},"reference":[{"key":"9_CR1","doi-asserted-by":"crossref","unstructured":"Bacci, G., Mardare, R., Panangaden, P., Plotkin, G.: Quantitative equational reasoning. Foundations of Probabilistic Programming p.\u00a0333 (2020)","DOI":"10.1017\/9781108770750.011"},{"key":"9_CR2","unstructured":"Baez, J.C., Coya, B., Rebro, F.: Props in network theory. Theory & Applications of Categories 33 (2018)"},{"key":"9_CR3","unstructured":"Birkhoff, G.: Three observations on linear algebra. Univ. Nac. Tucum\u00e1n. Revista A. 5, 147\u2013151 (1946)"},{"key":"9_CR4","doi-asserted-by":"publisher","unstructured":"Boisseau, G., Soboci\u0144ski, P.: String diagrammatic electrical circuit theory. Electronic Proceedings in Theoretical Computer Science 372, 178\u2013191 (Nov 2022). https:\/\/doi.org\/10.4204\/eptcs.372.13","DOI":"10.4204\/eptcs.372.13"},{"key":"9_CR5","unstructured":"Boole, G.: The Laws of Thought (1854). The Open court publishing company, London, (1854)"},{"key":"9_CR6","doi-asserted-by":"crossref","unstructured":"Cho, K., Jacobs, B.: Disintegration and Bayesian inversion via string diagrams. Mathematical Structures in Computer Science 29(7), 938\u2013971 (2019)","DOI":"10.1017\/S0960129518000488"},{"key":"9_CR7","doi-asserted-by":"publisher","unstructured":"Claret, G., Rajamani, S.K., Nori, A.V., Gordon, A.D., Borgstr\u00f6m, J.: Bayesian inference using data flow analysis. In: Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering. p. 92\u2013102. ESEC\/FSE 2013, Association for Computing Machinery, New York, NY, USA (2013). https:\/\/doi.org\/10.1145\/2491411.2491423","DOI":"10.1145\/2491411.2491423"},{"key":"9_CR8","doi-asserted-by":"crossref","unstructured":"Coecke, B., Kissinger, A.: Picturing Quantum Processes: A First Course in Quantum Theory and Diagrammatic Reasoning. Cambridge University Press (2017)","DOI":"10.1017\/9781316219317"},{"key":"9_CR9","doi-asserted-by":"publisher","unstructured":"Dash, S., Kaddar, Y., Paquet, H., Staton, S.: Affine monads and lazy structures for Bayesian programming. Proc. ACM Program. Lang. 7(POPL) (jan 2023). https:\/\/doi.org\/10.1145\/3571239","DOI":"10.1145\/3571239"},{"key":"9_CR10","doi-asserted-by":"crossref","unstructured":"Di\u00a0Lavore, E., Rom\u00e1n, M.: Evidential decision theory via partial markov categories. In: 2023 38th Annual ACM\/IEEE Symposium on Logic in Computer Science (LICS). pp. 1\u201314. IEEE (2023)","DOI":"10.1109\/LICS56636.2023.10175776"},{"key":"9_CR11","doi-asserted-by":"publisher","unstructured":"Fierens, D., Van den Broeck, G., Renkens, J., Shterionov, D., Gutmann, B., Thon, I., Janssens, G., De Raedt, L.: Inference and learning in probabilistic logic programs using weighted boolean formulas. Theory and Practice of Logic Programming 15(3), 358\u2013401 (Apr 2014). https:\/\/doi.org\/10.1017\/s1471068414000076","DOI":"10.1017\/s1471068414000076"},{"key":"9_CR12","unstructured":"Fritz, T.: A presentation of the category of stochastic matrices. arXiv preprint arXiv:0902.2554 (2009)"},{"key":"9_CR13","doi-asserted-by":"publisher","unstructured":"Fritz, T.: A synthetic approach to markov kernels, conditional independence and theorems on sufficient statistics. Advances in Mathematics 370, 107239 (aug 2020). https:\/\/doi.org\/10.1016\/j.aim.2020.107239","DOI":"10.1016\/j.aim.2020.107239"},{"key":"9_CR14","doi-asserted-by":"crossref","unstructured":"Fritz, T., Gonda, T., Houghton-Larsen, N.G., Lorenzin, A., Perrone, P., Stein, D.: Dilations and information flow axioms in categorical probability. Mathematical Structures in Computer Science 33(10), 913\u2013957 (2023)","DOI":"10.1017\/S0960129523000324"},{"key":"9_CR15","doi-asserted-by":"crossref","unstructured":"Fritz, T., Gonda, T., Perrone, P.: De finetti\u2019s theorem in categorical probability. Journal of Stochastic Analysis 2(4), 6 (2021)","DOI":"10.31390\/josa.2.4.06"},{"key":"9_CR16","doi-asserted-by":"crossref","unstructured":"Fritz, T., Gonda, T., Perrone, P., Rischel, E.F.: Representable markov categories and comparison of statistical experiments in categorical probability. Theoretical Computer Science 961, 113896 (2023)","DOI":"10.1016\/j.tcs.2023.113896"},{"key":"9_CR17","doi-asserted-by":"crossref","unstructured":"Fritz, T., Rischel, E.F.: Infinite products and zero-one laws in categorical probability. Compositionality 2 (2020)","DOI":"10.32408\/compositionality-2-3"},{"key":"9_CR18","doi-asserted-by":"crossref","unstructured":"Gehr, T., , Misailovic, S., Vechev, M.: Psi: Exact symbolic inference for probabilistic programs. In: Chaudhuri, S., Farzan, A. (eds.) Computer Aided Verification. pp. 62\u201383. Springer International Publishing (2016)","DOI":"10.1007\/978-3-319-41528-4_4"},{"key":"9_CR19","doi-asserted-by":"crossref","unstructured":"Giry, M.: A categorical approach to probability theory. Categorical Aspects of Topology and Analysis pp. 68\u201385 (1982)","DOI":"10.1007\/BFb0092872"},{"key":"9_CR20","doi-asserted-by":"publisher","unstructured":"Gu, T., Piedeleu, R., Zanasi, F.: A complete diagrammatic calculus for boolean satisfiability. Electronic Notes in Theoretical Informatics and Computer Science Volume 1-Proceedings of... (2023). https:\/\/doi.org\/10.46298\/entics.10481","DOI":"10.46298\/entics.10481"},{"key":"9_CR21","doi-asserted-by":"publisher","unstructured":"Hoare, C.A.R., Hayes, I.J., Jifeng, H., Morgan, C.C., Roscoe, A.W., Sanders, J.W., Sorensen, I.H., Spivey, J.M., Sufrin, B.A.: Laws of programming. Commun. ACM 30(8), 672-686 (aug 1987). https:\/\/doi.org\/10.1145\/27651.27653","DOI":"10.1145\/27651.27653"},{"key":"9_CR22","doi-asserted-by":"crossref","unstructured":"Holtzen, S., Van\u00a0den Broeck, G., Millstein, T.: Scaling exact inference for discrete probabilistic programs. Proceedings of the ACM on Programming Languages 4(OOPSLA), 1\u201331 (2020)","DOI":"10.1145\/3428208"},{"key":"9_CR23","doi-asserted-by":"publisher","unstructured":"Kozen, D.: Semantics of probabilistic programs. Journal of Computer and System Sciences 22(3), 328\u2013350 (1981). https:\/\/doi.org\/10.1016\/0022-0000(81)90036-2","DOI":"10.1016\/0022-0000(81)90036-2"},{"key":"9_CR24","doi-asserted-by":"publisher","unstructured":"Kozen, D.: Kleene algebra with tests. ACM Trans. Program. Lang. Syst. 19(3), 427\u2013443 (may 1997). https:\/\/doi.org\/10.1145\/256167.256195","DOI":"10.1145\/256167.256195"},{"key":"9_CR25","doi-asserted-by":"publisher","unstructured":"MacLane, S.: Categories for the Working Mathematician. Springer New York (1971). https:\/\/doi.org\/10.1007\/978-1-4612-9839-7","DOI":"10.1007\/978-1-4612-9839-7"},{"key":"9_CR26","doi-asserted-by":"publisher","unstructured":"Moss, S., Perrone, P.: Probability monads with submonads of deterministic states. In: Proceedings of the 37th Annual ACM\/IEEE Symposium on Logic in Computer Science. LICS \u201922, Association for Computing Machinery, New York, NY, USA (2022). https:\/\/doi.org\/10.1145\/3531130.3533355","DOI":"10.1145\/3531130.3533355"},{"key":"9_CR27","doi-asserted-by":"crossref","unstructured":"Moss, S., Perrone, P.: A category-theoretic proof of the ergodic decomposition theorem. Ergodic Theory and Dynamical Systems 43(12), 4166\u20134192 (2023)","DOI":"10.1017\/etds.2023.6"},{"key":"9_CR28","doi-asserted-by":"crossref","unstructured":"Narayanan, P., Carette, J., Romano, W., Shan, C.c., Zinkov, R.: Probabilistic inference by program transformation in Hakaru (system description). In: Kiselyov, O., King, A. (eds.) Functional and Logic Programming. pp. 62\u201379. Springer International Publishing, Cham (2016)","DOI":"10.1007\/978-3-319-29604-3_5"},{"key":"9_CR29","doi-asserted-by":"crossref","unstructured":"Olmedo, F., Gretz, F., Jansen, N., Kaminski, B.L., Katoen, J.P., McIver, A.: Conditioning in probabilistic programming. ACM Transactions on Programming Languages and Systems (TOPLAS) 40(1), 1\u201350 (2018)","DOI":"10.1145\/3156018"},{"key":"9_CR30","doi-asserted-by":"crossref","unstructured":"Perrone, P.: Markov categories and entropy. IEEE Transactions on Information Theory (2023)","DOI":"10.1109\/TIT.2023.3328825"},{"key":"9_CR31","doi-asserted-by":"crossref","unstructured":"Piedeleu, R., Zanasi, F.: A string diagrammatic axiomatisation of finite-state automata (2020), https:\/\/arxiv.org\/abs\/2009.14576","DOI":"10.26226\/morressier.604907f41a80aac83ca25cb7"},{"key":"9_CR32","unstructured":"Piedeleu, R., Zanasi, F.: An introduction to string diagrams for computer scientists (2023), https:\/\/arxiv.org\/abs\/2305.08768"},{"key":"9_CR33","unstructured":"R\u00f3\u017cowski, W., Kapp\u00e9, T., Kozen, D., Schmid, T., Silva, A.: Probabilistic guarded kat modulo bisimilarity: Completeness and complexity. In: 50th International Colloquium on Automata, Languages, and Programming (ICALP 2023). Schloss-Dagstuhl-Leibniz Zentrum f\u00fcr Informatik (2023)"},{"key":"9_CR34","doi-asserted-by":"publisher","unstructured":"Selinger, P.: A Survey of Graphical Languages for Monoidal Categories, p. 289-355. Springer Berlin Heidelberg (2010). https:\/\/doi.org\/10.1007\/978-3-642-12821-9_4","DOI":"10.1007\/978-3-642-12821-9_4"},{"key":"9_CR35","doi-asserted-by":"crossref","unstructured":"Stein, D., Staton, S.: Compositional semantics for probabilistic programs with exact conditioning. In: 2021 36th Annual ACM\/IEEE Symposium on Logic in Computer Science (LICS). pp. 1\u201313. IEEE (2021)","DOI":"10.1109\/LICS52264.2021.9470552"},{"key":"9_CR36","unstructured":"Stein, D., Staton, S.: Probabilistic programming with exact conditions. Journal of the ACM (2023)"},{"key":"9_CR37","unstructured":"Stein, D., Zanasi, F., Samuelson, R., Piedeleu, R.: Graphical quadratic algebra. arXiv preprint arXiv:2403.02284 (2024)"},{"key":"9_CR38","doi-asserted-by":"crossref","unstructured":"Stone, M.H.: Postulates for the barycentric calculus. Annali di Matematica Pura ed Applicata 29, 25\u201330 (1949)","DOI":"10.1007\/BF02413910"},{"key":"9_CR39","doi-asserted-by":"crossref","unstructured":"Tolpin, D., van\u00a0de Meent, J.W., Yang, H., Wood, F.: Design and implementation of probabilistic programming language anglican (2016), https:\/\/arxiv.org\/abs\/1608.05263","DOI":"10.1145\/3064899.3064910"},{"key":"9_CR40","unstructured":"Zanasi, F.: Interacting Hopf Algebras-the Theory of Linear Systems. Ph.D. thesis, Ecole normale sup\u00e9rieure de Lyon (2015)"}],"container-title":["Lecture Notes in Computer Science","Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-031-91121-7_9","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,5,6]],"date-time":"2025-05-06T04:38:28Z","timestamp":1746506308000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-031-91121-7_9"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025]]},"ISBN":["9783031911200","9783031911217"],"references-count":40,"URL":"https:\/\/doi.org\/10.1007\/978-3-031-91121-7_9","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-031-91121-7","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025]]},"assertion":[{"value":"1 May 2025","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"ESOP","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"European Symposium on Programming","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Hamilton, ON","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Canada","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2025","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"3 May 2025","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"8 May 2025","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"34","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"esop2025","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/etaps.org\/2025\/conferences\/esop\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}