Univalent Foundations and the Equivalence Principle

Total Page:16

File Type:pdf, Size:1020Kb

Univalent Foundations and the Equivalence Principle Univalent foundations and the equivalence principle Benedikt Ahrens Paige North May 31, 2018 In this paper, we explore the `equivalence principle' (EP): roughly, state- ments about mathematical objects should be invariant under an appropriate notion of equivalence of the kinds of objects under consideration. In set theoretic foundations, EP may not always hold: for instance, the statement `1 2 N' is not invariant under isomorphism of sets. In univalent foundations, on the other hand, EP has been proven for many mathematical structures. We first give an overview of earlier attempts at designing foundations that satisfy EP. We then describe how univalent foundations validates EP. Contents 1 The equivalence principle2 2 History 4 3 Univalent foundations and transport of structures along equivalences5 3.1 Indiscernability of identicals in type theory . .6 3.2 From equality to equivalence . .7 3.3 The univalence axiom . .7 4 The equivalence principle for set-level structures8 4.1 Propositions . .8 4.2 Sets . .9 4.3 Monoids . .9 4.4 Univalent categories . 10 5 The equivalence principle for (higher) categorical structures 12 1 1 The equivalence principle What should it mean for two objects x and y to be equal? One proposal by Leibniz [10], known as the \identity of indiscernables", states if x and y have the same properties, then they must be equal: 8 properties P; (P (x) $ P (y)) ! x = y: For this proposal to be reasonable, then the converse, the \indiscernability of identi- cals," should hold incontrovertibly. That is, if x and y are equal, then they must have the same properties: x = y ! 8 properties P; (P (x) $ P (y)) : (1) Indeed, one would be hard-pressed to find a mathematician who disagreed with this principle. However, as with most truths that are taken for granted, this principle is of limited usefulness: in classical mathematics based on set theory, too few objects are equal. A group theorist, for example, would have little interest in a principle which required them to suppose that two groups are equal. Instead, mathematicians are interested in weaker notions of sameness and properties that are invariant under them. A group theorist, for example, would have more interest in an analogous principle that described the properties of any pair of isomorphic groups G and H: G =∼ H ! 8 group theoretic properties P; (P (G) $ P (H)) : Similarly, category theorists would be more interested in a principle that described the properties of any pair of equivalent categories A and B: A ' B ! 8 category theoretic properties P; (P (A) $ P (B)) : To generalize: working mathematicians are interested in a stronger variant of the principle given in line (1) above, namely the equivalence principle for some domain D of mathematics and all objects x and y of study in D: x ∼D y ! 8 D-properties P; (P (x) $ P (y)) ; (2) where ∼D denotes a suitable notion of sameness for the domain D. We might also consider a stronger variant of the equivalence principle. A group the- orist, for example, might not only want properties of groups to be invariant under iso- morphism, but they might also want structures on groups to also be invariant under isomorphism. For example, if the equivalence principle (1) holds and if two groups G and H are isomorphic, then the statements "G has a representation on V " and "H has a representation on V " are equivalent (for some vector space V ). However, it is actually the case that the isomorphism G =∼ H induces a bijection between the set of representations of G on V and the set of representations of H on V . Such a variant 2 of the equivalence principle has become known as the Structure Identity Principle (see [5],[14, Section 9.8]). Our goal in this paper is to describe how one finds the right notion ∼D of sameness and the right class of `D-properties and D-structures' for some specific domains D. This right notion of sameness is not uniformly defined across different mathematical objects. However, we usually use the one already present in mathematical practice since we hope the equivalence principle to capture mathematical practice. As a rule of thumb, it is usually considered to be • equality when the objects naturally form a set|numbers, functions, etc. • isomorphism when the objects naturally form a category|sets, groups, etc. • equivalence when the objects naturally form a bicategory|e.g., categories. The hard part will be in determining the right class of D-properties and D-structures for some specific domain D. In usual mathematical practice, we can state properties which break the equivalence principle; that is, we can state properties of mathematical objects that are not invariant under sameness. We will seek to exclude such properties from our class of D-properties and D-structures. Exercise 1. We denote by 2N the set of even natural numbers. Find a property of sets ∼ that is not invariant under the isomorphism N = 2N given by multiplying and dividing by 2, respectively. n uhsaeeti ie nteabstract. the in given is statement such : One Answer Exercise 2. Find a property of categories that is true for one, but not for the other of these two, equivalent, categories. # • c •'• a xcl n bet"i uhastatement. a such is object." one exactly has C category \The statement : The Answer Thus, to assert an equivalence principle for sets or categories, we need to exclude these properties from our collection of `set theoretic properties' and `category theoretic properties'. M. Makkai [12] says The basic character of the Principle of Isomorphism is that of a constraint on the language of Abstract Mathematics; a welcome one, since it provides for the separation of sense from nonsense. Put differently, establishing an equivalence principle means establishing a syntactic cri- terion for properties and constructions that are invariant under sameness. 3 2 History Look again at Example 2. There, we violated the equivalence principle for categories by referring to equality of objects. This might lead one to conjecture (correctly) that categorical properties which obey the equivalence principle cannot mention equality of objects. However, the traditional definition of category mentions equality of objects. It usually includes the following axiom: for any two morphisms f and g such that the codomain of f equals the domain of g, there is a morphism gf such that domain of gf equals the domain of f and the codomain of gf equals the codomain of g. To avoid mentioning equality of objects, one can express the composability of mor- phisms of that category via different means, specifically by having not one collection of morphisms but many \hom-sets": one for each pair of objects. This idea, for instance explained in [11, Section I.8] usually requires asking the hom-sets to be disjoint. This last requirement is automatic if we work instead in a multi-sorted language, where sorts are automatically disjoint. A category is then given by • a sort O of objects, • for each x; y 2 O, a sort A(x; y) of arrows from x to y, • for each x; y; z 2 O and f 2 A(x; y), g 2 A(y; z), a composite arrow g ◦f 2 A(x; z), and • for each x 2 O, an identity arrow idx 2 A(x; x) such that • for each w; x; y; z 2 O and f 2 A(w; x), g 2 A(x; y), h 2 A(y; z), there is an equality h ◦ (g ◦ f) = (h ◦ g) ◦ f) in A(w; z), • for each x; y 2 O and f 2 A(x; y), there is an equality f ◦ idx = f in A(x; y), and • for each x; y 2 O and f 2 A(x; y), there is an equality idy ◦ f = f in A(x; y). Note that when stating axioms, the only equality that is mentioned is the equality within a homset of the form A(x; y), that is, between arrows of the same sort. By adding quantifiers, ranging over one sort at a time, to this many-sorted language, we obtain a language for stating properties of, and constructions on, categories. It turns out that the statements of that language are invariant under equivalence of categories: Theorem 3 (Th´eor`emede pr´eservationpar ´equivalence [4]). A property of categories (expressed in 2-sorted first order logic) is invariant under equivalence iff it can be ex- pressed in the many-sorted languages sketched above, and without referring to equality of objects. 4 We do not give here the precise form of the many-sorted language, but refer instead to Blanc's article for details. Type theory will provide us with a language very similar to the one sketched here. Note that Freyd [8] states a similar result to Blanc's above, in terms of \diagrammatic properties". Makkai [12] develops a notion of signature and theory, to specify mathematical struc- tures. A theory is a pair (L; Σ) consisting of a signature L (specifying the data of the structure) and a set Σ of \axioms" over L (specifying the axioms of the structure). A theory determines a notion of \model"|which is an L-structure satisfying the properties specified by Σ—and and of \equivalence" of such models, called L-equivalence. His Invariance Theorem gives a result similar to Theorem 3 for models of a theory: Given an interpretation T = (L; Σ) ! S of a FOLDS theory in a FOL theory, an S- sentence φ is invariant under L-equivalence if and only if it is expressible in First Order Logic with Dependent Sorts (FOLDS) over L.
Recommended publications
  • Reasoning About Equations Using Equality
    Mathematics Instructional Plan – Grade 4 Reasoning About Equations Using Equality Strand: Patterns, Functions, Algebra Topic: Using reasoning to assess the equality in closed and open arithmetic equations Primary SOL: 4.16 The student will recognize and demonstrate the meaning of equality in an equation. Related SOL: 4.4a Materials: Partners Explore Equality and Equations activity sheet (attached) Vocabulary equal symbol (=), equality, equation, expression, not equal symbol (≠), number sentence, open number sentence, reasoning Student/Teacher Actions: What should students be doing? What should teachers be doing? 1. Activate students’ prior knowledge about the equal sign. Formally assess what students already know and what misconceptions they have. Ask students to open their notebooks to a clean sheet of paper and draw lines to divide the sheet into thirds as shown below. Create a poster of the same graphic organizer for the room. This activity should take no more than 10 minutes; it is not a teaching opportunity but simply a data- collection activity. Equality and the Equal Sign (=) I know that- I wonder if- I learned that- 1 1 1 a. Let students know they will be creating a graphic organizer about equality and the equal sign; that is, what it means and how it is used. The organizer is to help them keep track of what they know, what they wonder, and what they learn. The “I know that” column is where they can write things they are pretty sure are correct. The “I wonder if” column is where they can write things they have questions about and also where they can put things they think may be true but they are not sure.
    [Show full text]
  • Sets in Homotopy Type Theory
    Predicative topos Sets in Homotopy type theory Bas Spitters Aarhus Bas Spitters Aarhus Sets in Homotopy type theory Predicative topos About me I PhD thesis on constructive analysis I Connecting Bishop's pointwise mathematics w/topos theory (w/Coquand) I Formalization of effective real analysis in Coq O'Connor's PhD part EU ForMath project I Topos theory and quantum theory I Univalent foundations as a combination of the strands co-author of the book and the Coq library I guarded homotopy type theory: applications to CS Bas Spitters Aarhus Sets in Homotopy type theory Most of the presentation is based on the book and Sets in HoTT (with Rijke). CC-BY-SA Towards a new design of proof assistants: Proof assistant with a clear (denotational) semantics, guiding the addition of new features. E.g. guarded cubical type theory Predicative topos Homotopy type theory Towards a new practical foundation for mathematics. I Modern ((higher) categorical) mathematics I Formalization I Constructive mathematics Closer to mathematical practice, inherent treatment of equivalences. Bas Spitters Aarhus Sets in Homotopy type theory Predicative topos Homotopy type theory Towards a new practical foundation for mathematics. I Modern ((higher) categorical) mathematics I Formalization I Constructive mathematics Closer to mathematical practice, inherent treatment of equivalences. Towards a new design of proof assistants: Proof assistant with a clear (denotational) semantics, guiding the addition of new features. E.g. guarded cubical type theory Bas Spitters Aarhus Sets in Homotopy type theory Formalization of discrete mathematics: four color theorem, Feit Thompson, ... computational interpretation was crucial. Can this be extended to non-discrete types? Predicative topos Challenges pre-HoTT: Sets as Types no quotients (setoids), no unique choice (in Coq), ..
    [Show full text]
  • Fomus: Foundations of Mathematics: Univalent Foundations and Set Theory - What Are Suitable Criteria for the Foundations of Mathematics?
    Zentrum für interdisziplinäre Forschung Center for Interdisciplinary Research UPDATED PROGRAMME Universität Bielefeld ZIF WORKSHOP FoMUS: Foundations of Mathematics: Univalent Foundations and Set Theory - What are Suitable Criteria for the Foundations of Mathematics? Convenors: Lukas Kühne (Bonn, GER) Deborah Kant (Berlin, GER) Deniz Sarikaya (Hamburg, GER) Balthasar Grabmayr (Berlin, GER) Mira Viehstädt (Hamburg, GER) 18 – 23 July 2016 IN COOPERATION WITH: MONDAY, JULY 18 1:00 - 2:00 pm Welcome addresses by Michael Röckner (ZiF Managing Director) Opening 2:00 - 3:30 pm Vladimir Voevodsky Multiple Concepts of Equality in the New Foundations of Mathematics 3:30 - 4:00 pm Tea / coffee break 4:00 - 5:30 pm Marc Bezem "Elements of Mathematics" in the Digital Age 5:30 - 7:00 pm Parallel Workshop Session A) Regula Krapf: Introduction to Forcing B) Ioanna Dimitriou: Formalising Set Theoretic Proofs with Isabelle/HOL in Isar 7:00 pm Light Dinner PAGE 2 TUESDAY, JULY 19 9:00 - 10:30 am Thorsten Altenkirch Naïve Type Theory 10:30 - 11:00 am Tea / coffee break 11:00 am - 12:30 pm Benedikt Ahrens Univalent Foundations and the Equivalence Principle 12:30 - 2.00 pm Lunch 2:00 - 3:30 pm Parallel Workshop Session A) Regula Krapf: Introduction to Forcing B) Ioanna Dimitriou: Formalising Set Theoretic Proofs with Isabelle/HOL in Isar 3:30 - 4:00 pm Tea / coffee break 4:00 - 5:30 pm Clemens Ballarin Structuring Mathematics in Higher-Order Logic 5:30 - 7:00 pm Parallel Workshop Session A) Paige North: Models of Type Theory B) Ulrik Buchholtz: Higher Inductive Types and Synthetic Homotopy Theory 7:00 pm Dinner WEDNESDAY, JULY 20 9:00 - 10:30 am Parallel Workshop Session A) Clemens Ballarin: Proof Assistants (Isabelle) I B) Alexander C.
    [Show full text]
  • Univalent Foundations
    Univalent Foundations Talk by Vladimir Voevodsky from Institute for Advanced Study in Princeton, NJ. September 21 , 2011 1 Introduction After Goedel's famous results there developed a "schism" in mathemat- ics when abstract mathematics and constructive mathematics became largely isolated from each other with the "abstract" steam growing into what we call "pure mathematics" and the "constructive stream" into what we call theory of computation and theory of programming lan- guages. Univalent Foundations is a new area of research which aims to help to reconnect these streams with a particular focus on the development of software for building rigorously verified constructive proofs and models using abstract mathematical concepts. This is of course a very long term project and we can not see today how its end points will look like. I will concentrate instead its recent history, current stage and some of the short term future plans. 2 Elemental, set-theoretic and higher level mathematics 1. Element-level mathematics works with elements of "fundamental" mathematical sets mostly numbers of different kinds. 2. Set-level mathematics works with structures on sets. 3. What we usually call "category-level" mathematics in fact works with structures on groupoids. It is easy to see that a category is a groupoid level analog of a partially ordered set. 4. Mathematics on "higher levels" can be seen as working with struc- tures on higher groupoids. 3 To reconnect abstract and constructive mathematics we need new foundations of mathematics. The ”official” foundations of mathematics based on Zermelo-Fraenkel set theory with the Axiom of Choice (ZFC) make reasoning about objects for which the natural notion of equivalence is more complex than the notion of isomorphism of sets with structures either very laborious or too informal to be reliable.
    [Show full text]
  • Constructivity in Homotopy Type Theory
    Ludwig Maximilian University of Munich Munich Center for Mathematical Philosophy Constructivity in Homotopy Type Theory Author: Supervisors: Maximilian Doré Prof. Dr. Dr. Hannes Leitgeb Prof. Steve Awodey, PhD Munich, August 2019 Thesis submitted in partial fulfillment of the requirements for the degree of Master of Arts in Logic and Philosophy of Science contents Contents 1 Introduction1 1.1 Outline................................ 3 1.2 Open Problems ........................... 4 2 Judgements and Propositions6 2.1 Judgements ............................. 7 2.2 Propositions............................. 9 2.2.1 Dependent types...................... 10 2.2.2 The logical constants in HoTT .............. 11 2.3 Natural Numbers.......................... 13 2.4 Propositional Equality....................... 14 2.5 Equality, Revisited ......................... 17 2.6 Mere Propositions and Propositional Truncation . 18 2.7 Universes and Univalence..................... 19 3 Constructive Logic 22 3.1 Brouwer and the Advent of Intuitionism ............ 22 3.2 Heyting and Kolmogorov, and the Formalization of Intuitionism 23 3.3 The Lambda Calculus and Propositions-as-types . 26 3.4 Bishop’s Constructive Mathematics................ 27 4 Computational Content 29 4.1 BHK in Homotopy Type Theory ................. 30 4.2 Martin-Löf’s Meaning Explanations ............... 31 4.2.1 The meaning of the judgments.............. 32 4.2.2 The theory of expressions................. 34 4.2.3 Canonical forms ...................... 35 4.2.4 The validity of the types.................. 37 4.3 Breaking Canonicity and Propositional Canonicity . 38 4.3.1 Breaking canonicity .................... 39 4.3.2 Propositional canonicity.................. 40 4.4 Proof-theoretic Semantics and the Meaning Explanations . 40 5 Constructive Identity 44 5.1 Identity in Martin-Löf’s Meaning Explanations......... 45 ii contents 5.1.1 Intensional type theory and the meaning explanations 46 5.1.2 Extensional type theory and the meaning explanations 47 5.2 Homotopical Interpretation of Identity ............
    [Show full text]
  • First-Order Logic
    Chapter 5 First-Order Logic 5.1 INTRODUCTION In propositional logic, it is not possible to express assertions about elements of a structure. The weak expressive power of propositional logic accounts for its relative mathematical simplicity, but it is a very severe limitation, and it is desirable to have more expressive logics. First-order logic is a considerably richer logic than propositional logic, but yet enjoys many nice mathemati- cal properties. In particular, there are finitary proof systems complete with respect to the semantics. In first-order logic, assertions about elements of structures can be ex- pressed. Technically, this is achieved by allowing the propositional symbols to have arguments ranging over elements of structures. For convenience, we also allow symbols denoting functions and constants. Our study of first-order logic will parallel the study of propositional logic conducted in Chapter 3. First, the syntax of first-order logic will be defined. The syntax is given by an inductive definition. Next, the semantics of first- order logic will be given. For this, it will be necessary to define the notion of a structure, which is essentially the concept of an algebra defined in Section 2.4, and the notion of satisfaction. Given a structure M and a formula A, for any assignment s of values in M to the variables (in A), we shall define the satisfaction relation |=, so that M |= A[s] 146 5.2 FIRST-ORDER LANGUAGES 147 expresses the fact that the assignment s satisfies the formula A in M. The satisfaction relation |= is defined recursively on the set of formulae.
    [Show full text]
  • Part 3: First-Order Logic with Equality
    Part 3: First-Order Logic with Equality Equality is the most important relation in mathematics and functional programming. In principle, problems in first-order logic with equality can be handled by, e.g., resolution theorem provers. Equality is theoretically difficult: First-order functional programming is Turing-complete. But: resolution theorem provers cannot even solve problems that are intuitively easy. Consequence: to handle equality efficiently, knowledge must be integrated into the theorem prover. 1 3.1 Handling Equality Naively Proposition 3.1: Let F be a closed first-order formula with equality. Let ∼ 2/ Π be a new predicate symbol. The set Eq(Σ) contains the formulas 8x (x ∼ x) 8x, y (x ∼ y ! y ∼ x) 8x, y, z (x ∼ y ^ y ∼ z ! x ∼ z) 8~x,~y (x1 ∼ y1 ^ · · · ^ xn ∼ yn ! f (x1, : : : , xn) ∼ f (y1, : : : , yn)) 8~x,~y (x1 ∼ y1 ^ · · · ^ xn ∼ yn ^ p(x1, : : : , xn) ! p(y1, : : : , yn)) for every f /n 2 Ω and p/n 2 Π. Let F~ be the formula that one obtains from F if every occurrence of ≈ is replaced by ∼. Then F is satisfiable if and only if Eq(Σ) [ fF~g is satisfiable. 2 Handling Equality Naively By giving the equality axioms explicitly, first-order problems with equality can in principle be solved by a standard resolution or tableaux prover. But this is unfortunately not efficient (mainly due to the transitivity and congruence axioms). 3 Roadmap How to proceed: • Arbitrary binary relations. • Equations (unit clauses with equality): Term rewrite systems. Expressing semantic consequence syntactically. Entailment for equations. • Equational clauses: Entailment for clauses with equality.
    [Show full text]
  • Logic, Sets, and Proofs David A
    Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Statements. A logical statement is a mathematical statement that is either true or false. Here we denote logical statements with capital letters A; B. Logical statements be combined to form new logical statements as follows: Name Notation Conjunction A and B Disjunction A or B Negation not A :A Implication A implies B if A, then B A ) B Equivalence A if and only if B A , B Here are some examples of conjunction, disjunction and negation: x > 1 and x < 3: This is true when x is in the open interval (1; 3). x > 1 or x < 3: This is true for all real numbers x. :(x > 1): This is the same as x ≤ 1. Here are two logical statements that are true: x > 4 ) x > 2. x2 = 1 , (x = 1 or x = −1). Note that \x = 1 or x = −1" is usually written x = ±1. Converses, Contrapositives, and Tautologies. We begin with converses and contrapositives: • The converse of \A implies B" is \B implies A". • The contrapositive of \A implies B" is \:B implies :A" Thus the statement \x > 4 ) x > 2" has: • Converse: x > 2 ) x > 4. • Contrapositive: x ≤ 2 ) x ≤ 4. 1 Some logical statements are guaranteed to always be true. These are tautologies. Here are two tautologies that involve converses and contrapositives: • (A if and only if B) , ((A implies B) and (B implies A)). In other words, A and B are equivalent exactly when both A ) B and its converse are true.
    [Show full text]
  • Tool 1: Gender Terminology, Concepts and Definitions
    TOOL 1 Gender terminology, concepts and def initions UNESCO Bangkok Office Asia and Pacific Regional Bureau for Education Mom Luang Pin Malakul Centenary Building 920 Sukhumvit Road, Prakanong, Klongtoei © Hadynyah/Getty Images Bangkok 10110, Thailand Email: [email protected] Website: https://bangkok.unesco.org Tel: +66-2-3910577 Fax: +66-2-3910866 Table of Contents Objectives .................................................................................................. 1 Key information: Setting the scene ............................................................. 1 Box 1: .......................................................................................................................2 Fundamental concepts: gender and sex ...................................................... 2 Box 2: .......................................................................................................................2 Self-study and/or group activity: Reflect on gender norms in your context........3 Self-study and/or group activity: Check understanding of definitions ................3 Gender and education ................................................................................. 4 Self-study and/or group activity: Gender and education definitions ...................4 Box 3: Gender parity index .....................................................................................7 Self-study and/or group activity: Reflect on girls’ and boys’ lives in your context .....................................................................................................................8
    [Show full text]
  • Set-Theoretic Foundations
    Contemporary Mathematics Volume 690, 2017 http://dx.doi.org/10.1090/conm/690/13872 Set-theoretic foundations Penelope Maddy Contents 1. Foundational uses of set theory 2. Foundational uses of category theory 3. The multiverse 4. Inconclusive conclusion References It’s more or less standard orthodoxy these days that set theory – ZFC, extended by large cardinals – provides a foundation for classical mathematics. Oddly enough, it’s less clear what ‘providing a foundation’ comes to. Still, there are those who argue strenuously that category theory would do this job better than set theory does, or even that set theory can’t do it at all, and that category theory can. There are also those who insist that set theory should be understood, not as the study of a single universe, V, purportedly described by ZFC + LCs, but as the study of a so-called ‘multiverse’ of set-theoretic universes – while retaining its foundational role. I won’t pretend to sort out all these complex and contentious matters, but I do hope to compile a few relevant observations that might help bring illumination somewhat closer to hand. 1. Foundational uses of set theory The most common characterization of set theory’s foundational role, the char- acterization found in textbooks, is illustrated in the opening sentences of Kunen’s classic book on forcing: Set theory is the foundation of mathematics. All mathematical concepts are defined in terms of the primitive notions of set and membership. In axiomatic set theory we formulate . axioms 2010 Mathematics Subject Classification. Primary 03A05; Secondary 00A30, 03Exx, 03B30, 18A15.
    [Show full text]
  • Comparison Identity Vs. Equality Identity Vs. Equality for Strings Notions of Equality Order
    Comparison Comparisons and the Comparable • Something that we do a lot Interface • Can compare all kinds of data with respect to all kinds of comparison relations . Identity . Equality Lecture 14 . Order CS211 – Spring 2006 . Lots of others Identity vs. Equality Identity vs. Equality for Strings • For primitive types (e.g., int, long, float, double, boolean) . == and != are equality tests • Quiz: What are the results of the following tests? • For reference types (i.e., objects) . "hello".equals("hello") true . == and != are identity tests . In other words, they test if the references indicate the same address . "hello" == "hello" true in the Heap . "hello" == new String("hello") false • For equality of objects: use the equals( ) method . equals( ) is defined in class Object . Any class you create inherits equals from its parent class, but you can override it (and probably want to) Notions of equality Order • A is equal to B if A can be substituted for B anywhere • For numeric primitives • For all other reference . Identical things must be equal: == implies equals (e.g., int, float, long, types double) • Immutable values are equal if they represent same value! . <, >, <=, >= do not work . Use <, >, <=, >= • Not clear you want them . (new Integer(2)).equals(new Integer(2)) to work: suppose we . == is not an abstract operation compare People • For reference types that Compare by name? • Mutable values can be distinguished by assignment. correspond to primitive Compare by height? class Foo { int f; Foo(int g) { f = g; } } weight? types Compare by SSN? Foo x = new Foo(2); . As of Java 5.0, Java does CUID? Foo y = new Foo(2); Autoboxing and Auto- .
    [Show full text]
  • Higher Algebra in Homotopy Type Theory
    Higher Algebra in Homotopy Type Theory Ulrik Buchholtz TU Darmstadt Formal Methods in Mathematics / Lean Together 2020 1 Homotopy Type Theory & Univalent Foundations 2 Higher Groups 3 Higher Algebra Outline 1 Homotopy Type Theory & Univalent Foundations 2 Higher Groups 3 Higher Algebra Homotopy Type Theory & Univalent Foundations First, recall: • Homotopy Type Theory (HoTT): • A branch of mathematics (& logic/computer science/philosophy) studying the connection between homotopy theory & Martin-Löf type theory • Specific type theories: Typically MLTT + Univalence (+ HITs + Resizing + Optional classicality axioms) • Without the classicality axioms: many interesting models (higher toposes) – one potential reason to case about constructive math • Univalent Foundations: • Using HoTT as a foundation for mathematics. Basic idea: mathematical objects are (ordinary) homotopy types. (no entity without identity – a notion of identification) • Avoid “higher groupoid hell”: We can work directly with homotopy types and we can form higher quotients. (But can we form enough? More on this later.) Cf.: The HoTT book & list of references on the HoTT wiki Homotopy levels Recall Voevodsky’s definition of the homotopy levels: Level Name Definition −2 contractible isContr(A) := (x : A) × (y : A) ! (x = y) −1 proposition isProp(A) := (x; y : A) ! isContr(x = y) 0 set isSet(A) := (x; y : A) ! isProp(x = y) 1 groupoid isGpd(A) := (x; y : A) ! isSet(x = y) . n n-type ··· . 1 type (N/A) In non-homotopical mathematics, most objects are n-types with n ≤ 1. The types of categories and related structures are 2-types. Univalence axiom For A; B : Type, the map id-to-equivA;B :(A =Type B) ! (A ' B) is an equivalence.
    [Show full text]