{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T04:50:02Z","timestamp":1750308602419,"version":"3.41.0"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T00:00:00Z","timestamp":1576800000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100003130","name":"Fonds Wetenschappelijk Onderzoek","doi-asserted-by":"publisher","award":["1S68117N"],"award-info":[{"award-number":["1S68117N"]}],"id":[{"id":"10.13039\/501100003130","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,1]]},"abstract":"<jats:p>This work presents P\u03bb\u03c9NK, a functional probabilistic network programming language that extends Probabilistic NetKAT (PNK). Like PNK, it enables probabilistic modelling of network behaviour, by providing probabilistic choice and infinite iteration (to simulate looping network packets). Yet, unlike PNK, it also offers abstraction and higher-order functions to make programming much more convenient.<\/jats:p>\n          <jats:p>The formalisation of P\u03bb\u03c9NK is challenging for two reasons: Firstly, network programming induces multiple side effects (in particular, parallelism and probabilistic choice) which need to be carefully controlled in a functional setting. Our system uses an explicit syntax for thunks and sequencing which makes the interplay of these effects explicit. Secondly, measure theory, the standard domain for formalisations of (continuous) probablistic languages, does not admit higher-order functions. We address this by leveraging \u03c9-Quasi Borel Spaces (\u03c9QBSes), a recent advancement in the domain theory of probabilistic programming languages.<\/jats:p>\n          <jats:p>We believe that our work is not only useful for bringing abstraction to PNK, but that\u2014as part of our contribution\u2014we have developed the meta-theory for a probabilistic language that combines advanced features like higher-order functions, iteration and parallelism, which may inform similar meta-theoretic efforts.<\/jats:p>","DOI":"10.1145\/3371107","type":"journal-article","created":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T19:45:25Z","timestamp":1576871125000},"page":"1-27","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["P\u03bb\u03c9NK: functional probabilistic NetKAT"],"prefix":"10.1145","volume":"4","author":[{"given":"Alexander","family":"Vandenbroucke","sequence":"first","affiliation":[{"name":"KU Leuven, Belgium"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Tom","family":"Schrijvers","sequence":"additional","affiliation":[{"name":"KU Leuven, Belgium"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2019,12,20]]},"reference":[{"key":"key-10.1145\/3371107-1","unstructured":"Bram Aerts, Toon Goedem&#233;, and Joost Vennekens. 2016. A Probabilistic Logic Programming Approach to Automatic Video Montage. In Proceedings of the Twenty-second European Conference on Artificial Intelligence (ECAI&#8217;16). IOS Press, Amsterdam, The Netherlands, The Netherlands, 234&#8211;242."},{"key":"key-10.1145\/3371107-2","unstructured":"Carolyn Jane Anderson, Nate Foster, Arjun Guha, Jean-Baptiste Jeannin, Dexter Kozen, Cole Schlesinger, and David Walker. 2014. NetkAT: semantic foundations for networks. In POPL. ACM, 113&#8211;126."},{"key":"key-10.1145\/3371107-3","unstructured":"Robert J Aumann et al. 1961. Borel structures for function spaces. Illinois Journal of Mathematics 5, 4 (1961), 614&#8211;630."},{"key":"key-10.1145\/3371107-4","unstructured":"Giorgio Bacci, Robert Furber, Dexter Kozen, Radu Mardare, Prakash Panangaden, and Dana Scott. 2018. Boolean-Valued Semantics for the Stochastic &#120582;-Calculus. In LICS. ACM, 669&#8211;678."},{"key":"key-10.1145\/3371107-5","unstructured":"Ingo Battenfeld, Matthias Schr&#246;der, and Alex Simpson. 2007. A Convenient Category of Domains. Electr. Notes Theor. Comput. Sci. 172 (2007), 69&#8211;99."},{"key":"key-10.1145\/3371107-6","doi-asserted-by":"crossref","unstructured":"Bob Carpenter, Andrew Gelman, Matthew D Hoffman, Daniel Lee, Ben Goodrich, Michael Betancourt, Marcus Brubaker, Jiqiang Guo, Peter Li, and Allen Riddell. 2017. Stan: A probabilistic programming language. Journal of statistical software 76, 1 (2017).","DOI":"10.18637\/jss.v076.i01"},{"key":"key-10.1145\/3371107-7","doi-asserted-by":"crossref","unstructured":"Marco F. Cusumano-Towner, Feras A. Saad, Alexander K. Lew, and Vikash K. Mansinghka. 2019. Gen: a general-purpose probabilistic programming system with programmable inference. In PLDI. ACM, 221&#8211;236.","DOI":"10.1145\/3314221.3314642"},{"key":"key-10.1145\/3371107-8","unstructured":"Vincent Danos and Thomas Ehrhard. 2011. Probabilistic coherence spaces as a model of higher-order probabilistic computation. Inf. Comput. 209, 6 (2011), 966&#8211;991."},{"key":"key-10.1145\/3371107-9","unstructured":"Olivier Danvy and Lasse R. Nielsen. 2001. Defunctionalization at Work. In PPDP. ACM, 162&#8211;174."},{"key":"key-10.1145\/3371107-10","unstructured":"Dries De Maeyer, Joris Renkens, Lore Cloots, Luc De Raedt, and Kathleen Marchal. 2013. PheNetic: network-based interpretation of unstructured gene lists in E. coli. Molecular BioSystems 9, 7 (2013), 1594&#8211;1603."},{"key":"key-10.1145\/3371107-11","unstructured":"Thomas Ehrhard and Christine Tasson. 2019. Probabilistic call by push value. Logical Methods in Computer Science 15, 1 (2019)."},{"key":"key-10.1145\/3371107-12","unstructured":"Daan Fierens, Guy Van den Broeck, Joris Renkens, Dimitar Sht. Shterionov, Bernd Gutmann, Ingo Thon, Gerda Janssens, and Luc De Raedt. 2015. Inference and learning in probabilistic logic programs using weighted Boolean formulas. TPLP 15, 3 (2015), 358&#8211;401."},{"key":"key-10.1145\/3371107-13","unstructured":"Nate Foster, Arjun Guha, Mark Reitblatt, Alec Story, Michael J Freedman, Naga Praveen Katta, Christopher Monsanto, Joshua Reich, Jennifer Rexford, Cole Schlesinger, et al. 2013. Languages for software-defined networks. IEEE Communications Magazine 51, 2 (2013), 128&#8211;134."},{"key":"key-10.1145\/3371107-14","unstructured":"Nate Foster, Dexter Kozen, Konstantinos Mamouras, Mark Reitblatt, and Alexandra Silva. 2016. Probabilistic NetKAT. In Programming Languages and Systems - 25th European Symposium on Programming, ESOP 2016, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2016, Eindhoven, The Netherlands, April 2-8, 2016, Proceedings (Lecture Notes in Computer Science), Peter Thiemann (Ed.), Vol. 9632. Springer, 282&#8211;309."},{"key":"key-10.1145\/3371107-15","doi-asserted-by":"crossref","unstructured":"Andrew Gacek. 2008. The Abella Interactive Theorem Prover (System Description). In IJCAR (Lecture Notes in Computer Science), Vol. 5195. Springer, 154&#8211;161.","DOI":"10.1007\/978-3-540-71070-7_13"},{"key":"key-10.1145\/3371107-16","unstructured":"Hong Ge, Kai Xu, and Zoubin Ghahramani. 2018. Turing: A language for flexible probabilistic inference. In International Conference on Artificial Intelligence and Statistics. 1682&#8211;1690."},{"key":"key-10.1145\/3371107-17","unstructured":"Noah D. Goodman. 2013. The principles and practice of probabilistic programming. In POPL. ACM, 399&#8211;402."},{"key":"key-10.1145\/3371107-18","unstructured":"Noah D. Goodman, Vikash K. Mansinghka, Daniel M. Roy, Keith Bonawitz, and Joshua B. Tenenbaum. 2012. Church: a language for generative models. CoRR abs\/1206.3255 (2012)."},{"key":"key-10.1145\/3371107-19","doi-asserted-by":"crossref","unstructured":"Jean Goubault-Larrecq. 2019. A Probabilistic and Non-Deterministic Call-by-Push-Value Language. In Thirty-Fourth Annual ACM\/IEEE Symposium on Logic in Computer Science, LICS 2019, Vancouver, Canada, June 2427, 2019, Proceedings. To appear. https:\/\/arxiv.org\/pdf\/1812.11573.pdf","DOI":"10.1109\/LICS.2019.8785809"},{"key":"key-10.1145\/3371107-20","unstructured":"Jean Goubault-Larrecq and Daniele Varacca. 2011. Continuous Random Variables. In LICS. IEEE Computer Society, 97&#8211;106."},{"key":"key-10.1145\/3371107-21","unstructured":"Chris Heunen, Ohad Kammar, Sam Staton, and Hongseok Yang. 2017. A convenient category for higher-order probability theory. In LICS. IEEE Computer Society, 1&#8211;12."},{"key":"key-10.1145\/3371107-22","unstructured":"Claire Jones and Gordon D Plotkin. 1989. A probabilistic powerdomain of evaluations. In Proceedings. Fourth Annual Symposium on Logic in Computer Science. IEEE, 186&#8211;195."},{"key":"key-10.1145\/3371107-23","unstructured":"Achim Jung and Regina Tix. 1998. The troublesome probabilistic powerdomain. Electr. Notes Theor. Comput. Sci. 13 (1998), 70&#8211;91."},{"key":"key-10.1145\/3371107-24","unstructured":"Doga Kisa, Guy Van den Broeck, Arthur Choi, and Adnan Darwiche. 2014. Probabilistic Sentential Decision Diagrams. In KR. AAAI Press."},{"key":"key-10.1145\/3371107-25","unstructured":"Dexter Kozen. 1981. Semantics of Probabilistic Programs. J. Comput. Syst. Sci. 22, 3 (1981), 328&#8211;350."},{"key":"key-10.1145\/3371107-26","unstructured":"Paul Blain Levy. 2001. Call-by-push-value. Ph.D. Dissertation. Queen Mary University of London, UK."},{"key":"key-10.1145\/3371107-27","unstructured":"Anthony Lu. 2016. Venture: An extensible platform for probabilistic meta-programming. Master&#8217;s thesis. Massachusetts Institute of Technology."},{"key":"key-10.1145\/3371107-28","unstructured":"Eugenio Moggi. 1991. Notions of Computation and Monads. Inf. Comput. 93, 1 (1991), 55&#8211;92."},{"key":"key-10.1145\/3371107-29","unstructured":"Benjamin C. Pierce. 2002. Types and programming languages. MIT Press."},{"key":"key-10.1145\/3371107-30","unstructured":"Joshua Reich, Christopher Monsanto, Nate Foster, Jennifer Rexford, and David Walker. 2013. Modular SDN programming with Pyretic. Technical Report of USENIX (2013)."},{"key":"key-10.1145\/3371107-31","unstructured":"John C. Reynolds. 1998. Definitional Interpreters for Higher-Order Programming Languages. Higher-Order and Symbolic Computation 11, 4 (1998), 363&#8211;397."},{"key":"key-10.1145\/3371107-32","unstructured":"Nasser Saheb-Djahromi. 1980. CPO&#8217;s of measures for nondeterminism. Theoretical Computer Science 12, 1 (1980), 19&#8211;37."},{"key":"key-10.1145\/3371107-33","unstructured":"Adam Scibior, Ohad Kammar, and Zoubin Ghahramani. 2018. Functional programming for modular Bayesian inference. PACMPL 2, ICFP (2018), 83:1&#8211;83:29."},{"key":"key-10.1145\/3371107-34","unstructured":"Steffen Smolka, Spiridon Aristides Eliopoulos, Nate Foster, and Arjun Guha. 2015. A fast compiler for NetKAT. In ICFP. ACM, 328&#8211;341."},{"key":"key-10.1145\/3371107-35","unstructured":"Steffen Smolka, David M. Kahn, Praveen Kumar, Nate Foster, Dexter Kozen, and Alexandra Silva. 2017a. Deciding Probabilistic Program Equivalence in NetKAT. CoRR abs\/1707.02772 (2017). arXiv: 1707.02772 http:\/\/arxiv.org\/abs\/1707.02772"},{"key":"key-10.1145\/3371107-36","unstructured":"Steffen Smolka, Praveen Kumar, Nate Foster, Dexter Kozen, and Alexandra Silva. 2017b. Cantor meets Scott: semantic foundations for probabilistic networks. In POPL. ACM, 557&#8211;571."},{"key":"key-10.1145\/3371107-37","unstructured":"Steffen Smolka, Praveen Kumar, David M. Kahn, Nate Foster, Justin Hsu, Dexter Kozen, and Alexandra Silva. 2019. Scalable verification of probabilistic networks. In PLDI. ACM, 190&#8211;203."},{"key":"key-10.1145\/3371107-38","doi-asserted-by":"crossref","unstructured":"Sam Staton. 2017. Commutative Semantics for Probabilistic Programming. In ESOP (Lecture Notes in Computer Science), Vol. 10201. Springer, 855&#8211;879.","DOI":"10.1007\/978-3-662-54434-1_32"},{"key":"key-10.1145\/3371107-39","unstructured":"William W. Tait. 1967. Intensional Interpretations of Functionals of Finite Type I. J. Symb. Log. 32, 2 (1967), 198&#8211;212."},{"key":"key-10.1145\/3371107-40","unstructured":"Matthijs V&#225;k&#225;r, Ohad Kammar, and Sam Staton. 2019. A domain theory for statistical probabilistic programming. PACMPL 3, POPL (2019), 36:1&#8211;36:29. https:\/\/dl.acm.org\/citation.cfm?id=3290349"},{"key":"key-10.1145\/3371107-41","unstructured":"Frank D. Wood, Jan-Willem van de Meent, and Vikash Mansinghka. 2014. A New Approach to Probabilistic Programming Inference. In AISTATS (JMLR Workshop and Conference Proceedings), Vol. 33. JMLR.org, 1024&#8211;1032."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371107","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3371107","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T19:05:43Z","timestamp":1750273543000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371107"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,12,20]]},"references-count":41,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2020,1]]}},"alternative-id":["10.1145\/3371107"],"URL":"https:\/\/doi.org\/10.1145\/3371107","relation":{},"ISSN":["2475-1421"],"issn-type":[{"type":"electronic","value":"2475-1421"}],"subject":[],"published":{"date-parts":[[2019,12,20]]},"assertion":[{"value":"2019-12-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}