Semantic-Type-Guided Bug Finding
Kelvin Qian, Scott F. Smith, Brandon Stride, Shiwei Weng, Ke Wu
Abstract
In recent years, there has been an increased interest in tools that establish incorrectness rather than correctness of program properties. In this work we build on this approach by developing a novel methodology to prove incorrectness of semantic typing properties of functional programs, extending the incorrectness approach to the model theory of functional program typing. We define a semantic type refuter which refutes semantic typings for a simple functional language. We prove our refuter is co-recursively enumerable, and that it is sound and complete with respect to a semantic typing notion. An initial implementation is described which uses symbolic evaluation to efficiently find type errors over a functional language with a rich type system.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Ill-Typed Programs Don't Evaluate cites Incorrectness logic
- Ill-Typed Programs Don't Evaluate cites Finding real bugs in big programs with incorrectness logic
- A Complementary Approach to Incorrectness Typing cites Incorrectness logic
- A Complementary Approach to Incorrectness Typing cites Ill-Typed Programs Don't Evaluate
- A Complementary Approach to Incorrectness Typing cites Finding real bugs in big programs with incorrectness logic
- Finding real bugs in big programs with incorrectness logic cites Incorrectness logic
Cited by top-tier papers1
Builds on3
Related papers
- Enumerating Ill-Typed Programs for Testing Type AnalyzersThodoris Sotiropoulos, Zhendong SuPLDI 2026
- Gradual Typing for Effect HandlersMax S. New, Eric Giovannini, Daniel R. LicataOOPSLA 2023 · 3 citations
- Refinement Type RefutationsRobin Webbers, Klaus von Gleissenthall, Ranjit JhalaOOPSLA 2024 · 3 citations
- A systematic approach to deriving incremental type checkersAndré Pacak, Sebastian Erdweg, Tamás SzabóOOPSLA 2020 · 16 citations
- Intensional datatype refinement: with application to scalable verification of pattern-match safetyEddie Jones, Steven J. RamsayPOPL 2021 · 3 citations
