Extensional Concepts in Intensional Type Theory

Total Page:16

File Type:pdf, Size:1020Kb

Extensional Concepts in Intensional Type Theory Extensional concepts in intensional type theory Martin Hofmann Do ctor of Philosophy University of Edinburgh Abstract Theories of dep endent types have b een prop osed as a foundation of constructive mathematics and as a framework in which to construct certied programs In these applications an imp ortant role is played by identity types which internalise equality and therefore are essential for accommo dating pro ofs and programs in the same formal system This thesis attempts to reconcile the two dierent ways that type theories deal with identity types In extensional type theory the prop ositional equality induced by the identity types is identied with denitional equality ie conversion This renders typechecking and wellformedness of prop ositions undecidable and leads to nontermination in the presence of universes In intensional type theory prop os itional equality is coarser than denitional equality the latter b eing conned to denitional expansion and normalisation Then typechecking and wellformedness are decidable and this variant is therefore adopted by most implementations However the identity type in intensional type theory is not p owerful enough for formalisation of mathematics and program development Notably it do es not identify p ointwise equal functions functional extensionality and provides no means of redening equality on a type as a given relation ie quotient types We call such capabilities extensional concepts Other extensional concepts of interest are uniqueness of pro ofs and more sp ecically of equality pro ofs subset types and prop ositional extensionalitythe identication of equivalent prop ositions In this work we investigate to what extent these extensional concepts may b e added to intensional type theory without sacricing decidability and existence of canonical forms The metho d we use is the translation of identity types into equivalence relations dened by induction on the type structure In this way type theory with i Abstract ii extensional concepts can b e understo o d as a highlevel language for working with equivalence relations instead of equality Such translations of type theory into itself turn out to b e b est describ ed using categorical mo dels of type theory We thus b egin with a thorough treatment of categorical mo dels with particular emphasis on the interpretation of typetheoretic syntax in such mo dels We then show how pairs of types and predicates can b e organised into a mo del of type theory in which subset types are available and in which any two pro ofs of a prop osition are equal This mo del has applications in the areas of program extraction from pro ofs and mo dules for functional programs For us its main purp ose is to clarify the idea of syntactic translations via categorical mo del constructions The main result of the thesis consists of the construction of two mo dels in which functional extensionality and quotient types are available In the rst one types are mo delled by types together with prop ositionvalued partial equivalence relations This mo del is rather simple and in addition provides subset types and prop ositional extensionality However it do es not furnish prop er dep endent types such as vectors or matrices We try to overcome this disadvantage by using another mo del based on families of typevalued equivalence relations which is however much more complicated and validates certain conversion rules only up to prop ositional equality We illustrate the use of these mo dels by several small examples taken from b oth formalised mathematics and program development We also establish various syntactic prop erties of prop ositional equality includ ing a pro of of the undecidability of typing in extensional type theory and a corres p ondence b etween derivations in extensional type theory and terms in intensional type theory with extensional concepts added Furthermore we settle armatively the hitherto op en question of the indep endence of unicity of equality pro ofs in intensional type theory which implies that the addition of pattern matching to intensional type theory do es not yield a conservative extension Acknowledgements This thesis would not have app eared without the generous help and supp ort of many p eople to whom I wish to express my deep thanks here The rst p erson to thank here is my sup ervisor Don Sannella He has taught me a lot on research in general and in particular on writing in our weekly meetings He created a wonderful environment which allowed me to fo cus on my research only without b eing o ccupied by nancial or administrative problems His detailed comments on an earlier draft of this thesis resulted in imp ortant improvements My second sup ervisor Gordon Plotkin has provided valuable guidance in discussions and in particular has suggested and made p ossible a visit to Gothenburg during which the idea for this thesis work arose Terry Stroup my former sup ervisor from Erlangen brought me to Edinburgh and lo oked after me during my rst year of studies I am grateful to Ro d Burstall and Andy Pitts for agreeing to b e examiners of this thesis Ro d Burstall was a step sup ervisor as he once put it during the whole p erio d of this research and help ed me a lot b oth p ersonally and scientically My friend and colleague Thorsten Altenkirch provided invaluable input to my research and moral supp ort in many sometimes lively discussions He carefully pro ofread an earlier draft and suggested ma jor improvements I also owe him thanks for introducing me to Bath Street Housing Co op the place where I sp ent my rst two years in Edinburgh My thanks go to the Co op members to o for making me feel at home in Scotland Thomas Streicher help ed me in many conversations made imp ortant sugges tions and was a wonderful host during several visits of mine to Munich iii Acknowledgements iv The LFCS provided an excellent environment for scientic work The courses the visitors the computing facilities and the administration to ok away most of the diculties other young researchers have to cop e with Thanks for stimulating conversations and suggestions on the sub ject of this thesis go to David Aspinall Adriana Compagnoni Thierry Co quand Wolfgang Degen Peter Dyb jer Bart Jacobs Per MartinLof Zhaohui Luo James Mc Kinna Uwe Nestmann Benjamin Pierce Alex Simpson Martin Steen Makoto Takeyama and the members of the Edinburgh Lego Club Prof Ulrich Herzog and his colleagues have provided a desk and a computer and b efore all a very friendly atmosphere during two p erio ds which I sp ent in Erlangen I wish to acknowledge nancial supp ort by Edinburgh University the DAAD and the Europ ean Union HCM programme contract number ERBCHBICT My very sp ecial thanks go to my wife Annette for her love and patience during our geographical separation Declaration This thesis was comp osed by myself and the work rep orted herein is my own unless explicitly declared otherwise Large parts of the material in Chapter have already b een published in Sect Sect together with Th Strei cher Sect v Table of Contents Introduction Denitional and prop ositional equality Extensional concepts Metho d The use of categorical mo dels Syntactic mo dels Applications Application to machineassisted theorem proving Overview Syntax and semantics of dep endent types Syntax for a core calculus Raw syntax Judgements Notation Derived rules and metatheoretic prop erties Highlevel syntax Telescopes Elements of telescop es and context morphisms vi Table of Contents vii Denitions and substitution Further type formers Unit type types Function and cartesian pro duct types The Calculus of Constructions Universes Quotient types Abstract semantics of type theory Syntactic categories with attributes Type constructors Interpreting the syntax Partial interpretation Soundness of the interpretation Discussion and related work Syntactic prop erties of prop ositional equality Intensional type theory Substitution Uniqueness of identity Functional extensionality Extensional type theory Comparison with Troelstras presentation Undecidability of extensional type theory Interpreting extensional type theory in intensional type theory Table of Contents viii An extension of TT for which the interpretation in TT is I E surjective Conservativity of TT over TT E I Discussion and extensions Conservativity of quotient types and functional extensionality Related work Pro of irrelevance and subset types The renement approach The deliverables approach The deliverables mo del
Recommended publications
  • The Use-Mention Distinction
    The Use-Mention Distinction The use-mention distinction is traditionally understood as the distinction between using an expression (or phrase, etc.) and mentioning it. Quoting from Wikipedia encyclopedia: In written language, mentioned words or phrases often appear between quotation marks or in italics. Used words or phrases, being more common than mentioned ones, do not have any typographic distinction. Making a statement mention itself is an interesting way of producing logical paradoxes. Violation of the use-mention distinction can produce sentences that sound and appear similar to the original, but have an entirely different meaning. For example, "The use-mention distinction" is not "strictly enforced here". is literally true because the two phrases in it are not the same. The general property of terms changing their reference depending on the context was called suppositio (substitution) by classical logicians. It describes how one has to substitute a term in a sentence based on its meaning—that is, what referent the term has. In general, a term can be used in several ways. For nouns, they are: • Properly with a real referent: “That is my cow” (assuming it exists). • Properly with a generic referent: “Any cow gives milk.” • Properly but with a non-real referent: “Ulysses’s cow was big.” • Improperly by way of metaphor: “Your sister is a cow”. • As a pure term: “Cow has only three letters”. The last use is what gives rise to the use-mention distinction. However, a lot of misunderstanding and many paradoxes arise also from confusing different ways in which a meaningful expression can be used.
    [Show full text]
  • INTENTIONALITY Past and Future VIBS
    INTENTIONALITY Past and Future VIBS Volume 173 Robert Ginsberg Founding Editor Peter A. Redpath Executive Editor Associate Editors G. John M. Abbarno Matti Häyry Mary-Rose Barral Steven V. Hicks Gerhold K. Becker Richard T. Hull Raymond Angelo Belliotti Mark Letteri Kenneth A. Bryson Vincent L. Luizzi C. Stephen Byrum Alan Milchman H. G. Callaway George David Miller Robert A. Delfino Alan Rosenberg Rem B. Edwards Arleen L. F. Salles Andrew Fitz-Gibbon John R. Shook Francesc Forn i Argimon Eddy Souffrant William Gay Tuija Takala Dane R. Gordon Anne Waters J. Everet Green John R. Welch Heta Aleksandra Gylling Thomas F. Woods a volume in Cognitive Science CS Francesc Forn i Argimon, Editor INTENTIONALITY Past and Future Edited by Gábor Forrai and George Kampis Amsterdam - New York, NY 2005 Cover Design: Studio Pollmann The paper on which this book is printed meets the requirements of “ISO 9706:1994, Information and documentation - Paper for documents - Requirements for permanence”. ISBN: 90-420-1817-8 ©Editions Rodopi B.V., Amsterdam - New York, NY 2005 Printed in the Netherlands CONTENTS Preface vii List of Abbreviations ix ONE The Necessity and Nature of Mental Content 1 LAIRD ADDIS TWO Reading Brentano on the Intentionality of the Mental 15 PHILIP J. BARTOK THREE Emotions, Moods, and Intentionality 25 WILLIAM FISH FOUR Lockean Ideas as Intentional Contents 37 GÁBOR FORRAI FIVE Normativity and Mental Content 51 JUSSI HAUKIOJA SIX The Ontological and Intentional Status of Fregean Senses: An Early Account of External Content 63 GREG JESSON
    [Show full text]
  • Redalyc.Structural Isomorphism of Meaning and Synonymy
    Computación y Sistemas ISSN: 1405-5546 [email protected] Instituto Politécnico Nacional México Duží, Marie Structural Isomorphism of Meaning and Synonymy Computación y Sistemas, vol. 18, núm. 3, julio-septiembre, 2014, pp. 439-453 Instituto Politécnico Nacional Distrito Federal, México Available in: http://www.redalyc.org/articulo.oa?id=61532067003 How to cite Complete issue Scientific Information System More information about this article Network of Scientific Journals from Latin America, the Caribbean, Spain and Portugal Journal's homepage in redalyc.org Non-profit academic project, developed under the open access initiative Structural Isomorphism of Meaning and Synonymy Marie Duží VSB-Technical University Ostrava, Czech Republic [email protected] Abstract. In this paper I am going to deal with the questions like what the meaning of an expression phenomenon of synonymy from the logical point of is and how fine-grained meanings should be. view. In Transparent Intensional Logic (TIL), which is This is a pressing issue, because many my background theory, the sense of an expression is paradoxes and invalid inferences arise from a too an algorithmically structured procedure detailing what coarse-grained analysis of premises. The purpose operations to apply to what procedural constituents to arrive at the object (if any) denoted by the expression. of logic is to differentiate between valid and Such procedures are rigorously defined as TIL invalid arguments so that all valid arguments be constructions. In this new orthodoxy of structured provable and invalid ones rejected. This in turn is meanings and procedural semantics we encounter the closely connected with the granularity of problem of the granularity of procedure individuation.
    [Show full text]
  • (In)Definiteness, Polarity, and the Role of Wh-Morphology in Free Choice
    Journal of Semantics 23: 135–183 doi:10.1093/jos/ffl001 Advance Access publication April 4, 2006 (In)Definiteness, Polarity, and the Role of wh-morphology in Free Choice ANASTASIA GIANNAKIDOU University of Chicago LISA LAI-SHEN CHENG Leiden University Abstract In this paper we reconsider the issue of free choice and the role of the wh- morphology employed in it. We show that the property of being an interrogative wh- word alone is not sufficient for free choice, and that semantic and sometimes even morphological definiteness is a pre-requisite for some free choice items (FCIs) in certain languages, e.g. in Greek and Mandarin Chinese. We propose a theory that explains the polarity behaviour of FCIs cross-linguistically, and allows indefinite (Giannakidou 2001) as well as definite-like FCIs. The difference is manifested as a lexical distinction in English between any (indefinite) and wh-ever (definite); in Greek it appears as a choice between a FCI nominal modifier (taking an NP argument), which illustrates the indefinite option, and a FC free relative illustrating the definite one. We provide a compositional analysis of Greek FCIs in both incarnations, and derive in a parallel manner the Chinese FCIs. Here the definite versus indefinite alternation is manifested in the presence or absence of dou , which we take to express the maximality operator. It is thus shown that what we see in the morphology of FCIs in Greek is reflected in syntax in Chinese. Our analysis has important consequences for the class of so-called wh- indeterminates. In the context of current proposals, free choiceness is taken to come routinely from interrogative semantics, and wh-indeterminates are treated as question words which can freely become FCIs (Kratzer and Shimoyama 2002).
    [Show full text]
  • Metaphysics and Natural Kinds: Slingshots, Fundamentality, and Causal Structure
    METAPHYSICS AND NATURAL KINDS: SLINGSHOTS, FUNDAMENTALITY, AND CAUSAL STRUCTURE By ANDREW LEE MCFARLAND Submitted to the graduate degree program in the Department of Philosophy and the Graduate Faculty of the University of Kansas in partial fulfillment of the requirements for the degree of Doctor of Philosophy. ________________________________ Chair: John Symons ________________________________ John Bricke ________________________________ Armin Schulz ________________________________ Clif Pye ________________________________ Philippe Huneman Date Defended: May 16, 2014 The Dissertation Committee for Andrew Lee McFarland certifies that this is the approved version of the following dissertation: METAPHYSICS AND NATURAL KINDS: SLINGSHOTS, FUNDAMENTALITY, AND CAUSAL STRUCTURE ________________________________ JOHN SYMONS Date approved: May 16, 2014 ii DISSERTATION ABSTRACT Metaphysics and Natural Kinds: Slingshots, Fundamentality, and Causal Structure Andrew Lee McFarland My dissertation addresses a question relevant to metaphysics, philosophy of language, and philosophy of science: What are natural kinds? I explore a view that holds that natural kinds are complex, structural properties that involve causal structure. Causal structure describes the idea that for the many properties associated with natural kinds, these properties are nomically linked – that is causally connected – in such a way that the properties of non-natural kinds are not. After criticizing arguments in favor of a nominalist theory of kinds – one that holds that a natural kind just is to be identified with its class of instances – and after defending the notion of a complex structural property from several prominent objections posed by David Lewis, I apply a causal account of natural kinds to a set of problematic cases, paying special attention to isomeric kinds from chemistry. iii Dedication I dedicate this doctoral thesis to my family and to the tireless support they have given me over the years.
    [Show full text]
  • Denoting Concepts, Reference, and the Logic of Names, Classes As As Many, Groups, and Plurals
    Denoting Concepts, Reference, and the Logic of Names, Classes as as Many, Groups, and Plurals Nino B. Cocchiarella Abstract Bertrand Russell introduced several novel ideas in his 1903 Principles of Mathematics that he later gave up and never went back to in his sub- sequent work. Two of these are the related notions of denoting concepts and classes as many. In this paper we reconstruct each of these notions in the framework of conceptual realism and connect them through a logic of names that encompasses both proper and common names, and among the latter complex as well as simple common names. Names, proper or com- mon, and simple or complex, occur as parts of quanti…er phrases, which in conceptual realism stand for referential concepts, i.e., cognitive capaci- ties that inform our speech and mental acts with a referential nature and account for the intentionality, or directedness, of those acts. In Russell’s theory, quanti…er phrases express denoting concepts (which do not include proper names). In conceptual realism, names, as well as predicates, can be nominalized and allowed to occur as "singular terms", i.e., as arguments of predicates. Occurring as a singular term, a name denotes, if it denotes at all, a class as many, where, as in Russell’s theory, a class as many of one object is identical with that one object, and a class as many of more than one object is a plurality, i.e., a plural object that we call a group. Also, as in Russell’stheory, there is no empty class as many.
    [Show full text]
  • Philosophy of Language in the Twentieth Century Jason Stanley Rutgers University
    Philosophy of Language in the Twentieth Century Jason Stanley Rutgers University In the Twentieth Century, Logic and Philosophy of Language are two of the few areas of philosophy in which philosophers made indisputable progress. For example, even now many of the foremost living ethicists present their theories as somewhat more explicit versions of the ideas of Kant, Mill, or Aristotle. In contrast, it would be patently absurd for a contemporary philosopher of language or logician to think of herself as working in the shadow of any figure who died before the Twentieth Century began. Advances in these disciplines make even the most unaccomplished of its practitioners vastly more sophisticated than Kant. There were previous periods in which the problems of language and logic were studied extensively (e.g. the medieval period). But from the perspective of the progress made in the last 120 years, previous work is at most a source of interesting data or occasional insight. All systematic theorizing about content that meets contemporary standards of rigor has been done subsequently. The advances Philosophy of Language has made in the Twentieth Century are of course the result of the remarkable progress made in logic. Few other philosophical disciplines gained as much from the developments in logic as the Philosophy of Language. In the course of presenting the first formal system in the Begriffsscrift , Gottlob Frege developed a formal language. Subsequently, logicians provided rigorous semantics for formal languages, in order to define truth in a model, and thereby characterize logical consequence. Such rigor was required in order to enable logicians to carry out semantic proofs about formal systems in a formal system, thereby providing semantics with the same benefits as increased formalization had provided for other branches of mathematics.
    [Show full text]
  • Truth and the Ambiguity of Negation
    10 Teresa Marques Truth and the Ambiguity of Negation 1 Introduction The concept of negation is intertwined with the most fundamental principles that appear to govern the notions of truth and falsehood. We need negation to express conditions for falsehood, or at least of untruth; moreover! whether the principle of bivalence holds or has genuine counterexamples depends on what truth and falsity require, and thus also on what negation is. Semantic paradoxes like the liar! but also other cases, from pre- supposition failure to borderline cases of vagueness, seem to offer putative counterexamples to bivalence. &ut how is a putative coun- terexample to be described? Prima facie, a counterexample to biva- lence is an item (of the relevant sort) that is neither true nor false. We need negation to express that something is a counterexample to the principle as much as we need negation to explain when some- thing is not true, or when something is false. +owever! as a simple argument purports to show , we will refer to it as ‘the Incompatibility Argument’ ,! the assumption that the very same principles for truth and falsehood are correct taken together with the assumption that there are counterexamples to bivalence leads to a contradiction. /// Teresa Marques Many believe that the principles for truth and falsehood are essen% tial for what truth is. The idea that the schemas are essentially correct can be understood in different ways. Each of these ways requires different commitments to the role the schemas are to play. One may just hold (i) that the truth-schemas are extensionally correct, and that all their instances must be true,1 or (ii) one can add that the schemas are not only extensionally correct, but also that they display something essential about truth, for instance that the meaning of ‘true’ is conveyed in instances of the schemas, or that grasping the concept of truth requires assenting to all their instances.
    [Show full text]
  • Lecture 18: Negative Contexts and Intensional Contexts: Similarities and Differences 1. Introduction to the Puzzle
    The Structure of Meaning, Lecture 18 Barbara H. Partee, May 22, 2006 Lecture 18: Negative Contexts and Intensional Contexts: Similarities and Differences 1. Introduction to the puzzle..........................................................................................................................................1 2. Background. “Scope ambiguity,” NP interpretations, and the semantics of operators.............................................2 3. Natural language patterns – strategies of marking different interpretations differently. ...........................................4 3.1. Some languages mark opaque readings, e.g. Romance languages - subjunctive................................................4 3.2. Negative Polarity Items (NPIs)...........................................................................................................................5 3.3. Russian Genitive of Negation and intensional verbs ..........................................................................................6 4. Hypotheses ................................................................................................................................................................7 4.1 Scope differences.................................................................................................................................................7 4.2 Possible non-uniform NP meanings. .................................................................................................................7 4.3 Property types and other “demotions”
    [Show full text]
  • On the Semantics of Propositional Attitude Reports
    GOTHENBURG MONOGRAPHS IN LINGUISTICS 13 ON THE SEMANTICS OF PROPOSITIONAL ATTITUDE REPORTS Mats DahllofÈ ¡¢ £ ¤ Department of Linguistics GoteborÈ g University, Sweden 1995 ABSTRACT This is a study on the truth-conditional semantics of propositional attitude attribution statements. It is suggested that attitude contents should be characterized in terms of abstract concepts, which are connected by way of a number of basic logical relations derived from a version of Quinean predicate-functor logic. This allows us to handle all logical relationships de®nable by ®rst-order predicate calculus in a way that does not exploit variable-like entities. Individual, predicate, and propositional concepts are recognized. These concepts provide the relata of various mental attitude relations and may denote (or may fail to denote) other kinds of object. The resulting framework is itself formalized in ®rst-order predicate calculus. This proposal is intended to give an account that is to a high degree independent of any particular view of the metaphysical, psychological or epistemological status of propositional attitude reports. An overview of different kinds of propositional and other conceptual attitude report constructions in English is given and it is suggested how the framework proposed can be applied to them. KEY WORDS: Meaning, Semantics, Logic, Propositional Attitudes, Truth Conditions, Intentions, Concepts, Reference, Predicate-Functor Logic, Intentionality Published by: The Department of Linguistics, GoteborÈ g University, 412 98 GoteborÈ g, Sweden.
    [Show full text]
  • Indicative Versus Counterfactual Conditionals, Classical Versus Non
    (to appear in Philosophical Issues 16 (2006)) Indicative versus Subjunctive Conditionals, Congruential versus Non-Hyperintensional Contexts Timothy Williamson §0. A familiar if obscure idea: an indicative conditional presents its consequent as holding in the actual world on the supposition that its antecedent so holds, whereas a subjunctive conditional merely presents its consequent as holding in a world, typically counterfactual, in which its antecedent holds. Consider this pair: (1) If you had starved as a child, you would have been as tall now as you actually are. (2) If you starved as a child, you are as tall now as you actually are. I do not know how tall you are; I doubt that you starved as a child. My empirical evidence tells strongly against (1), by indicating that childhood malnutrition tends to reduce adult height. In contrast, (2) is logically trivial. How things actually are includes your actual height, whether or not it also includes your childhood starvation; how things would have been if you had starved as a child does not include your actual height. A 1 similar contrast arises between metaphysical and epistemic modalities. As a claim of metaphysical possibility, (3) is obviously true, while as a claim of epistemic possibility (4) is obviously false: (3) You could have been less tall now than you actually are. (4) You may be less tall now than you actually are. Such differences are no mere curiosities of natural language. They exemplify a very general difference between two kinds of sentential context. This paper expounds the general difference, and uses it to derive constraints on the semantics of indicative conditionals.
    [Show full text]
  • Missing Modes of Supposition
    Missing Modes of Supposition '1 The Modes of Common Personal Supposition Supposition theory is a medieval account of the semantics of terms as they function in sentences. The word >supposition= is probably interchangeable with our word >reference=, but I=ll leave it as >supposition= so as to identify the medieval source of the theory I discuss here. Medieval writers had a great deal to say about supposition; this paper focuses on only one part of the theory, the study of what is now generally called the theory of modes of common personal supposition. The word >common= is used here as in >common term=, as opposed to >singular term=, but in fact, the theory focuses on common terms along with the quantifiers that accompany them. The word >personal= is a technical term indicating that the word in question is used in its normal way to refer to the things it is true of, as distinguished from occurrences in which it refers to itself (as in >Giraffe is a noun=) or refers to a particular thing intimately related to the things it is true of (as in >Giraffe is a species=). So we might describe this as a theory of the modes of reference of quantified common terms used normally. There are three such modes, illustrated as follows: DETERMINATE: The term >dingo= has determinate supposition in: Some dingo is a predator. Determinate supposition has something to do with existential quantification. Exactly what it has to do with existential quantification is a question to be discussed. 1 DISTRIBUTIVE: The term >dingo= has distributive supposition in: Every dingo is an animal.
    [Show full text]