Thesis Is Om Homotopy Type Theory Aan Te Passen Zodat Het Verband Met ∞-Groupoids Verruimt Tot Een Verband Met Hogere Categorie¨Enin Het Algemeen

Total Page:16

File Type:pdf, Size:1020Kb

Thesis Is Om Homotopy Type Theory Aan Te Passen Zodat Het Verband Met ∞-Groupoids Verruimt Tot Een Verband Met Hogere Categorie¨Enin Het Algemeen FACULTEIT WETENSCHAPPEN Towards a Directed Homotopy Type Theory based on 4 Kinds of Variance Andreas NUYTS Promotor: Prof. dr. ir. F. Piessens Proefschrift ingediend tot het Begeleiders: behalen van de graad van Dr. D. Devriese, J. Cockx Master in de Wiskunde DistriNet, Departement Computerwetenschappen, KU Leuven Academiejaar 2014-2015 i c Copyright 2015 by KU Leuven and the author. Without written permission of the promoters and the authors it is forbidden to repro- duce or adapt in any form or by any means any part of this publication. Requests for obtaining the right to reproduce or utilize parts of this publication should be addressed to KU Leuven, Faculteit Wetenschappen, Geel Huis, Kasteelpark Arenberg 11 bus 2100, 3001 Leuven (Heverlee), Telephone +32 16 32 14 01. A written permission of the promoter is also required to use the methods, products, schematics and programs described in this work for industrial or commercial use, and for submitting this publication in scientific contests. ii Towards a Directed Homotopy Type Theory based on 4 Kinds of Variance Andreas Nuyts Promotor: Prof. dr. ir. Frank Piessens Begeleiders: Dr. Dominique Devriese, Jesper Cockx Contents Contents iii Voorwoord vii Vulgariserende samenvatting ix English abstract xi Nederlandstalige abstract xiii 1 Introduction 1 1.1 Dependent type theory . .1 1.2 Homotopy type theory . .5 1.3 Directed type theory . .6 1.3.1 Two-dimensional directed type theory . .6 1.3.2 Other related work . .8 1.3.3 Directed homotopy type theory . .9 1.3.4 Contributions . 11 2 Dependent type theory, symmetric and directed 13 2.1 Judgements and contexts . 13 2.2 Structural inference rules . 18 2.3 Universe types . 20 2.4 Non-dependent function types . 21 2.5 Dependent function types . 25 2.6 Intermezzo: equivalences and function extensionality . 27 2.7 Inductive types and the coproduct . 28 2.8 Lists . 34 2.9 The naturals . 36 2.10 The family of finite sets . 38 2.11 The product . 40 2.12 Opposite, core and localization . 44 2.12.1 The opposite of a type . 44 2.12.2 The core of a type . 47 2.12.3 Bridged groupoids . 49 2.12.4 The localization of a type . 50 2.12.5 Bridgeless groupoids . 52 2.13 Dependent pair types . 53 iii iv CONTENTS 2.14 Inductive type families: some examples . 57 2.15 The identity type . 64 2.16 The morphism type . 70 2.17 W-types . 74 2.18 Higher inductive types . 75 3 Homotopy type theory, symmetric and directed 77 3.1 Types are higher categories . 77 3.2 Functions are functors . 82 3.3 Equivalences, isomorphisms and transport . 86 3.4 Type families are fibrations . 91 3.4.1 In symmetric HoTT . 91 3.4.2 In directed HoTT . 95 3.5 Bridges . 105 3.5.1 Discussion . 105 3.5.2 Attempts to define bridges . 107 3.5.3 An axiomatic treatment of bridges . 110 3.6 Homotopies and natural transformations . 113 3.7 Groupoids . 116 3.8 The higher category structure of some basic types . 119 3.8.1 The coproduct . 119 3.8.2 The naturals . 120 3.8.3 The opposite . 122 3.8.4 The core . 123 3.8.5 The localization . 123 3.8.6 The product . 125 3.8.7 Dependent pair types . 125 3.8.8 Dependent function types . 128 3.8.9 Universe types and univalence . 130 3.9 Categorical univalence . 133 3.9.1 Category theory in HoTT . 133 3.9.2 Categorical univalence . 134 3.9.3 Univalence in directed HoTT . 136 4 Exploring semantics and consistency 139 4.1 Basic preparations . 140 4.2 Interpreting terms . 144 4.2.1 Interpreting types . 144 4.2.2 Functorial behaviour . 147 4.3 Interpreting axioms . 148 4.4 Conclusion . 149 5 Conclusion 151 5.1 Morphisms and morphisms . 151 5.2 Applications . 153 5.3 Discussion and further work . 153 Bibliography 155 CONTENTS v List of Symbols and Abbreviations 157 Index 161 vi CONTENTS Vulgariserende samenvatting Topologie is voor elastische voorwerpen wat meetkunde is voor starre voorwerpen. In de meetkunde werken we doorgaans in het vlak, de ruimte of een meer-dimensionale veral- gemening, en we beschrijven de dingen aan de hand van een assenstelsel, co¨ordinatenen een notie van afstand. In topologie werken we in een topologische ruimte; hier kan je in veel gevallen over nadenken als een verzameling (meer-dimensionale) elastische voorwer- pen. Omdat je deze kan uitrekken en vervormen, zijn co¨ordinatenen afstand geen goede manier om topologische ruimten te beschrijven; in de plaats worden open en gesloten verzamelingen gebruikt om de vorm van de ruimte te karakteriseren. Type theory is een wiskundige formulering van een veiligheidsmechanisme dat gebruikt wordt in statisch getypeerde programmeertalen. In dergelijke talen heeft elke waarde, en elk hokje dat een waarde kan bevatten, een type, en het is slechts toegestaan een waarde in een hokje te steken als de types overeenkomen. Bijvoorbeeld, in een klantendatabase heeft elke klant een geboortejaar en een geboorteplaats. Het geboortejaar heeft als type `geheel getal', de geboorteplaats `string' (een opeenvolging van letters). Als de programmeur zich vergist en het geboortejaar toekent aan het hokje voor de geboorteplaats, zal de compiler opmerken dat deze types verschillen, en dit programma niet aanvaarden. Dependent type theory, een gesofisticeerdere variant van type theory, laat toe om elke wiskundige stelling te vertalen in het type van alle bewijzen van die stelling. Zo kan een programmeur een programma doorspekken met bewijzen over het gedrag van datzelfde programma. Als een bewijs niet correct blijkt, zal de compiler opmerken dat het niet het juiste type heeft en het programma niet aanvaarden. Dit laat de ontwikkeling van veilige software toe, en maakt het ook mogelijk om wiskundige bewijzen te laten verifi¨erendoor een computer. Categorietheorie is een tak van de wiskunde die de notie van transformaties in hoge algemeenheid bestudeert. Een categorie is gedefinieerd als een collectie objecten, met voor elke twee objecten x en y een verzameling van alle ‘morfismen’ (transformaties) die x tot y transformeren. Elk object heeft een `identiek' morfisme naar zichzelf, dat overeenkomt met niets doen. Verder kunnen we een morfisme van x naar y samenstellen met een morfisme van y naar z om een morfisme van x naar z te bekomen. Een hogere categorie bevat niet enkel morfismen tussen objecten, maar ook morfismen tussen morfismen tussen objecten, en morfismen tussen morfismen tussen morfismen tussen objecten, en zo tot in het oneindige. Een 1-groupoid is een hogere categorie waarin alle morfismen omkeerbaar zijn. Homotopy type theory (HoTT) is een recente ontwikkeling van dependent type theory die een verband legt tussen topologische ruimten, 1-groupoids en types. Dit verband laat toe om aan computergeverifieerde topologie en categorietheorie te doen, en leidt anderzijds tot nieuwe inzichten in dependent type theory. ix x VULGARISERENDE SAMENVATTING Het doel van deze thesis is om homotopy type theory aan te passen zodat het verband met 1-groupoids verruimt tot een verband met hogere categorie¨enin het algemeen. Niet- omkeerbare morfismen, die dus een vaste ori¨entatie hebben, krijgen dan een tegenhanger in type theory. Men spreekt van geori¨enteerde of directed type theory. Dit lijkt de expressiviteit van HoTT aanzienlijk te versterken, wat zowel de software- als wiskundige toepassingen ten goede komt. English abstract Type theory is a mathematical formulation of a safety mechanism for programming lan- guages. Dependent type theory (such as Martin-L¨oftype theory, MLTT) is a more in- volved variant of type theory that is a sufficiently expressive environment for doing logic. As such, it can serve as a foundation for mathematics [Uni13], and it also brings flexible formal proving to programming languages, which is promising when it comes to writing software for critical applications where bugs could endanger lives. In MLTT, objects can be judgementally equal, meaning they are absolutely the same and indistinguishable, or propositionally equal, meaning one is `as good as' the other. Ordinary MLTT basically interprets the latter notion as the former: an object is only equal to itself and only in one way. Homotopy type theory (HoTT) is a recent development of MLTT, which revises the way we think about equality. It starts from the observation that any notion of isomorphism fulfils all the axioms that are required of propositional equality, except the principle of uniqueness of identity proofs [Uni13, x7.2], which states that two objects can only be equal in a single way. Based on that observation, HoTT replaces uniqueness of identity proofs with the uni- valence axiom, which asserts that any two equivalent (i.e. isomorphic) types are equal. This axiom turns out to imply a similar principle in more generality, for example [Uni13, x2.14] proves that isomorphic semigroups are equal. That is an extremely useful fea- ture when using type theory as a foundation for mathematics, as we are even using this principle in mathematics founded on set theory, where strictly speaking, it doesn't hold. The structure of a collection of objects with a sense of isomorphism, is captured by a groupoid: a category in which all morphisms are invertible. This indicates that in HoTT, we should think of types as groupoids. Since the isomorphisms between two objects are also contained in a type, they form a groupoid again. So we are really dealing with groupoids enriched over groupoids enriched over . , which is called 1-groupoids. The homotopy hypothesis [Uni13, x2.intro] provides a further interpretation of 1-groupoids as topological spaces, in which isomorphisms between objects correspond to paths between points. This means that, apart from allowing exciting new ideas and results in type theory, HoTT also allows us to do 1-groupoid theory and topology in a constructive, computer-verified manner.
Recommended publications
  • Russell's 1903 – 1905 Anticipation of the Lambda Calculus
    HISTORY AND PHILOSOPHY OF LOGIC, 24 (2003), 15–37 Russell’s 1903 – 1905 Anticipation of the Lambda Calculus KEVIN C. KLEMENT Philosophy Dept, Univ. of Massachusetts, 352 Bartlett Hall, 130 Hicks Way, Amherst, MA 01003, USA Received 22 July 2002 It is well known that the circumflex notation used by Russell and Whitehead to form complex function names in Principia Mathematica played a role in inspiring Alonzo Church’s ‘Lambda Calculus’ for functional logic developed in the 1920s and 1930s. Interestingly, earlier unpublished manuscripts written by Russell between 1903 and 1905—surely unknown to Church—contain a more extensive anticipation of the essential details of the Lambda Calculus. Russell also anticipated Scho¨ nfinkel’s Combinatory Logic approach of treating multi- argument functions as functions having other functions as value. Russell’s work in this regard seems to have been largely inspired by Frege’s theory of functions and ‘value-ranges’. This system was discarded by Russell due to his abandonment of propositional functions as genuine entities as part of a new tack for solving Rus- sell’s paradox. In this article, I explore the genesis and demise of Russell’s early anticipation of the Lambda Calculus. 1. Introduction The Lambda Calculus, as we know it today, was initially developed by Alonzo Church in the late 1920s and 1930s (see, e.g. Church 1932, 1940, 1941, Church and Rosser 1936), although it built heavily on work done by others, perhaps most notably, the early works on Combinatory Logic by Moses Scho¨ nfinkel (see, e.g. his 1924) and Haskell Curry (see, e.g.
    [Show full text]
  • Haskell Before Haskell. an Alternative Lesson in Practical Logics of the ENIAC.∗
    Haskell before Haskell. An alternative lesson in practical logics of the ENIAC.∗ Liesbeth De Mol† Martin Carl´e‡ Maarten Bullynck§ January 21, 2011 Abstract This article expands on Curry’s work on how to implement the prob- lem of inverse interpolation on the ENIAC (1946) and his subsequent work on developing a theory of program composition (1948-1950). It is shown that Curry’s hands-on experience with the ENIAC on the one side and his acquaintance with systems of formal logic on the other, were conduc- tive to conceive a compact “notation for program construction” which in turn would be instrumental to a mechanical synthesis of programs. Since Curry’s systematic programming technique pronounces a critique of the Goldstine-von Neumann style of coding, his “calculus of program com- position”not only anticipates automatic programming but also proposes explicit hardware optimisations largely unperceived by computer history until Backus famous ACM Turing Award lecture (1977). This article frames Haskell B. Curry’s development of a general approach to programming. Curry’s work grew out of his experience with the ENIAC in 1946, took shape by his background as a logician and finally materialised into two lengthy reports (1948 and 1949) that describe what Curry called the ‘composition of programs’. Following up to the concise exposition of Curry’s approach that we gave in [28], we now elaborate on technical details, such as diagrams, tables and compiler-like procedures described in Curry’s reports. We also give a more in-depth discussion of the transition from Curry’s concrete, ‘hands-on’ experience with the ENIAC to a general theory of combining pro- grams in contrast to the Goldstine-von Neumann method of tackling the “coding and planning of problems” [18] for computers with the help of ‘flow-charts’.
    [Show full text]
  • Strategic Maneuvering in Mathematical Proofs
    CORE Metadata, citation and similar papers at core.ac.uk Provided by Springer - Publisher Connector Argumentation (2008) 22:453–468 DOI 10.1007/s10503-008-9098-7 Strategic Maneuvering in Mathematical Proofs Erik C. W. Krabbe Published online: 6 May 2008 Ó The Author(s) 2008 Abstract This paper explores applications of concepts from argumentation theory to mathematical proofs. Note is taken of the various contexts in which proofs occur and of the various objectives they may serve. Examples of strategic maneuvering are discussed when surveying, in proofs, the four stages of argumentation distin- guished by pragma-dialectics. Derailments of strategies (fallacies) are seen to encompass more than logical fallacies and to occur both in alleged proofs that are completely out of bounds and in alleged proofs that are at least mathematical arguments. These considerations lead to a dialectical and rhetorical view of proofs. Keywords Argumentation Á Blunder Á Fallacy Á False proof Á Mathematics Á Meno Á Pragma-dialectics Á Proof Á Saccheri Á Strategic maneuvering Á Tarski 1 Introduction The purport of this paper1 is to show that concepts from argumentation theory can be fruitfully applied to contexts of mathematical proof. As a source for concepts to be tested I turn to pragma-dialectics: both to the Standard Theory and to the Integrated Theory. The Standard Theory has been around for a long time and achieved its final formulation in 2004 (Van Eemeren and Grootendorst 1984, 1992, 2004). According to the Standard Theory argumentation is a communication process aiming at 1 The paper was first presented at the NWO-conference on ‘‘Strategic Manoeuvring in Institutionalised Contexts’’, University of Amsterdam, 26 October 2007.
    [Show full text]
  • Hunting the Story of Moses Schönfinkel
    Where Did Combinators Come From? Hunting the Story of Moses Schönfinkel Stephen Wolfram* Combinators were a key idea in the development of mathematical logic and the emergence of the concept of universal computation. They were introduced on December 7, 1920, by Moses Schönfinkel. This is an exploration of the personal story and intellectual context of Moses Schönfinkel, including extensive new research based on primary sources. December 7, 1920 On Tuesday, December 7, 1920, the Göttingen Mathematics Society held its regular weekly meeting—at which a 32-year-old local mathematician named Moses Schönfinkel with no known previous mathematical publications gave a talk entitled “Elemente der Logik” (“Elements of Logic”). This piece is included in S. Wolfram (2021), Combinators: A Centennial View, Wolfram Media. (wolframmedia.com/products/combinators-a-centennial-view.html) and accompanies arXiv:2103.12811 and arXiv:2102.09658. Originally published December 7, 2020 *Email: [email protected] 2 | Stephen Wolfram A hundred years later what was presented in that talk still seems in many ways alien and futuristic—and for most people almost irreducibly abstract. But we now realize that that talk gave the first complete formalism for what is probably the single most important idea of this past century: the idea of universal computation. Sixteen years later would come Turing machines (and lambda calculus). But in 1920 Moses Schönfinkel presented what he called “building blocks of logic”—or what we now call “combinators”—and then proceeded to show that by appropriately combining them one could effectively define any function, or, in modern terms, that they could be used to do universal computation.
    [Show full text]
  • CURRY, Haskell Brooks (1900–1982) Haskell Brooks Curry Was Born On
    CURRY, Haskell Brooks (1900–1982) Haskell Brooks Curry was born on 12 September 1900 at Millis, Massachusetts and died on 1 September 1982 at State College, Pennsylvania. His parents were Samuel Silas Curry and Anna Baright Curry, founders of the School for Expression in Boston, now known as Curry College. He graduated from high school in 1916 and entered Harvard College with the intention of going into medicine. When the USA entered World War I in 1917, he changed his major to mathematics because he thought it might be useful for military purposes in the artillery. He also joined the Student Army Training Corps on 18 October 1918, but the war ended before he saw action. He received his B.A. in mathematics from Harvard University in 1920. From 1920 until 1922, he studied electrical engineering at MIT in a program that involved working half-time at the General Electric Company. From 1922 until 1924, he studied physics at Harvard; during the first of those two years he was a half-time research assistant to P. W. Bridgman, and in 1924 he received an A. M. in physics. He then studied mathematics, still at Harvard, until 1927; during the first semester of 1926–27 he was a half-time instructor. During 1927–28 he was an instructor at Princeton University. During 1928–29, he studied at the University of Göttingen, where he wrote his doctoral dissertation; his oral defense under David Hilbert was on 24 July 1929, although the published version carries the date of 1930. In the fall of 1929, Haskell Curry joined the faculty of The Pennsylvania State College (now The Pennsylvania State University), where he spent most of the rest of his career.
    [Show full text]
  • On Diagonal Argument. Russell Absurdities and an Uncountable Notion of Lingua Characterica
    ON DIAGONAL ARGUMENT. RUSSELL ABSURDITIES AND AN UNCOUNTABLE NOTION OF LINGUA CHARACTERICA JAMES DOUGLASS KING Bachelor of Arts, University of Lethbridge, 1996 A Thesis Submitted to the School of Graduate Studies of the University of Lethbridge in Partial Fulfillment of the Requirements for the Degree MASTER OF ARTS Department of Philosophy University of Lethbridge LETHBRIDGE, ALBERTA, CANADA © James Douglass King, 2004 ABSTRACT There is an interesting connection between cardinality of language and the distinction of lingua characterica from calculus rationator. Calculus-type languages have only a countable number of sentences, and only a single semantic valuation per sentence. By contrast, some of the sentences of a lingua have available an uncountable number of semantic valuations. Thus, the lingua-type of language appears to have a greater degree of semantic universality than that of a calculus. It is suggested that the present notion of lingua provides a platform for a theory of ambiguity, whereby single sentences may have multiply - indeed, uncountably - many semantic valuations. It is further suggested that this might lead to a pacification of paradox. This thesis involves Peter Aczel's notion of a universal syntax, Russell's question, Keith Simmons* theory of diagonal argument, Curry's paradox, and a 'Leibnizian' notion of language. iii ACKNOWLEDGEMENTS The following people are due great thanks and gratitude for their constant support and understanding over the considerable time that it took to develop this thesis. They are each sine qua non of my success. Bryson Brown has supported my efforts from beginning to end, since my undergraduate studies when I first found my love of logic and philosophy; he also brought me to understand much that I have otherwise found obscure and/or irrelevant, and he provided important moral support.
    [Show full text]
  • Functional Programming and Verification
    Functional Programming and Verification Tobias Nipkow Fakult¨atf¨urInformatik TU M¨unchen http://fpv.in.tum.de Wintersemester 2019/20 January 30, 2020 1 Sprungtabelle 18. Oktober 25. Oktober 08. November 15. November 22. November 29. November 06. December 13. Dezember 19. Dezember 10. Januar 17. Januar 24. Januar 31. Januar 2 1 Functional Programming: The Idea 2 Basic Haskell 3 Lists 4 Proofs 5 Higher-Order Functions 6 Type Classes 7 Algebraic data Types 8 I/O 9 Modules and Abstract Data Types 10 Case Study: Two Efficient Algorithms 11 Lazy evaluation 12 Monads 13 Complexity and Optimization 14 Case Study: Parsing 3 0. Organisatorisches 4 Siehe http://fpv.in.tum.de 6 Literatur • Vorlesung orientiert sich stark an Thompson: Haskell, the Craft of Functional Programming • F¨urFreunde der kompakten Darstellung: Hutton: Programming in Haskell • F¨urNaturtalente: Es gibt sehr viel Literatur online. Qualit¨atwechselhaft, nicht mit Vorlesung abgestimmt. 7 Klausur und Hausaufgaben • Klausur am Ende der Vorlesung • Notenbonus mit Hausaufgaben: siehe WWW-Seite Wer Hausaufgaben abschreibt oder abschreiben l¨asst, hat seinen Notenbonus sofort verwirkt. • Hausaufgabenstatistik: Wahrscheinlichkeit, die Klausur (oder W-Klausur) zu bestehen: • ≥ 40% der Hausaufgabenpunkte =) 100% • < 40% der Hausaufgabenpunkte =) < 50% • Aktueller pers¨onlicherPunktestand im WWW ¨uber Statusseite 8 Programmierwettbewerb | Der Weg zum Ruhm • Jede Woche eine Wettbewerbsaufgabe • Punktetabellen im Internet: • Die Top 30 jeder Woche • Die kumulative Top 30 • Ende des Semesters:
    [Show full text]
  • Church's Coincidences
    Church’s Coincidences Philip Wadler University of Edinburgh Midlands Graduate School, Leicester 8 April 2013 1 2 3 4 Part I About Coincidences 5 Two Kinds of Coincidence 6 Part II The First Coincidence: Effective Computability 7 Effective Computability • Alonzo Church: Lambda calculus An unsolvable problem of elementary number theory (Abstract) Bulletin the American Mathematical Society, May 1935 • Stephen C. Kleene: Recursive functions General recursive functions of natural numbers (Abstract) Bulletin the American Mathematical Society, July 1935 • Alan M. Turing: Turing machines On computable numbers, with an application to the Entscheidungsproblem Proceedings of the London Mathematical Society, received 25 May 1936 8 David Hilbert (1862–1943) 9 David Hilbert (1928) — Entscheidungsproblem 10 David Hilbert (1930) — An Address Konigsberg,¨ 8 September 1930 Society of German Scientists and Physicians “We must know! We will know!” 11 Kurt Godel¨ (1906–1978) 12 Kurt Godel¨ (1930) — Incompleteness Konigsberg,¨ 7 September 1930 Society of German Scientists and Physicians 13 Alonzo Church (1903–1995) 14 Alonzo Church (1932) — λ-calculus f(x) = x2 + x + 42 + f = λx. x2 + x + 42 8x:A = 8 (λx.A) 15 Alonzo Church (1932) — λ-calculus Then Now xx λx[N]( λx.N) fLg(M)( LM) 16 Alonzo Church (1932) — Lambda Calculus ··· ··· 17 Alonzo Church (1936) — Undecidability ··· ··· 18 Stephen Kleene (1909–1994) 19 Stephen Kleene (1932) — Predecessor ··· ··· 20 Stephen Kleene (1936) — Recursive Functions 21 Alan Turing (1912–1954) 22 Alan Turing (1936) — Turing Machine ··· 23 24 Robin Gandy (1988) — Turing’s Theorem Theorem: Any function which can be calculated by a human being can be computed by a Turing Machine. 25 Alan Turing (1937) — Equivalence ··· 26 Alan Turing (1946) — Automatic Computing Engine “Instruction tables will have to be made up by mathematicians with com- puting experience and perhaps a certain puzzle-solving ability.
    [Show full text]
  • Curry on the Nature of Mathematics Hunan Rostomyan / February 14, 2013 Introduction Welcome to the First Meeting of Berkeley's
    Curry on the Nature of Mathematics Hunan Rostomyan / February 14, 2013 Introduction Welcome to the first meeting of Berkeley's Undergraduate Philosophy of Mathematics Reading Group (unless some other undergraduate has organized a reading group around the topic at Berkeley, in which case, just append to the name the successor of the number of already existing such groups). We're not officially a club, at least not right now, so we don't get any support or encouragement from anyone (exceptions to this are Prof. Mancosu { who is teaching a course on Philosophy of Mathematics this semester by the way, Janet Groome { who is helping us get a permanent room for our meetings). So we gather here (or somewhere else) every week to talk about philosophy of math and logic or related areas. I have followed Prof. Mancosu's advice and decided to organize the meetings around a collection of classic writings on philosophy of mathematics compiled by Benacerraf & Putnam titled Philosophy of Mathematics: Selected Readings (2nd Edition). The collection is divided into four parts: 1. Foundations (What is the nature of mathematics?) 2. Ontology (What is the nature of mathematical objects?) 3. Truth (What makes mathematical truths so special?) 4. Sets (What are sets? What is the continuum hypothesis?) We're already in the fourth week of the semester, we have only about ten meetings ahead of us, but the collection has about twenty-eight papers, so we have to pick and choose. Although all four areas are of immense importance, to go into any of them in any depth we have to ignore some, so what we'll do is focus on the first three parts (Foundations, Ontology, Truth), ignoring the philosophical issues related to sets and the continuum hypothesis.
    [Show full text]
  • Preface of an Anthology of Universal Logic from Paul Hertz to Dov Gabbay1
    Preface of an Anthology of Universal Logic From Paul Hertz to Dov Gabbay1 This book is a retrospective on universal logic in the 20th century. It gathers papers and book extracts in the spirit of universal logic from 1922 to 1996. Each of the 15 items is presented by a specialist explaining its origin, import and impact, supported by a bibliog- raphy of correlated works. Some of the pieces presented here, such as “Remarques sur les notions fondamentales de la méthodologie des mathématiques” by Alfred Tarski, are for the first time translated into English. Universal logic is a general study of logical structures. The idea is to go beyond par- ticular logical systems to clarify fundamental concepts of logic and to construct general proofs. This methodology is useful to understand the power and limit of a particular given system. Lindström’s theorem is typically a result in this direction: it provides a character- ization of first-order logic. Roughly speaking, Lindström’s theorem states that first-order logic is the strongest logic having both the compactness property and the Löwenheim– Skolem property (see details in Part 10). Such a theorem is concerned not only with first- order logic but with other nearby possible logics. One has to understand what these other possible logics are and be able to compare them with first-order logic. In short: one has to consider a class of logics and relations between them. Lindström’s theorem is a result in favor of first-order logic, but to claim the superiority of this logic one must have the general perspective of an eagle’s eye.
    [Show full text]
  • History Alonzo Church and Stephen Cole Kleene in the 1930S Church
    L4 - Lambda calculus 2007-01-25 10:58:35 History Alonzo Church and Stephen Cole Kleene in the 1930s Church and Turing published independent papers in 1936 Impossible to write a program that for any statement in arithmetic decides whether it is true or false. Thus, a general solution to the Entscheidungsproblem (decision problem) is impossible. Used to define what a computable function is. There is no algorithm that can decide, for any two lambda calculus expressions, whether they are equivalent. First problem to be shown to be undecidable. (Even before the halting problem.) Why interesting? Theory of computation: Equivalent alternative to a Turing machine Basis of functional programming Overview Three constructs: symbols (identifiers), e.g., x function definitions, e.g., (! x . x + 1) function applications, e.g., ((! x . x + 1) 1) syntax: apply f to x is written as "(f x)" or "f x" instead of "f(x)" Example Definition of function that adds 1 to its argument: (! x . x + 1) Apply it to the number 3: ((! x . x + 1) 3) Rewrite by substituting 3 for x: ((! x . x + 1) 3) = 3 + 1 = 4 Can leave out parentheses in many cases. Left associative f x y = (f x) y Function application has higher presedence than function definition ! x . y z = ! x . (y z) Example: (! x . x + 1) 3 Functions have only one argument, but we can fake multiple arguments "Currying" (named after Haskell Curry) Example: Subtract b from a Want to find the … in (… a b) so that it means subtract b from a What does the following function do? (! x .
    [Show full text]
  • Programming with Lambda (Pre Lecture)
    Programming with Lambda (Pre Lecture) Dr. Neil T. Dantam CSCI-400, Colorado School of Mines Spring 2021 Dantam (Mines CSCI-400) Lambda Spring 2021 1/29 Origin of Lambda: What’s an “algorithm”? Entscheidungsproblem: mathematical true algorithm statement false λ-calculus Turing machines David Hilbert Alonzo Church Alan Turing Dantam (Mines CSCI-400) Lambda Spring 2021 2/29 Introduction Lambda Outcomes ◮ Lambda: the ultimate operator ◮ Implement common language ◮ Everything programmable can be constructs using Lambda programmed with lambda ◮ Practical: if a language lacks a desired feature, but has lambda, you can implement that feature with lambda (see also: JavaScript) Dantam (Mines CSCI-400) Lambda Spring 2021 3/29 Lambda Expression Review Function Definition Function Application formal parameter function λ . z}|{x α z}|{f y body actual parameter |{z} |{z} ◮ Create an unnamed function. ◮ Bind actual parameter y to ◮ The function is itself a value. the formal parameter of f . ◮ Do not evaluate the body until applied (called) ◮ Evaluate the body of f . Example a = 2 + (λa . 1+ a) 2 1 + 2 3 Dantam (Mines CSCI-400) Lambda Spring 2021 4/29 Lambda: Very Important! Review ◮ Lambda can perform any possible computation! ◮ Trivial with Lambda: ◮ N-ary functions ◮ Variable binding (let) “I’m kind of a big deal.” ◮ Statements (;) ◮ Named functions ◮ OOP ◮ Also possible with Lambda: ◮ Recursion λ ◮ Conditionals (if) ◮ Lists ◮ Structs ◮ Arithmetic (+, −, etc.) Dantam (Mines CSCI-400) Lambda Spring 2021 5/29 Lambda: Very Important! Review ◮ Lambda can perform any possible computation! ◮ Trivial with Lambda: ◮ N-ary functions ◮ Variable binding (let) “I’m kind of a big deal.” ◮ Statements (;) ◮ Named functions ◮ OOP ◮ Also possible with Lambda: ◮ Recursion λ ◮ Conditionals (if) ◮ Lists ◮ Structs ◮ Arithmetic (+, −, etc.) Dantam (Mines CSCI-400) Lambda Spring 2021 6/29 Binary and N-ary Functions Outline Binary and N-ary Functions Bindings Dantam (Mines CSCI-400) Lambda Spring 2021 7/29 Binary and N-ary Functions Binary Functions Reduction of Binary to Unary Functions Example λ .
    [Show full text]