首页    期刊浏览 2024年11月26日 星期二
登录注册

文章基本信息

  • 标题:Hierarchy Builder: Algebraic hierarchies Made Easy in Coq with Elpi (System Description)
  • 本地全文:下载
  • 作者:Cyril Cohen ; Kazuhiko Sakaguchi ; Enrico Tassi
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2020
  • 卷号:167
  • 页码:34:1-34:21
  • DOI:10.4230/LIPIcs.FSCD.2020.34
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:It is nowadays customary to organize libraries of machine checked proofs around hierarchies of algebraic structures. One influential example is the Mathematical Components library on top of which the long and intricate proof of the Odd Order Theorem could be fully formalized. Still, building algebraic hierarchies in a proof assistant such as Coq requires a lot of manual labor and often a deep expertise in the internals of the prover. Moreover, according to our experience, making a hierarchy evolve without causing breakage in client code is equally tricky: even a simple refactoring such as splitting a structure into two simpler ones is hard to get right. In this paper we describe HB, a high level language to build hierarchies of algebraic structures and to make these hierarchies evolve without breaking user code. The key concepts are the ones of factory, builder and abbreviation that let the hierarchy developer describe an actual interface for their library. Behind that interface the developer can provide appropriate code to ensure backward compatibility. We implement the HB language in the hierarchy-builder addon for the Coq system using the Elpi extension language.
  • 关键词:Algebraic Hierarchy; Packed Classes; Coq; Elpi; Metaprogramming; λProlog
国家哲学社会科学文献中心版权所有