{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T14:49:46Z","timestamp":1787064586534,"version":"build-2736575974"},"reference-count":45,"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\/"}],"funder":[{"name":"Huawei","award":["TC20230508031"],"award-info":[{"award-number":["TC20230508031"]}]},{"name":"Hong Kong Research Grants Council","award":["17209821"],"award-info":[{"award-number":["17209821"]}]}],"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>Mainstream object-oriented programming languages such as Java, Scala, C#, or TypeScript have polymorphic type systems with subtyping and bounded quantification. Bounded quantification, despite being a pervasive and widely used feature, has attracted little research work on type-inference algorithms to support it. A notable exception is local type inference, which is the basis of most current implementations of type inference for mainstream languages. However, support for bounded quantification in local type inference has important restrictions, and its non-algorithmic specification is complex.<\/jats:p>\n                  <jats:p>\n                    In this paper, we present a variant of kernel\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    , which is the canonical calculus with bounded quantification, with implicit polymorphism. Our variant, called\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>b<\/jats:italic>\n                    <\/jats:sup>\n                    , comes with a declarative and an algorithmic formulation of the type system. The declarative type system is based on previous work on bidirectional typing for predicative higher-rank polymorphism and a greedy approach to implicit instantiation. This allows for a clear declarative specification where programs require few type annotations and enables implicit polymorphism where applications omit type parameters. Just as local type inference, explicit type applications are also available in\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>b<\/jats:italic>\n                    <\/jats:sup>\n                    if desired. This is useful to deal with impredicative instantiations, which would not be allowed otherwise in\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>b<\/jats:italic>\n                    <\/jats:sup>\n                    . Due to the support for impredicative instantiations, we can obtain a completeness result with respect to kernel\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    , showing that all the well-typed kernel\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    programs can type-check in\n                    <jats:italic>F<\/jats:italic>\n                    <jats:sub>\u2264<\/jats:sub>\n                    <jats:sup>\n                      <jats:italic>b<\/jats:italic>\n                    <\/jats:sup>\n                    . The corresponding algorithmic version of the type system is shown to be sound, complete, and decidable. All the results have been mechanically formalized in the Abella theorem prover.\n                  <\/jats:p>","DOI":"10.1145\/3622871","type":"journal-article","created":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T11:41:29Z","timestamp":1697456489000},"page":"2083-2111","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":10,"title":["Greedy Implicit Bounded Quantification"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0009-0002-8351-2679","authenticated-orcid":false,"given":"Chen","family":"Cui","sequence":"first","affiliation":[{"name":"The University of Hong Kong, Hong Kong, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4443-0753","authenticated-orcid":false,"given":"Shengyi","family":"Jiang","sequence":"additional","affiliation":[{"name":"The University of Hong Kong, Hong Kong, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1846-7210","authenticated-orcid":false,"given":"Bruno C. d. S.","family":"Oliveira","sequence":"additional","affiliation":[{"name":"The University of Hong Kong, Hong Kong, China"}],"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.1016\/0890-5401(91)90055-7"},{"key":"e_1_2_1_2_1","volume-title":"An Implementation of F_<:. SRC Research Reports","author":"Cardelli Luca","unstructured":"Luca Cardelli . 1993. An Implementation of F_<:. SRC Research Reports , Digital Equipment Corporation . Luca Cardelli. 1993. An Implementation of F_<:. SRC Research Reports, Digital Equipment Corporation."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-54415-1_73"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/6041.6042"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.8336774"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500001134"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009882"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2500365.2500582"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290322"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/217838.217858"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(04)80008-2"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49498-1_10"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-71070-7_13"},{"key":"e_1_2_1_14_1","unstructured":"Jean-Yves Girard. 1972. Interpr\u00e9tation fonctionnelle et elimination des coupures de l\u2019arithm\u00e9tique d\u2019ordre sup\u00e9rieur. Universit\u00e9 de Paris 7. \t\t\t\t  Jean-Yves Girard. 1972. Interpr\u00e9tation fonctionnelle et elimination des coupures de l\u2019arithm\u00e9tique d\u2019ordre sup\u00e9rieur. Universit\u00e9 de Paris 7."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.2307\/1995158"},{"key":"e_1_2_1_16_1","volume-title":"Pierce","author":"Hosoya Haruo","year":"1999","unstructured":"Haruo Hosoya and Benjamin C . Pierce . 1999 . How Good is Local Type Inference? University of Pennsylvania . Haruo Hosoya and Benjamin C. Pierce. 1999. How Good is Local Type Inference? University of Pennsylvania."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/3310232.3310233"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/944705.944709"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411204.1411245"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.5075\/epfl-thesis-8218"},{"key":"#cr-split#-e_1_2_1_21_1.1","unstructured":"Henry Mercer Cameron Ramsay and Neel Krishnaswami. 2022. Implicit Polarized F: Local Type Inference for Impredicativity. arXiv preprint arXiv:2203.01835 https:\/\/doi.org\/10.48550\/arXiv.2203.01835 10.48550\/arXiv.2203.01835"},{"key":"#cr-split#-e_1_2_1_21_1.2","unstructured":"Henry Mercer Cameron Ramsay and Neel Krishnaswami. 2022. Implicit Polarized F: Local Type Inference for Impredicativity. arXiv preprint arXiv:2203.01835 https:\/\/doi.org\/10.48550\/arXiv.2203.01835"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.237729"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/360204.360207"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3409006"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3563304"},{"key":"e_1_2_1_27_1","unstructured":"Simon Peyton Jones and Mark Shields. 2004. Lexically Scoped Type Variables. March Draft \t\t\t\t  Simon Peyton Jones and Mark Shields. 2004. Lexically Scoped Type Variables. March Draft"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1017\/s0956796806006034"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/143165.143228"},{"key":"e_1_2_1_30_1","volume-title":"Types and Programming Languages","author":"Pierce Benjamin C.","year":"2091","unstructured":"Benjamin C. Pierce . 2002. Types and Programming Languages ( 1 st ed.). The MIT Press . isbn:026216 2091 Benjamin C. Pierce. 2002. Types and Programming Languages (1st ed.). The MIT Press. isbn:0262162091","edition":"1"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268967"},{"key":"e_1_2_1_32_1","unstructured":"Hubert Plociniczak. 2016. Decrypting Local Type Inference. Ph. D. Dissertation. EPFL. \t\t\t\t  Hubert Plociniczak. 2016. Decrypting Local Type Inference. Ph. D. Dissertation. EPFL."},{"key":"e_1_2_1_33_1","unstructured":"Fran\u00e7ois Pottier. 1998. Type Inference in the Presence of Subtyping: From Theory to Practice. Ph. D. Dissertation. INRIA. \t\t\t\t  Fran\u00e7ois Pottier. 1998. Type Inference in the Presence of Subtyping: From Theory to Practice. Ph. D. Dissertation. INRIA."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411204.1411216"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-06859-7_148"},{"key":"e_1_2_1_36_1","volume-title":"Type Inference With Bounded Quantification. Ph. D. Dissertation","author":"Sequeira Dilip","unstructured":"Dilip Sequeira . 1998. Type Inference With Bounded Quantification. Ph. D. Dissertation . University of Edinburgh. Dilip Sequeira. 1998. Type Inference With Bounded Quantification. Ph. D. Dissertation. University of Edinburgh."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3408971"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3192366.3192389"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2015.274"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411204.1411246"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3310339"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2022.2"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/3341716"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3571241"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622871","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3622871","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:57:27Z","timestamp":1750283847000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622871"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,16]]},"references-count":45,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2023,10,16]]}},"alternative-id":["10.1145\/3622871"],"URL":"https:\/\/doi.org\/10.1145\/3622871","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"}}]}}