{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T14:14:12Z","timestamp":1784211252493,"version":"3.55.0"},"reference-count":35,"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>We introduce a new two-sided type system for verifying the correctness and incorrectness of functional programs with atoms and pattern matching. A key idea in the work is that types should range over sets of normal forms, rather than sets of values, and this allows us to define a complement operator on types that acts as a negation on typing formulas. We show that the complement allows us to derive a wide range of refutation principles within the system, including the type-theoretic analogue of co-implication, and we use them to certify that a number of Erlang-like programs go wrong. An expressive axiomatisation of the complement operator via subtyping is shown decidable, and the type system as a whole is shown to be not only sound, but also complete for normal forms.<\/jats:p>","DOI":"10.1145\/3776724","type":"journal-article","created":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T18:59:43Z","timestamp":1767898783000},"page":"2380-2408","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["A Complementary Approach to Incorrectness Typing"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-8023-3052","authenticated-orcid":false,"given":"Celia Mengyue","family":"Li","sequence":"first","affiliation":[{"name":"University of Bristol, Bristol, United Kingdom"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0006-5628-493X","authenticated-orcid":false,"given":"Sophie","family":"Pull","sequence":"additional","affiliation":[{"name":"University of Bristol, Bristol, United Kingdom"}],"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, Bristol, United Kingdom"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,1,8]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","unstructured":"Alexander Aiken Edward L. Wimmers and T. K. Lakshman. 1994. Soft Typing with Conditional Types. In Conference Record of POPL\u201994: 21st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages Portland Oregon USA January 17\u201321 1994 163\u2013173. https:\/\/doi.org\/10.1145\/174675.177847 10.1145\/174675.177847","DOI":"10.1145\/174675.177847"},{"key":"e_1_3_2_3_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2025.5"},{"key":"e_1_3_2_4_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-34518-0_12"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3498674"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","unstructured":"Giuseppe Castagna and Zhiwu Xu. 2011. Set-theoretic foundation of parametric polymorphism and subtyping. In Proceedings of the 16th ACM SIGPLAN International Conference on Functional Programming (ICFP\u201911) Tokyo Japan Association for Computing Machinery New York NY USA 94-106. https:\/\/doi.org\/10.1145\/2034773.2034788 10.1145\/2034773.2034788","DOI":"10.1145\/2034773.2034788"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3704848"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35873-9_10"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-18275-4_12"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(99)00124-3"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1093\/LOGCOM\/14.4.529"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/3450952"},{"key":"e_1_3_2_13_2","unstructured":"Erlang\/OTP 28. 2025. Dialyzer v5.4. Last accessed: 1\/7\/2025"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.5555\/2543986"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-17524-9_17"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3527325"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","unstructured":"Celia Mengyue Li Sophie Pull and Steven Ramsay. 2025. A Complementary Approach to Incorrectness Typing. https:\/\/doi.org\/10.48550\/arXiv.2510.13725 10.48550\/arXiv.2510.13725arXiv:2510.13725 [cs.PL]","DOI":"10.48550\/arXiv.2510.13725"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","unstructured":"Tobias Lindahl and Konstantinos Sagonas. 2006. Practical Type Inference Based on Success Typings. In Proceedings of the 8th ACM SIGPLAN International Conference on Principles and Practice of Declarative Programming (PPDP\u201906) (Venice Italy) Association for Computing Machinery New York NY USA 167-178. https:\/\/doi.org\/10.1145\/1140335.1140356 10.1145\/1140335.1140356","DOI":"10.1145\/1140335.1140356"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","DOI":"10.1145\/3563317"},{"key":"e_1_3_2_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","unstructured":"Tam\u00e1s Nagy and Anik\u00f3 Nagyn\u00c9 V\u00edg. 2008. Erlang testing and tools survey. In Proceedings of the 7th ACM SIGPLAN Workshop on Erlang (Victoria BC Canada) (\u201908) Association for Computing Machinery New York NY USA 21-28. https:\/\/doi.org\/10.1145\/1411273.1411277 10.1145\/1411273.1411277","DOI":"10.1145\/1411273.1411277"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3371078"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3563304"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35873-9_21"},{"key":"e_1_3_2_25_2","doi-asserted-by":"crossref","first-page":"295","DOI":"10.1007\/978-3-642-02716-1_22","volume-title":"Automated Reasoning with Analytic Tableaux and Related Methods","author":"Pinto Lu\u00eds","year":"2009","unstructured":"Lu\u00eds Pinto and Tarmo Uustalu. 2009. Proof Search and Counter-Model Construction for Bi-intuitionistic Propositional Logic with Labelled Sequents. In Automated Reasoning with Analytic Tableaux and Related Methods, Martin Giese and Arild Waaler (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 295-309."},{"key":"e_1_3_2_26_2","unstructured":"Andrew M. Pitts. 2012. Lecture Notes on Types for Part II of the Computer Science Tripos. (2012). Page 2. Available from https:\/\/www.cl.cam.ac.uk\/teaching\/1213\/Types\/typ-notes.pdf last accessed 18\/07\/2025."},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3689788"},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3498695"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.1145\/3632909"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/BF02120864"},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","unstructured":"Konstantinos Sagonas. 2021. Fifteen years of successfully dialyzing Erlang and Elixir code (invited talk). In Proceedings of the 20th ACM SIGPLAN International Workshop on Erlang (Erlang 2021) (Virtual Republic of Korea) Association for Computing Machinery New York NY USA 1. https:\/\/doi.org\/10.1145\/3471871.3480952 10.1145\/3471871.3480952","DOI":"10.1145\/3471871.3480952"},{"key":"e_1_3_2_32_2","doi-asserted-by":"publisher","unstructured":"Luca Tranchini. 2017. Natural deduction for bi-intuitionistic logic\/km0 logic. Journal of Applied Logic 25 (2017) S72-S96. https:\/\/doi.org\/10.1016\/j.jal.2017.12.001 10.1016\/j.jal.2017.12.001 Logical Investigations on Assertion and Denial.","DOI":"10.1016\/j.jal.2017.12.001"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3158100"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3689745"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","DOI":"10.1145\/3591271"},{"key":"e_1_3_2_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/3586045"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3776724","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T13:41:59Z","timestamp":1784209319000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3776724"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,1,8]]},"references-count":35,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2026,1,8]]}},"alternative-id":["10.1145\/3776724"],"URL":"https:\/\/doi.org\/10.1145\/3776724","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"}}]}}