Skip to main content

Type Theories from Barendregt’s Cube for Theorem Provers

  • Chapter
  • First Online:
Advances in Natural Deduction

Part of the book series: Trends in Logic ((TREN,volume 39))

  • 892 Accesses

Abstract

Anybody using a theorem prover or proof assistant will want to have confidence that the system involved will not permit the derivation of false results. On some occasions, there is more than the usual need for this confidence. This chapter discusses some logical systems based on typed lambda-calculus that can be used for this purpose. The systems are natural deduction systems, and use the propositions-as-types paradigm. Not only are the underlying systems provably consistent, but additional unproved assumptions from which a lot of ordinary mathematics can be derived can also be proved consistent. Finally, the systems have few primitive postulates that need to be programmed separately, so that it is easier for a programmer to see whether the code really does program the systems involved without errors.

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 109.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 139.99
Price excludes VAT (USA)
  • Durable hardcover 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

Notes

  1. 1.

    It is common to use * for \({\mathsf {Prop}}\), \(\Box \) for \({\mathsf {Type}}\). I formerly referred to sorts as kinds [2125].

  2. 2.

    Compare this to the system Nuprl [10], which has over one hundred primitive postulates, each of which must be programmed separately in implementation.

  3. 3.

    See [22, Sect. 6].

  4. 4.

    It can be shown that every type in a well-formed environment converts a term of this form.

  5. 5.

    The rule for \(\eta \)-reduction is that \({\lambda }x : A {\;.\;}Ux \rhd U\) if \(x\) is not free in \(U\).

  6. 6.

    As I write this, I have not yet found a general way of writing this predicate, but I have succeeded for an example which is not covariant.

  7. 7.

    The adaptation of this proof seems to work in the case of the example mentioned in the preceding footnote.

  8. 8.

    The definition will also work if \(U : {{\mathsf {Type}}}\), but this is not needed here.

References

  1. Appel, A. W., & Felty, A. P. (2000). A semantic model of types and machine instructions for proof-carrying code. In Proceedings of the 27th ACM symposium on the principles of programming languages (pp. 243–253).

    Google Scholar 

  2. Appel, A. W., & McAllester, D. (2000). An indexed model of recursive types for foundational proof-carrying code. Technical report TR-629-00, Princeton University.

    Google Scholar 

  3. Barendregt, H. P. (1992). Lambda calculi with types. In S. Abramsky, D. M. Gabbay, & T. S. E. Maibaum (Eds.), Handbook of logic in computer science (Vol. 2, pp. 117–309). Oxford: Oxford University Press.

    Google Scholar 

  4. Beeson, M. (1985). Foundations of constructive mathematics. Berlin: Springer.

    Book  Google Scholar 

  5. Berardi, S. (1989). Type dependence and constructive mathematics. Ph.D. thesis, Universita di Torino.

    Google Scholar 

  6. Berardi, S. (1993). Encoding of data types in pure construction calculus: a semantic justification. In G. Huet, & G. Plotkin (Eds.), Logical Environments (pp. 30–60). Cambridge: Cambridge University Press.

    Google Scholar 

  7. Blanqui, F. (1998). The calculus of algebraic and inductive constructions. Technical report, DEA Sémantique, preuve et Programmation.

    Google Scholar 

  8. Böhm, C., & Berarducci, A. (1985). Automatic synthesis of typed \(\Lambda \)-programs on term algebras. Theoretical Computer Science, 39(2–3), 135–154.

    Article  Google Scholar 

  9. Church, A. (1940). A formulation of the simple theory of types. Journal of Symbolic Logic, 5, 56–68.

    Article  Google Scholar 

  10. Constable, R., et al. (1986). Implementing mathematics with the Nuprl proof development system. Englewood Cliffs: Prentice-Hall.

    Google Scholar 

  11. Coquand, T., & Huet, G. (1988). The calculus of constructions. Information and Computation, 76, 95–120.

    Article  Google Scholar 

  12. Coquand, T., & Paulin, C. (1990). Inductively defined types. In P. Martin-Löf, & G. Mints (Eds.), COLOG-88: Proceedings of the international conference on computer logic held in Tallinn, December 12–16, 1988, Lecture notes in computer science (Vol. 417, pp. 50–66). Springer.

    Google Scholar 

  13. Dedekind, R. (1887). Was sind und was sollen die Zahen? (10th ed., 1965). Braunschweig: Friedr. Vieweg & Sohn.

    Google Scholar 

  14. Howard, W. A. (1980). The formulae-as-types notion of construction. In J. Roger Hindley & J. P. Seldin (Eds.), To H. B. Curry: Essays on combinatory logic, lambda calculus and formalism (pp. 479–490). New York: Academic. A version of this paper was privately circulated in 1969.

    Google Scholar 

  15. Huet, G. (1986). Formal structures for computation and deduction (1st ed.). Course notes, Carnegie-Mellon University.

    Google Scholar 

  16. Huet, G. (1987). Induction principles formalized in the calculus of constructions. In H. Ehrig, R. Kowalski, G. Levi, & U. Montanari (Eds.), TAPSOFT ’87: Proceedings of the international joint conference on theory and practice of software development, Pisa, Italy, March 23–27, 1987. Advanced seminar on foundations of innovative software development I and colloquium on trees in algebra and programming (CAAP ’87) (Vol. 1), Lecture notes in computer science (Vol. 249, pp. 276–286). Berlin: Springer.

    Google Scholar 

  17. Kalmár, L. (1940). On the possibility of definition by recursion. Acta Szeged, 9(4), 227–232.

    Google Scholar 

  18. Lorenzen, P. (1939). Die Definition durch vollständige Induktion. Monatshefte für Mathematik und Physik, 47, 356–358.

    Article  Google Scholar 

  19. Pfenning, F. & Paulin-Mohring, C. (1989). Inductively defined types in the calculus of constructions. In M. Main, A. Melton, M. Mislove, & D. Schmidt (Eds.), Proceedings of the 5th international conference on mathematical foundations of programming semantics, Tulane University, New Orleans, Louisiana, USA, March 29–April 1, 1989, Lecture notes in computer science, (Vol. 442, pp. 209–228). Springer.

    Google Scholar 

  20. Prawitz, D. (1965). Natural deduction. Stockholm: Almqvist & Wiksell.

    Google Scholar 

  21. Seldin, J. P. (1992). Coquand’s calculus of constructions: a mathematical foundation for a proof development system. Formal Aspects of Computing, 4, 425–441.

    Article  Google Scholar 

  22. Seldin, J. P. (1997). On the proof theory of Coquand’s calculus of constructions. Annals of Pure and Applied Logic, 83, 23–101.

    Article  Google Scholar 

  23. Seldin, J. P. (2000). A Gentzen-style sequent calculus of constructions with expansion rules. Theoretical Computer Science, 243, 199–215.

    Article  Google Scholar 

  24. Seldin, J. P. (2000). On lists and other abstract data types in the calculus of constructions. Mathematical Structures in Computer Science, 10, 261–276. Special issue in honor of J. Lambek.

    Article  Google Scholar 

  25. Seldin, J. P. (2001). Extensional set equality in the calculus of constructions. Journal of Logic and Computation, 11(3), 483–493. Presented at festival workshop in foundations and computations held at Heriot-Watt University, Edinburgh, July 16–18, 2000.

    Article  Google Scholar 

  26. Werner, B. (1994). Une théorie des constructions inductives. Ph.D. thesis, Université Paris 7.

    Google Scholar 

Download references

Acknowledgments

This work was supported in part by grant RGP-23391-98 from the Natural Sciences and Engineering Research Council of Canada.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jonathan P. Seldin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer Science+Business Media Dordrecht

About this chapter

Cite this chapter

Seldin, J.P. (2014). Type Theories from Barendregt’s Cube for Theorem Provers. In: Pereira, L., Haeusler, E., de Paiva, V. (eds) Advances in Natural Deduction. Trends in Logic, vol 39. Springer, Dordrecht. https://doi.org/10.1007/978-94-007-7548-0_7

Download citation

Publish with us

Policies and ethics