{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T23:06:00Z","timestamp":1779836760650,"version":"3.53.1"},"reference-count":96,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2021,11,2]],"date-time":"2021-11-02T00:00:00Z","timestamp":1635811200000},"content-version":"unspecified","delay-in-days":305,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2021]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Calculi with\n                    <jats:italic>disjoint intersection types<\/jats:italic>\n                    support a\n                    <jats:italic>symmetric merge operator<\/jats:italic>\n                    with subtyping. The merge operator generalizes record concatenation to any type, enabling expressive forms of object composition, and simple solutions to hard modularity problems. Unfortunately, recent calculi with disjoint intersection types and the merge operator lack a (direct) operational semantics with expected properties such as\n                    <jats:italic>determinism<\/jats:italic>\n                    and\n                    <jats:italic>subject reduction<\/jats:italic>\n                    , and only account for\n                    <jats:italic>terminating programs<\/jats:italic>\n                    . This paper proposes a\n                    <jats:italic>type-directed operational semantics<\/jats:italic>\n                    (TDOS) for calculi with intersection types and a merge operator. We study two variants of calculi in the literature. The first calculus, called\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    , is a variant of a calculus presented by Oliveira et al. (2016) and closely related to another calculus by Dunfield (2014). Although Dunfield proposes a direct small-step semantics for her calculus, her semantics lacks both determinism and subject reduction. Using our TDOS, we obtain a direct semantics for\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    that has both properties. The second calculus, called\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>+<\/jats:italic>\n                    <\/jats:sup>\n                    , employs the well-known subtyping relation of Barendregt, Coppo and Dezani-Ciancaglini (BCD). Therefore,\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>+<\/jats:italic>\n                    <\/jats:sup>\n                    extends the more basic subtyping relation of\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    , and also adds support for record types and\n                    <jats:italic>nested composition<\/jats:italic>\n                    (which enables recursive composition of merged components). To fully obtain determinism, both\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    and\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>+<\/jats:italic>\n                    <\/jats:sup>\n                    employ a disjointness restriction proposed in the original\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    calculus. As an added benefit the TDOS approach deals with recursion in a straightforward way, unlike previous calculi with disjoint intersection types where recursion is problematic. We relate the static and dynamic semantics of\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    to the original version of the calculus and the calculus by Dunfield. Furthermore, for\n                    <jats:italic>\u03bb<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>+<\/jats:italic>\n                    <\/jats:sup>\n                    , we show a novel formulation of BCD subtyping, which is algorithmic, has a very simple proof of transitivity and allows for the modular addition of distributivity rules (i.e. without affecting other rules of subtyping). All results have been fully formalized in the Coq theorem prover.\n                  <\/jats:p>","DOI":"10.1017\/s0956796821000186","type":"journal-article","created":{"date-parts":[[2021,11,2]],"date-time":"2021-11-02T03:25:33Z","timestamp":1635823533000},"update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":10,"title":["Taming the Merge Operator"],"prefix":"10.1017","volume":"31","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-8496-491X","authenticated-orcid":false,"given":"XUEJING","family":"HUANG","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"JINXU","family":"ZHAO","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"BRUNO C. D. S.","family":"OLIVEIRA","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2021,11,2]]},"reference":[{"key":"S0956796821000186_ref18","doi-asserted-by":"publisher","DOI":"10.1145\/2535838.2535840"},{"key":"S0956796821000186_ref29","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034796"},{"key":"S0956796821000186_ref8","unstructured":"Bi, X. , d. S. Oliveira, B. C. & Schrijvers, T. (2018) The essence of nested composition. In 32nd European Conference on Object-Oriented Programming, ECOOP 2018, July 16\u201321, 2018, Amsterdam, The Netherlands: Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, pp. 22:1\u201322:33."},{"key":"S0956796821000186_ref56","unstructured":"Odersky, M. , Altherr, P. , Cremet, V. , Emir, B. , Maneth, S. , Micheloud, S. , Mihaylov, N. , Schinz, M. , Stenman, E. & Zenger, M. (2004) An overview of the Scala programming language. Technical report. \u00c9cole Polytechnique F\u00e9d\u00e9rale de Lausanne."},{"key":"S0956796821000186_ref12","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45102-1_10"},{"key":"S0956796821000186_ref36","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268961"},{"key":"S0956796821000186_ref50","doi-asserted-by":"publisher","DOI":"10.1145\/28697.28718"},{"key":"S0956796821000186_ref15","doi-asserted-by":"publisher","DOI":"10.1145\/6041.6042"},{"key":"S0956796821000186_ref62","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(96)00096-5"},{"key":"S0956796821000186_ref33","unstructured":"Facebook. (2014) Flow. https:\/\/flow.org\/"},{"key":"S0956796821000186_ref53","doi-asserted-by":"publisher","DOI":"10.1145\/3276482"},{"key":"S0956796821000186_ref64","unstructured":"Pierce, B. C. (1991) Programming with Intersection Types and Bounded Polymorphism. Ph.D. thesis. Carnegie Mellon University."},{"key":"S0956796821000186_ref66","unstructured":"Plotkin, G. (1973) Lambda-definability and logical relations."},{"key":"S0956796821000186_ref28","doi-asserted-by":"publisher","DOI":"10.1145\/351240.351259"},{"key":"S0956796821000186_ref76","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-4118-8_9"},{"key":"S0956796821000186_ref44","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48743-3_16"},{"key":"S0956796821000186_ref77","doi-asserted-by":"publisher","DOI":"10.1145\/1960275.1960283"},{"key":"S0956796821000186_ref86","unstructured":"Wadler, P. (1998) The expression problem. Posted on the Java Genericity Mailing List."},{"key":"S0956796821000186_ref89","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1989.39162"},{"key":"S0956796821000186_ref20","unstructured":"Chakravarty, M. M. T. , Keller, G. & Jones, S. L. P. (2005a) Associated type synonyms. In Proceedings of the 10th ACM SIGPLAN International Conference on Functional Programming, ICFP 2005, Tallinn, Estonia, September 26\u201328, 2005. ACM, pp. 241\u2013253."},{"key":"S0956796821000186_ref95","unstructured":"Zwanenburg, J. (1997) A type system for record concatenation and subtyping. Technical report. Eindhoven University of Technology."},{"key":"S0956796821000186_ref21","doi-asserted-by":"publisher","DOI":"10.1145\/1040305.1040306"},{"key":"S0956796821000186_ref4","unstructured":"Barendregt, H. (1984) The Lambda Calculus - Its Syntax and Semantics. Studies in Logic and the Foundations of Mathematics."},{"key":"S0956796821000186_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54434-1_1"},{"key":"S0956796821000186_ref40","first-page":"109","article-title":"Trans. Program. Lang.","volume":"18","author":"Hall","year":"1996","journal-title":"Syst."},{"key":"S0956796821000186_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0014053"},{"key":"S0956796821000186_ref26","doi-asserted-by":"publisher","DOI":"10.1145\/74877.74922"},{"key":"S0956796821000186_ref100","doi-asserted-by":"publisher","DOI":"10.1145\/3290324"},{"key":"S0956796821000186_ref38","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0014053"},{"key":"S0956796821000186_ref54","doi-asserted-by":"publisher","DOI":"10.1145\/1449764.1449808"},{"key":"S0956796821000186_ref75","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-54415-1_70"},{"key":"S0956796821000186_ref22","doi-asserted-by":"publisher","DOI":"10.1145\/320384.320407"},{"key":"S0956796821000186_ref46","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0014060"},{"key":"S0956796821000186_ref24","doi-asserted-by":"publisher","DOI":"10.1145\/353171.353181"},{"key":"S0956796821000186_ref32","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45337-7_17"},{"key":"S0956796821000186_ref57","doi-asserted-by":"publisher","DOI":"10.1145\/224164.224195"},{"key":"S0956796821000186_ref10","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17184-1_14"},{"key":"S0956796821000186_ref31","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-36576-1_16"},{"key":"S0956796821000186_ref63","unstructured":"Pierce, B. C. (1989) A decision procedure for the subtype relation on intersection types with bounded variables. Technical report. School of Computer Science, Carnegie-Mellon University."},{"key":"S0956796821000186_ref65","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268967"},{"key":"S0956796821000186_ref41","doi-asserted-by":"publisher","DOI":"10.1145\/99583.99603"},{"key":"S0956796821000186_ref70","unstructured":"RedHat. (2011) Ceylon. https:\/\/ceylon-lang.org\/"},{"key":"S0956796821000186_ref73","unstructured":"R\u00e9my, D. (1995) A case study of typechecking with constrained types: Typing record concatenation. In Presented at the workshop on Advances in Types for Computer Science at the Newton Institute, Cambridge, UK."},{"key":"S0956796821000186_ref80","unstructured":"Siek, J. G. & Taha, W. (2006) Gradual typing for functional languages. In Scheme and Functional Programming Workshop."},{"key":"S0956796821000186_ref59","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951945"},{"key":"S0956796821000186_ref5","doi-asserted-by":"publisher","DOI":"10.2307\/2273659"},{"key":"S0956796821000186_ref72","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75284"},{"key":"S0956796821000186_ref74","unstructured":"Reynolds, J. C. (1988) Preliminary design of the programming language Forsythe. Technical Report CMU-CS-88-159. Carnegie Mellon University."},{"key":"S0956796821000186_ref81","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706342"},{"key":"S0956796821000186_ref85","doi-asserted-by":"publisher","DOI":"10.1109\/CMPCON.1988.4851"},{"key":"S0956796821000186_ref87","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75283"},{"key":"S0956796821000186_ref19","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034788"},{"key":"S0956796821000186_ref6","unstructured":"Bessai, J. , Dudenhefner, A. , D\u00fcdder, B. & Rehof, J. (2016) Extracting a formally verified subtyping algorithm for intersection types from ideals and filters. TYPES."},{"key":"S0956796821000186_ref3","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1995.1086"},{"key":"S0956796821000186_ref16","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1995.1033"},{"key":"S0956796821000186_ref71","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-21691-6_15"},{"key":"S0956796821000186_ref91","unstructured":"White, L. , Bour, F. & Yallop, J. (2014) Modular implicits. In Proceedings ML Family\/OCaml Users and Developers Workshops, ML\/OCaml 2014, Gothenburg, Sweden, September 4\u20135, 2014, pp. 22\u201363."},{"key":"S0956796821000186_ref42","unstructured":"Huang, X. & Oliveira, B. C. d. S. (2020) A type-directed operational semantics for a calculus with a merge operator. In 34th European Conference on Object-Oriented Programming, ECOOP 2020."},{"key":"S0956796821000186_ref83","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.177.1"},{"key":"S0956796821000186_ref61","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2003.10.001"},{"key":"S0956796821000186_ref25","doi-asserted-by":"publisher","DOI":"10.1016\/S0890-5401(03)00062-2"},{"key":"S0956796821000186_ref37","doi-asserted-by":"publisher","DOI":"10.1145\/113445.113468"},{"key":"S0956796821000186_ref43","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-19027-9_9"},{"key":"S0956796821000186_ref60","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-47993-7_4"},{"key":"S0956796821000186_ref84","doi-asserted-by":"publisher","DOI":"10.2307\/2271658"},{"key":"S0956796821000186_ref90","unstructured":"Wang, Y. , Zhang, H. , d. S. Oliveira, B. C. & Servetto, M. (2018) FHJ: A formal model for hierarchical dispatching and overriding. In 32nd European Conference on Object-Oriented Programming, ECOOP 2018, July 16\u201321, 2018, Amsterdam, The Netherlands."},{"key":"S0956796821000186_ref93","unstructured":"Xie, N. , Oliveira, B. C. d. S. , Bi, X. & Schrijvers, T. (2020) Row and bounded polymorphism via disjoint polymorphism. In 34th European Conference on Object-Oriented Programming, ECOOP 2020."},{"key":"S0956796821000186_ref82","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(85)80001-2"},{"key":"S0956796821000186_ref11","doi-asserted-by":"publisher","DOI":"10.1145\/97945.97982"},{"key":"S0956796821000186_ref23","doi-asserted-by":"publisher","DOI":"10.1145\/1809028.1806612"},{"key":"S0956796821000186_ref17","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2676991"},{"key":"S0956796821000186_ref13","unstructured":"Cardelli, L. (1992) Extensible Records in a Pure Calculus of Subtyping. Digital. Systems Research Center."},{"key":"S0956796821000186_ref9","unstructured":"Bi, X. & Oliveira, B. C. d. S. (2018) Typed first-class traits. In 32nd European Conference on Object-Oriented Programming, ECOOP 2018. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, pp. 9:1\u20139:28."},{"key":"S0956796821000186_ref45","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0059699"},{"key":"S0956796821000186_ref68","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-46425-5_21"},{"key":"S0956796821000186_ref52","unstructured":"Microsoft. (2012) TypeScript. https:\/\/www.typescriptlang.org\/"},{"key":"S0956796821000186_ref69","unstructured":"Pottinger, G. (1980) A type assignment for the strongly normalizable \u03bb-terms. To HB Curry: Essays on Combinatory Logic, Lambda Calculus and Formalism, pp. 561\u2013577."},{"key":"S0956796821000186_ref92","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"},{"key":"S0956796821000186_ref27","doi-asserted-by":"publisher","DOI":"10.1002\/malq.19810270205"},{"key":"S0956796821000186_ref78","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-45070-2_12"},{"key":"S0956796821000186_ref49","unstructured":"Leijen, D. (2004) First-class labels for extensible rows. Technical Report UU-CS-2004-51. Dept. of Computer Science, Universiteit Utrecht. UTCS Technical Report."},{"key":"S0956796821000186_ref1","doi-asserted-by":"publisher","DOI":"10.1007\/11693024_6"},{"key":"S0956796821000186_ref51","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/9.1.105"},{"key":"S0956796821000186_ref7","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-22348-9_21"},{"key":"S0956796821000186_ref30","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796813000270"},{"key":"S0956796821000186_ref35","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-60249-6_40"},{"key":"S0956796821000186_ref34","doi-asserted-by":"crossref","unstructured":"Feng, Y. & Luo, Z. (2009) Typed operational semantics for dependent record types. In Proceedings Types for Proofs and Programs, Revised Selected Papers, TYPES 2009, Aussois, France, 12-15th May 2009. pp. 30\u201346.","DOI":"10.4204\/EPTCS.53.3"},{"key":"S0956796821000186_ref14","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500000049"},{"key":"S0956796821000186_ref47","doi-asserted-by":"publisher","DOI":"10.3233\/FI-2012-776"},{"key":"S0956796821000186_ref58","doi-asserted-by":"publisher","DOI":"10.1145\/1869459.1869489"},{"key":"S0956796821000186_ref79","unstructured":"Siek, J. G. (2019) Transitivity of subtyping for intersection types. CoRR. abs\/1906.09709."},{"key":"S0956796821000186_ref55","doi-asserted-by":"publisher","DOI":"10.5381\/jot.2006.5.4.a4"},{"key":"S0956796821000186_ref88","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00590-9_1"},{"key":"S0956796821000186_ref94","unstructured":"Zwanenburg, J. (1995) Record concatenation with intersection types."},{"key":"S0956796821000186_ref67","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0014562"},{"key":"S0956796821000186_ref48","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.293.6"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796821000186","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:56Z","timestamp":1779835016000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796821000186\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021]]},"references-count":96,"alternative-id":["S0956796821000186"],"URL":"https:\/\/doi.org\/10.1017\/s0956796821000186","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021]]},"assertion":[{"value":"\u00a9 The Author(s), 2021. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}}],"article-number":"e28"}}