Abstract
A shallow semantical embedding of free logic in classical higher-order logic is presented, which enables the off-the-shelf application of higher-order interactive and automated theorem provers for the formalisation and verification of free logic theories. Subsequently, this approach is applied to a selected domain of mathematics: starting from a generalization of the standard axioms for a monoid we present a stepwise development of various, mutually equivalent foundational axiom systems for category theory. As a side-effect of this work some (minor) issues in a prominent category theory textbook have been revealed. The purpose of this article is not to claim any novel results in category theory, but to demonstrate an elegant way to “implement” and utilize interactive and automated reasoning in free logic, and to present illustrative experiments.
Similar content being viewed by others
Notes
Cf. Sect. 4.4 for further information.
Calculi for free logic are presented in [30]; see also the references therein.
The predication \( E x\) represents that x is a member of E.
The \(\star \) symbol is not to be confused with any other symbol in Isabelle/HOL.
It is well known that we could work with a much smaller set of logical connectives, see e.g. Sect. 1.4 of Andrews’s overview article [2]. The choice here closely reflects the set of primitive connectives as chosen in higher-order automated theorem provers such as LEO-II [13], Leo-III [12], and Satallax [18].
In fact, it may be safely assumed that there are no other constant symbols given in a HOL signature, except for the symbols in \(\widehat{F}\) and \(\widehat{P}\), the symbols and \(\varvec{\star _{i}}\) and the logical connectives.
The fixings introduced in \(\widehat{M}\) are not in conflict with any of the requirements regarding frames and interpretations. The existence of a valuation function V for an HOL interpretation crucially depends on how sparse the function spaces have been chosen in frame \(\{D_\alpha \}_{\alpha \in {T}}\). Andrews [1] discusses criteria that are sufficient to ensure the existence of a valuation function; in \(\widehat{M}\) these requirements are met.
In the remainder of this article, and inline with our text so far, we present the formulas of \({\text {FFOL}} \) in non-boldface font. These formulas have been encoded in Isabelle/HOL using the abbreviations as introduced in Fig. 2. In the actual source encoding, however, the usage of boldface and non-boldface is (for technical reasons) reversed.
Technical remark: We have selected CVC4 in our experiments as the default SMT solver, since we did run into errors when working with Z3. These errors can easily be reconstructed in the provided source files when switching back to Z3 as default.
An expert reviewer of this article, to whom we are very grateful, provided alternative proofs which can be fully replayed in the kernel of Isabelle.
A recipe for this translation is as follows: (i) replace all \(x \circ y\) by \(y \cdot x\), (ii) rename the variables to get them again in alphabetical order, (iii) replace \(\varphi \Box \) by \(\textit{cod }\varphi \) and \(\Box \varphi \) by \(\textit{dom }\varphi \), and finally (iv) replace \(\textit{cod }y \cong \textit{dom }x\) (resp. \(\textit{cod }y \simeq \textit{dom }x\)) by \(\textit{dom }x \cong \textit{cod }y\) (resp. \(\textit{dom }x \simeq \textit{cod }y\)).
Def. 1.11 in Freyd Scedrov: “The ordinary equality sign \(=\) [i.e., our \(\cong \)] will be used in the symmetric sense, to wit: if either side is defined then so is the other and they are equal. ...”
This could perhaps be an oversight, or it could indicate that Freyd and Scedrov actually mean the Axioms Set discussed in Sect. 5.2 below.
For this we have to inactivate the axiom that postulates that \(\star \) is an undefined/non-existing object.
The discussion in our releated conference paper [9] was before the discovery of the above constricted inconsistency issue, which tells us that the system (in our setting) can even be reduced to axioms A1, A2a, and A3a (when we assume undefined objects).
This minimal set of axioms has also been mentioned by Freyd in a note [22] and attributed to Martin Knopman. However, the proof sketch presented there seems to fail when the adapted version of A1 (with \(\simeq \)) is employed.
References
Andrews, P.: General models and extensionality. J. Symb. Log. 37(2), 395–397 (1972)
Andrews, P.: Church’s type theory. In: Zalta, E. N (ed.) The Stanford Encyclopedia of Philosophy, Summer 2018 edn. Metaphysics Research Lab, Stanford University (2018). https://plato.stanford.edu/archives/sum2018/entries/type-theory-church/
Barendregt, H., Dekkers, W., Statman, R.: Lambda Calculus with Types. Perspectives in Logic. Cambridge University Press, Cambridge (2013)
Benzmüller, C.: Automating quantified conditional logics in HOL. In: Rossi, F. (ed.) Proceedings of IJCAI-23. Beijing, China (2013)
Benzmüller, C.: Cut-elimination for quantified conditional logic. J. Philos. Log. 46, 333–353 (2016)
Benzmüller, C., Brown, C., Kohlhase, M.: Higher-order semantics and extensionality. J. Symb. Log. 69(4), 1027–1088 (2004)
Benzmüller, C., Brown, C., Kohlhase, M.: Cut-simulation and impredicativity. Log. Methods Comput. Sci. 5(1:6), 1–21 (2009)
Benzmüller, C., Miller, D.: Automation of higher-order logic. In: Siekmann, J., Gabbay, D., Woods, J. (eds.) Handbook of the History of Logic, Volume 9—Logic and Computation. Elsevier, Amsterdam (2014)
Benzmüller, C., Scott, D.: Automating free logic in Isabelle/HOL. In: Greuel, G.M., Koch, T., Paule, P., Sommese, A. (eds.) Mathematical Software—ICMS 2016, 5th International Congress, Proceedings, LNCS, vol. 9725, pp. 43–50. Springer, Berlin, Germany (2016)
Benzmüller, C., Scott, D.S.: Axiomatizing category theory in free logic. CoRR (2016). arXiv:1609.01493
Benzmüller, C., Scott, D.S.: Axiom systems for category theory in free logic. Archive of Formal Proofs (2018). https://www.isa-afp.org/entries/AxiomaticCategoryTheory.html
Benzmüller, C., Steen, A., Wisniewski, M.: Leo-III version 1.1 (system description). In: Eiter, T., Sands, D. (eds.) Logic for Programming, Artificial Intelligence, and Reasoning (LPAR)—Short Papers, Kalpa Puplications. EasyChair, Maun, Botswana (2017) (to appear)
Benzmüller, C., Sultana, N., Paulson, L.C., Theiss, F.: The higher-order prover Leo-II. J. Autom. Reason. 55(4), 389–404 (2015)
Blanchette, J.C.: Hammering Away—A Users Guide to Sledgehammer for Isabelle/HOL. Institut für Informatik, Technische Universität München (2018). https://isabelle.in.tum.de/doc/sledgehammer.pdf. With contributions from Lawrence C. Paulson
Blanchette, J.C., Böhme, S., Paulson, L.C.: Extending Sledgehammer with SMT solvers. J. Autom. Reason. 51(1), 109–128 (2013)
Blanchette, J.C., Nipkow, T.: Nitpick: a counterexample generator for higher-order logic based on a relational model finder. In: Kaufmann, M., Paulson, L.C. (eds.) Interactive Theorem Proving, First International Conference, ITP 2010, Edinburgh, UK, July 11–14, 2010. Proceedings, Lecture Notes in Computer Science, vol. 6172, pp. 131–146. Springer (2010)
Blanchette, J.C., Popescu, A., Wand, D., Weidenbach, C.: More SPASS with Isabelle—superposition with hard sorts and configurable simplification. In: Beringer, L., Felty, A.P. (eds.) Interactive Theorem Proving—Third International Conference, ITP 2012, Princeton, NJ, USA, August 13–15, 2012. Proceedings, Lecture Notes in Computer Science, vol. 7406, pp. 345–360. Springer (2012)
Brown, C.E.: Satallax: an automatic higher-order prover. In: Gramlich, B., Miller, D., Sattler, U. (eds.) Automated Reasoning—6th International Joint Conference, IJCAR 2012, Manchester, UK, June 26–29, 2012. Proceedings, Lecture Notes in Computer Science, vol. 7364, pp. 111–117. Springer (2012)
Church, A.: A formulation of the simple theory of types. J. Symb. Log. 5, 56–68 (1940)
Deters, M., Reynolds, A., King, T., Barrett, C.W., Tinelli, C.: A tour of CVC4: How it works, and how to use it. In: Claessen, K., Kuncak, V. (eds.) Formal Methods in Computer-Aided Design, FMCAD 2014, Lausanne, Switzerland, October 21–24, 2014, p. 7. IEEE (2014)
de Moura, L.M., Bjørner, N.: Z3: An efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J. (eds.) Tools and Algorithms for the Construction and Analysis of Systems, 14th International Conference, TACAS 2008, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2008, Budapest, Hungary, March 29–April 6, 2008. Proceedings, Lecture Notes in Computer Science, vol. 4963, pp. 337–340. Springer (2008)
Freyd, P.: Amplifications, Diminutions, Subscorings for Categories, Allegories (2016). University of Pennsylvania. Unpublished. https://www.math.upenn.edu/~pjf/amplifications.pdf. Accessed Aug 2016
Freyd, P., Scedrov, A.: Categories. North Holland, Allegories (1990)
Kovács, L., Voronkov, A.: First-order theorem proving and vampire. In: Sharygina, N., Veith, H. (eds.) Computer Aided Verification—25th International Conference, CAV 2013, Saint Petersburg, Russia, July 13–19, 2013. Proceedings, Lecture Notes in Computer Science, vol. 8044, pp. 1–35. Springer (2013)
Lambert, K.: The definition of e(xistence)! in free logic. In: Abstracts: The International Congress for Logic, Methodology and Philosophy of Science. Stanford University Press, Stanford (1960)
Lambert, K.: Free Logic: Selected Essays. Cambridge University Press, Cambridge (2002)
MacLane, S.: Groups, categories and duality. Proc. Nat. Acad. Sci. 34(6), 263–267 (1948)
Makarenko, I.: Automatisierung von Freier Logik in Logik Höherer Stufe. Bachelorarbeit. Freie Universität Berlin, Institut für Informatik (2016)
Nipkow, T., Paulson, L.C., Wenzel, M.: Isabelle/HOL: A Proof Assistant for Higher-Order Logic. No. 2283 in LNCS. Springer (2002)
Nolt, J.: Free logic. In: Zalta, E.N. (ed.) The Stanford Encyclopedia of Philosophy, Fall 2018 edn. Metaphysics Research Lab, Stanford University (2018). https://plato.stanford.edu/archives/fall2018/entries/logic-free/
Schulz, S.: System description: E 1.8. In: McMillan, K.L., Middeldorp, A., Voronkov, A. (eds.) Logic for Programming, Artificial Intelligence, and Reasoning—19th International Conference, LPAR-19, Stellenbosch, South Africa, December 14–19, 2013. Proceedings, Lecture Notes in Computer Science, vol. 8312, pp. 735–743. Springer (2013). http://dx.doi.org/10.1007/978-3-642-45221-5
Scott, D.: Existence and description in formal logic. In: Schoenman, R. (ed.) Bertrand Russell: Philosopher of the Century, pp. 181–200. George Allen & Unwin, London (1967) (Reprinted with additions in: Philosophical Application of Free Logic, edited by K. Lambert. Oxford Universitry Press, 1991, pp. 28–48)
Scott, D.: Identity and existence in intuitionistic logic. In: Fourman, M., Mulvey, C., Scott, D. (eds.) Applications of Sheaves: Proceedings of the Research Symposium on Applications of Sheaf Theory to Logic, Algebra, and Analysis, Durham, July 9–21, 1977, Lecture Notes in Mathematics, vol. 752, pp. 660–696. Springer, Berlin, Heidelberg (1979)
Sutcliffe, G., Benzmüller, C.: Automated reasoning in higher-order logic using the TPTP THF infrastructure. J. Formaliz. Reason. 3(1), 1–27 (2010)
Wisniewski, M., Steen, A., Benzmüller, C.: TPTP and beyond: representation of quantified non-classical logics. In: Benzmüller, C., Otten, J. (eds.) ARQNL 2016. Automated Reasoning in Quantified Non-Classical Logics, vol. 1770, pp. 51–65. CEUR Workshop Proceedings. http://ceur-ws.org (2016)
Acknowledgements
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Benzmüller received funding from the German National Research Foundation DFG under Heisenberg grant Towards Computational Metaphysics (BE 2501/9-2) and from VolkswagenStiftung under grant Consistent Rational Argumentation in Politics (CRAP).
Electronic supplementary material
Below is the link to the electronic supplementary material.
Rights and permissions
About this article
Cite this article
Benzmüller, C., Scott, D.S. Automating Free Logic in HOL, with an Experimental Application in Category Theory. J Autom Reasoning 64, 53–72 (2020). https://doi.org/10.1007/s10817-018-09507-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10817-018-09507-7