Skip to main content

Disjoint Sums over Type Classes in HOL

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

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

Included in the following conference series:

  • 428 Accesses

Abstract

The standard versions of HOL only support disjoint sums over finite families of types. This paper introduces disjoint sums over type classes containing possibly a countably infinite number of monomorphic types. The result is a monomorphic sum type together with an overloaded function which represents the family of injections. Model-theoretic reasoning shows the soundness of the construction.

In order to axiomatize the disjoint sums in HOL, datatypes are introduced which mirror the syntactic structure of type classes. The association of a type with its image in the sum type is represented by a HOL function carrier. This allows a translation of the set-theoretic axiomatization of disjoint sums to HOL.

As an application, a sum type U is presented which contains isomorphic copies of many familiar HOL types. Finally, a Z universe is constructed which can server as the basis of a HOL model of the Z schema calculus.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. J.-Y. Girard. The system F of variable types, fifteen years later. Theoretical Computer Science, 45:159–192, 1986.

    Article  MathSciNet  MATH  Google Scholar 

  2. M.J.C. Gordon. Set Theory, Higher Order Logic or Both? In Gunter and Felty A. Felty, editors. Proceedings of the 10th International Conference on Theorem Proving in Higher Order Logics (TPHOLs’97), LNCS 1275. Springer-Verlag, 1997 [4], pages 191–201.

    Google Scholar 

  3. M.J.C. Gordon and T.F. Melham. Introduction to HOL. Cambridge University Press, 1993.

    Google Scholar 

  4. E. L. Gunter and A. Felty, editors. Proceedings of the 10th International Conference on Theorem Proving in Higher Order Logics (TPHOLs’97), LNCS 1275. Springer-Verlag, 1997.

    Book  Google Scholar 

  5. M.C. Henson and S. Reeves. A logic for the schema calculus. In J. P. Bowen, A. Fett, and M. G. Hinchey, editors, ZUM’98: The Z Formal Specification Notation, LNCS 1493, pages 172–191. Springer-Verlag, 1998.

    Google Scholar 

  6. S.P. Jones and J. Hughes, editors. HASKELL98: A Non-strict, Purely Functional Language, February 1999. On-line available via http://haskell.org/.

  7. J.P. Bowen and M.J.C. Gordon. Z and HOL. In J.P. Bowen and J.A. Hall, editors, Z User Workshop, Cambridge 1994, Workshops in Computing, pages 141–167. Springer-Verlag, 1994.

    Google Scholar 

  8. Kolyang, T. Santen, and B. Wolff. A Structure Preserving Encoding of Z in Isabelle/HOL. In J. von Wright, J. Grundy, and J. Harrison, editors, Theorem Proving in Higher Order Logics — 9th International Conference, LNCS 1125, pages 283–298. Springer Verlag, 1996.

    Chapter  Google Scholar 

  9. L. Lamport and L.C. Paulson. Should your specification language be typed? Technical Report 425, Computer Laboratory, University of Cambridge, May 1997.

    Google Scholar 

  10. Zhaohui Luo. A higher-order calculus and theory abstraction. Information and Computation, 90(1):107–137, 1991.

    Article  MathSciNet  MATH  Google Scholar 

  11. L.C. Paulson. A fixedpoint approach to implementing (co)inductive definitions. In A. Bundy, editor, Automated Deduction — CADE-12, LNAI 814, pages 148–161. Springer-Verlag, 1994.

    Google Scholar 

  12. L.C. Paulson. Isabelle: A Generic Theorem Prover. LNCS 828. Springer-Verlag, 1994.

    Book  MATH  Google Scholar 

  13. F. Regensburger. HOLCF: Eine konservative Erweiterung von HOL um LCF. Dissertation an der Technischen Universität München, 1994.

    Google Scholar 

  14. J.M. Spivey. Understanding Z: a specification language and its formal semantics. Cambridge Tracts in Theoretical Computer Science 3. Cambridge University Press, 1988.

    Google Scholar 

  15. R. Turner. Sets, types and typechecking. Journal of Logic and Computation, To Appear.

    Google Scholar 

  16. M. Wenzel. Type classes and overloading in higher-order logic. In Gunter and Felty A. Felty, editors. Proceedings of the 10th International Conference on Theorem Proving in Higher Order Logics (TPHOLs’97), LNCS 1275. Springer-Verlag, 1997 [4], pages 307–322.

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Völker, N. (1999). Disjoint Sums over Type Classes in HOL. In: Bertot, Y., Dowek, G., Théry, L., Hirschowitz, A., Paulin, C. (eds) Theorem Proving in Higher Order Logics. TPHOLs 1999. Lecture Notes in Computer Science, vol 1690. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48256-3_2

Download citation

  • DOI: https://doi.org/10.1007/3-540-48256-3_2

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-66463-5

  • Online ISBN: 978-3-540-48256-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics