计算机科学 > 程序设计语言
[提交于 2025年9月18日]
标题:Refinement-Types Driven Development: A study
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper advocates for the broader application of SMT solvers in everyday programming, challenging the conventional wisdom that these tools are solely for formal methods and verification. We claim that SMT solvers, when seamlessly integrated into a compiler's static checks, significantly enhance the capabilities of ordinary type checkers in program composition. Specifically, we argue that refinement types, as embodied by Liquid Haskell, enable the use of SMT solvers in mundane programming tasks. Through a case study on handling binder scopes in compilers, we envision a future where ordinary programming is made simpler and more enjoyable with the aid of refinement types and SMT solvers. As a secondary contribution, we present a prototype implementation of a theory of finite maps for Liquid Haskell's solver, developed to support our case study.
提交历史
来自:Facundo Domínguez[v1] 2025年9月18日 星期四 14:38:45 UTC