{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T08:03:33Z","timestamp":1790928213985,"version":"4.1.0"},"reference-count":45,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>We present a simple, practical, and expressive type and effect system based on Boolean constraints. The effect system extends the Hindley-Milner type system, supports parametric polymorphism, and preserves principal types modulo Boolean equivalence. We show how to support type inference by extending Algorithm W with Boolean unification based on the successive variable elimination algorithm.<\/jats:p>\n                  <jats:p>We implement the type and effect system in the Flix programming language. We perform an in-depth evaluation on the impact of Boolean unification on type inference time and end-to-end compilation time. While the computational complexity of Boolean unification is NP-hard, the experimental results demonstrate that it works well in practice. We find that the impact on type inference time is on average a 1.4x slowdown and the overall impact on end-to-end compilation time is a 1.1x slowdown.<\/jats:p>","DOI":"10.1145\/3428222","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T18:40:14Z","timestamp":1606243214000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":18,"title":["Polymorphic types and effects with Boolean unification"],"prefix":"10.1145","volume":"4","author":[{"given":"Magnus","family":"Madsen","sequence":"first","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jaco","family":"van de Pol","sequence":"additional","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-76637-7_16"},{"key":"e_1_2_2_2_1","doi-asserted-by":"crossref","unstructured":"Franz Baader. 1998. On the complexity of Boolean unification. Inform. Process. Lett. ( 1998 ).  Franz Baader. 1998. On the complexity of Boolean unification. Inform. Process. Lett. ( 1998 ).","DOI":"10.25368\/2022.74"},{"key":"e_1_2_2_3_1","doi-asserted-by":"crossref","unstructured":"Andrej Bauer and Matija Pretnar. 2015. Programming with algebraic efects and handlers. Journal of logical and algebraic methods in programming ( 2015 ).  Andrej Bauer and Matija Pretnar. 2015. Programming with algebraic efects and handlers. Journal of logical and algebraic methods in programming ( 2015 ).","DOI":"10.1016\/j.jlamp.2014.02.001"},{"key":"e_1_2_2_4_1","unstructured":"Alexander Bockmayr. 1991. Logic Programming with Pseudo-Boolean Constraints. ( 1991 ).  Alexander Bockmayr. 1991. Logic Programming with Pseudo-Boolean Constraints. ( 1991 )."},{"key":"e_1_2_2_5_1","unstructured":"George Boole. 1847. The mathematical analysis of logic.  George Boole. 1847. The mathematical analysis of logic."},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0747-7171(89)80054-9"},{"key":"e_1_2_2_7_1","volume-title":"Efekt: Capability-passing style for type-and efect-safe, extensible efect handlers in Scala. Journal of Functional Programming ( 2020 ).","author":"Brachth\u00e4user Jonathan Immanuel","year":"2020"},{"key":"e_1_2_2_8_1","volume-title":"Proc. International Conference on Functional Programming (ICFP).","author":"Brady Edwin","year":"2013"},{"key":"e_1_2_2_9_1","doi-asserted-by":"crossref","unstructured":"Wolfram Buttner and Helmut Simonis. 1987. Embedding Boolean expressions into logic programming. Journal of Symbolic Computation ( 1987 ).  Wolfram Buttner and Helmut Simonis. 1987. Embedding Boolean expressions into logic programming. Journal of Symbolic Computation ( 1987 ).","DOI":"10.1016\/S0747-7171(87)80065-2"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/91556.91622"},{"key":"e_1_2_2_12_1","volume-title":"The OCaml Workshop.","author":"Dolan Stephen","year":"2015"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24754-8_15"},{"key":"e_1_2_2_14_1","doi-asserted-by":"crossref","unstructured":"Roger Hindley. 1969. The principal type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society (AMS) ( 1969 ).  Roger Hindley. 1969. The principal type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society (AMS) ( 1969 ).","DOI":"10.2307\/1995158"},{"key":"e_1_2_2_15_1","volume-title":"Qualified types: theory and practice","author":"Jones Mark P"},{"key":"e_1_2_2_16_1","volume-title":"The Haskell Workshop.","author":"Jones Simon Peyton","year":"2001"},{"key":"e_1_2_2_17_1","volume-title":"Ef directly in OCaml. arXiv preprint arXiv","author":"Kiselyov Oleg","year":"1812"},{"key":"e_1_2_2_18_1","unstructured":"Daan Leijen. 2005. Extensible records with scoped labels. Trends in Functional Programming (TFP) ( 2005 ).  Daan Leijen. 2005. Extensible records with scoped labels. Trends in Functional Programming (TFP) ( 2005 )."},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.153.8"},{"key":"e_1_2_2_20_1","volume-title":"Proc. Symposium on Principles of Programming Languages (POPL).","author":"Leijen Daan","year":"2017"},{"key":"e_1_2_2_21_1","doi-asserted-by":"crossref","unstructured":"Xavier Leroy and Fran\u00e7ois Pessaux. 2000. Type-based analysis of uncaught exceptions. ACM Transactions on Programming Languages and Systems (TOPLAS) ( 2000 ).  Xavier Leroy and Fran\u00e7ois Pessaux. 2000. Type-based analysis of uncaught exceptions. ACM Transactions on Programming Languages and Systems (TOPLAS) ( 2000 ).","DOI":"10.1145\/349214.349230"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009897"},{"key":"e_1_2_2_23_1","unstructured":"Leopold L\u00f6wenheim. 1908. \u00dcber das Aufl\u00f6sungsproblem im logischen Klassenkalkul.  Leopold L\u00f6wenheim. 1908. \u00dcber das Aufl\u00f6sungsproblem im logischen Klassenkalkul."},{"key":"e_1_2_2_24_1","volume-title":"Proc. Principles of Programming Languages (POPL).","author":"Lucassen John M","year":"1988"},{"key":"e_1_2_2_25_1","volume-title":"Proc. Asilomar Conference on Signals, Systems and Computer.","author":"Macii Enrico","year":"1998"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3213846.3213847"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428193"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908096"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/96709.96748"},{"key":"e_1_2_2_30_1","doi-asserted-by":"crossref","unstructured":"Alberto Martelli and Ugo Montanari. 1982. An eficient unification algorithm. ACM Transactions on Programming Languages and Systems (TOPLAS) ( 1982 ).  Alberto Martelli and Ugo Montanari. 1982. An eficient unification algorithm. ACM Transactions on Programming Languages and Systems (TOPLAS) ( 1982 ).","DOI":"10.1145\/357162.357169"},{"key":"e_1_2_2_31_1","doi-asserted-by":"crossref","unstructured":"Urusula Martin and Tobias Nipkow. 1989. Boolean Unification-The Story So Far. Journal of Symbolic Computation ( 1989 ).  Urusula Martin and Tobias Nipkow. 1989. Boolean Unification-The Story So Far. Journal of Symbolic Computation ( 1989 ).","DOI":"10.1016\/S0747-7171(89)80013-6"},{"key":"e_1_2_2_32_1","unstructured":"Robin Milner. 1978. A theory of type polymorphism in programming. J. Comput. System Sci. ( 1978 ).  Robin Milner. 1978. A theory of type polymorphism in programming. J. Comput. System Sci. ( 1978 )."},{"key":"e_1_2_2_33_1","volume-title":"European Symposium on Programming (ESOP).","author":"Plotkin Gordon","year":"2009"},{"key":"e_1_2_2_34_1","unstructured":"Sergiu Rudeanu. 1974. Boolean functions and equations.  Sergiu Rudeanu. 1974. Boolean functions and equations."},{"key":"e_1_2_2_35_1","volume-title":"Proc. European Conference on Object-Oriented Programming (ECOOP).","author":"Rytz Lukas","year":"2012"},{"key":"e_1_2_2_36_1","volume-title":"Proc. International Conference on Functional Programming (ICFP) ( 2020 ).","author":"Schuster Philipp","year":"2020"},{"key":"e_1_2_2_37_1","volume-title":"IEEE International Workshop on AI Applications to CAD Systems for Electronics.","author":"Simonis Helmut","year":"1987"},{"key":"e_1_2_2_38_1","doi-asserted-by":"crossref","unstructured":"Jean-Pierre Talpin and Pierre Jouvelot. 1994. The type and efect discipline. Information and Computation ( 1994 ).  Jean-Pierre Talpin and Pierre Jouvelot. 1994. The type and efect discipline. Information and Computation ( 1994 ).","DOI":"10.1006\/inco.1994.1046"},{"key":"e_1_2_2_39_1","doi-asserted-by":"crossref","unstructured":"Mads Tofte. 1990. Type inference for polymorphic references. Information and Computation ( 1990 ).  Mads Tofte. 1990. Type inference for polymorphic references. Information and Computation ( 1990 ).","DOI":"10.1016\/0890-5401(90)90018-D"},{"key":"e_1_2_2_40_1","doi-asserted-by":"crossref","unstructured":"Mads Tofte and Jean-Pierre Talpin. 1997. Region-based memory management. Information and Computation ( 1997 ).  Mads Tofte and Jean-Pierre Talpin. 1997. Region-based memory management. Information and Computation ( 1997 ).","DOI":"10.1006\/inco.1996.2613"},{"key":"e_1_2_2_41_1","volume-title":"Proc. Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) ( 2015 ).","author":"Mat\u00edas"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/1708016.1708023"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75283"},{"key":"e_1_2_2_44_1","doi-asserted-by":"crossref","unstructured":"Andrew K Wright. 1995. Simple imperative polymorphism. Lisp and Symbolic Computation ( 1995 ).  Andrew K Wright. 1995. Simple imperative polymorphism. Lisp and Symbolic Computation ( 1995 ).","DOI":"10.1007\/BF01018828"},{"key":"e_1_2_2_45_1","doi-asserted-by":"crossref","unstructured":"Andrew K Wright and Matthias Felleisen. 1994. A syntactic approach to type soundness. Information and Computation ( 1994 ).  Andrew K Wright and Matthias Felleisen. 1994. A syntactic approach to type soundness. Information and Computation ( 1994 ).","DOI":"10.1006\/inco.1994.1093"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/587051.587060"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428222","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428222","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T18:02:57Z","timestamp":1750183377000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428222"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":45,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428222"],"URL":"https:\/\/doi.org\/10.1145\/3428222","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}