Abstract
We compare formalizations of an example from elementary category theory in the systems HOL (an implementation of Church’s classical simple type theory) and ALF (an implementation of Martin-Löf’s intuitionistic type theory). The example is a proof of coherence for monoidal categories which was extracted from a proof of normalization for monoids. It makes essential use of the identification of proofs and programs which is fundamental to intuitionistic type theory. This aspect is naturally highlighted in the ALF formalization. However, it was possible to develop a similar formalization of the proof in HOL. An interesting aspect of the developments concerned the implementation of diagram chasing. The HOL development was greatly facilitated by an implementation of support for such equational reasoning in Standard ML.
Preview
Unable to display preview. Download preview PDF.
References
Sten Agerholm. Formalizing a proof of coherence for monoidal categories. Draft manuscript, available from //ftp.ifad.dk/pub/users/sten, December 1995.
Michael Barr and Charles Wells. Category Theory for Computing Science. Prentice Hall, 1990.
Ilya Beylin and Peter Dybjer. Extracting a proof of coherence for monoidal categories from a formal proof of normalization for monoids. In Stefano Berardi and Mario Coppo, editors, TYPES’ 95, LNCS, 1996. To appear.
J. Camilleri and T. Melham. Reasoning with inductively defined relations in the HOL theorem prover. Technical Report No. 265, University of Cambridge Computer Laboratory, August 1992.
Thierry Coquand. Pattern matching with dependent types. In Proceedings of The 1992 Workshop on Types for Proofs and Programs, June 1992.
Peter Dybjer. Inductive families. Formal Aspects of Computing, 6:440–465, 1994.
M. J. C. Gordon. HOL: A proof generating system for higher order logic. In G. Birtwistle and P. A. Subrahmanyam, editors, Current Trends in Hardware Verification and Automated Theorem Proving. Springer-Verlag, 1989.
M. J. C. Gordon and T. F. Melham, editors. Introduction to HOL: A Theoremproving Environment for Higher-Order Logic. Cambridge University Press, 1993.
E. Gunter. A broader class of trees for recursive type definition for HOL. In J. J. Joyce and C. H. Seger, editors, Proceedings of the 6th International Workshop on Higher Order Logic Theorem Proving and its Applications, volume 780 of Lecture Notes in Computer Science. Springer-Verlag, 1994.
Gérard Huet and Amokrane Saibi. Constructive category theory. In Proceedings of the Joint CLICS-TYPES Workshop on Categories and Type Theory, Göteborg, January 1995.
Saunders Mac Lane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer-Verlag, New York, 1971.
Lena Magnusson. The Implementation of ALF — a Proof Editor for Martin-Löf's Monomorphic Type Theory with Explicit Substitution. PhD thesis, Chalmers T. H., 1994.
Per Martin-Löf. An intuitionistic theory of types: Predicative part. In Logic Colloquium’ 73, pages 73–118. North-Holland, 1975.
Per Martin-Löf. Constructive mathematics and computer programming. In Logic, Methodology and Philosophy of Science, 1979, pages 153–175. North-Holland, 1982.
Per Martin-Löf. Intuitionistic Type Theory. Bibliopolis, 1984.
T. Melham. A package for inductive relation definition in HOL. In M. Archer, J. J. Joyce, K. N. Levitt, and P. J. Windly, editors, Proceedings of the 1991 International Workshop on the HOL Theorem Proving System and its Applications, Davis, August 1991. IEEE Computer Society Press, 1992.
Bengt Nordström, Kent Petersson, and Jan Smith. Programming in Martin-Löf's Type Theory: an Introduction. Oxford University Press, 1990.
L. C. Paulson. A higher order implementation of rewriting. Science of Computer Programming, 3, 1983.
B. Pierce. Basic Category Theory for Computer Scientists. MIT Press, 1991.
D. Syme. A new interface for HOL — ideas, issues and implementation. In E. T. Schubert, P. J. Windley, and J. Alves-Foss, editors, Proceedings of the 8th International Workshop on Higher Order Logic Theorem Proving and its Applications, volume 971 of Lecture Notes in Computer Science. Springer-Verlag, 1995.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1996 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Agerholm, S., Beylin, I., Dybjer, P. (1996). A comparison of HOL and ALF formalizations of a categorical coherence theorem. In: Goos, G., Hartmanis, J., van Leeuwen, J., von Wright, J., Grundy, J., Harrison, J. (eds) Theorem Proving in Higher Order Logics. TPHOLs 1996. Lecture Notes in Computer Science, vol 1125. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0105394
Download citation
DOI: https://doi.org/10.1007/BFb0105394
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-61587-3
Online ISBN: 978-3-540-70641-0
eBook Packages: Springer Book Archive