{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,9]],"date-time":"2026-06-09T08:44:43Z","timestamp":1780994683742,"version":"3.54.1"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T00:00:00Z","timestamp":1728345600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["CNS-2120642, CNS-2155235, CCF-1918573, CCF-1911213, CNS-2327336"],"award-info":[{"award-number":["CNS-2120642, CNS-2155235, CCF-1918573, CCF-1911213, CNS-2327336"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000781","name":"European Research Council","doi-asserted-by":"publisher","award":["SecuStack, 101115046"],"award-info":[{"award-number":["SecuStack, 101115046"]}],"id":[{"id":"10.13039\/501100000781","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2024,10,8]]},"abstract":"<jats:p>\n                    Refinement types combine SMT decidable constraints with a compositional, syntax-directed type system to provide a convenient way to statically and automatically check properties of programs. However, when type checking fails, programmers must use cryptic error messages that, at best, point out the code location where a subtyping constraint failed to determine the root cause of the failure. In this paper, we introduce\n                    <jats:italic toggle=\"yes\">refinement type refutations<\/jats:italic>\n                    , a new approach to explaining why refinement type checking fails, which mirrors the compositional way in which refinement type checking is carried out. First, we show how to systematically transform standard bidirectional type\n                    <jats:italic toggle=\"yes\">checking<\/jats:italic>\n                    rules to obtain refutations. Second, we extend the approach to account for global constraint-based refinement\n                    <jats:italic toggle=\"yes\">inference<\/jats:italic>\n                    via the notion of a\n                    <jats:italic toggle=\"yes\">must-instantiation<\/jats:italic>\n                    : a set of concrete inhabitants of the types of subterms that suffice to demonstrate why typing fails. Third, we implement our method in H\n                    <jats:sc>ay<\/jats:sc>\n                    S\n                    <jats:sc>tack<\/jats:sc>\n                    \u2013an extension to L\n                    <jats:sc>iquid<\/jats:sc>\n                    H\n                    <jats:sc>askell<\/jats:sc>\n                    which automatically finds type-refutations when refinement type checking fails, and helps users understand refutations via an interactive user-interface. Finally, we present an empirical evaluation of H\n                    <jats:sc>ay<\/jats:sc>\n                    S\n                    <jats:sc>tack<\/jats:sc>\n                    using the regression benchmark-set of L\n                    <jats:sc>iquid<\/jats:sc>\n                    H\n                    <jats:sc>askell<\/jats:sc>\n                    , and the benchmark set of G2, a previous method that searches for (non-compositional) counterexample traces by symbolically executing Haskell source. We show that H\n                    <jats:sc>ay<\/jats:sc>\n                    S\n                    <jats:sc>tack<\/jats:sc>\n                    can find refutations for\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>99.7<\/mml:mn>\n                          <mml:mtext>%<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    of benchmarks, including those with complex typing constructs (\n                    <jats:italic toggle=\"yes\">e.g<\/jats:italic>\n                    ., abstract and bounded refinements, and reflection), and does so, an order of magnitude faster than G2.\n                  <\/jats:p>","DOI":"10.1145\/3689745","type":"journal-article","created":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T03:23:04Z","timestamp":1728357784000},"page":"962-987","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["Refinement Type Refutations"],"prefix":"10.1145","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-3493-837X","authenticated-orcid":false,"given":"Robin","family":"Webbers","sequence":"first","affiliation":[{"name":"Vrije Universiteit Amsterdam, Amsterdam, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0826-4425","authenticated-orcid":false,"given":"Klaus","family":"von Gleissenthall","sequence":"additional","affiliation":[{"name":"Vrije Universiteit Amsterdam, Amsterdam, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1802-9421","authenticated-orcid":false,"given":"Ranjit","family":"Jhala","sequence":"additional","affiliation":[{"name":"University of California, San Diego, San Diego, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,10,8]]},"reference":[{"key":"e_1_3_2_2_1","volume-title":"QuickChick: Property-Based Testing In Coq","year":"2018","unstructured":"2018. QuickChick: Property-Based Testing In Coq. Leonidas Lampropoulos and Benjamin C. Pierce."},{"key":"e_1_3_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290384"},{"key":"e_1_3_2_4_1","doi-asserted-by":"crossref","unstructured":"J. Bengtson K. Bhargavan C. Fournet A. D. Gordon and S. Maffeis. 2011. Refinement types for secure implementations. ACM TOPLAS (2011).","DOI":"10.1145\/1890028.1890031"},{"key":"e_1_3_2_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08867-9_55"},{"key":"e_1_3_2_6_1","doi-asserted-by":"crossref","unstructured":"Aleksandar Chakarov Aleksandr Fedchin Zvonimir Rakamaric and Neha Rungta. 2022. Better counterexamples for Dafny. In TACAS 2022. https:\/\/www.amazon.science\/publications\/better-counterexamples-for-dafny","DOI":"10.1007\/978-3-030-99524-9_23"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49674-9_25"},{"key":"e_1_3_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/351240.351266"},{"key":"e_1_3_2_9_1","volume-title":"Model checking","author":"Clarke Edmund M","year":"1999","unstructured":"Edmund M Clarke, Orna Grumberg, and Doron A. Peled. 1999. Model checking. MIT Press, London, Cambridge."},{"key":"e_1_3_2_10_1","unstructured":"R. L. Constable and S. F. Smith. 1987. Partial Objects In Constructive Type Theory. In LICS."},{"key":"e_1_3_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110270"},{"key":"e_1_3_2_12_1","doi-asserted-by":"crossref","unstructured":"J. Dunfield. 2007. Refined typechecking with Stardust. In PLPV.","DOI":"10.1145\/1292597.1292602"},{"key":"e_1_3_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3450952"},{"key":"e_1_3_2_14_1","doi-asserted-by":"crossref","unstructured":"C. Fournet M. Kohlweiss and P-Y. Strub. 2011. Modular code-based cryptographic verification. In CCS.","DOI":"10.1145\/2046707.2046746"},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00132"},{"key":"e_1_3_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254112"},{"key":"e_1_3_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314618"},{"key":"e_1_3_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3360592"},{"key":"e_1_3_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/503272.503279"},{"key":"e_1_3_2_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22110-1_38"},{"key":"e_1_3_2_21_1","doi-asserted-by":"publisher","DOI":"10.1561\/2500000032"},{"key":"e_1_3_2_22_1","doi-asserted-by":"crossref","unstructured":"M. Kawaguchi P. Rondon and R. Jhala. 2009. Type-based Data Structure Verification. In PLDI.","DOI":"10.1145\/1542476.1542510"},{"key":"e_1_3_2_23_1","unstructured":"Milod Kazerounian Niki Vazou Austin Bourgerie Jeffrey S. Foster and Emina Torlak. 2017. Refinement Types for Ruby. CoRR abs\/1711.09281 (2017). arXiv:1711.09281 http:\/\/arxiv.org\/abs\/1711.09281"},{"key":"e_1_3_2_24_1","doi-asserted-by":"crossref","unstructured":"A. M. Kent D. Kempe and S. Tobin-Hochstadt. 2016. Occurrence typing modulo theories. In PLDI.","DOI":"10.1145\/2908080.2908091"},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360252"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3408988"},{"key":"e_1_3_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3527325"},{"key":"e_1_3_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591283"},{"key":"e_1_3_2_29_1","first-page":"441","volume-title":"15th USENIX Symposium on Operating Systems Design and Implementation (OSDI 21)","author":"Lehmann Nico","year":"2021","unstructured":"Nico Lehmann, Rose Kunkel, Jordan Brown, Jean Yang, Niki Vazou, Nadia Polikarpova, Deian Stefan, and Ranjit Jhala. 2021. STORM: Refinement Types for Secure Web Applications. In 15th USENIX Symposium on Operating Systems Design and Implementation (OSDI 21). USENIX Association, 441\u2013459. https:\/\/www.usenix.org\/conference\/osdi21\/presentation\/lehmann"},{"key":"e_1_3_2_30_1","first-page":"348","volume-title":"Proceedings of the 16th International Conference on Logic for Programming, Artificial Intelligence, and Reasoning (Dakar, Senegal) (LPAR\u201910)","author":"Leino K. Rustan M.","year":"2010","unstructured":"K. Rustan M. Leino. 2010. Dafny: An Automatic Program Verifier for Functional Correctness. In Proceedings of the 16th International Conference on Logic for Programming, Artificial Intelligence, and Reasoning (Dakar, Senegal) (LPAR\u201910). Springer-Verlag, Berlin, Heidelberg, 348\u2013370."},{"key":"e_1_3_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371078"},{"key":"e_1_3_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/345099.345100"},{"key":"e_1_3_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110261"},{"key":"e_1_3_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3498695"},{"key":"e_1_3_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411286.1411292"},{"key":"e_1_3_2_36_1","doi-asserted-by":"publisher","DOI":"10.1109\/32.713327"},{"key":"e_1_3_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3386005"},{"key":"e_1_3_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951915"},{"key":"e_1_3_2_39_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46669-8_33"},{"key":"e_1_3_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034811"},{"key":"e_1_3_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/2628136.2628161"},{"key":"e_1_3_2_42_1","doi-asserted-by":"crossref","unstructured":"P. Vekris B. Cosman and R. Jhala. 2016. Refinement types for TypeScript. In PLDI.","DOI":"10.1145\/2908080.2908110"},{"key":"e_1_3_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591271"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689745","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3689745","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T09:09:33Z","timestamp":1770196173000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689745"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,10,8]]},"references-count":42,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2024,10,8]]}},"alternative-id":["10.1145\/3689745"],"URL":"https:\/\/doi.org\/10.1145\/3689745","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,10,8]]},"assertion":[{"value":"2024-04-05","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-08-18","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-10-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}