{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T13:12:37Z","timestamp":1790428357819,"version":"4.1.0"},"reference-count":55,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T00:00:00Z","timestamp":1609718400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/T006595\/1"],"award-info":[{"award-number":["EP\/T006595\/1"]}],"id":[{"id":"10.13039\/501100000266","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":[[2021,1,4]]},"abstract":"<jats:p>The pattern-match safety problem is to verify that a given functional program will never crash due to non-exhaustive patterns in its function definitions. We present a refinement type system that can be used to solve this problem. The system extends ML-style type systems with algebraic datatypes by a limited form of structural subtyping and environment-level intersection. We describe a fully automatic, sound and complete type inference procedure for this system which, under reasonable assumptions, is worst-case linear-time in the program size. Compositionality is essential to obtaining this complexity guarantee. A prototype implementation for Haskell is able to analyse a selection of packages from the Hackage database in a few hundred milliseconds.<\/jats:p>","DOI":"10.1145\/3434336","type":"journal-article","created":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T12:34:24Z","timestamp":1609763664000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":4,"title":["Intensional datatype refinement: with application to scalable verification of pattern-match safety"],"prefix":"10.1145","volume":"5","author":[{"given":"Eddie","family":"Jones","sequence":"first","affiliation":[{"name":"University of Bristol, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0825-8386","authenticated-orcid":false,"given":"Steven","family":"Ramsay","sequence":"additional","affiliation":[{"name":"University of Bristol, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,1,4]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","unstructured":"Alexander Aiken. 1999. Introduction to set constraint-based program analysis. Science of Computer Programming 35 2 ( 1999 ) 79-111. https:\/\/doi.org\/10.1016\/S0167-6423 ( 99 ) 00007-6 10.1016\/S0167-6423(99)00007-6","DOI":"10.1016\/S0167-6423"},{"key":"e_1_2_1_2_1","first-page":"329","volume-title":"Proceedings of the Seventh Annual Symposium on Logic in Computer Science (LICS '92)","author":"Aiken Alexander","year":"1992","unstructured":"Alexander Aiken and Edward L. Wimmers. 1992. Solving Systems of Set Constraints (Extended Abstract). In Proceedings of the Seventh Annual Symposium on Logic in Computer Science (LICS '92), Santa Cruz, California, USA, June 22-25, 1992. 329-340."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/165180.165188"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.177847"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.177847"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","unstructured":"Alexander Aiken Edward L. Wimmers and Jens Palsberg. 1999. Optimal Representations of Polymorphic Types with Subtyping. Higher-Order and Symbolic Computation 12 3 ( 1999 ) 237-282. https:\/\/doi.org\/10.1023\/A:1010056315933 10.1023\/A:1010056315933","DOI":"10.1023\/A:1010056315933"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/155183.155231"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1993.287598"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951928"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034788"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3158099"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009882"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1292597.1292602"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54434-1_18"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-47147-7_6"},{"key":"e_1_2_1_16_1","volume-title":"Making Set-Constraint Based Program Analyses Scale. In First Workshop on Set Constraints at CP' 96","author":"F\u00e4hndrich Manuel","year":"1996","unstructured":"Manuel F\u00e4hndrich and Alexander Aiken. 1996. Making Set-Constraint Based Program Analyses Scale. In First Workshop on Set Constraints at CP' 96."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/277650.277667"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/316686.316703"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/113445.113468"},{"key":"e_1_2_1_20_1","volume-title":"Simple Type Inference for Structural Polymorphism. In International Workshop on Foundations of Object-Oriented Languages (FOOL).","author":"Garrigue Jacques","year":"2002","unstructured":"Jacques Garrigue. 2002. Simple Type Inference for Structural Polymorphism. In International Workshop on Foundations of Object-Oriented Languages (FOOL)."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3408989"},{"key":"e_1_2_1_22_1","volume-title":"Constraint Abstractions. In Symposium on Programs as Data Objects, Olivier Danvy and Andrzej Filinski (Eds.). Springer Berlin Heidelberg, 63-83","author":"Gustavsson J\u00f6rgen","year":"2001","unstructured":"J\u00f6rgen Gustavsson and Josef Svenningsson. 2001. Constraint Abstractions. In Symposium on Programs as Data Objects, Olivier Danvy and Andrzej Filinski (Eds.). Springer Berlin Heidelberg, 63-83."},{"key":"e_1_2_1_23_1","volume-title":"Handbook of Practical Logic and Automated Reasoning","author":"Harrison John","unstructured":"John Harrison. 2009. Handbook of Practical Logic and Automated Reasoning. Cambridge University Press."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/182409.182495"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF00245462"},{"key":"e_1_2_1_26_1","unstructured":"Nevin Charles Heintze. 1992. Set based program analysis. Thesis."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/199448.199481"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2487241.2487246"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-89884-1_25"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500000657"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796807006223"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411286.1411293"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2628136.2628156"},{"key":"e_1_2_1_35_1","doi-asserted-by":"crossref","unstructured":"Martin Odersky Martin Sulzmann and Martin Wehr. 1999. Type Inference with Constrained Types. TAPOS 5 1 ( 1999 ) 35-55.","DOI":"10.1002\/(SICI)1096-9942(199901\/03)5:1<35::AID-TAPO4>3.0.CO;2-4"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926453"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976002.2976013"},{"key":"e_1_2_1_39_1","unstructured":"Fran\u00e7ois Pottier. 1998. Type inference in the presence of subtyping: from theory to practice. Thesis."},{"key":"e_1_2_1_40_1","first-page":"4","article-title":"A Versatile Constraint-Based Type Inference System","volume":"7","author":"Pottier Fran\u00e7ois","year":"2000","unstructured":"Fran\u00e7ois Pottier. 2000. A Versatile Constraint-Based Type Inference System. Nordic J. of Computing 7, 4 (Dec. 2000 ), 312-347.","journal-title":"Nordic J. of Computing"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/263699"},{"key":"e_1_2_1_43_1","doi-asserted-by":"crossref","unstructured":"Jakob Rehof and Torben \u00c6. Mogensen. 1999. Tractable constraints in finite semilattices. Science of Computer Programming 35 2 ( 1999 ) 191-221.","DOI":"10.1016\/S0167-6423(99)00011-8"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/1375581.1375602"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/325694.325706"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190315.1190324"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706315"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-61739-6_52"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1599410.1599445"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784745"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2628136.2628161"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-28644-8_33"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429121"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292560"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480889"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434336","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3434336","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,19]],"date-time":"2026-06-19T07:26:36Z","timestamp":1781853996000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434336"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1,4]]},"references-count":55,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2021,1,4]]}},"alternative-id":["10.1145\/3434336"],"URL":"https:\/\/doi.org\/10.1145\/3434336","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1,4]]},"assertion":[{"value":"2021-01-04","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}