抽象化指称解释器
Abstracting Denotational Interpreters
AI总结:
本研究提出参数化的指称解释器,可通过改变语义域得到不同动态语义与静态分析,还给出首个强组合恰当的按需调用指称语义,简化了抽象解释的可靠性证明。
摘要:
我们探究指称解释器:即能够生成对应小步操作语义的共归纳轨迹的指称语义。通过将指称解释器在语义域上参数化后再改变语义域,我们可从同一个通用解释器中得到具备不同求值策略的动态语义,以及类型分析这类基于摘要的静态分析。我们的贡献包括首个按需调用(call-by-need)的指称语义,该语义在强组合意义下具备可证明的恰当性。生成的轨迹非常适合描述操作属性,例如变量被求值的频率,因此可实现对这些操作属性进行抽象的静态分析。由于静态分析和动态语义共享同一个通用解释器定义,通过抽象解释得到的可靠性证明可分解为证明关于抽象域的小型抽象定律,从而省去了复杂的特设保持式证明框架。
英文摘要:
We explore denotational interpreters: denotational semantics that produce coinductive traces of a corresponding small-step operational semantics. By parameterising our denotational interpreter over the semantic domain and then varying it, we recover dynamic semantics with different evaluation strategies as well as summary-based static analyses such as type analysis, all from the same generic interpreter. Among our contributions is the first denotational semantics for call-by-need that is provably adequate in a strong, compositional sense. The generated traces lend themselves well to describe operational properties such as how often a variable is evaluated, and hence enable static analyses abstracting these operational properties. Since static analysis and dynamic semantics share the same generic interpreter definition, soundness proofs via abstract interpretation decompose into showing small abstraction laws about the abstract domain, thus obviating complicated ad-hoc preservation-style proof frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。