{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,3]],"date-time":"2026-10-03T00:39:15Z","timestamp":1790987955809,"version":"4.1.0"},"reference-count":59,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T00:00:00Z","timestamp":1697414400000},"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":[[2023,10,16]]},"abstract":"<jats:p>As type and effect systems become more expressive there is an increasing need for efficient type inference. We consider a polymorphic effect system based on Boolean formulas where inference requires Boolean unification. Since Boolean unification involves semantic equivalence, conventional syntax-driven unification is insufficient. At the same time, existing Boolean unification techniques are ill-suited for type inference.  \nWe propose a hybrid algorithm for solving Boolean unification queries based on Boole\u2019s Successive Variable Elimination (SVE) algorithm. The proposed approach builds on several key observations regarding the Boolean unification queries encountered in practice, including: (i) most queries are simple, (ii) most queries involve a few flexible variables, (iii) queries are likely to repeat due similar programming patterns, and (iv) there is a long tail of complex queries. We exploit these observations to implement several strategies for formula minimization, including ones based on tabling and binary decision diagrams.  \nWe implement the new hybrid approach in the Flix programming language. Experimental results show that by reducing the overhead of Boolean unification, the compilation throughput increases from 8,580 lines\/sec to 15,917 lines\/sec corresponding to a 1.8x speed-up. Further, the overhead on type and effect inference time is only 16% which corresponds to an overhead of less than 7% on total compilation time. We study the hybrid approach and demonstrate that each design choice improves performance.<\/jats:p>","DOI":"10.1145\/3622816","type":"journal-article","created":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T15:41:29Z","timestamp":1697470889000},"page":"516-543","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":6,"title":["Fast and Efficient Boolean Unification for Hindley-Milner-Style Type and Effect Systems"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7510-8724","authenticated-orcid":false,"given":"Magnus","family":"Madsen","sequence":"first","affiliation":[{"name":"Aarhus University, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4305-0625","authenticated-orcid":false,"given":"Jaco","family":"van de Pol","sequence":"additional","affiliation":[{"name":"Aarhus University, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1195-9722","authenticated-orcid":false,"given":"Troels","family":"Henriksen","sequence":"additional","affiliation":[{"name":"University of Copenhagen, Copenhagen, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,10,16]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/tc.1978.1675141"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0020-0190(98)00106-9"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(88)90140-5"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-99524-9_24"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-88885-5_10"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.3233\/FAIA336"},{"key":"e_1_2_1_7_1","unstructured":"Alexander Bockmayr. 1991. Logic Programming with Pseudo-Boolean Constraints. \t\t\t\t  Alexander Bockmayr. 1991. Logic Programming with Pseudo-Boolean Constraints."},{"key":"e_1_2_1_8_1","unstructured":"George Boole. 1847. The mathematical analysis of logic. \t\t\t\t  George Boole. 1847. The mathematical analysis of logic."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0747-7171(89)80054-9"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276481"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1017\/s0956796820000027"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2500365.2500581"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/136035.136043"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0747-7171(87)80065-2"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1017\/s0956796820000039"},{"key":"e_1_2_1_16_1","volume-title":"Type assignment in programming languages. Ph. D. Dissertation","author":"Damas Luis","unstructured":"Luis Damas . 1984. Type assignment in programming languages. Ph. D. Dissertation . The University of Edinburgh . Luis Damas. 1984. Type assignment in programming languages. Ph. D. Dissertation. The University of Edinburgh."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-85373-2_12"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(94)90011-6"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.2307\/2586506"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976022.2976033"},{"key":"e_1_2_1_23_1","article-title":"The principal type-scheme of an object in combinatory logic","author":"Hindley Roger","year":"1969","unstructured":"Roger Hindley . 1969 . The principal type-scheme of an object in combinatory logic . Transactions of the American Mathematical Society (AMS). Roger Hindley. 1969. The principal type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society (AMS).","journal-title":"Transactions of the American Mathematical Society (AMS)."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00005-0"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000320"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.4204\/eptcs.285.2"},{"key":"e_1_2_1_27_1","first-page":"179","article-title":"Extensible records with scoped labels","volume":"6","author":"Leijen Daan","year":"2005","unstructured":"Daan Leijen . 2005 . Extensible records with scoped labels . Trends in Functional Programming , 6 (2005), 179 \u2013 194 . Daan Leijen. 2005. Extensible records with scoped labels. Trends in Functional Programming, 6 (2005), 179\u2013194.","journal-title":"Trends in Functional Programming"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.153.8"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009872"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/2103786.2103798"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009897"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-10431-7_4"},{"key":"e_1_2_1_33_1","unstructured":"Leopold L\u00f6wenheim. 1908. \u00dcber das Aufl\u00f6sungsproblem im logischen Klassenkalkul. \t\t\t\t  Leopold L\u00f6wenheim. 1908. \u00dcber das Aufl\u00f6sungsproblem im logischen Klassenkalkul."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73564"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1109\/acssc.1998.751423"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428193"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428222"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485487"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPICS.ECOOP.2023.18"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.8318658"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/357162.357169"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0747-7171(89)80013-6"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1002\/j.1538-7305.1956.tb03835.x"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/1995376.1995394"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-03811-6_5"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1002\/(sici)1096-9942(199901\/03)5:1<35::aid-tapo4>3.0.co;2-4"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00590-9_7"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.2168\/lmcs-10(3:21)2014"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2015.12.003"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1080\/00029890.1952.11988183"},{"key":"e_1_2_1_52_1","volume-title":"Handbook of automated reasoning. 1","author":"Robinson Alan Ja","unstructured":"Alan Ja Robinson and Andrei Voronkov . 2001. Handbook of automated reasoning. 1 , Elsevier . Alan Ja Robinson and Andrei Voronkov. 2001. Handbook of automated reasoning. 1, Elsevier."},{"key":"e_1_2_1_53_1","unstructured":"Sergiu Rudeanu. 1974. Boolean functions and equations. \t\t\t\t  Sergiu Rudeanu. 1974. Boolean functions and equations."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31057-7_13"},{"key":"e_1_2_1_55_1","volume-title":"IEEE International Workshop on AI Applications to CAD Systems for Electronics.","author":"Simonis Helmut","year":"1987","unstructured":"Helmut Simonis and Mehmet Dincbas . 1987 . Using an extended Prolog for digital circuit design . In IEEE International Workshop on AI Applications to CAD Systems for Electronics. Helmut Simonis and Mehmet Dincbas. 1987. Using an extended Prolog for digital circuit design. In IEEE International Workshop on AI Applications to CAD Systems for Electronics."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44716-4_16"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1996.2613"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75283"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292545"},{"key":"e_1_2_1_60_1","unstructured":"John Whaley. 2023. JavaBDD. https:\/\/javabdd.sourceforge.net\/ \t\t\t\t  John Whaley. 2023. JavaBDD. https:\/\/javabdd.sourceforge.net\/"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622816","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3622816","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:37:04Z","timestamp":1750178224000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622816"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,16]]},"references-count":59,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2023,10,16]]}},"alternative-id":["10.1145\/3622816"],"URL":"https:\/\/doi.org\/10.1145\/3622816","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,16]]},"assertion":[{"value":"2023-10-16","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}