(Ie a Natural Model) Closed Under a Particular Connec

Total Page:16

File Type:pdf, Size:1020Kb

(Ie a Natural Model) Closed Under a Particular Connec CONNECTIVES IN SEMANTICS OF TYPE THEORY JONATHAN STERLING Abstract. Some expository notes on the semantics of inductive types in Awodey’s nat- ural models [Awo18]. Many of the ideas explained are drawn from the work of Awodey [Awo18], Streicher [Str14], Gratzer, Kavvos, Nuyts, and Birkedal [Gra+20], and Sterling, Angiuli, and Gratzer [SAG20]. When is a model of type theory (i.e. a natural model) closed under a particular connec- tive? And what is a general notion of connective? Leing C be a small category with a terminal object and E = Pr¹Cº be its logos1 of presheaves, a natural model is a representable natural transformation TÛ τ T : E [Awo18]. j Connectives that commute with the Yoneda embedding C E (such as dependent product and sum) may be specied in a particularly simple way. ! F ! (1) First, one denes an endofunctor Ecart Ecart taking a family (viewed as a uni- verse) to the generic family for that connective. e intuition for this family is that the upstairs part carries the data of its introduction rule, and the downstairs part carries the data of its formation rule. For instance, one may take F to be the endofunctor that takes a map f to the functorial action of the polynomial endofunctor Pf on f itself. In this case, one has the notion of a dependent product type. (2) en, one requires a cartesian mapF¹τº τ, i.e. a pullback square of the following kind: Û @0¹F¹τºº T F¹τº τ @1¹F¹τºº T In the case of our example, the downstairs map becomes a code for the depen- dent product type, and the upstairs map becomes a constructor for λ-abstraction. e universal property of the pullback implements the elimination form (applica- tion) together with its computation and uniqueness rules. 1. Inductive types in the semantics of type theory e account above, which works for essentially all connectives that can be understood by means of mapping-in universal properties, does not extend to either strict or weak inductive types; it is most common in the literature to account for these by means of in- ternal orthogonality conditions and stable liing structures respectively [Awo18; Gra+20; SAG20]. 1I am following the convention of Anel and Joyal [AJ19] in referring to the formal algebraic dual of a topos as a logos, by analogy with frames and locales. 1 2 JONATHAN STERLING 1.1. Example: the empty coproduct. Let us rst gain some intuitions for why the na¨ıve approach would fail to express the closure of TÛ τ T under strict coproducts; it will suce to consider the empty coproduct. We begin by dening an endofunctor F; on the ! f cartesian arrow category Ecart. We will have F; take a map A B to the universal map g α F;¹f º = ;E 1E; xing C D and a cartesian square f g, we take F;¹αº to the following cartesian square: ;E ;E 1E 1E Na¨ıvely, we might assume that the right thing to do next is ask for a cartesian map α τ F;¹τº τ. But we can see that such a thing cannot exist; because TÛ T is a repre- sentable map, the top-le corner of the following diagram must be representable: @ ¹αº 0 Û ;E T τ j¹1Cº 1E T @1¹αº But the initial object of E = Pr¹Cº cannot be representable: E is the free cocomple- tion. Generally speaking, for this approach to work, we would need the endofunctor F to preserve representable maps, which F; clearly does not. We will show, however, an appropriate way to express the closure of TÛ τ T under a strict empty type using orthog- onality. α (1) First, we demand a code 1E T (the formation rule). (2) en, we consider the following canonical (but not cartesian) square: Û ;E T τ 1 T E α e cartesian gap map of this square is the homomorphism of spans induced by the actual pullback of τ along α [Ane+17]: ;E Û Û T ×T 1E T α ∗τ τ 1 T E α CONNECTIVES IN SEMANTICS OF TYPE THEORY 3 (3) en, we require that the cartesian gap map ;E τ»α¼ shall be internally le orthogonal to TÛ τ T in E. is means, for each Z : E, a unique ller to any square of the following shape: Û Z × ;E T Z × ! 9! τ Û Z × T ×T 1E T Û A We have required a unique element of each type Z × T ×T 1E T; blowing up Z into a colimit of representables j¹Zi º, we obtain exactly the intended notion: a unique element of any type in each inconsistent context. ! F ! 1.2. Strict connectives via orthogonality. We x an endofunctor Ecart Ecart; we will now describe what it takes for TÛ τ T to be closed under the corresponding strict connective. For notational expediency, we will use the language of the codomain bration E! @1 E rather than taking pullbacks in E. (1) First, we demand a commuting square F¹τº α τ : E!, not necessarily cartesian. Here, @1¹αº is the “formation rule” and @0¹αº is the “introduction rule”. What remains is to express the elimination rule (and its computation and uniqueness principles). (2) We form the cartesian gap map for the diagram above: F¹τº α α¯ ∗ y ! @1¹αº τ @1¹αº τ τ E @1¹F¹τºº T E @1¹αº (3) For the elimination rule, we require that the gap map α¯ be internally le orthogonal ∗ @1¹F¹τºº τ in the slice category C/@1¹F¹τºº. (4) A large elimination may additionally be accomodated by requiring the gap map ∗ α¯ be internally le orthogonal to @1¹F¹τºº ¹T 1Eº in C/@1¹F¹τºº. ! F ! Û τ Denition 1.1. Let Ecart Ecart be a functor, and T T a natural model over C, writing E for Pr¹Cº.A strict F-structure for TÛ τ T is a commuting square F¹τº α τ : ! α¯ ∗ E such that the cartesian gap map F¹τº @1¹αº τ is is internally le orthogonal to ∗ @1¹F¹τºº τ in C/@1¹F¹τºº. ¦ ! F⊕ ! Example 1.2 (Strict coproducts). We dene an endofunctor Ecart Ecart capturing the f generic binary coproduct situation for a given family. Given A B, we let @1¹F⊕¹f ºº = ∗ ∗ B × B, to dene the rest of the family F⊕¹f º to be the coproduct π2 f + π1 f in E/B×B . 4 JONATHAN STERLING g Next, we x C D and a cartesian square f α g; we must exhibit a cartesian square F⊕¹αº F⊕¹f º F⊕¹gº: @0¹F⊕¹f ºº @0¹F⊕¹gºº ∗ ∗ ∗ ∗ π2 f + π1 f π2g + π1g B × B C × C h Let B × B D × D be the obvious map @1¹αº × @1¹αº; rephrasing into the language of the codomain bration, we may investigate the cartesian li of this map: ∗ ∗ ∗ ∗ ∗ h ¹π2g + π1gº π2g + π1g B × B D × D h By the universality of colimits, we may commute the pullback h∗ into the coproduct: ∗ ∗ ∗ ∗ ∗ ∗ h π2g + h π1g π2g + π1g B × B D × D h ∗ ∗ ∗ It remains to show that h πi g πi f . Because πi ◦ h = @1¹αº ◦ πi , we may factor the ∗ ∗ cartesian map h πi g g into the following composite of cartesian maps: ∗ ∗ ∗ πi f h πi g f g B × B B D D × D ! F⊕ ! Û τ We have now dened the endofunctor Ecart Ecart; given a natural model T T, a strict F⊕-structure F⊕¹τº τ equips τ with a coproduct connective, suitable introduction rules, and an elimination rule equipped with computation and uniqueness principles. ¦ 1.3. Comparing strict F-structures and cartesian squares. ! F ! α Lemma 1.3. Let Ecart Ecart be a functor, and let F¹τº τ be a cartesian map: then α is also a strict F-structure for TÛ τ T. Proof. Fixing Z : E/@1¹F¹τºº, we must check that squares of the following kind have unique lis: a ∗ Û Z × F¹τº @1¹F¹τºº T ∗ Z × α¯ 9! @1¹F¹τºº τ ∗ ∗ Z × @1¹αº τ @1¹F¹τºº T A CONNECTIVES IN SEMANTICS OF TYPE THEORY 5 Because α is cartesian, the vertical gap map α¯ is an isomorphism. erefore, Z × α¯ is also an isomorphism: a ∗ Û Z × F¹τº @1¹F¹τºº T × β ¹F¹ ºº∗ β Z α¯ a ◦ @1 τ τ ∗ ∗ Z × @1¹αº τ @1¹F¹τºº T A Lemma 1.4 (Caution). It is not necessarily the case that, supposing F¹τº is a representable map and α is a strict F-structure for τ, then α is cartesian. Proof. Suppose this were the case. (1) Let C be a small category, and let TÛ τ T : E be a representable natural transfor- mation, writing E for Pr¹Cº. ! (2) Let F; be the constant endofunctor on Ecart from our earlier example, sending any family to ;E 1E. α τ (3) Suppose that F;¹τº τ is a strict F-structure for TÛ T. ! (4) Dene Fj¹;º to be the constant endofunctor on Pr¹Eºcart sending any family to j¹;Eº j¹1Eº. (5) j¹τº is obviously a representable map in Pr¹Eº and so is Fj¹;º¹j¹τºº. α j¹αº Û τ (6) eF;-structureF;¹τº τ lis to aFj¹;º-structureFj¹;º¹j¹τºº j¹τº for T T, using the fact that the Yoneda embedding is dense and fully faithful.
Recommended publications
  • Indexed Induction-Recursion
    Indexed Induction-Recursion Peter Dybjer a;? aDepartment of Computer Science and Engineering, Chalmers University of Technology, 412 96 G¨oteborg, Sweden Email: [email protected], http://www.cs.chalmers.se/∼peterd/, Tel: +46 31 772 1035, Fax: +46 31 772 3663. Anton Setzer b;1 bDepartment of Computer Science, University of Wales Swansea, Singleton Park, Swansea SA2 8PP, UK, Email: [email protected], http://www.cs.swan.ac.uk/∼csetzer/, Tel: +44 1792 513368, Fax: +44 1792 295651. Abstract An indexed inductive definition (IID) is a simultaneous inductive definition of an indexed family of sets. An inductive-recursive definition (IRD) is a simultaneous inductive definition of a set and a recursive definition of a function from that set into another type. An indexed inductive-recursive definition (IIRD) is a combination of both. We present a closed theory which allows us to introduce all IIRDs in a natural way without much encoding. By specialising it we also get a closed theory of IID. Our theory of IIRDs includes essentially all definitions of sets which occur in Martin-L¨of type theory. We show in particular that Martin-L¨of's computability predicates for dependent types and Palmgren's higher order universes are special kinds of IIRD and thereby clarify why they are constructively acceptable notions. We give two axiomatisations. The first and more restricted one formalises a prin- ciple for introducing meaningful IIRD by using the data-construct in the original version of the proof assistant Agda for Martin-L¨of type theory. The second one admits a more general form of introduction rule, including the introduction rule for the intensional identity relation, which is not covered by the restricted one.
    [Show full text]
  • Formal Systems: Combinatory Logic and -Calculus
    INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION FORMAL SYSTEMS:COMBINATORY LOGIC AND λ-CALCULUS Andrew R. Plummer Department of Linguistics The Ohio State University 30 Sept., 2009 INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION OUTLINE 1 INTRODUCTION 2 APPLICATIVE SYSTEMS 3 USEFUL INFORMATION INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION COMBINATORY LOGIC We present the foundations of Combinatory Logic and the λ-calculus. We mean to precisely demonstrate their similarities and differences. CURRY AND FEYS (KOREAN FACE) The material discussed is drawn from: Combinatory Logic Vol. 1, (1958) Curry and Feys. Lambda-Calculus and Combinators, (2008) Hindley and Seldin. INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION FORMAL SYSTEMS We begin with some definitions. FORMAL SYSTEMS A formal system is composed of: A set of terms; A set of statements about terms; A set of statements, which are true, called theorems. INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION FORMAL SYSTEMS TERMS We are given a set of atomic terms, which are unanalyzed primitives. We are also given a set of operations, each of which is a mode for combining a finite sequence of terms to form a new term. Finally, we are given a set of term formation rules detailing how to use the operations to form terms. INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION FORMAL SYSTEMS STATEMENTS We are given a set of predicates, each of which is a mode for forming a statement from a finite sequence of terms. We are given a set of statement formation rules detailing how to use the predicates to form statements. INTRODUCTION APPLICATIVE SYSTEMS USEFUL INFORMATION FORMAL SYSTEMS THEOREMS We are given a set of axioms, each of which is a statement that is unconditionally true (and thus a theorem).
    [Show full text]
  • Wittgenstein, Turing and Gödel
    Wittgenstein, Turing and Gödel Juliet Floyd Boston University Lichtenberg-Kolleg, Georg August Universität Göttingen Japan Philosophy of Science Association Meeting, Tokyo, Japan 12 June 2010 Wittgenstein on Turing (1946) RPP I 1096. Turing's 'Machines'. These machines are humans who calculate. And one might express what he says also in the form of games. And the interesting games would be such as brought one via certain rules to nonsensical instructions. I am thinking of games like the “racing game”. One has received the order "Go on in the same way" when this makes no sense, say because one has got into a circle. For that order makes sense only in certain positions. (Watson.) Talk Outline: Wittgenstein’s remarks on mathematics and logic Turing and Wittgenstein Gödel on Turing compared Wittgenstein on Mathematics and Logic . The most dismissed part of his writings {although not by Felix Mülhölzer – BGM III} . Accounting for Wittgenstein’s obsession with the intuitive (e.g. pictures, models, aspect perception) . No principled finitism in Wittgenstein . Detail the development of Wittgenstein’s remarks against background of the mathematics of his day Machine metaphors in Wittgenstein Proof in logic is a “mechanical” expedient Logical symbolisms/mathematical theories are “calculi” with “proof machinery” Proofs in mathematics (e.g. by induction) exhibit or show algorithms PR, PG, BB: “Can a machine think?” Language (thought) as a mechanism Pianola Reading Machines, the Machine as Symbolizing its own actions, “Is the human body a thinking machine?” is not an empirical question Turing Machines Turing resolved Hilbert’s Entscheidungsproblem (posed in 1928): Find a definite method by which every statement of mathematics expressed formally in an axiomatic system can be determined to be true or false based on the axioms.
    [Show full text]
  • Warren Goldfarb, Notes on Metamathematics
    Notes on Metamathematics Warren Goldfarb W.B. Pearson Professor of Modern Mathematics and Mathematical Logic Department of Philosophy Harvard University DRAFT: January 1, 2018 In Memory of Burton Dreben (1927{1999), whose spirited teaching on G¨odeliantopics provided the original inspiration for these Notes. Contents 1 Axiomatics 1 1.1 Formal languages . 1 1.2 Axioms and rules of inference . 5 1.3 Natural numbers: the successor function . 9 1.4 General notions . 13 1.5 Peano Arithmetic. 15 1.6 Basic laws of arithmetic . 18 2 G¨odel'sProof 23 2.1 G¨odelnumbering . 23 2.2 Primitive recursive functions and relations . 25 2.3 Arithmetization of syntax . 30 2.4 Numeralwise representability . 35 2.5 Proof of incompleteness . 37 2.6 `I am not derivable' . 40 3 Formalized Metamathematics 43 3.1 The Fixed Point Lemma . 43 3.2 G¨odel'sSecond Incompleteness Theorem . 47 3.3 The First Incompleteness Theorem Sharpened . 52 3.4 L¨ob'sTheorem . 55 4 Formalizing Primitive Recursion 59 4.1 ∆0,Σ1, and Π1 formulas . 59 4.2 Σ1-completeness and Σ1-soundness . 61 4.3 Proof of Representability . 63 3 5 Formalized Semantics 69 5.1 Tarski's Theorem . 69 5.2 Defining truth for LPA .......................... 72 5.3 Uses of the truth-definition . 74 5.4 Second-order Arithmetic . 76 5.5 Partial truth predicates . 79 5.6 Truth for other languages . 81 6 Computability 85 6.1 Computability . 85 6.2 Recursive and partial recursive functions . 87 6.3 The Normal Form Theorem and the Halting Problem . 91 6.4 Turing Machines .
    [Show full text]
  • 15-819 Homotopy Type Theory Lecture Notes
    15-819 Homotopy Type Theory Lecture Notes Nathan Fulton October 9 and 11, 2013 1 Contents These notes summarize and extend two lectures from Bob Harper’s Homotopy Type Theory course. The cumulative hierarchy of type universes, Extensional Type theory, the ∞-groupoid structure of types and iterated identity types are presented. 2 Motivation and Overview Recall from previous lectures the definitions of functionality and transport. Function- ality states that functions preserve identity; that is, domain elements equal in their type map to equal elements in the codomain. Transportation states the same for 0 0 type families. Traditionally, this means that if a =A a , then B[a] true iff B[a ] true. In proof-relevant mathematics, this logical equivalence is generalized to a statement 0 0 about identity in the family: if a =A a , then B[a] =B B[a ]. Transportation can be thought of in terms of functional extensionality. Un- fortunately, extensionality fails in ITT. One way to recover extensionality, which comports with traditional mathematics, is to reduce all identity to reflexivity. This approach, called Extensional Type theory (ETT), provides a natural setting for set-level mathematics. The HoTT perspective on ETT is that the path structure of types need not be limited to that of strict sets. The richer path structure of an ∞-groupoid is induced by the induction principle for identity types. Finding a type-theoretic description of this behavior (that is, introduction, elimination and computation rules which comport with Gentzen’s Inversion Principle) is an open problem. 1 Homotopy Type Theory 3 The Cumulative Hierarchy of Universes In previous formulations of ITT, we used the judgement A type when forming types.
    [Show full text]
  • Formal Systems .1In
    Formal systems | University of Edinburgh | PHIL08004 | 1 / 32 January 16, 2020 Puzzle 3 A man was looking at a portrait. Someone asked him, \Whose picture are you looking at?" He replied: \Brothers and sisters have I none, but this man's father is my father's son." Whose picture was the man looking at? 2 / 32 3 / 32 I Is the man in the picture the man himself? I Self-portrait? 4 / 32 I Is the man in the picture the man himself? I Self-portrait? 4 / 32 I Is the man in the picture the man himself? I Self-portrait? 4 / 32 I No. I If the man in the picture is himself, then this father would be his own son! I \this man is my father's son" vs. I \this man's father is my father's son" 5 / 32 I No. I If the man in the picture is himself, then this father would be his own son! I \this man is my father's son" vs. I \this man's father is my father's son" 5 / 32 I No. I If the man in the picture is himself, then this father would be his own son! I \this man is my father's son" vs. I \this man's father is my father's son" 5 / 32 I No. I If the man in the picture is himself, then this father would be his own son! I \this man is my father's son" vs. I \this man's father is my father's son" 5 / 32 I No.
    [Show full text]
  • 15-819 Homotopy Type Theory Lecture Notes
    15-819 Homotopy Type Theory Lecture Notes Henry DeYoung and Stephanie Balzer September 9 and 11, 2013 1 Contents These notes summarize the lectures on homotopy type theory (HoTT) given by Professor Robert Harper on September 9 and 11, 2013, at CMU. They start by providing a introduction to HoTT, capturing its main ideas and its connection to other related type theories. Then they present intuitionistic propositional logic (IPL), giving both an proof-theoretic formulation as well an order-theoretic formulation. 2 Introduction to homotopy type theory Homotopy type theory(HoTT) is the subject of a very active research community that gathered at the Institute for Advanced Study (IAS) in 2012 to participate in the Univalent Foundations Program. The results of the program have been recently published in the HoTT Book [1]. 2.1 HoTT in a nutshell HoTT is based on Per Martin-L¨of’s intuitionistic type theory, which provides a foun- dation for intuitionistic mathematics and which is an extension of Brouwer’s program. Brouwer viewed mathematical reasoning as a human activity and mathematics as a language for communicating mathematical concepts. As a result, Brouwer per- ceived the ability of executing a step-by-step procedure or algorithm for performing a construction as a fundamental human faculty. Adopting Brouwer’s constructive viewpoint, intuitionistic theories view proofs as the fundamental forms of construction. The notion of proof relevance is thus a 1 Homotopy Type Theory characteristic feature of an intuitionistic (or constructive1) approach. In the context of HoTT, proof relevance means that proofs become mathematical objects [3]. To fully understand this standpoint, it is necessary to draw a distinction between the notion of a proof and the one of a formal proof [3, 2].
    [Show full text]
  • A Dictionary of PHILOSOPHICAL LOGIC
    a dictionary of a dictionary of PHILOSOPHICAL LOGIC This dictionary introduces undergraduate and graduate students PHILOSOPHICAL LOGIC in philosophy, mathematics, and computer science to the main problems and positions in philosophical logic. Coverage includes not only key figures, positions, terminology, and debates within philosophical logic itself, but issues in related, overlapping disciplines such as set theory and the philosophy of mathematics as well. Entries are extensively cross-referenced, so that each entry can be easily located within the context of wider debates, thereby providing a dictionary of a valuable reference both for tracking the connections between concepts within logic and for examining the manner in which these PHILOSOPHICAL LOGIC concepts are applied in other philosophical disciplines. Roy T. Cook is Assistant Professor in the Department of Philosophy at Roy T. Cook the University of Minnesota and an Associate Fellow at Arché, the Philosophical Research Centre for Logic, Language, Metaphysics and Epistemology at the University of St Andrews. He works primarily in the philosophy of logic, language, and mathematics, and has also Cook Roy T. published papers on seventeenth-century philosophy. ISBN 978 0 7486 2559 8 Edinburgh University Press E 22 George Square dinburgh Edinburgh EH8 9LF www.euppublishing.com Cover image: www.istockphoto.com Cover design: www.paulsmithdesign.com 1004 01 pages i-vi:Layout 1 16/2/09 15:18 Page i A DICTIONARY OF PHILOSOPHICAL LOGIC 1004 01 pages i-vi:Layout 1 16/2/09 15:18 Page ii Dedicated to my mother, Carol C. Cook, who made sure that I got to learn all this stuff, and to George Schumm, Stewart Shapiro, and Neil Tennant, who taught me much of it.
    [Show full text]
  • 2 Formal Languages – 2
    Hardegree, Metalogic, Formal Languages – 2 page 1 of 28 2 Formal Languages – 2 1. Introduction ......................................................................................................................................3 2. The Meta-Language ..........................................................................................................................3 3. Prefix, Infix, and Postfix...................................................................................................................3 1. Prefix Format........................................................................................................................3 2. Postfix Format......................................................................................................................4 3. Infix Format..........................................................................................................................4 4. Prefix (Polish) Formatted ZOL’s......................................................................................................4 1. General Vocabulary..............................................................................................................4 2. General Rules Of Formation.................................................................................................4 5. Abstract Example of a Polish Formatted ZOL..................................................................................4 1. Vocabulary (lexicon)............................................................................................................4
    [Show full text]
  • Martin Löf's J-Rule
    Bachelor thesis Martin Löf’s J-Rule by Lennard Götz July 16, 2018 supervised by Dr. Iosif Petrakis Faculty for mathematics, informatics and statistics of Ludwig-Maximilian-Universität München Statement in Lieu of an Oath Ich versichere hiermit, dass ich die vorgelegte Bachelorarbeit eigenständig und ohne fremde Hilfe verfasst, keine anderen als die angegebenen Quellen verwendet und die den benutzten Quellen entnommenen Passagen als solche kenntlich gemacht habe. Diese Bachelorarbeit istt in dieser oder einer ähnlichen Form in keinem anderen Kurs und/oder Studiengang als Studien- oder Prüfungsleistung vorgelegt worden. Hiermit stimme ich zu, dass die vorliegende Arbeit von dem Prüfer in elektronischer Form mit entsprechender Software über prüft wird. 2 Contents 1 Introduction 5 2 Function types 5 2.1 Dependent function types (Π − types)......... 6 2.2 Product type (A × B) ................. 6 2.3 Dependent pair types (P −types)........... 7 2.4 Coproduct type (A + B) . 7 3 Identity types 8 3.1 Martin Löf’s J-Rule . 9 3.2 J-Rule as function . 9 4 The relation between the J-rule and the j-rule 10 4.1 Transport . 10 4.2 The M-judgement . 12 4.3 Based versions . 15 4.4 The j-Rule . 15 4.5 Equivalence between the J-Rule and the j-Rule . 16 4.6 Based Transport (transport) . 17 4.7 Based LeastRefl (leastrefl) . 18 4.8 The m-judgement . 19 5 Applications of the J-rule 21 6 C++ and the J-Rule 29 7 Identity systems 33 8 Appendix 40 3 Abstract After giving an overview of Martin-Löf Type Theory (MLTT), we focus on identity types.
    [Show full text]
  • Formal Language (3A)
    Formal Language (3A) ● Regular Language Young Won Lim 6/9/18 Copyright (c) 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Please send corrections (or suggestions) to [email protected]. This document was produced by using LibreOffice and Octave. Young Won Lim 6/9/18 Formal Language a formal language is a set of strings of symbols together with a set of rules that are specific to it. https://en.wikipedia.org/wiki/Formal_language Young Won Lim Regular Language (3A) 3 6/9/18 Alphabet and Words The alphabet of a formal language is the set of symbols, letters, or tokens from which the strings of the language may be formed. The strings formed from this alphabet are called words the words that belong to a particular formal language are sometimes called well-formed words or well-formed formulas. https://en.wikipedia.org/wiki/Formal_language Young Won Lim Regular Language (3A) 4 6/9/18 Formal Language A formal language (formation rule) is often defined by means of a formal grammar such as a regular grammar or context-free grammar, https://en.wikipedia.org/wiki/Formal_language Young Won Lim Regular Language (3A) 5 6/9/18 Formal Language and Natural Language The field of formal language theory studies primarily the purely syntactical aspects of such languages— that is, their internal structural patterns.
    [Show full text]
  • Arxiv:1201.3898V2 [Math.LO] 2 May 2012
    INDUCTIVE TYPES IN HOMOTOPY TYPE THEORY STEVE AWODEY, NICOLA GAMBINO, AND KRISTINA SOJAKOVA Abstract. Homotopy type theory is an interpretation of Martin-L¨of’s con- structive type theory into abstract homotopy theory. There results a link between constructive mathematics and algebraic topology, providing topologi- cal semantics for intensional systems of type theory as well as a computational approach to algebraic topology via type theory-based proof assistants such as Coq. The present work investigates inductive types in this setting. Modified rules for inductive types, including types of well-founded trees, or W-types, are presented, and the basic homotopical semantics of such types are determined. Proofs of all results have been formally verified by the Coq proof assistant, and the proof scripts for this verification form an essential component of this research. Introduction The constructive type theories introduced by Martin-L¨of are dependently-typed λ- calculi with operations for identity types IdA(a,b), dependent products (Πx : A)B(x) and dependent sums (Σx : A)B(x), among others [1, 2, 3, 4, 5]. These are related to the basic concepts of predicate logic, viz. equality and quantification, via the familiar propositions-as-types correspondence [6]. The different systems introduced by Martin-L¨of over the years vary greatly both in proof-theoretic strength [7] and computational properties. From the computational point of view, it is important to distinguish between the extensional systems, that have a stronger notion of equality, but for which type-checking is undecidable, and the intensional ones, that have a weaker notion of equality, but for which type-checking is decidable [8, 9].
    [Show full text]