Eliminating Reflection from Type Theory Théo Winterhalter, Matthieu Sozeau, Nicolas Tabareau

Total Page:16

File Type:pdf, Size:1020Kb

Eliminating Reflection from Type Theory Théo Winterhalter, Matthieu Sozeau, Nicolas Tabareau Eliminating Reflection from Type Theory Théo Winterhalter, Matthieu Sozeau, Nicolas Tabareau To cite this version: Théo Winterhalter, Matthieu Sozeau, Nicolas Tabareau. Eliminating Reflection from Type Theory: To the Legacy of Martin Hofmann. CPP 2019 - 8th ACM SIGPLAN International Conference on Certified Programs and Proofs, Jan 2019, Lisbonne, Portugal. pp.91-103, 10.1145/3293880.3294095. hal-01849166v3 HAL Id: hal-01849166 https://hal.archives-ouvertes.fr/hal-01849166v3 Submitted on 22 Nov 2018 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. 1 56 2 Eliminating Reflection from Type Theory 57 3 To the Legacy of Martin Hofmann 58 4 59 5 60 6 Théo Winterhalter Matthieu Sozeau Nicolas Tabareau 61 7 Gallinette Project-Team, Inria Pi.R2 Project-Team, Inria and IRIF Gallinette Project-Team, Inria 62 8 Nantes, France Paris, France Nantes, France 63 9 [email protected] [email protected] [email protected] 64 10 65 Abstract of equality inside type theory, whereas u ≡ v : A means 11 66 that u and v are convertible in the theory—and can thus 12 Type theories with equality reflection, such as extensional 67 be silently replaced by one another in any term. Several 13 type theory (ETT), are convenient theories in which to for- 68 variants of ETT have been considered and implemented, for 14 malise mathematics, as they make it possible to consider 69 example in NuPRL [Allen et al. 2000] and more recently in 15 provably equal terms as convertible. Although type-checking 70 Andromeda [Bauer et al. 2016]. The prototypical example of 16 is undecidable in this context, variants of ETT have been 71 the use of equality reflection is the definition of a coercion 17 implemented, for example in NuPRL and more recently in 72 function between two types A and B that are equal (but not 18 Andromeda. The actual objects that can be checked are not 73 convertible) by taking a term of type A and simply returning 19 proof-terms, but derivations of proof-terms. This suggests 74 it as a term of type B: 20 that any derivation of ETT can be translated into a typecheck- 75 21 able proof term of intensional type theory (ITT). However, λ AB (e : A = B)(x : A): x : Π AB: A = B ! A ! B: 76 this result, investigated categorically by Hofmann in 1995, 22 In intensional type theory (ITT), this term does not type- 77 and 10 years later more syntactically by Oury, has never 23 check because x of type A can not be given the type B by 78 given rise to an effective translation. In this paper, we pro- 24 conversion. In ETT, however, equality reflection can be used 79 vide the first effective syntactical translation from ETTto 25 to turn the witness of equality into a proof of conversion and 80 ITT with uniqueness of identity proofs and functional ex- 26 thus the type system validates the fact that x can be given the 81 tensionality. This translation has been defined and proven 27 type B. This means that one needs to guess equality proofs 82 correct in Coq and yields an executable plugin that translates 28 during type-checking, because the witness of equality has 83 a derivation in ETT into an actual Coq typing judgment. Ad- 29 been lost at the application of the reflection rule. Guessing it 84 ditionally, we show how this result is extended in the context 30 was not so hard in this example but is in general undecidable, 85 of homotopy type theory to a two-level type theory. 31 as one can for instance encode the halting problem of any 86 32 Keywords dependent types, translation, formalisation Turing machine as an equality in ETT. That is, the actual 87 33 objects that can be checked in ETT are not terms, but instead 88 34 1 Introduction derivations of terms. It thus seems natural to wonder whether 89 35 90 Type theories with equality reflection, such as extensional any derivation of ETT can be translated into a typecheckable 36 91 type theory (ETT), are convenient theories in which to for- term of ITT. And indeed, it is well know that one can find 37 92 malise mathematics, as they make it possible to consider a corresponding term of the same type in ITT by explicitly 38 93 provably equal terms as convertible, as expressed in the fol- transporting the term x of type A using the elimination of 39 94 lowing typing rule: internal equality on the witness of equality e, noted e∗: 40 95 λ AB (e : A = B)(x : A): e∗ x : Π AB: A = B ! A ! B: 41 Γ `x e : u =A v 96 42 (1) This can be seen as a way to make explicit the silent use 97 Γ `x u ≡ v : A 43 of reflection. Furthermore, by making the use of transport 98 44 Here, the type u =A v is Martin-Löf’s identity type with as economic as possible, the corresponding ITT term can 99 45 only one constructor refl u : u =A u which represents proofs be seen as a compact witness of the derivation tree of the 100 46 101 Permission to make digital or hard copies of part or all of this work for original ETT term. 47 personal or classroom use is granted without fee provided that copies are This result has first been investigated categorically in the 102 48 not made or distributed for profit or commercial advantage and that copies pioneering work of Hofmann [1995, 1997], by showing that 103 49 bear this notice and the full citation on the first page. Copyrights for third- the term model of ITT can be turned into a model of ETT by 104 50 party components of this work must be honored. For all other uses, contact quotienting this model with propositional equality. However, 105 the owner/author(s). 51 it is not clear how to extend this categorical construction 106 Conference’17, July 2017, Washington, DC, USA 52 107 © 2018 Copyright held by the owner/author(s). to an explicit and constructive translation from a derivation 53 ACM ISBN 978-x-xxxx-xxxx-x/YY/MM. in ETT to a term of ITT. In 2005, this result has been in- 108 54 https://doi.org/10.1145/nnnnnnn.nnnnnnn vestigated more syntactically by Oury [2005]. However, his 109 55 1 110 Conference’17, July 2017, Washington, DC, USA Théo Winterhalter, Matthieu Sozeau, and Nicolas Tabareau 111 presentation does not give rise to an effective translation. discuss limitations and related work. The main proofs are 166 112 By an effective translation we mean that it is entirely con- given in detail in Appendices B and C. 167 113 structive and can be used to deterministically compute the The Coq formalisation can be found in https://github.com/ 168 114 translation of a given ETT typing derivation. Two issues TheoWinterhalter/ett-to-itt. 169 115 prevent deriving an effective translation from Oury’s presen- 170 116 tation, and it is the process of actual formalisation of the 1.1 On the Need for UIP and Functional 171 117 result in a proof assistant that led us to these discoveries. Extensionality. 172 118 First, his handling of related contexts is not explicit enough, Our translation targets ITT plus UIP and functional exten- 173 119 which we fix by framing the translation using ideas coming sionality, which correspond to the two following axioms 174 120 from the parametricity translation (section 1.2). Addition- (where □i denotes the universe of types at level i): 175 121 ally, Oury’s proof requires an additional axiom in ITT on 0 0 176 UIP : Π(A : □i )(x y : A)(e e : x = y): e = e 122 top of functional extensionality and uniqueness of identity 177 FunExt : Π(A : i )(B : A ! i )(f д : Π(x : A): B x): 123 □ □ 178 proofs, that has no clear motivation and can be avoided by (Π(x : A): f x = д x) ! f = д 124 considering an annotated syntax (section 2.1). 179 125 The first axiom says that any two proofs of the same equality 180 126 Contributions. In this paper, we present the first effective are equal, and the other one says that two (dependent) func- 181 2 127 syntactical translation from ETT to ITT (assuming unique- tions are equal whenever they are pointwise equal . These 182 128 ness of identity proofs (UIP) and functional extensionality in two axioms are perfectly valid statements of ITT and they 183 129 ITT). By syntactical translation, we mean an explicit transla- can be proven in ETT. Indeed, UIP can be shown to be equiv- 184 130 tion from a derivation Γ `x t : T of ETT (the x index testifies alent to the Streicher’s axiom K 185 0 0 131 that it is a derivation in ETT) to a context Γ , term t and 186 0 0 0 0 K : Π(A : □i ): Π(x : A): Π(e : x = x): e = reflx 132 type T of ITT such that Γ ` t : T in ITT.
Recommended publications
  • Sprinkles of Extensionality for Your Vanilla Type Theory
    Sprinkles of extensionality for your vanilla type theory Jesper Cockx1 and Andreas Abel2 1 DistriNet { KU Leuven 2 Department of Computer Science and Engineering { Gothenburg University Dependent types can make your developments (be they programs or proofs) dramatically safer by allowing you to prove that you implemented what you intended. Unfortunately, they can also make your developments dramatically more boring by requiring you to elaborate those proofs in often painstaking detail. For this reason, dependently typed languages typically allow you to cheat by postulating some facts as axioms. However, type theory is not just about which types are inhabited; it's about how things compute. Computationally, an axiom is a stuck term, so it prevents you from evaluating your programs. What if you could postulate not just axioms, but also arbitrary evaluation rules? 1. A typical frustration for people new to proof assistants like Agda or Coq is that 0 + x evaluates to x for arbitrary x, but x + 0 doesn't. Of course, a lemma for x + 0 = x is easy to prove, but having to appeal to this lemma explicitly in all subsequent uses is bothersome. By adding an evaluation rule x + 0 −! x, you can get the automatic application of this lemma. Similarly, you can add a rule x + suc y −! suc (x + y), or (x + y) + z −! x + (y + z). 2. Allais, McBride, and Boutillier[2013] present a series of evaluation rules of this type (which they call ν-rules) for functions on pairs and lists. For example, they have a rule for concatenating with an empty list (l ++ [] −! l), but also rules for simplifying expressions involving map and fold (e.g.
    [Show full text]
  • Equivalents to the Axiom of Choice and Their Uses A
    EQUIVALENTS TO THE AXIOM OF CHOICE AND THEIR USES A Thesis Presented to The Faculty of the Department of Mathematics California State University, Los Angeles In Partial Fulfillment of the Requirements for the Degree Master of Science in Mathematics By James Szufu Yang c 2015 James Szufu Yang ALL RIGHTS RESERVED ii The thesis of James Szufu Yang is approved. Mike Krebs, Ph.D. Kristin Webster, Ph.D. Michael Hoffman, Ph.D., Committee Chair Grant Fraser, Ph.D., Department Chair California State University, Los Angeles June 2015 iii ABSTRACT Equivalents to the Axiom of Choice and Their Uses By James Szufu Yang In set theory, the Axiom of Choice (AC) was formulated in 1904 by Ernst Zermelo. It is an addition to the older Zermelo-Fraenkel (ZF) set theory. We call it Zermelo-Fraenkel set theory with the Axiom of Choice and abbreviate it as ZFC. This paper starts with an introduction to the foundations of ZFC set the- ory, which includes the Zermelo-Fraenkel axioms, partially ordered sets (posets), the Cartesian product, the Axiom of Choice, and their related proofs. It then intro- duces several equivalent forms of the Axiom of Choice and proves that they are all equivalent. In the end, equivalents to the Axiom of Choice are used to prove a few fundamental theorems in set theory, linear analysis, and abstract algebra. This paper is concluded by a brief review of the work in it, followed by a few points of interest for further study in mathematics and/or set theory. iv ACKNOWLEDGMENTS Between the two department requirements to complete a master's degree in mathematics − the comprehensive exams and a thesis, I really wanted to experience doing a research and writing a serious academic paper.
    [Show full text]
  • A Rewrite System for Elimination of the Functional Extensionality and Univalence Axioms
    A Rewrite System for Elimination of the Functional Extensionality and Univalence Axioms Raphaël Cauderlier Abstract We explore the adaptation of the ideas that we developed for automatic elimination of classical axioms [5] to extensionality axioms in Type Theory. Extensionality axioms are added to Type Theory when we lack a way to prove equality between two indistinguishable objects. These indistinguishable objects might be logically-equivalent propo- sitions, pointwise equal functions, pointwise equivalent predicates, or equivalent (isomorphic) types leading to the various following extensionality axioms: Propositional extensionality: PE :ΠP; Q : Prop: (P , Q) ! P =Prop Q Non-dependent functional extensionality: NFE :ΠA; B : U: Πf; g :(A ! B): (Πa : A: f a =B g a) ! f =A!B g Dependent functional extensionality: DF E :ΠA : U: ΠB :(A ! U): Πf; g : (Πa : A ! B(a)): (Πa : A: f a =B(a) g a) ! f =Πa:A: B(a) g Predicate extensionality: P redE :ΠA : U: ΠP; Q :(A ! Prop): (Πa : A: P a , Q a) ! P =A!Prop Q Set extensionality: SetE :ΠA : U: ΠX; Y : set(A): (Πa : A: a 2 X , a 2 Y ) ! X =set(A) Y Univalence: let idtoeqv be the canonical function of type ΠA; B : U: (A =U B) ! (A ≈ B), for all types A; B : U, idtoeqv AB is an equivalence between the types A =U B and A ≈ B. In these axiom statements, the symbol =A denotes equality between two terms of type A, set(A) is type of the sets of elements of A, 2 is the set membership relation, U is a universe and ' is the equivalence relation over types in U.
    [Show full text]
  • The Axiom of Choice and the Law of Excluded Middle in Weak Set Theories
    The Axiom of Choice and the Law of Excluded Middle in Weak Set Theories John L. Bell Department of Philosophy, University of Western Ontario In constructive mathematics the axiom of choice (AC) has a somewhat ambiguous status. On the one hand, in intuitionistic set theory, or the local set theory associated with a topos ([2]) it can be shown to entail the law of excluded middle (LEM) ([ 3 ], [ 5 ]). On the other hand, under the “propositions-as types” interpretation which lies at the heart of constructive predicative type theories such as that of Martin-Löf [9], the axiom of choice is actually derivable (see, e.g. [11] ), and so certainly cannot entail the law of excluded middle. This incongruity has been the subject of a number of recent investigations, for example [6], [7], [9], [12]. What has emerged is that for the derivation of LEM from AC to go through it is sufficient that sets (in particular power sets), or functions, have a degree of extensionality which is, so to speak, built into the usual set theories but is incompatible with constructive type theories Another condition, independent of extensionality, ensuring that the derivation goes through is that any equivalence relation determines a quotient set. LEM can also be shown to follow from a suitably extensionalized version of AC. The arguments establishing these intriguing results have mostly been formulated within a type-theoretic framework. It is my purpose here to formulate and derive analogous results within a comparatively straightforward set-theoretic framework. The core principles of this framework form a theory – weak set theory WST – which lacks the axiom of extensionality1 and supports only minimal set-theoretic constructions.
    [Show full text]
  • Does Universalism Entail Extensionalism?
    NOUSˆ 00:00 (2014) 1–12 doi: 10.1111/nous.12063 Does Universalism Entail Extensionalism? A. J. COTNOIR University of St Andrews Abstract Does a commitment to mereological universalism automatically bring along a commitment to the controversial doctrine of mereological extensionalism—the view that objects with the same proper parts are identical? A recent argument suggests the answer is ‘yes’. This paper attempts a systematic response to the argument, considering nearly every available line of reply. It argues that only one approach— the mutual parts view—can yield a viable mereology where universalism does not entail extensionalism. Here is an axiomatization of classical extensional mereology, where ‘<’ stands for the proper parthood relation, ‘≤’ stands for the parthood relation (i.e. ‘x ≤ y’ abbreviates ‘x < y ∨ x = y’), and ◦ for mereological overlap (i.e. ‘x ◦ y’abbreviates ‘∃z(z ≤ x ∧ z ≤ y)’). Transitivity (x < y ∧ y < z) → x < z Weak Supplementation x < y →∃z(z ≤ y ∧¬z ◦ x)) Unrestricted Fusion ∀xx∃y F(y, xx). Where fusions are defined via: Fusion F(t, xx):= xx ≤ t ∧∀y(y ≤ t → y ◦ xx)) To simplify notation, I use ‘xx ≤ y’ to mean that each x among xx is part of y; likewise ‘y ◦ xx’meansthaty overlaps some x among xx. It is worth noting that weak supplementation entails the remaining (strict) partial order axioms:1 Irreflexivity x < x Asymmetry x < y → y < x The definition of ≤ provides the corresponding weak partial order principles of reflexivity and antisymmetry. Listing these as separate axioms is unnecessary here; however, this will not be so in what follows.
    [Show full text]
  • Extensionality Versus Constructivity∗
    Extensionality versus Constructivity∗ Silvio Valentini Dipartimento di Matematica Pura ed Applicata Universit`adi Padova via G. Belzoni n.7, I–35131 Padova, Italy [email protected] May 13, 2000 Abstract We will analyze some extensions of Martin-L¨of’s constructive type theory by means of extensional set constructors and we will show that often the most natural requirements over them lead to classical logic or even to inconsistency. 1 Introduction The main purpose of the paper is to show that by adding extensional set- constructors to a constructive set theory like Martin-L¨of’s constructive type theory (see [ML84]) can lead to classical logic, or even to inconsistency, if a great attention is not used. The need for the addition of extensional set constructors to Martin-L¨of’s type theory appears immediately as soon as one tries to develop within such a framework a piece of actual mathematics, as we did with constructive topol- ogy (see the introductory sections in [CSSV]). For instance, one would like to be able to work with power-sets, in order to quantify on the elements of the collection of the subsets of a set, or with quotient-sets, in order to be able to construct in a straightforward way some well known sets, or, at least, with the collection of the finite subsets of a set, in order, for instance, to be able to express easily statements like Tychonoff’s theorem on the compactness of the product of compact spaces. Of course, the main point is to be able to deal with such constructions and still work in a set-theory with such a clear computational semantics as Martin- L¨of’s type theory has.
    [Show full text]
  • On Synthetic Undecidability in Coq, with an Application to the Entscheidungsproblem
    On Synthetic Undecidability in Coq, with an Application to the Entscheidungsproblem Yannick Forster Dominik Kirst Gert Smolka Saarland University Saarland University Saarland University Saarbrücken, Germany Saarbrücken, Germany Saarbrücken, Germany [email protected] [email protected] [email protected] Abstract like decidability, enumerability, and reductions are avail- We formalise the computational undecidability of validity, able without reference to a concrete model of computation satisfiability, and provability of first-order formulas follow- such as Turing machines, general recursive functions, or ing a synthetic approach based on the computation native the λ-calculus. For instance, representing a given decision to Coq’s constructive type theory. Concretely, we consider problem by a predicate p on a type X, a function f : X ! B Tarski and Kripke semantics as well as classical and intu- with 8x: p x $ f x = tt is a decision procedure, a function itionistic natural deduction systems and provide compact д : N ! X with 8x: p x $ ¹9n: д n = xº is an enumer- many-one reductions from the Post correspondence prob- ation, and a function h : X ! Y with 8x: p x $ q ¹h xº lem (PCP). Moreover, developing a basic framework for syn- for a predicate q on a type Y is a many-one reduction from thetic computability theory in Coq, we formalise standard p to q. Working formally with concrete models instead is results concerning decidability, enumerability, and reducibil- cumbersome, given that every defined procedure needs to ity without reference to a concrete model of computation. be shown representable by a concrete entity of the model.
    [Show full text]
  • Extensional Crisis and Proving Identity⋆
    Extensional Crisis and Proving Identity? Ashutosh Gupta1, Laura Kovacs´ 2, Bernhard Kragl1;3, and Andrei Voronkov4 1 IST Austria 2 Chalmers University of Technology 3 Vienna University of Technology 4 The University of Manchester Abstract. Extensionality axioms are common when reasoning about data collec- tions, such as arrays and functions in program analysis, or sets in mathematics. An extensionality axiom asserts that two collections are equal if they consist of the same elements at the same indices. Using extensionality is often required to show that two collections are equal. A typical example is the set theory theorem (8x)(8y)x [ y = y [ x. Interestingly, while humans have no problem with prov- ing such set identities using extensionality, they are very hard for superposition theorem provers because of the calculi they use. In this paper we show how ad- dition of a new inference rule, called extensionality resolution, allows first-order theorem provers to easily solve problems no modern first-order theorem prover can solve. We illustrate this by running the VAMPIRE theorem prover with exten- sionality resolution on a number of set theory and array problems. Extensionality resolution helps VAMPIRE to solve problems from the TPTP library of first-order problems that were never solved before by any prover. 1 Introduction Software verification involves reasoning about data collections, such as arrays, sets, and functions. Many modern programming languages support native collection types or have standard libraries for collection types. Many interesting properties of collections are expressed using both quantifiers and theory specific predicates and functions. Unless these properties fall into a decidable theory supported by existing satisfiability modulo theories (SMT) solvers or theorem provers, verifying them requires a combination of reasoning with quantifiers and collection-specific reasoning.
    [Show full text]
  • Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory
    Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory Frank Pfenning∗ Department of Computer Science Carnegie Mellon University [email protected] Abstract decidable, non-extensional theory. On the other hand, we need external arguments to validate the correctness of pro- We develop a uniform type theory that integrates inten- grams, defeating at least in part the motivations underly- sionality, extensionality, and proof irrelevance as judgmen- ing the separation of judgments from propositions [11, 12]. tal concepts. Any object may be treated intensionally (sub- Furthermore, the development of extensional concepts in a ject only to α-conversion), extensionally (subject also to non-extensional type theory is far from straightforward, as βη-conversion), or as irrelevant (equal to any other object can be seen from Hofmann’s systematic study [10]. at the same type), depending on where it occurs. Modal re- Related is the issue of proof irrelevance, which plays an strictions developed in prior work for simple types are gen- important role in the development of mathematical concepts eralized and employed to guarantee consistency between in type theory via subset types or quotient types. For exam- these views of objects. Potential applications are in logical ple, the type {x:A | B(x)} should contain the elements M frameworks, functional programming, and the foundations of type A that satisfy property B. If we want type-checking of first-order modal logics. to be decidable, we require evidence that B(M) is satisfied, Our type theory contrasts with previous approaches that but we should not distinguish between different proofs of a priori distinguish propositions (whose proofs are all B(M)—they are irrelevant.
    [Show full text]
  • First-Order Logic in a Nutshell Syntax
    First-Order Logic in a Nutshell 27 numbers is empty, and hence cannot be a member of itself (otherwise, it would not be empty). Now, call a set x good if x is not a member of itself and let C be the col- lection of all sets which are good. Is C, as a set, good or not? If C is good, then C is not a member of itself, but since C contains all sets which are good, C is a member of C, a contradiction. Otherwise, if C is a member of itself, then C must be good, again a contradiction. In order to avoid this paradox we have to exclude the collec- tion C from being a set, but then, we have to give reasons why certain collections are sets and others are not. The axiomatic way to do this is described by Zermelo as follows: Starting with the historically grown Set Theory, one has to search for the principles required for the foundations of this mathematical discipline. In solving the problem we must, on the one hand, restrict these principles sufficiently to ex- clude all contradictions and, on the other hand, take them sufficiently wide to retain all the features of this theory. The principles, which are called axioms, will tell us how to get new sets from already existing ones. In fact, most of the axioms of Set Theory are constructive to some extent, i.e., they tell us how new sets are constructed from already existing ones and what elements they contain. However, before we state the axioms of Set Theory we would like to introduce informally the formal language in which these axioms will be formulated.
    [Show full text]
  • SET THEORY Andrea K. Dieterly a Thesis Submitted to the Graduate
    SET THEORY Andrea K. Dieterly A Thesis Submitted to the Graduate College of Bowling Green State University in partial fulfillment of the requirements for the degree of MASTER OF ARTS August 2011 Committee: Warren Wm. McGovern, Advisor Juan Bes Rieuwert Blok i Abstract Warren Wm. McGovern, Advisor This manuscript was to show the equivalency of the Axiom of Choice, Zorn's Lemma and Zermelo's Well-Ordering Principle. Starting with a brief history of the development of set history, this work introduced the Axioms of Zermelo-Fraenkel, common applications of the axioms, and set theoretic descriptions of sets of numbers. The book, Introduction to Set Theory, by Karel Hrbacek and Thomas Jech was the primary resource with other sources providing additional background information. ii Acknowledgements I would like to thank Warren Wm. McGovern for his assistance and guidance while working and writing this thesis. I also want to thank Reiuwert Blok and Juan Bes for being on my committee. Thank you to Dan Shifflet and Nate Iverson for help with the typesetting program LATEX. A personal thank you to my husband, Don, for his love and support. iii Contents Contents . iii 1 Introduction 1 1.1 Naive Set Theory . 2 1.2 The Axiom of Choice . 4 1.3 Russell's Paradox . 5 2 Axioms of Zermelo-Fraenkel 7 2.1 First Order Logic . 7 2.2 The Axioms of Zermelo-Fraenkel . 8 2.3 The Recursive Theorem . 13 3 Development of Numbers 16 3.1 Natural Numbers and Integers . 16 3.2 Rational Numbers . 20 3.3 Real Numbers .
    [Show full text]
  • Identity, Equality, Nameability and Completeness∗
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE Bulletin of the Section of Logic Volume 46:3/4 (2017), pp. 169–195 http://dx.doi.org/10.18778/0138-0680.46.3.4.02 Mar´ıa Manzano and Manuel Crescencio Moreno IDENTITY, EQUALITY, NAMEABILITY AND COMPLETENESS∗ Abstract This article is an extended promenade strolling along the winding roads of iden- tity, equality, nameability and completeness, looking for places where they con- verge. We have distinguished between identity and equality; the first is a binary relation between objects while the second is a symbolic relation between terms. Owing to the central role the notion of identity plays in logic, you can be inter- ested either in how to define it using other logical concepts or in the opposite scheme. In the first case, one investigates what kind of logic is required. In the second case, one is interested in the definition of the other logical concepts (con- nectives and quantifiers) in terms of the identity relation, using also abstraction. The present paper investigates whether identity can be introduced by def- inition arriving to the conclusion that only in full higher-order logic a reliable definition of identity is possible. However, the definition needs the standard semantics and we know that with this semantics completeness is lost. We have also studied the relationship of equality with comprehension and extensionality and pointed out the relevant role played by these two axioms in Henkin’s completeness method. We finish our paper with a section devoted to general semantics, where the role played by the nameable hierarchy of types is the key in Henkin’s completeness method.
    [Show full text]