Classifying Proof Strategies in Abella

Total Page:16

File Type:pdf, Size:1020Kb

Classifying Proof Strategies in Abella ABSTRACT CLASSIFYING PROOF STRATEGIES IN ABELLA In the realm of logic certain domains have kept their head above water, resisting the thrust of automation. As such, interactive theorem provers exist for these higher-order or more complex logics, demanding significant expenditures of human expertise and time. Recent decades have witnessed many attempts to bring automation to interactive theorem provers, and the last ten years have seen an explosion of machine learning research on the topic. This thesis defines a representation for proofs that are completed interactively in the theorem prover Abella based on the concept of strategies. The core idea is that certain strategies for applying the inductive hypothesis and following the structure of definitions within the specification can both be used to help automate proofs, and instances of these strategies can be extracted from existing proofs. The latter is the focus of this work, providing the implementation details along with the programs for parsing proof data, interacting with the Abella system to reprove proof scripts, and transforming the extracted data into the abstract representation corresponding to strategies. This representation starts with targets which annotate each proof step with information tied to the strategy. Then a proof tree is constructed, which captures the dependencies between proof steps; and the combination of targets and proof tree and transformed into a proof frame, the abstraction that corresponds directly with a strategy. The potential of this data abstraction to facilitate partial and full automation along with proof visualization and summary is explained and put forth as future work. Joseph Reeves August 2020 CLASSIFYING PROOF STRATEGIES IN ABELLA by Joseph Reeves A thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Computer Science in the College of Science and Mathematics California State University, Fresno August 2020 © 2020 Joseph Reeves APPROVED For the Department of Computer Science: We, the undersigned, certify that the thesis of the following student meets the required standards of scholarship, format, and style of the university and the student's graduate degree program for the awarding of the master's degree. Joseph Reeves Thesis Author Todd Wilson (Chair) Computer Science Ming Li Computer Science David Ruby Computer Science For the University Graduate Committee: Dean, Division of Graduate Studies AUTHORIZATION FOR REPRODUCTION OF MASTER’S THESIS I grant permission for the reproduction of this thesis in part or in its entirety without further authorization from me, on the condition that the person or agency requesting reproduction absorbs the cost and provides proper acknowledgment of authorship. X Permission to reproduce this thesis in part or in its entirety must be obtained from me. Signature of thesis author: Joseph Reeves ACKNOWLEDGMENTS First and foremost, I would like to thank Todd Wilson for his role as advisor to this thesis. Since taking his CSci 217 course two years ago, each semester has been filled with office visits that spiraled into long conversations; and these conversations were what cultivated my interest in type-theory, logic, and computation. And his intuitions about the field provided key guidance in the development of this thesis, and really helped get the work off the ground. Additionally, I would like to thank Ming Li for opening the door to my academic career, inviting me to a research team and advising our group through several publications and conference presentations. In this group, Carlos Moreno was an outstanding research mentor, showing me the ropes and often rewriting my buggy code. My interests in the fields of logic, computation, and artificial intelligence were aroused through courses I took with David Ruby, as well as the math department professors Oscar and Maria Nogin. Their lecturing, or independent studies, directed me towards areas that I found exciting. Lastly, I would like to thank my family and friends for supporting me through this process; as well as the students I instructed, many of which I can now call friends, that kept academic life enjoyable. TABLE OF CONTENTS Page LIST OF FIGURES ............................................................................................................. viii INTRODUCTION.................................................................................................................... 1 Theorem Proving.............................................................................................................. 1 The Future of Theorem Proving...................................................................................... 4 Thesis Contributions ........................................................................................................ 7 Thesis Overview .............................................................................................................. 9 RELATED WORK ................................................................................................................ 10 Proof Systems................................................................................................................. 11 Automation with Learning ............................................................................................ 14 Automation with Expert Knowledge and Strategies.................................................... 21 Proof Capture ................................................................................................................. 25 Conclusion ...................................................................................................................... 27 AN INTRODUCTION TO ABELLA .................................................................................. 29 The Abella Logical Framework .................................................................................... 29 Proving Add Exists ........................................................................................................ 31 Why Abella? ................................................................................................................... 38 Additional Example Proofs ........................................................................................... 38 PROOF STRATEGIES.......................................................................................................... 39 Inductive Proof Schemes ............................................................................................... 40 Connecting a Strategy with a Definition ...................................................................... 43 Strategy Description ...................................................................................................... 48 Additional Strategies...................................................................................................... 49 EXTRACTING PROOF DATA ........................................................................................... 51 vii vii Page The Two-Phase Approach ............................................................................................. 51 The Static Phase ............................................................................................................. 52 The Dynamic Phase ....................................................................................................... 53 ABSTRACTING A PROOF ................................................................................................. 58 Targets ............................................................................................................................ 58 Nodes ............................................................................................................................ 71 Proof Trees ..................................................................................................................... 72 Proof Frames .................................................................................................................. 81 Querying the Data .......................................................................................................... 87 SOLVING PROOFS USING STRATEGIES ...................................................................... 89 Using a Strategy ............................................................................................................. 89 Filling in the Frame........................................................................................................ 91 CONCLUSION ...................................................................................................................... 96 REFERENCES ....................................................................................................................... 98 APPENDICES ...................................................................................................................... 102 APPENDIX A: EXAMPLE SPECIFICATIONS AND THEOREMS ............................. 103 LIST OF FIGURES Page Figure 1. Proof diagram for the theorem add exists, with an Abella-like syntax. ............... 3 Figure 2. Example sig file. ..................................................................................................... 32 Figure 3. Example mod file. .................................................................................................. 33 Figure 4. Add exists proof screen 1. ....................................................................................
Recommended publications
  • Snake Lemma - Wikipedia, the Free Encyclopedia
    Snake lemma - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Snake_lemma Snake lemma From Wikipedia, the free encyclopedia The snake lemma is a tool used in mathematics, particularly homological algebra, to construct long exact sequences. The snake lemma is valid in every abelian category and is a crucial tool in homological algebra and its applications, for instance in algebraic topology. Homomorphisms constructed with its help are generally called connecting homomorphisms. Contents 1 Statement 2 Explanation of the name 3 Construction of the maps 4 Naturality 5 In popular culture 6 See also 7 References 8 External links Statement In an abelian category (such as the category of abelian groups or the category of vector spaces over a given field), consider a commutative diagram: where the rows are exact sequences and 0 is the zero object. Then there is an exact sequence relating the kernels and cokernels of a, b, and c: Furthermore, if the morphism f is a monomorphism, then so is the morphism ker a → ker b, and if g' is an epimorphism, then so is coker b → coker c. Explanation of the name To see where the snake lemma gets its name, expand the diagram above as follows: 1 of 4 28/11/2012 01:58 Snake lemma - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Snake_lemma and then note that the exact sequence that is the conclusion of the lemma can be drawn on this expanded diagram in the reversed "S" shape of a slithering snake. Construction of the maps The maps between the kernels and the maps between the cokernels are induced in a natural manner by the given (horizontal) maps because of the diagram's commutativity.
    [Show full text]
  • Central Schemes for the Modified Buckley-Leverett Equation
    CENTRAL SCHEMES FOR THE MODIFIED BUCKLEY-LEVERETT EQUATION DISSERTATION Presented in Partial Fulfillment of the Requirements for the Degree Doctor of Philosophy in the Graduate School of the Ohio State University By Ying Wang, B.Sc., M.Sc., M.A.S. Graduate Program in Mathematics The Ohio State University 2010 Dissertation Committee: Professor Chiu-Yen Kao, Advisor Professor Avner Friedman Professor Fei-Ran Tian c Copyright by Ying Wang July, 2010 ABSTRACT In fluid dynamics, the Buckley-Leverett (BL) equation is a transport equation used to model two-phase flow in porous media. One application is secondary recovery by water-drive in oil reservoir simulation. The modified Buckley-Leverett (MBL) equation differs from the classical BL equation by including a balanced diffusive- dispersive combination. The dispersive term is a third order mixed derivatives term, which models the dynamic effects in the pressure difference between the two phases. The classical BL equation gives a monotone water saturation profile for any Rie- mann problem; on the contrast, when the dispersive parameter is large enough, the MBL equation delivers non-monotone water saturation profile for certain Riemann problems as suggested by the experimental observations. In this thesis, we first show that the solution of the finite interval [0,L] boundary value problem converges to that of the half-line [0, +∞) problem for the MBL equation as L → +∞. This result provides a justification for the use of the finite interval boundary value problem in numerical studies for the half line problem. Furthermore, we extend the classical central schemes for the hyperbolic conserva- tion laws to solve the MBL equation which is of pseudo-parabolic type.
    [Show full text]
  • A Proof-Theoretic Approach to Hierarchical Math Library Organization
    A Proof-Theoretic Approach to Hierarchical Math Library Organization Kamal Aboul-Hosn and Terese Damhøj Andersen Department of Computer Science, Cornell University, Ithaca, New York, USA [email protected] [email protected] Abstract. The relationship between theorems and lemmas in mathe- matical reasoning is often vague. No system exists that formalizes the structure of theorems in a mathematical library. Nevertheless, the deci- sions we make in creating lemmas provide an inherent hierarchical struc- ture to the statements we prove. In this paper, we develop a formal system that organizes theorems based on scope. Lemmas are simply the- orems with a local scope. We develop a representation of proofs that captures scope and present a set of proof rules to create and reorganize the scopes of theorems and lemmas. The representation and rules al- low systems for formalized mathematics to more accurately reflect the natural structure of mathematical knowledge. 1 Introduction The relationship between theorems and lemmas in mathematical reasoning is often vague. What makes a statement a lemma, but not a theorem? One might say that a theorem is “more important,” but what does it mean for one statement to be “more important” than another? When writing a proof for a theorem, we often create lemmas as a way to break down the complex proof, so perhaps we expect the proofs of lemmas to be shorter than the proofs of theorems. We also create lemmas when we have a statement that we do not expect to last in readers’ minds, i.e., it is not the primary result of our work.
    [Show full text]
  • On the Topology of Discrete Strategies∗
    The final version of this paper was published in The International Journal of Robotics Research, 29(7), June 2010, pp. 855–896, by SAGE Publications Ltd, http://online.sagepub.com. c Michael Erdmann On the Topology of Discrete Strategies∗ Michael Erdmann School of Computer Science Carnegie Mellon University [email protected] December 2009 Abstract This paper explores a topological perspective of planning in the presence of uncertainty, focusing on tasks specified by goal states in discrete spaces. The paper introduces strategy complexes. A strategy complex is the collection of all plans for attaining all goals in a given space. Plans are like jigsaw pieces. Understanding how the pieces fit together in a strategy complex reveals structure. That structure characterizes the inherent capabilities of an uncertain system. By adjusting the jigsaw pieces in a design loop, one can build systems with desired competencies. The paper draws on representations from combinatorial topology, Markov chains, and polyhedral cones. Triangulating between these three perspectives produces a topological language for describing concisely the capabilities of uncertain systems, analogous to concepts of reachability and controllability in other disciplines. The major nouns in this language are topological spaces. Three key theorems (numbered 1, 11, 20 in the paper) illustrate the sentences in this language: (a) Goal Attainability: There exists a strategy for attaining a particular goal from anywhere in a system if and only if the strategy complex of a slightly modified system is homotopic to a sphere. (b) Full Controllability: A system can move between any two states despite control uncertainty precisely when its strategy complex is homotopic to a sphere of dimension two less than the number of states.
    [Show full text]
  • Lemmas in Olympiad Geometry
    Lemmas In Olympiad Geometry Navneel Singhal July 14, 2016 Geometry is the art of correct reasoning from incorrectly drawn figures. - Henri Poincar´e 1 Introduction Here is a collection of some useful lemmas in geometry, some of them well known, some obscure and some by the author himself. This list of lemmas is also intended to be a list of some easier problems and also as some configurations that frequently appear on contests. Usually these lemmas will be intermediate results that will help you reach the solution in many cases, and maybe even trivialize the problem. These will help you write some really elegant solutions (and will also help you to simplify your bashes in cases of some problems that don't yield easily to synthetic solutions.) So have fun proving these lemmas and using them to the fullest advantage in your Olympiad journey! 2 Some Notations • By (XYZ) we denote the circumcircle of ∆XYZ, by (XY ) the circle with XY as diameter, and by (M; r) the circle with centre M and radius r, the radius being dropped when the context is clear. • We denote H as the orthocentre, O as the circumcentre, G as the centroid, N as the nine-point centre, I as the incentre, Na as the Nagel point and Ge as the Gergonne point of ∆ABC 3 Orthocenter related properties • O and H are isogonal conjugates. • Reflections of the orthocenter over the sides and the midpoints of the sides lie on (ABC). 1 • The O is the orthocenter of the medial triangle. a consequence is that AH=2OM.
    [Show full text]
  • Coquelicot: a User-Friendly Library of Real Analysis for Coq
    Coquelicot: A User-Friendly Library of Real Analysis for Coq Sylvie Boldo, Catherine Lelay and Guillaume Melquiond Abstract. Real analysis is pervasive to many applications, if only because it is a suitable tool for modeling physical or socio-economical systems. As such, its support is warranted in proof assis- tants, so that the users have a way to formally verify mathematical theorems and correctness of critical systems. The Coq system comes with an axiomatization of standard real numbers and a li- brary of theorems on real analysis. Unfortunately, this standard library is lacking some widely used results. For instance, power series are not developed further than their definition. Moreover, the definitions of integrals and derivatives are based on dependent types, which make them especially cumbersome to use in practice. To palliate these inadequacies, we have designed a user-friendly library: Coquelicot. An easier way of writing formulas and theorem statements is achieved by re- lying on total functions in place of dependent types for limits, derivatives, integrals, power series, and so on. To help with the proof process, the library comes with a comprehensive set of theorems that cover not only these notions, but also some extensions such as parametric integrals, two- dimensional differentiability, asymptotic behaviors. It also offers some automation for performing differentiability proofs. Moreover, Coquelicot is a conservative extension of Coq’s standard library and we provide correspondence theorems between the two libraries. We have exercised the library on several use cases: in an exam at university entry level, for the definitions and properties of Bessel functions, and for the solution of the one-dimensional wave equation.
    [Show full text]
  • Detailed Proofs of Lemmas, Theorems, and Corollaries
    Detailed Proofs of Lemmas, Theorems, and Corollaries Dahua Lin John Fisher CSAIL, MIT CSAIL, MIT A List of Lemmas, Theorems, and Theorem 4. The hierarchically bridging Markov Corollaries chain with bk < 1 for k = 0;:::;K − 1, and fk < 1 for k = 1;:::;K is ergodic. If we write the equilibrium For being self-contained, we list here all the lemmas, distribution in form of (αµ0; β1µ1; : : : ; βK µK ), then theorems, and corollaries in the main paper. (S1) µ0 equals the target distribution µ; (S2) for each k ≥ 1, and y 2 Y , µ (y) is proportional to the total Lemma 1. The joint transition matrix P given by k k + probability of its descendant target states (the target Eq.(1) in the main paper has a stationary distribution states derived by filling all its placeholders); (S3) α, in form of (αµ ; βµ ), if and only if X Y the probability of being at the target level, is given by α−1 = 1 + PK (b ··· b )=(f ··· f ). µX QB = µY ; and µY QF = µX : (1) k=1 0 k−1 1 k Corollary 2. If bk=fk+1 ≤ κ < 1 for each k = Under this condition, we have αb = βf. Further, if 1;:::;K, then α > 1 − κ. both PX and PY are both reversible, then P+ is also reversible, if and only if B Proofs µX (x)QB(x; y) = µY (y)QF (y; x); (2) Here, we provide the proofs of the lemmas and theo- for all x 2 X and y 2 Y . rems presented in the paper.
    [Show full text]
  • Coquelicot: a User-Friendly Library of Real Analysis for Coq Sylvie Boldo, Catherine Lelay, Guillaume Melquiond
    Coquelicot: A User-Friendly Library of Real Analysis for Coq Sylvie Boldo, Catherine Lelay, Guillaume Melquiond To cite this version: Sylvie Boldo, Catherine Lelay, Guillaume Melquiond. Coquelicot: A User-Friendly Library of Real Analysis for Coq. Mathematics in Computer Science, Springer, 2015, 9 (1), pp.41-62. 10.1007/s11786- 014-0181-1. hal-00860648v2 HAL Id: hal-00860648 https://hal.inria.fr/hal-00860648v2 Submitted on 18 Feb 2014 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Coquelicot: A User-Friendly Library of Real Analysis for Coq Sylvie Boldo, Catherine Lelay and Guillaume Melquiond Abstract. Real analysis is pervasive to many applications, if only because it is a suitable tool for modeling physical or socio-economical systems. As such, its support is warranted in proof assis- tants, so that the users have a way to formally verify mathematical theorems and correctness of critical systems. The Coq system comes with an axiomatization of standard real numbers and a li- brary of theorems on real analysis. Unfortunately, this standard library is lacking some widely used results. For instance, power series are not developed further than their definition.
    [Show full text]
  • Open Hengguanglidissertation.Pdf
    The Pennsylvania State University The Graduate School ELLIPTIC EQUATIONS WITH SINGULARITIES: A PRIORI ANALYSIS AND NUMERICAL APPROACHES A Dissertation in Mathematics by Hengguang Li c 2008 Hengguang Li Submitted in Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy August 2008 The dissertation of Hengguang Li was reviewed and approved∗ by the following: Victor Nistor Professor of Mathematics Dissertation Advisor, Chair of Committee Ludmil T. Zikatanov Professor of Mathematics Dissertation Advisor Jinchao Xu Distinguished Professor of Mathematics Anna L. Mazzucato Professor of Mathematics Corina S. Drapaca Professor of Engineering John Roe Professor of Mathematics Head of the Department of Mathematics ∗Signatures are on file in the Graduate School. Abstract Elliptic equations in a two- or three-dimensional bounded domain may have singu- lar solutions from the non-smoothness of the domain, changes of boundary condi- tions, and discontinuities, singularities of the coefficients. These singularities give rise to various difficulties in the theoretical analysis and in the development of nu- merical algorithms for these equations. On the other hand, most of the problems arising from physics, engineering, and other applications have singularities of this form. In addition, the study on these elliptic equations leads to good understand- ings of other types of PDEs and systems of PDEs. This research, therefore, is not only of theoretical interest, but also of practical importance. This dissertation includes a priori estimates (well-posedness, regularity, and Fredholm property) for these singular solutions of general elliptic equations in weighted Sobolev spaces, as well as effective finite element schemes and correspond- ing multigrid estimates. Applications of this theory to equations from physics and engineering will be mentioned at the end.
    [Show full text]
  • On Vertex Identifying Codes for Infinite Lattices Brendon Stanton Iowa State University
    Iowa State University Digital Repository @ Iowa State University Graduate Theses and Dissertations Graduate College 2011 On Vertex Identifying Codes For Infinite Lattices Brendon Stanton Iowa State University Follow this and additional works at: http://lib.dr.iastate.edu/etd Part of the Mathematics Commons Recommended Citation Stanton, Brendon, "On Vertex Identifying Codes For Infinite Lattices" (2011). Graduate Theses and Dissertations. Paper 12019. This Dissertation is brought to you for free and open access by the Graduate College at Digital Repository @ Iowa State University. It has been accepted for inclusion in Graduate Theses and Dissertations by an authorized administrator of Digital Repository @ Iowa State University. For more information, please contact [email protected]. On Vertex Identifying Codes For Infinite Lattices by Brendon Michael Stanton A dissertation submitted to the graduate faculty in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY Program of Study Committee: Ryan Martin, Major Professor Maria Axenovich Clifford Bergman Leslie Hogben Chong Wang Iowa State University Ames, Iowa 2011 ii DEDICATION I would like to dedicate this thesis to my parents. Without their love and support, I never would have made it this far. I would also like to thank all of my friends, family, teachers and professors who have helped me through my many years of education. iii TABLE OF CONTENTS LIST OF FIGURES . v CHAPTER 1. GENERAL INTRODUCTION . 1 1.1 Thesis Organization . .1 1.2 Definitions . .2 1.3 Literature Review . .3 1.3.1 General Bounds and Constructions . .3 1.3.2 Codes and Infinite Graphs . .7 1.3.3 Variants of r-Identifying Codes .
    [Show full text]
  • Automated Generation of Machine Verifiable and Readable Proofs: a Case Study of Tarski’S Geometry Sana Stojanovic Durdevic, Julien Narboux, Predrag Janicic
    Automated Generation of Machine Verifiable and Readable Proofs: A Case Study of Tarski’s Geometry Sana Stojanovic Durdevic, Julien Narboux, Predrag Janicic To cite this version: Sana Stojanovic Durdevic, Julien Narboux, Predrag Janicic. Automated Generation of Machine Veri- fiable and Readable Proofs: A Case Study of Tarski’s Geometry. Annals of Mathematics and Artificial Intelligence, Springer Verlag, 2015, pp.25. 10.1007/s10472-014-9443-5. hal-01091011v1 HAL Id: hal-01091011 https://hal.inria.fr/hal-01091011v1 Submitted on 4 Dec 2014 (v1), last revised 5 Nov 2015 (v2) HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Automated Generation of Machine Verifiable and Readable Proofs: A Case Study of Tarski’s Geometry ⋆ Sana Stojanovi´c Ður➒evi´c, Julien Narboux, and Predrag Janiˇci´c Faculty of Mathematics, University of Belgrade Studentski trg 16, 11000 Belgrade, Serbia ICube, UMR 7357 CNRS, University of Strasbourg Pˆole API, Bd S´ebastien Brant, BP 10413, 67412 Illkirch, France [email protected],[email protected],[email protected] Abstract. The power of state-of-the-art automated and interactive the- orem provers has reached the level at which a significant portion of non- trivial mathematical contents can be formalized almost fully automat- ically.
    [Show full text]
  • Classification of Coxeter Groups with Finitely Many Elements of A-Value 2
    Classification of Coxeter groups with finitely many elements of a-value 2 R. M. Green & Tianyuan Xu Abstract. We consider Lusztig’s a-function on Coxeter groups (in the equal parameter case) and classify all Coxeter groups with finitely many elements of a-value 2 in terms of Coxeter diagrams. 1. Introduction This paper concerns Lusztig’s a-function on Coxeter groups. The a-function was first defined for finite Weyl groups via their Hecke algebras by Lusztig in [20]; subsequently, the definition was extended to affine Weyl groups in [21] and to arbitrary Coxeter groups in [22]. The a-function is intimately related to the study of Kazhdan–Lusztig cells in Coxeter groups, the construction of Lusztig’s asymptotic Hecke algebras, and the representation theory of Hecke algebras; see, for example, [20],[21],[22], [12] and [11]. For any Coxeter group W and w ∈ W , a(w) is a non-negative integer obtained from the structure constants of the Kazhdan–Lusztig basis of the Hecke algebra of W . While a-values are often difficult to compute directly, it is known that a(w)=0 if and only if w is the identity element and that a(w) = 1 if and only if w is a non- identity element with a unique reduced word (see Proposition 2.2). If we define W to be a(n)-finite for n ∈ Z>0 if W contains finitely many elements of a-value n and a(n)-infinite otherwise, then it is also known that W is a(1)-finite if and only if each connected component of the Coxeter diagram of W is a tree and contains at most one edge of weight higher than 3 (see Proposition 2.3).
    [Show full text]