Computing correctly with inductive relations
Computing correctly with inductive relations
复制标题
利用归纳关系正确计算
DOI:
10.1145/3519939.3523707
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Lampropoulos, Leonidas
中科院分区:
文献类型:
--
作者:
Paraskevopoulou, Zoe;Eline, Aaron;Lampropoulos, Leonidas
Inductive relations are the predominant way of writing specifications in mechanized proof developments. Compared to purely functional specifications, they enjoy increased expressive power and facilitate more compositional reasoning. However, inductive relations also come with a significant drawback: they can’t be used for computation.In this paper, we present a unifying framework for extracting three different kinds of computational content from inductively defined relations: semi-decision procedures, enumerators, and random generators. We show how three different instantiations of the same algorithm can be used to generate all three classes of computational definitions inside the logic of the Coq proof assistant. For each derived computation, we also derive mechanized proofs that it is sound and complete with respect to the original inductive relation, using Ltac2, Coq’s new metaprogramming facility.We implement our framework on top of the QuickChick testing tool for Coq, and demonstrate that it covers most cases of interest by extracting computations for the inductive relations found in the Software Foundations series. Finally, we evaluate the practicality and the efficiency of our approach with small case studies in randomized property-based testing and proof by computational reflection.
登录
查看更多内容
DOI:
--
发表时间:
2015
期刊:
European Symposium on Programming
影响因子:
--
作者:
B. Fetscher;Koen Claessen;Michal H. Palka;John Hughes;R. Findler
通讯作者:
R. Findler
DOI:
--
发表时间:
2014
期刊:
SCALA@ECOOP
影响因子:
--
作者:
I. Kuraj;Viktor Kunčak
通讯作者:
Viktor Kunčak
DOI:
--
发表时间:
2004
期刊:
International Colloquium on Theoretical Aspects of Computing
影响因子:
--
作者:
P. Dybjer;Qiao Haiyan;M. Takeyama
通讯作者:
M. Takeyama
DOI:
--
发表时间:
2003
期刊:
Asian Symposium on Programming Languages and Systems
影响因子:
--
作者:
S. Jones;R. Lämmel
通讯作者:
R. Lämmel
DOI:
--
发表时间:
2007
期刊:
International Conference on Theorem Proving in Higher Order Logics
影响因子:
--
作者:
David Delahaye;Catherine Dubois;Jean
通讯作者:
Jean