{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:55:09Z","timestamp":1790927709234,"version":"4.1.0"},"reference-count":61,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T00:00:00Z","timestamp":1767830400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,1,8]]},"abstract":"<jats:p>Boolean-algebraic subtyping (BAS) is a powerful subtyping approach introduced in 2022 as the \u201csecret sauce\u201d enabling backtracking-free principal type inference in the MLstruct research language, a structurally-typed functional programming language with tagged records, tag and record subtyping, and tag-based pattern matching. By supporting distributive intersection, union, negation, and equi-recursive types, MLstruct can express powerful programming patterns, such as subtyped extensible variants, without needing row variables. But the use of atypical subtyping rules that violate some interpretations of intersection and union types, the mutual distributivity between these types, and the complexity of coinductive reasoning for equi-recursive types have collectively made the study of BAS difficult. The syntactic soundness proofs provided in the original work are dauntingly complicated and long-winded, obscuring the intuitions behind the correctness of BAS.<\/jats:p>\n                  <jats:p>\n                    In this paper, we distill the simple essence of Boolean-algebraic subtyping: we discover that BAS can be understood through five families of\n                    <jats:italic toggle=\"yes\">characteristic Boolean homomorphisms<\/jats:italic>\n                    defined on types in context. Two of these map to power sets of simpler objects; the rest map back to types, but under an unguarded coinductive assumptions context. Together, these homomorphisms let us prove rather directly that BAS is sound, in that it does not relate constructors of incompatible runtime shapes. These homomorphisms are\n                    <jats:italic toggle=\"yes\">characteristic<\/jats:italic>\n                    in the sense that they are sufficient to capture the meaning of subyping: we prove that if an inequality holds between two types under all these homomorphisms, then subtyping holds between the two types in the original context. This directly suggests a new subtyping decision procedure for BAS, which avoids some inefficiencies in the original algorithm, although it still has exponential worst-case time complexity. We prove that the subtyping problem is in fact co-NP-hard even without recursive types. Finally, we discover that BAS is already powerful enough to encode the removal of a field from a type. This allows us to support\n                    <jats:italic toggle=\"yes\">extensible records<\/jats:italic>\n                    through one new term form and one new typing rule, but, perhaps surprisingly, no changes to subtyping at all.\n                  <\/jats:p>\n                  <jats:p>Our new approach to the semantics of BAS sheds some light on the core of MLstruct\u2019s type system. It could be adapted to other languages with algebraic flavors of subtyping, such as Scala 3 and Ceylon, making their design and verification more approachable. Tellingly, all our subtyping soundness proofs fit inside the main body of this paper, with only some administrative lemmas relegated to the appendix.<\/jats:p>","DOI":"10.1145\/3776689","type":"journal-article","created":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T18:59:43Z","timestamp":1767898783000},"page":"1353-1382","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":4,"title":["The Simple Essence of Boolean-Algebraic Subtyping: Semantic Soundness for Algebraic Union, Intersection, Negation, and Equi-recursive Types"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0323-6644","authenticated-orcid":false,"given":"Chun Yin","family":"Chau","sequence":"first","affiliation":[{"name":"Hong Kong University of Science and Technology, Hong Kong, Hong Kong"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8805-0728","authenticated-orcid":false,"given":"Lionel","family":"Parreaux","sequence":"additional","affiliation":[{"name":"Hong Kong University of Science and Technology, Hong Kong, Hong Kong"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,1,8]]},"reference":[{"key":"e_1_3_2_2_1","first-page":"242","article-title":"Syntactic considerations on recursive types","author":"Abadi Martin","year":"1996","unstructured":"Martin Abadi and Marcelo P. Fiore. 1996. Syntactic considerations on recursive types. In Proceedings 11th Annual IEEE Symposium on Logic in Computer Science. IEEE, 242\u2013252.","journal-title":"Proceedings 11th Annual IEEE Symposium on Logic in Computer Science"},{"key":"e_1_3_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/165180.165188"},{"key":"e_1_3_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.177847"},{"key":"e_1_3_2_5_1","first-page":"1","article-title":"Disjoint Polymorphism","author":"Alpuim Jo\u00e3o","year":"2017","unstructured":"Jo\u00e3o Alpuim, Bruno C. d. S. Oliveira, and Zhiyuan Shi. 2017. Disjoint Polymorphism. In Programming Languages and Systems, Hongseok Yang (Ed.). Springer Berlin Heidelberg, Berlin, Heidelberg, 1\u201328.","journal-title":"Programming Languages and Systems"},{"key":"e_1_3_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/155183.155231"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190235"},{"key":"e_1_3_2_8_1","article-title":"2009","author":"Arora Sanjeev","unstructured":"Sanjeev Arora and Boaz. Barak. 2009. Computational Complexity: A Modern Approach (1st ed.). Cambridge University Press, USA.","journal-title":"Computational Complexity: A Modern Approach"},{"key":"e_1_3_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3736112.3736141"},{"key":"e_1_3_2_10_1","doi-asserted-by":"publisher","DOI":"10.2307\/2273659"},{"key":"e_1_3_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3622812"},{"key":"e_1_3_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3546196.3550163"},{"key":"e_1_3_2_13_1","doi-asserted-by":"publisher","DOI":"10.5555\/2379036.2379037"},{"key":"e_1_3_2_14_1","article-title":"2012","author":"Castagna Giuseppe","unstructured":"Giuseppe Castagna. 2012. Object-Oriented Programming A Unified Foundation. Springer Science & Business Media.","journal-title":"Object-Oriented Programming A Unified Foundation"},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3498674"},{"key":"e_1_3_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951928"},{"key":"e_1_3_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/3720497"},{"key":"e_1_3_2_18_1","doi-asserted-by":"publisher","unstructured":"Chun Yin Chau and Lionel. Parreaux. 2025. The Simple Essence of Boolean-Algebraic Subtyping: Semantic Soundness for Algebraic Union Intersection Negation and Equi-recursive Types (Artifact). doi:10.5281\/zenodo.17348546","DOI":"10.5281\/zenodo.17348546"},{"key":"e_1_3_2_19_1","doi-asserted-by":"publisher","DOI":"10.1305\/ndjfl\/1093883253"},{"key":"e_1_3_2_20_1","article-title":"2017","author":"Dolan Stephen","unstructured":"Stephen Dolan. 2017. Algebraic subtyping. Ph. D. Dissertation.","journal-title":"Algebraic subtyping"},{"key":"e_1_3_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009882"},{"key":"e_1_3_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2364527.2364534"},{"key":"e_1_3_2_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02273-9_9"},{"key":"e_1_3_2_24_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2002.1029823"},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391289.1391293"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3763144"},{"key":"e_1_3_2_27_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796802004318"},{"key":"e_1_3_2_28_1","unstructured":"Jacques Garrigue. 1998. Programming with polymorphic variants. In ML Workshop Vol. 13. Baltimore 7."},{"key":"e_1_3_2_29_1","article-title":"Code reuse through polymorphic variants","author":"Garrigue Jacques","year":"2000","unstructured":"Jacques Garrigue. 2000. Code reuse through polymorphic variants. In In Workshop on Foundations of Software Engineering. https:\/\/www.math.nagoya-u.ac.jp\/~garrigue\/papers\/variant-reuse.pdf","journal-title":"In Workshop on Foundations of Software Engineering"},{"key":"e_1_3_2_30_1","article-title":"Simple Type Inference for Structural Polymorphism.","author":"Garrigue Jacques","year":"2001","unstructured":"Jacques Garrigue. 2001. Simple Type Inference for Structural Polymorphism.. In APLAS. 329\u2013343.","journal-title":"APLAS"},{"key":"e_1_3_2_31_1","unstructured":"Benedict R. Gaster and Mark P. Jones. 1996. A Polymorphic Type System for Extensible Records and Variants."},{"key":"e_1_3_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01201353"},{"key":"e_1_3_2_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01201363"},{"key":"e_1_3_2_34_1","doi-asserted-by":"publisher","DOI":"10.1305\/ndjfl\/1040067315"},{"key":"e_1_3_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1053468.1053470"},{"key":"e_1_3_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3473594"},{"key":"e_1_3_2_37_1","unstructured":"Trevor Jim and Jens. Palsberg. 1999. Type Inference in Systems of Recursive Types With Subtyping."},{"key":"e_1_3_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3607846"},{"key":"e_1_3_2_39_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(86)80019-5"},{"key":"e_1_3_2_40_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2023.17"},{"key":"e_1_3_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428222"},{"key":"e_1_3_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485487"},{"key":"e_1_3_2_43_1","article-title":"1969","author":"Morris James Hiram","unstructured":"James Hiram Morris. 1969. Lambda-calculus models of programming languages. Ph. D. Dissertation. Massachusetts Institute of Technology.","journal-title":"Lambda-calculus models of programming languages"},{"key":"e_1_3_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276482"},{"key":"e_1_3_2_45_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_3_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/218570.218572"},{"key":"e_1_3_2_47_1","doi-asserted-by":"publisher","unstructured":"Bruno C. d. S. Oliveira Cui Shaobo and Baber Rehman. 2020. The Duality of Subtyping. (2020) 29 pages 728719 bytes. doi:10.4230\/LIPICS.ECOOP.2020.29","DOI":"10.4230\/LIPICS.ECOOP.2020.29"},{"key":"e_1_3_2_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3409006"},{"key":"e_1_3_2_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/3632890"},{"key":"e_1_3_2_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3563304"},{"key":"e_1_3_2_51_1","volume-title":"Technical Report","author":"Parreaux Lionel","year":"2022","unstructured":"Lionel Parreaux and Chun Yin Chau. 2022b. MLstruct: Principal Type Inference in a Boolean Algebra of Structural Types (Extended Version). Technical Report. The Hong Kong University of Science and Technology. https:\/\/lptk.github.io\/mlscript-paper"},{"key":"e_1_3_2_52_1","article-title":"2019","author":"Petrucciani Tommaso","unstructured":"Tommaso Petrucciani. 2019. Polymorphic set-theoretic types for functional languages. Ph. D. Dissertation. Universit\u00e0 di Genova; Universit\u00e9 Sorbonne Paris Cit\u00e9\u2013 Universit\u00e9 Paris Diderot.","journal-title":"Polymorphic set-theoretic types for functional languages"},{"key":"e_1_3_2_53_1","article-title":"1991","author":"Pierce Benjamin C.","unstructured":"Benjamin C. Pierce. 1991. Programming with intersection types and bounded polymorphism. Ph. D. Dissertation. Citeseer.","journal-title":"Programming with intersection types and bounded polymorphism"},{"key":"e_1_3_2_54_1","doi-asserted-by":"publisher","DOI":"10.5555\/509043"},{"key":"e_1_3_2_55_1","unstructured":"Fran\u00e7ois Pottier. 1998. Type Inference in the Presence of Subtyping: from Theory to Practice. Research Report RR-3483. INRIA. https:\/\/hal.inria.fr\/inria-00073205"},{"key":"e_1_3_2_56_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2022.25"},{"key":"e_1_3_2_57_1","first-page":"67","article-title":"1994","author":"R\u00e9my Didier","unstructured":"Didier R\u00e9my. 1994. Type Inference for Records in Natural Extension of ML. MIT Press, Cambridge, MA, USA, 67\u201395.","journal-title":"Type Inference for Records in Natural Extension of ML"},{"key":"e_1_3_2_58_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-4118-8_9"},{"key":"e_1_3_2_59_1","article-title":"Hindley\/Milner style type systems in constraint form","author":"Sulzmann Martin","year":"1999","unstructured":"Martin Sulzmann, Martin M\u00fcller, and Christoph Zenger. 1999. Hindley\/Milner style type systems in constraint form. Res. Rep. ACRC-99-009, University of South Australia, School of Computer and Information Science (1999).","journal-title":"Res. Rep. ACRC-99-009, University of South Australia, School of Computer and Information Science"},{"key":"e_1_3_2_60_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-61739-6_52"},{"key":"e_1_3_2_61_1","unstructured":"Leo White. 2015. Row polymorphism. https:\/\/www.cl.cam.ac.uk\/teaching\/1415\/L28\/rows.pdf"},{"key":"e_1_3_2_62_1","doi-asserted-by":"publisher","DOI":"10.1145\/3704869"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3776689","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T13:41:40Z","timestamp":1784209300000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3776689"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,1,8]]},"references-count":61,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2026,1,8]]}},"alternative-id":["10.1145\/3776689"],"URL":"https:\/\/doi.org\/10.1145\/3776689","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,1,8]]},"assertion":[{"value":"2025-07-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-11-06","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-01-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}