Learning to Reason with HOL4 tactics

Techniques combining machine learning with translation to automated reasoning have recently become an important component of formal proof assistants. Such "hammer" tech- niques complement traditional proof assistant automation as implemented by tactics and decision procedures. In this paper we present a unified proof assistant automation approach which attempts to automate the selection of appropriate tactics and tactic-sequences com- bined with an optimized small-scale hammering approach. We implement the technique as a tactic-level automation for HOL4: TacticToe. It implements a modified A*-algorithm directly in HOL4 that explores different tactic-level proof paths, guiding their selection by learning from a large number of previous tactic-level proofs. Unlike the existing hammer methods, TacticToe avoids translation to FOL, working directly on the HOL level. By combining tactic prediction and premise selection, TacticToe is able to re-prove 39 percent of 7902 HOL4 theorems in 5 seconds whereas the best single HOL(y)Hammer strategy solves 32 percent in the same amount of time.

[1]  Chad E. Brown Reducing Higher-Order Theorem Proving to a Sequence of SAT Problems , 2013, Journal of Automated Reasoning.

[2]  Cezary Kaliszyk,et al.  MizAR 40 for Mizar 40 , 2013, Journal of Automated Reasoning.

[3]  Nils J. Nilsson,et al.  A Formal Basis for the Heuristic Determination of Minimum Cost Paths , 1968, IEEE Trans. Syst. Sci. Cybern..

[4]  Wai Wong,et al.  Recording and Checking HOL Proofs , 1995, TPHOLs.

[5]  Chad E. Brown,et al.  Internal Guidance for Satallax , 2016, IJCAR.

[6]  Gudmund Grov,et al.  Machine Learning in Proof General: Interfacing Interfaces , 2012, UITP.

[7]  Cezary Kaliszyk,et al.  A Learning-Based Fact Selector for Isabelle/HOL , 2016, Journal of Automated Reasoning.

[8]  Michael Norrish,et al.  A Brief Overview of HOL4 , 2008, TPHOLs.

[9]  Cezary Kaliszyk,et al.  Learning-assisted theorem proving with millions of lemmas☆ , 2015, J. Symb. Comput..

[10]  Cezary Kaliszyk,et al.  Learning-Assisted Automated Reasoning with Flyspeck , 2012, Journal of Automated Reasoning.

[11]  Yves Bertot,et al.  Interactive Theorem Proving and Program Development: Coq'Art The Calculus of Inductive Constructions , 2010 .

[12]  Rajeev Raman,et al.  SEPIA: Search for Proofs Using Inferred Automata , 2015, CADE.

[13]  John Harrison,et al.  HOL Light: An Overview , 2009, TPHOLs.

[14]  Josef Urban,et al.  MaLARea: a Metasystem for Automated Reasoning in Large Theories , 2007, ESARLT.

[15]  Cezary Kaliszyk,et al.  FEMaLeCoP: Fairly Efficient Machine Learning Connection Prover , 2015, LPAR.

[16]  Ramana Kumar,et al.  Standalone Tactics Using OpenTheory , 2012, ITP.

[17]  Tobias Nipkow,et al.  The Isabelle Framework , 2008, TPHOLs.

[18]  Thibault Gauthier,et al.  Beagle as a HOL4 external ATP method , 2014, PAAR@IJCAR.

[19]  J. Hurd First-Order Proof Tactics in Higher-Order Logic Theorem Provers In Proc , 2003 .

[20]  Stephan Schulz,et al.  E - a brainiac theorem prover , 2002, AI Commun..

[21]  Karen Spärck Jones A statistical interpretation of term specificity and its application in retrieval , 2021, J. Documentation.

[22]  Mark Adams,et al.  Refactoring Proofs with Tactician , 2015, SEFM Workshops.

[23]  Sahibsingh A. Dudani The Distance-Weighted k-Nearest-Neighbor Rule , 1976, IEEE Transactions on Systems, Man, and Cybernetics.

[24]  Cezary Kaliszyk,et al.  Hammering towards QED , 2016, J. Formaliz. Reason..

[25]  Thibault Gauthier,et al.  Premise Selection and External Provers for HOL4 , 2015, CPP.

[26]  Josef Urban,et al.  MaLeCoP Machine Learning Connection Prover , 2011, TABLEAUX.

[27]  Cezary Kaliszyk,et al.  Stronger Automation for Flyspeck by Feature Weighting and Strategy Evolution , 2013, PxTP@CADE.

[28]  Josef Urban,et al.  BliStr: The Blind Strategymaker , 2013, GCAI.

[29]  Jónathan Heras,et al.  Recycling Proof Patterns in Coq: Case Studies , 2013, Math. Comput. Sci..

[30]  Josef Urban MPTP – Motivation, Implementation, First Experiments , 2004, Journal of Automated Reasoning.

[31]  Stephan Schulz,et al.  System Description: E 1.8 , 2013, LPAR.

[32]  Simon M. Lucas,et al.  A Survey of Monte Carlo Tree Search Methods , 2012, IEEE Transactions on Computational Intelligence and AI in Games.