显式精化类型
Explicit Refinement Types
AI总结:
提出λert类型理论,通过允许程序员在程序中嵌入显式证明来支持带量词和归纳的精化类型,并在Lean 4中形式化证明了其类型系统的可靠性。
摘要:
我们提出了λert,一种支持带有显式证明的精化类型的类型理论。与DML和Liquid Haskell使用SMT求解器解决精化约束不同,我们的系统要求并允许程序员在程序文本中嵌入性质的证明,从而支持包含量词和归纳的丰富性质逻辑。我们通过展示每个精化程序可擦除为简单类型程序来证明该类型系统是可靠的,并通过指称语义证明每个擦除程序具有其精化类型要求的所有性质。所有证明均在Lean 4中形式化。
英文摘要:
We present λert, a type theory supporting refinement types with explicit proofs. Instead of solving refinement constraints with an SMT solver like DML and Liquid Haskell, our system requires and permits programmers to embed proofs of properties within the program text, letting us support a rich logic of properties including quantifiers and induction. We show that the type system is sound by showing that every refined program erases to a simply-typed program, and by means of a denotational semantics, we show that every erased program has all of the properties demanded by its refined type. All of our proofs are formalised in Lean 4.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。