Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1109/LICS52264.2021.9470611acmconferencesArticle/Chapter ViewAbstractPublication PageslicsConference Proceedingsconference-collections
research-article

Commutative monads for probabilistic programming languages

Published: 24 November 2021 Publication History

Abstract

A long-standing open problem in the semantics of programming languages supporting probabilistic choice is to find a commutative monad for probability on the category DCPO. In this paper we present three such monads and a general construction for finding even more. We show how to use these monads to provide a sound and adequate denotational semantics for the Probabilistic FixPoint Calculus (PFPC) - a call-by-value simply-typed lambda calculus with mixed-variance recursive types, term recursion and probabilistic choice. We also show that in the special case of continuous dcpo's, all three monads coincide with the valuations monad of Jones, and we fully characterise the induced Eilenberg-Moore categories by showing that they are all isomorphic to the category of continuous Kegelspitzen of Keimel and Plotkin.

References

[1]
M. O. Rabin, "Probabilistic algorithms," in Algorithms and complexity, recent results and new direction, J. F. Traub, Ed. Academic Press, 1976, pp. 21--40.
[2]
J. Gill, "Computational complexity of probabilistic Turing machines," SIAM Journal on Computing, pp. 675--695, 1977.
[3]
J. Baeten, J. Bergstra, and S. Smolka, "Axiomatizing probabilistic processes: ACP with generative probabilities," Information and Computation, vol. 121, pp. 234--255, 1995.
[4]
K. G. Larsen and A. Skou, "Bisimulation through probabilistic testing," in Proceedings of the 16th Annual ACM Symposium on Principles of Programming Languages. IEEE Press, 1989.
[5]
C. Morgan, A. McIver, and K. Seidel, "Probabilistic predicate transformers," ACM Transactions on Programming Languages and Systems, vol. 18, pp. 325--353, 1996.
[6]
"Archive of workshops on probabilistic programming languages." [Online]. Available: https://pps2017.luddy.indiana.edu/2017/01/
[7]
S. Staton, F. Wood, H. Yang, C. Heunen, and O. Kammar, "Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraints," in Proceedings of 2016 31st Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). ACM Press, 2016.
[8]
M. Vákár, O. Kammar, and S. Staton, "A domain theory for statistical probabilistic programming," Proc. ACM Program. Lang., vol. 3, no. POPL, pp. 36:1--36:29, 2019. [Online].
[9]
M. Pagani, P. Selinger, and B. Valiron, "Applying quantitative semantics to higher-order quantum computing," in The 41st Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL '14, San Diego, CA, USA, January 20--21, 2014, S. Jagannathan and P. Sewell, Eds. ACM, 2014, pp. 647--658. [Online].
[10]
K. Cho, "Semantics for a quantum programming language by operator algebras," New Generation Computing, vol. 34, pp. 25--68, 2016.
[11]
C. Jones and G. D. Plotkin, "A probabilistic powerdomain of evaluations," in Proceedings of the Fourth Annual Symposium on Logic in Computer Science (LICS '89), Pacific Grove, California, USA, June 5--8, 1989. IEEE Computer Society, 1989, pp. 186--195. [Online].
[12]
C. Jones, "Probabilistic Non-determinism," Ph.D. dissertation, University of Edinburgh, UK, 1990. [Online]. Available: http://hdl.handle.net/1842/413
[13]
A. Jung and R. Tix, "The troublesome probabilistic power domain," in Comprox III, Third Workshop on Computation and Approximation, vol. 13, 1998, pp. 70--91.
[14]
K. Keimel and J. D. Lawson, "D-completions and the d-topology," Ann. Pure Appl. Log., vol. 159, no. 3, pp. 292--306, 2009. [Online].
[15]
K. Keimel and G. D. Plotkin, "Mixed powerdomains for probability and nondeterminism," Logical Methods in Computer Science, vol. 13, Issue 1, Jan. 2017. [Online]. Available: https://lmcs.episciences.org/2665
[16]
X. Jia, B. Lindenhovius, M. W. Mislove, and V. Zamdzhiev, "Commutative monads for probabilistic programming languages," 2021, preprint. [Online]. Available: https://arxiv.org/abs/2102.00510
[17]
N. Saheb-Djagromi, "Cpos of measures for nondeterminism," Theoretical Computer Science, vol. 12, pp. 19--37, 1980.
[18]
E. Moggi, "Notions of Computation and Monads," Inf. Comput., vol. 93, no. 1, pp. 55--92, 1991. [Online].
[19]
T. Ehrhard and C. Tasson, "Probabilistic call by push value," Log. Methods Comput. Sci., vol. 15, no. 1, 2019. [Online].
[20]
T. Ehrhard, M. Pagani, and C. Tasson, "Full abstraction for probabilistic PCF," J. ACM, vol. 65, no. 4, pp. 23:1--23:44, 2018. [Online].
[21]
C. Heunen, O. Kammar, S. Staton, and H. Yang, "A convenient category for higher-order probability theory," in 32nd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2017, Reykjavik, Iceland, June 20--23, 2017. IEEE Computer Society, 2017, pp. 1--12. [Online].
[22]
A. Edalat, "Domain theory and integration," in Annual IEEE Symposium on Logic in Computer Science, LICS 1994. IEEE Computer Society, 1994, pp. 115--124. [Online]. Available: https://https://www.computer.org/csdl/proceedings-article/lics/1994/00316080/12OmNyxFKiO
[23]
A. Edalat, "When Scott is weak on the top," Mathematical Structures for Computer Science, vol. 7, pp. 401--417, 1997.
[24]
M. Alvarez-Manilla, A. Edalat, and N. Saheb-Djarhomi, "An extension result for continuous valuations," Electronic Notes in Theoretical Computer Science, vol. 13, 1998.
[25]
M. Rennela, "Convexity and order in probabilistic call-by-name FPC," LMCS, vol. 16, 2020.
[26]
M. Abadi and M. P. Fiore, "Syntactic considerations on recursive types," in Proceedings 11th Annual IEEE Symposium on Logic in Computer Science, July 1996, pp. 242--252.
[27]
M. P. Fiore, "Axiomatic domain theory in categories of partial maps," Ph.D. dissertation, University of Edinburgh, UK, 1994.
[28]
M. Fiore and G. Plotkin, "An axiomatization of computationally adequate domain theoretic models of FPC," in LICS. IEEE Computer Society, 1994, pp. 92--102.
[29]
R. Harper, Practical Foundations for Programming Languages (2nd. Ed.). Cambridge University Press, 2016. [Online]. Available: https://www.cs.cmu.edu/%7Erwh/pfpl/index.html
[30]
C. Faggian and S. R. D. Rocca, "Lambda Calculus and Probabilistic Computation," in 34th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2019, Vancouver, BC, Canada, June 24--27, 2019. IEEE, 2019, pp. 1--13. [Online].
[31]
S. Abramsky and A. Jung, "Domain Theory," in Handbook of Logic in Computer Science (Vol. 3). Oxford, UK: Oxford University Press, 1994, pp. 1--168. [Online]. Available: http://dl.acm.org/citation.cfm?id=218742.218744
[32]
G. Gierz, K. H. Hofmann, K. Keimel, J. D. Lawson, M. W. Mislove, and D. S. Scott, Continuous Lattices and Domains, ser. Encyclopedia of Mathematics and Its Applications 93. Cambridge University Press, 2003.
[33]
W. K. Ho, J. Goubault-Larrecq, A. Jung, and X. Xi, "The Ho-Zhao problem," Log. Methods Comput. Sci., vol. 14, no. 1, 2018. [Online].
[34]
E. G. Manes, Algebraic Theories, ser. Graduate Texts in Mathematics. Springer-Verlag, 1976, vol. 26. [Online].
[35]
X. Jia and M. Mislove, "Completing Simple Valuations in K-categories," 2020, preprint. [Online]. Available: https://arxiv.org/abs/2002.01865
[36]
D. Zhao and T. Fan, "Dcpo-completion of posets," Theor. Comput. Sci., vol. 411, no. 22--24, pp. 2167--2173, 2010. [Online].
[37]
R. Heckmann, "Spaces of valuations," in Papers on General Topology and Applications: Eleventh Summer Conference at the University of Southern Maine, ser. Annals of the New York Academy of Sciences, S. Andima, R. C. Flagg, G. Itzkowitz, P. Misra, Y. Kong, and R. Kopperman, Eds., vol. 806, 1996, pp. 174--200.
[38]
J. Goubault-Larrecq, "A short proof of the Schröder-Simpson Theorem," Math. Struct. Comput. Sci., vol. 25, no. 1, pp. 1--5, 2015. [Online].
[39]
G. Wu, X. Xi, X. Xu, and D. Zhao, "Existence of well-filterifications of T0 topological spaces," Topology and its Applications, vol. 270, no. 1, 2020.
[40]
P. T. Johnstone, "Scott is not always sober," in Continuous Lattices. Springer, 1981, pp. 282--283.
[41]
J. Power and H. Thielecke, "Closed freyd- and kappa-categories," in Automata, Languages and Programming, 26th International Colloquium, ICALP'99, Prague, Czech Republic, July 11--15, 1999, Proceedings, ser. Lecture Notes in Computer Science, J. Wiedermann, P. van Emde Boas, and M. Nielsen, Eds., vol. 1644. Springer, 1999, pp. 625--634. [Online].
[42]
B. Jacobs, Introduction to Coalgebra: Towards Mathematics of States and Observation, ser. Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, 2016, vol. 59. [Online].
[43]
J. Power and E. Robinson, "Premonoidal Categories and Notions of Computation," Math. Struct. Comput. Sci., vol. 7, no. 5, pp. 453--468, 1997. [Online].
[44]
S. Mac Lane, Categories for the Working Mathematician (2nd ed.). Springer, 1998.
[45]
F. Borceux, Handbook of Categorical Algebra 2: Categories and Structures. Cambridge University Press, 1994.
[46]
P. Benton, "A mixed linear and non-linear logic: Proofs, terms and models," in Computer Science Logic: 8th Workshop, CSL '94, Selected Papaers, 1995. [Online].
[47]
P. N. Benton and P. Wadler, "Linear logic, monads and the lambda calculus," in LICS 1996, 1996.
[48]
M. Smyth and G. Plotkin, "The Category-theoretic Solution of Recursive Domain Equations," Siam J. Comput., 1982.
[49]
B. Lindenhovius, M. W. Mislove, and V. Zamdzhiev, "LNL-FPC: The Linear/Non-linear Fixpoint Calculus," 2020, available at http://arxiv.org/abs/1906.09503. [Online]. Available: http://arxiv.org/abs/1906.09503
[50]
B. Lindenhovius, M. Mislove, and V. Zamdzhiev, "Mixed Linear and Non-linear Recursive Types," Proc. ACM Program. Lang., vol. 3, no. ICFP, pp. 111:1--111:29, Aug. 2019. [Online].
[51]
T. Leventis and M. Pagani, "Strong Adequacy and Untyped Full-Abstraction for Probabilistic Coherence Spaces," in Foundations of Software Science and Computation Structures - 22nd International Conference, FOSSACS 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Prague, Czech Republic, April 6--11, 2019, Proceedings, ser. Lecture Notes in Computer Science, M. Bojanczyk and A. Simpson, Eds., vol. 11425. Springer, 2019, pp. 365--381. [Online].
[52]
M. Mislove, "Domains and stochastic processes," Theoretical Computer Science, vol. 807, pp. 284--297, 2020. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S0304397519302713
[53]
A. Kornell, "Quantum Sets," J. Math. Phys., vol. 61, p. 102202, 2020. [Online].

Cited By

View all
  • (2024)A Cartesian Closed Category for Random VariablesProceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3661814.3662126(1-14)Online publication date: 8-Jul-2024
  • (2023)A Domain-theoretic Approach to Statistical Programming LanguagesJournal of the ACM10.1145/361166070:5(1-63)Online publication date: 11-Oct-2023
  • (2022)Quantum Expectation Transformers for Cost AnalysisProceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3531130.3533332(1-13)Online publication date: 2-Aug-2022
  • Show More Cited By
  1. Commutative monads for probabilistic programming languages

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    LICS '21: Proceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science
    June 2021
    1227 pages
    ISBN:9781665448956

    Sponsors

    In-Cooperation

    • EACSL: European Association for Computer Science Logic
    • IEEE-CS: Computer Society

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 24 November 2021

    Check for updates

    Qualifiers

    • Research-article

    Conference

    LICS '21
    Sponsor:

    Acceptance Rates

    Overall Acceptance Rate 215 of 622 submissions, 35%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)4
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 15 Oct 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)A Cartesian Closed Category for Random VariablesProceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3661814.3662126(1-14)Online publication date: 8-Jul-2024
    • (2023)A Domain-theoretic Approach to Statistical Programming LanguagesJournal of the ACM10.1145/361166070:5(1-63)Online publication date: 11-Oct-2023
    • (2022)Quantum Expectation Transformers for Cost AnalysisProceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3531130.3533332(1-13)Online publication date: 2-Aug-2022
    • (2022)Semantics for variational Quantum programmingProceedings of the ACM on Programming Languages10.1145/34986876:POPL(1-31)Online publication date: 12-Jan-2022
    • (2021)Universal semantics for the stochastic λ-calculusProceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science10.1109/LICS52264.2021.9470747(1-12)Online publication date: 29-Jun-2021

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media