Skip to main content

A comparison of HOL and ALF formalizations of a categorical coherence theorem

  • Conference paper
  • First Online:
Theorem Proving in Higher Order Logics (TPHOLs 1996)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1125))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Sten Agerholm. Formalizing a proof of coherence for monoidal categories. Draft manuscript, available from //ftp.ifad.dk/pub/users/sten, December 1995.

    Google Scholar 

  2. Michael Barr and Charles Wells. Category Theory for Computing Science. Prentice Hall, 1990.

    Google Scholar 

  3. 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.

    Google Scholar 

  4. 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.

    Google Scholar 

  5. Thierry Coquand. Pattern matching with dependent types. In Proceedings of The 1992 Workshop on Types for Proofs and Programs, June 1992.

    Google Scholar 

  6. Peter Dybjer. Inductive families. Formal Aspects of Computing, 6:440–465, 1994.

    Article  MATH  Google Scholar 

  7. 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.

    Google Scholar 

  8. M. J. C. Gordon and T. F. Melham, editors. Introduction to HOL: A Theoremproving Environment for Higher-Order Logic. Cambridge University Press, 1993.

    Google Scholar 

  9. 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.

    Google Scholar 

  10. 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.

    Google Scholar 

  11. Saunders Mac Lane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer-Verlag, New York, 1971.

    Google Scholar 

  12. 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.

    Google Scholar 

  13. Per Martin-Löf. An intuitionistic theory of types: Predicative part. In Logic Colloquium’ 73, pages 73–118. North-Holland, 1975.

    Google Scholar 

  14. Per Martin-Löf. Constructive mathematics and computer programming. In Logic, Methodology and Philosophy of Science, 1979, pages 153–175. North-Holland, 1982.

    Google Scholar 

  15. Per Martin-Löf. Intuitionistic Type Theory. Bibliopolis, 1984.

    Google Scholar 

  16. 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.

    Google Scholar 

  17. Bengt Nordström, Kent Petersson, and Jan Smith. Programming in Martin-Löf's Type Theory: an Introduction. Oxford University Press, 1990.

    Google Scholar 

  18. L. C. Paulson. A higher order implementation of rewriting. Science of Computer Programming, 3, 1983.

    Google Scholar 

  19. B. Pierce. Basic Category Theory for Computer Scientists. MIT Press, 1991.

    Google Scholar 

  20. 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.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Gerhard Goos Juris Hartmanis Jan van Leeuwen Joakim von Wright Jim Grundy John Harrison

Rights and permissions

Reprints 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

Publish with us

Policies and ethics