Hammer for Coq: Automation for Dependent Type Theory. Czajka, Ł. & Kaliszyk, C. Journal of Automated Reasoning, 61(1):423–453, June, 2018.
Hammer for Coq: Automation for Dependent Type Theory [link]Paper  doi  abstract   bibtex   
Hammers provide most powerful general purpose automation for proof assistants based on HOL and set theory today. Despite the gaining popularity of the more advanced versions of type theory, such as those based on the Calculus of Inductive Constructions, the construction of hammers for such foundations has been hindered so far by the lack of translation and reconstruction components. In this paper, we present an architecture of a full hammer for dependent type theory together with its implementation for the Coq proof assistant. A key component of the hammer is a proposed translation from the Calculus of Inductive Constructions, with certain extensions introduced by Coq, to untyped first-order logic. The translation is “sufficiently” sound and complete to be of practical use for automated theorem provers. We also introduce a proof reconstruction mechanism based on an eauto-type algorithm combined with limited rewriting, congruence closure and some forward reasoning. The algorithm is able to re-prove in the Coq logic most of the theorems established by the ATPs. Together with machine-learning based selection of relevant premises this constitutes a full hammer system. The performance of the whole procedure is evaluated in a bootstrapping scenario emulating the development of the Coq standard library. For each theorem in the library only the previous theorems and proofs can be used. We show that 40.8% of the theorems can be proved in a push-button mode in about 40 s of real time on a 8-CPU system.
@article{czajka_hammer_2018,
	title = {Hammer for {Coq}: {Automation} for {Dependent} {Type} {Theory}},
	volume = {61},
	issn = {1573-0670},
	shorttitle = {Hammer for {Coq}},
	url = {https://doi.org/10.1007/s10817-018-9458-4},
	doi = {10/gdzwd5},
	abstract = {Hammers provide most powerful general purpose automation for proof assistants based on HOL and set theory today. Despite the gaining popularity of the more advanced versions of type theory, such as those based on the Calculus of Inductive Constructions, the construction of hammers for such foundations has been hindered so far by the lack of translation and reconstruction components. In this paper, we present an architecture of a full hammer for dependent type theory together with its implementation for the Coq proof assistant. A key component of the hammer is a proposed translation from the Calculus of Inductive Constructions, with certain extensions introduced by Coq, to untyped first-order logic. The translation is “sufficiently” sound and complete to be of practical use for automated theorem provers. We also introduce a proof reconstruction mechanism based on an eauto-type algorithm combined with limited rewriting, congruence closure and some forward reasoning. The algorithm is able to re-prove in the Coq logic most of the theorems established by the ATPs. Together with machine-learning based selection of relevant premises this constitutes a full hammer system. The performance of the whole procedure is evaluated in a bootstrapping scenario emulating the development of the Coq standard library. For each theorem in the library only the previous theorems and proofs can be used. We show that 40.8\% of the theorems can be proved in a push-button mode in about 40 s of real time on a 8-CPU system.},
	language = {en},
	number = {1},
	urldate = {2020-11-03},
	journal = {Journal of Automated Reasoning},
	author = {Czajka, Łukasz and Kaliszyk, Cezary},
	month = jun,
	year = {2018},
	pages = {423--453},
}

Downloads: 0