Abstract
The relationship between program testing and Martin-Löf’s meaning explanations for intuitionistic type theory is investigated. The judgements of intuitionistic type theory are viewed as conjectures which can be tested in order to be corroborated or refuted. This point of view provides a new perspective on the meaning of hypothetical judgements, since tests for such judgements need methods for generating inputs. Among other things, we need to generate function input. The continuity principle is invoked and the impredicativity of types of functionals is rejected. Furthermore, we provide testing semantics only for decidable identity types. At the end we turn to impredicative type theories, and discuss possible testing semantics for such theories. In particular we propose that testing for impredicative type theory should be based on the evaluation of open expressions. This is in contrast to our testing semantics for Martin-Löf’s predicative intuitionistic type theory which is based on the evaluation of closed expressions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Aczel, P. 1977a. An introduction to inductive definitions. In Handbook of mathematical logic, ed. J. Barwise, 739–782. Amsterdam: North-Holland.
Aczel, P. 1977b. The strength of Martin-Löf’s type theory with one universe. In Proceedings of the symposium on mathematical logic (Oulu 1974), ed. S. Miettinen and J. Väänanen, 1–32. Report No 2 of Department of Philosophy, University of Helsinki.
Aczel, P. 1980. Frege structures and the notions of proposition, truth, and set. In The kleene symposium, ed. J. Barwise, H.J. Keisler, and K. Kunen, 31–59. Amsterdam: North-Holland.
Allen, S.F. 1987a A non-type-theoretic definition of Martin-Löf’s types. In Proceedings of second IEEE symposium on logic in computer Science, New York, 215–224.
Allen, S.F. 1987b. A Non-type-theoretic semantics for type-theoretic language. Ph.D. thesis, Cornell University.
Beeson, M. 1982. Recursive models for constructive set theories. Annals of Mathematical Logic 23: 127–178.
Bertot, Y., and P. Castéran. 2004. Interactive theorem proving and program development Coq’Art: The calculus of inductive constructions, Texts in theoretical computer science. An EATCS series. Berlin/New York: Springer.
Claessen, K., and J. Hughes. 2000. QuickCheck: A lightweight tool for random testing of Haskell programs. In Proceedings of the ACM SIGPLAN international conference on functional programming, Montreal, ACM SIGPLAN notices, vol. 35.9, 268–279. ACM Press.
Coquand, T. 1995. A semantics of evidence for classical arithmetic. Journal of Symbolic Logic 60(1): 325–337.
Coquand, T., and G. Huet. 1988. The calculus of constructions. Information and Computation 76: 95–120.
Dummett, M. 1973. The philosophical basis of intuitionistic logic. In Logic colloquium ’73, ed. H.E. Rose and J.C. Shepherdson, 5–40. Amsterdam: North Holland.
Dybjer, P. 2000. A general formulation of simultaneous inductive–recursive definitions in type theory. Journal of Symbolic Logic 65(2): 525–549.
Dybjer, P., and A. Setzer. 1999. A finite axiomatization of inductive–recursive definitions. In Typed lambda calculi and applications, Lecture notes in computer science, vol. 1581, ed. J.-Y. Girard, 129–146. Berlin/London: Springer.
Dybjer, P., and A. Setzer. 2006. Indexed induction–recursion. Journal of Logic and Algebraic Programming 66: 1–49.
Girard, J.-Y. 1971. Une extension de l’interpretation de Gödel à l’analyse, et son application à l’èlimination des coupures dans l’analyse et la théorie des types. In Proceedings 2nd Scandinavian logic symposium, ed. J.E. Fenstad, 63–92. Amsterdam: North Holland.
Gödel, K. 1958. Über eine bisher noch nicht benützte Erweiterung des finites Standpunktes. Dialectica 12: 280–287.
Hayashi, S. XXXX. PA/LCM home page. http://www.shayashi.jp/PALCM/
Hayashi, S., and H. Nakano. 1989. PX: A computational logic. Cambridge: MIT.
Hayashi, S., R. Sumitomo, and K. Shii. 2002. Towards the animation of proofs – Testing proofs by examples. Theoretical Computer Science 272(1–2): 177–195.
Hedberg, M. 1998. A coherence theorem for Martin-Löf’s type theory. Journal of Functional Programming 8(4): 413–436.
Kleene, S.C. 1952. Introduction to meta-mathematics. Amsterdam: North-Holland.
Knuth, D. 1977. Notes on the van Emde Boas construction of priority deques: An instructive use of recursion. Memo sent to Peter van Emde Boas, see http://www-cs-faculty.stanford.edu/~uno/faq.html.
Lorenzen, P., and K. Lorenz. 1978. Dialogische logik. Darmstadt: Wissenschaftliche Buchgesellschaft.
Martin-Löf, P. 1971. A theory of types. Preprint, Stockholm University.
Martin-Löf, P. 1975. An intuitionistic theory of types: Predicative part. In Logic colloquium ‘73, ed. H.E. Rose and J.C. Shepherdson, 73–118. Amsterdam: North Holland.
Martin-Löf, P. 1982. Constructive mathematics and computer programming. In Logic, methodology and philosophy of science, VI, 1979, ed. L.J. Cohen et al., 153–175. Amsterdam: North-Holland.
Martin-Löf, P. 1984. Intuitionistic type theory: Notes by giovanni sambin of a series of lectures given in Padua, June 1980. Napoli: Bibliopolis.
Martin-Löf, P. 1996. On the meaning of the logical constants and the justifications of the logical laws. Nordic Journal of Philosophical Logic 1(1): 11–60.
Martin-Löf, P. 1998. An intuitionistic theory of types. In Twenty-five years of constructive type theory, ed. G. Sambin and J. Smith. New York: Oxford University Press. Reprinted version of an unpublished report from 1972.
Miquel, A. 2010. The reasonable effectiveness of mathematical proof. In Anachronismes logiques, ed. M. Quatrini and S. Tronon. Logique, Langage, Sciences, Philosophie. Publications de la Sorbonne. To appear.
Nordström, B., K. Petersson, and J.M. Smith. 1989. Programming in Martin-Löf’s type theory – An introduction. New York: Oxford University Press.
Paulin-Mohring, C. 1993. Inductive definitions in the system Coq – Rules and properties. In Proceedings typed λ-calculus and applications, Lecture notes in computer science, 328–245. Berlin: Springer.
Popper, K. 1963. Conjectures and refutations: The growth of scientific knowledge. London: Routledge.
Prawitz, D. Truth and proof in intuitionism. This volume.
Prawitz, D. 1977. Meaning and proofs: On the conflict between classical and intuitionistic logic. Theoria 43: 11–40.
Runciman, C., M. Naylor, and F. Lindblad. 2008. SmallCheck and Lazy SmallCheck – Automatic exhaustive testing for small values. In Proceedings of the first ACM SIGPLAN symposium on Haskell,Victoria, 37–48
Setzer, A. 2000. Extending Martin-Löf type theory by one Mahlo universe. Archive for Mathematical Logic 39(3): 155–181.
Smith, J. 1984. An interpretation of Martin-Löf’s type theory in a type-free theory of propositions. Journal of Symbolic Logic 49(3): 730–753.
Acknowledgements
I would like to express my deep gratitude to Per Martin-Löf for his profound ideas and for many discussions and much help over the years. The present paper owes a lot to these discussionson, for example, on the nature of the meaning explanations, on the distinction between the pre-mathematical and the meta-mathematical, and on the meaning of induction.
I would also like to thank Erik Palmgren and an anonymous referee for useful feedback on a preliminary version of this paper. The paper is based on a talk given several times. I am grateful for interesting comments by many people who attended these talks, for example, Andreas Abel, Peter Aczel, Pierre Clairambault, Thierry Coquand, Peter Hancock, Bengt Nordström, Andrew Pitts, Gordon Plotkin, Michael Rathjen, Dag Prawitz, Peter Schroeder-Heister, Helmut Schwichtenberg, Anton Setzer, and Sören Stenlund.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer Science+Business Media Dordrecht.
About this chapter
Cite this chapter
Dybjer, P. (2012). Program Testing and the Meaning Explanations of Intuitionistic Type Theory. In: Dybjer, P., Lindström, S., Palmgren, E., Sundholm, G. (eds) Epistemology versus Ontology. Logic, Epistemology, and the Unity of Science, vol 27. Springer, Dordrecht. https://doi.org/10.1007/978-94-007-4435-6_11
Download citation
DOI: https://doi.org/10.1007/978-94-007-4435-6_11
Published:
Publisher Name: Springer, Dordrecht
Print ISBN: 978-94-007-4434-9
Online ISBN: 978-94-007-4435-6
eBook Packages: Humanities, Social Sciences and LawPhilosophy and Religion (R0)