Univalent multisets. V through the eyes of the identity type. Håkon Robbestad Gylterud. August 2014

Similar documents
Category theory in the Univalent Foundations

A Note on the Efficiency of Indirect Taxes in an Asymmetric Cournot Oligopoly

Argumentation Semantics for Defeasible Logic

A Semantic Decomposition of Defeasible Logics

Ad-valorem and Royalty Licensing under Decreasing Returns to Scale

Network Analysis: Minimum Spanning Tree, The Shortest Path Problem, Maximal Flow Problem. Métodos Cuantitativos M. en C. Eduardo Bustos Farías 1

Argumentation Semantics for Defeasible Logics

Cube Land integration between land use and transportation

Giovanni Curi - CV. Last updated: July 21, 2009; see also

Agents, Epistemic Justification, and Defeasibility

Hedonic Pricing Model Open Space and Residential Property Values

Representations of Semisimple Lie Algebras in the BGG Category 0

Part 1. Introduction to the Fundamentals of Separating Real Property, Personal Property, and Intangible Business Assets. Preview...

Small-Tract Mineral Owners vs. Producers: The Unintended Consequences of Well-Spacing Exceptions

Richard Garner. Contact details Department of Mathematics, Macquarie University, NSW 2109 Telephone:

Crestview Realty. John Doe, Salesperson REALTOR Franchise or office logo

Valuation techniques to improve rigour and transparency in commercial valuations

Service Oriented Architectural Design

A Knowledge Representation Language for Defeasible Argumentation 1 2

A Flexible Framework for Defeasible Logics

Marginalized kernels for biological sequences

A FORMAL APPROACH FOR INCORPORATING ARCHITECTURAL TACTICS INTO THE SOFTWARE ARCHITECTURE

The What, Why and How of Project Work Breakdown Structures (WBS)

A Comparison of Sceptical NAF-Free Logic Programming Approaches

Network Analysis: Minimum Spanning Tree,

Nonlocal methods for image processing

UNIVALENCE CRITERIA OF CERTAIN INTEGRAL OPERATOR (Kriterium Univalen bagi Pengoperasi Kamiran Tertentu)

Housing Transfer Taxes and Household Mobility: Distortion on the Housing or Labour Market? Christian Hilber and Teemu Lyytikäinen

DATA APPENDIX. 1. Census Variables

Gregory W. Huffman. Working Paper No. 01-W22. September 2001 DEPARTMENT OF ECONOMICS VANDERBILT UNIVERSITY NASHVILLE, TN 37235

Volume 35, Issue 1. Hedonic prices, capitalization rate and real estate appraisal

CENTRAL GOVERNMENT ACCOUNTING STANDARDS

Matapos ang Pagbubungkag ng Damikay tayo ay tutungo sa Rational Expressions MATH DIVISION, IMSP, UPLB

Grounded Consequence for Defeasible Logic

RoboCup Challenges. Robotics. Simulation League Small League Medium-sized League (less interest) SONY Legged League Humanoid League

Sorting based on amenities and income

A New Approach to Computing Hedonic Equilibria and Investigating the Properties of Locational Sorting Models

Essentials of Real Estate Economics

Relating Concrete Argumentation Formalisms and Abstract Argumentation

Maximization of Non-Residential Property Tax Revenue by a Local Government

Village of Bremen 9090 Marietta Road, SE Bremen, Ohio (740)

On the Disutility and Discounting of Imprisonment and the Theory of Deterrence

Dialogue Games in Defeasible Logic

Chapter 1. Introduction: Some Representative Problems. CS 350: Winter 2018

NBER WORKING PAPER SERIES EMINENT DOMAIN VERSUS GOVERNMENT PURCHASE OF LAND GIVEN IMPERPECT INFORMATION ABOUT OWNERS' VALUATION.

Graphical Representation of Defeasible Logic Rules Using Digraphs

Special Purpose Properties. Special Valuation Considerations

Economics Letters 128:

THE REAL ESTATE INDUSTRY 3 PERSPECTIVES

Defeasible Reasoning About Beliefs and Desires

Acad. Lubomir Iliev. f n [k] (z) = z + a[k] 1 z k+1 + a [k] which are schlicht and regular in the circle z < 1, and let

3. G. Antoniou, D. Billington, G. Governatori and M.J. Maher. A exible framework

On A Class of Analytic Univalent Function Defined By Ruscheweyh Derivative. Abstract

Table of Contents SECTION 1. Overview... ix. Schedule...xiii. Part 1. Origins of Eminent Domain

COMPLEX FUNCTION THEORY

The Analytic Hierarchy Process. M. En C. Eduardo Bustos Farías

Table of Contents SECTION 1. Overview... ix. Schedule...xiii. Part 1. Origins of Eminent Domain

Basic Appraisal Procedures

Chapter 150. Commissioner's Rules Concerning Educator Appraisal. Subchapter AA. Teacher Appraisal

The manuscript diagrams of al-harawī s version of Menelaus Spherics

The Effect of Relative Size on Housing Values in Durham

HOUSING TECHNICIAN I HOUSING TECHNICIAN II

11.433J / J Real Estate Economics Fall 2008

addresses fairness in mitigation of development impacts

RE: Proposed Accounting Standards Update, Leases (Topic 842): Targeted Improvements (File Reference No )

Programme Specification for BA (Hons) Architecture FT + PT 2009/2010

Click to edit Master title style

PERFORMANCE APPRAISAL EVALUATION OF TEACHERS

CAZENOVIA COLLEGE HOUSING & MEAL PLAN SELECTION MANUAL

Overview of OR Modeling Approach & Introduction to Linear Programming

University of Zürich, Switzerland

Federal Republic of Germany. VI Houses with Balcony Access, Dessau-Roßlau: N 51 48' 3" / E 12 14' 39"

Procedures Used to Calculate Property Taxes for Agricultural Land in Mississippi

BUSINESS PROPERTY THE REAL VALUE OF. New Minnesota law gives appraisers a way to establish minimum compensation in eminent domain cases

Damage Measures for Inadvertant Breach of Contract

Mass appraisal Educational offerings and Designation Requirements. designations provide a portable measurement of your capabilities

Common Errors and Issues in Review

y y x x infinite cloner

SOLUTIONS Learning Goal 19

Hauptseminar im Sommersemester 2005 Medizinische Bildverarbeitung

Note: I reserve the right to modify this schedule during the duration of this course. Performance evaluation. Students' grades will be determined by:

AIC deals with the trade-off between the complexity of the model and the goodness of fit of the model.

What Factors Determine the Volume of Home Sales in Texas?

History and Theory of Architecture

SESSION 4B CONDITIONS OR OBLIGATIONS?

PROPERTY MANAGEMENT OFFICER 1 PROPERTY MANAGEMENT OFFICER 2

Manya M. Mooya. Real Estate Valvation. Theory. A Critical Appraisal. A Springer

Benchmarking Cadastral Systems Results of the Working Group 7.1

Case Study: HAMONIC + MASSON & Associés BREAKING THROUGH THE PARISIAN SKYLINE

ARROW* Right Of Way. *Achieving Results in. Bob Cunningham DelDOT

Paul Wollan page 1 of 6

Twenty Buildings Twenty Places

Should you have any further queries, we would be pleased to assist.

Course outline. Code: PED210 Title: Principles of Property Valuation

Panel discussion. Ane Hejlskov Larsen, Aarhus University Brita Brenna, University of Oslo Lise Skytte Jakobsen, Aarhus University

Supreme Court of Florida

GeoWarehouse Land Registry. Teranet Enterprises Inc.

Demonstrate knowledge of, and extract, cadastral data from Landonline

Terms of Reference for the Regional Housing Affordability Strategy

They may not represent the best practice for your Council, which should be determined by consultation between the Council s officers and Auditor.

Transcription:

Univalent multisets V through the eyes of the identity type Håkon Robbestad Gylterud August 2014 Håkon Robbestad Gylterud Univalent multisets Stockholm University 1 / 25

Outline of the talk 1 Present common intuition about multisets Håkon Robbestad Gylterud Univalent multisets Stockholm University 2 / 25

Outline of the talk 1 Present common intuition about multisets 2 Give a model of multisets in type theory Håkon Robbestad Gylterud Univalent multisets Stockholm University 2 / 25

Outline of the talk 1 Present common intuition about multisets 2 Give a model of multisets in type theory 3 A result about W-types Håkon Robbestad Gylterud Univalent multisets Stockholm University 2 / 25

Outline of the talk 1 Present common intuition about multisets 2 Give a model of multisets in type theory 3 A result about W-types 4 Apply this result to the model Håkon Robbestad Gylterud Univalent multisets Stockholm University 2 / 25

Outline of the talk 1 Present common intuition about multisets 2 Give a model of multisets in type theory 3 A result about W-types 4 Apply this result to the model 5 Outline of current and future work Håkon Robbestad Gylterud Univalent multisets Stockholm University 2 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. The notion of set is that of a type in type theory Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. The notion of set is that of a type in type theory (or rather element in the type Set in the logical framework). Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. The notion of set is that of a type in type theory (or rather element in the type Set in the logical framework). We will use the term iterative set to refer to the notion of set which is studied in Set Theory. Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. The notion of set is that of a type in type theory (or rather element in the type Set in the logical framework). We will use the term iterative set to refer to the notion of set which is studied in Set Theory. Juxtaposition denotes (left associative) function application. That is, f x denotes f applied to x, and f x y := (f x) y Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

Mathematical context In this talk... We work in Martin-Löf type theory. The notion of set is that of a type in type theory (or rather element in the type Set in the logical framework). We will use the term iterative set to refer to the notion of set which is studied in Set Theory. Juxtaposition denotes (left associative) function application. That is, f x denotes f applied to x, and f x y := (f x) y The technical parts are formalized in Agda. Håkon Robbestad Gylterud Univalent multisets Stockholm University 3 / 25

What are multisets? Håkon Robbestad Gylterud Univalent multisets Stockholm University 4 / 25

What are multisets? Our intuition is that multisets... Consists of elements. Håkon Robbestad Gylterud Univalent multisets Stockholm University 4 / 25

What are multisets? Our intuition is that multisets... Consists of elements. Elements are considered to be unordered. Håkon Robbestad Gylterud Univalent multisets Stockholm University 4 / 25

What are multisets? Our intuition is that multisets... Consists of elements. Elements are considered to be unordered. For each element the number of occurences is relevant. Håkon Robbestad Gylterud Univalent multisets Stockholm University 4 / 25

What are multisets? Our intuition is that multisets... Consists of elements. Elements are considered to be unordered. For each element the number of occurences is relevant. The first two points are applies to sets as well. The third point distinguishes the two notions. Håkon Robbestad Gylterud Univalent multisets Stockholm University 4 / 25

Examples The roots of a polynomial is a multiset if we count multiplicity. x 3 2x 2 + x has roots {0, 1, 1}. Håkon Robbestad Gylterud Univalent multisets Stockholm University 5 / 25

Examples The roots of a polynomial is a multiset if we count multiplicity. x 3 2x 2 + x has roots {0, 1, 1}. Sequent calculus. A, A φ Håkon Robbestad Gylterud Univalent multisets Stockholm University 5 / 25

Examples The roots of a polynomial is a multiset if we count multiplicity. x 3 2x 2 + x has roots {0, 1, 1}. Sequent calculus. A, A φ Bags in computer science. Håkon Robbestad Gylterud Univalent multisets Stockholm University 5 / 25

Related work Blizzard (1989), develops a classical, two sorted, first order theory of multisets which, when restricted to sets, is equivalent to ZFC. Håkon Robbestad Gylterud Univalent multisets Stockholm University 6 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Instead of a ternary relation, we will keep the -relation binary and invoke the propositions-as-sets attitude of Martin-Löf type theory. Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Instead of a ternary relation, we will keep the -relation binary and invoke the propositions-as-sets attitude of Martin-Löf type theory. Our notation x y denotes the set of occurences of x in y. Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Instead of a ternary relation, we will keep the -relation binary and invoke the propositions-as-sets attitude of Martin-Löf type theory. Our notation x y denotes the set of occurences of x in y. Example (1 {0, 0, 1, 1, 1}) = 3 Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Instead of a ternary relation, we will keep the -relation binary and invoke the propositions-as-sets attitude of Martin-Löf type theory. Our notation x y denotes the set of occurences of x in y. Example (1 {0, 0, 1, 1, 1}) = 3 ( 2 Roots(x 3 2x 2 + x) ) =. Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Elementhood in multisets Blizzard and others use the notation: Notation (Blizzard) x n y denotes that x occurs in y exactly n times. Instead of a ternary relation, we will keep the -relation binary and invoke the propositions-as-sets attitude of Martin-Löf type theory. Our notation x y denotes the set of occurences of x in y. Example (1 {0, 0, 1, 1, 1}) = 3 ( 2 Roots(x 3 2x 2 + x) ) =. (3 {3, 3, 3, }) = N. Håkon Robbestad Gylterud Univalent multisets Stockholm University 7 / 25

Exensionality In set theory Given two iterative sets x and y, if for each z we have that z x iff z y, then x and y are equal. Håkon Robbestad Gylterud Univalent multisets Stockholm University 8 / 25

Exensionality In set theory Given two iterative sets x and y, if for each z we have that z x iff z y, then x and y are equal. The principle of extensionality for multisets Two multisets x and y are considered equal iff for any z, the number of occurences of z in x and the number of occurences of z in y are in bijective correspondence (in our symbolism: (z x) = (z y)). Håkon Robbestad Gylterud Univalent multisets Stockholm University 8 / 25

Classical vs Constructive Classically, one can model a multiset as a set X, called the domain, and a function, e : X N. Or if extended into the infinite, a function e : X Card. Håkon Robbestad Gylterud Univalent multisets Stockholm University 9 / 25

Classical vs Constructive Classically, one can model a multiset as a set X, called the domain, and a function, e : X N. Or if extended into the infinite, a function e : X Card. Constructively, there might not be many interesting functions into N, and the notion of cardinals is problematic. Håkon Robbestad Gylterud Univalent multisets Stockholm University 9 / 25

Classical vs Constructive Classically, one can model a multiset as a set X, called the domain, and a function, e : X N. Or if extended into the infinite, a function e : X Card. Constructively, there might not be many interesting functions into N, and the notion of cardinals is problematic. A solution is to consider a multiset as a family. m : X Set, Håkon Robbestad Gylterud Univalent multisets Stockholm University 9 / 25

Classical vs Constructive Classically, one can model a multiset as a set X, called the domain, and a function, e : X N. Or if extended into the infinite, a function e : X Card. Constructively, there might not be many interesting functions into N, and the notion of cardinals is problematic. A solution is to consider a multiset as a family. m : X Set, or m : I X. Håkon Robbestad Gylterud Univalent multisets Stockholm University 9 / 25

Iterative multisets Is it possible to parallell the construction of iterative sets? Håkon Robbestad Gylterud Univalent multisets Stockholm University 10 / 25

Iterative multisets Is it possible to parallell the construction of iterative sets? For iterative sets, we consider the totality V, consisting of sets where all elements of the sets, them selves are sets. Håkon Robbestad Gylterud Univalent multisets Stockholm University 10 / 25

Iterative multisets Is it possible to parallell the construction of iterative sets? For iterative sets, we consider the totality V, consisting of sets where all elements of the sets, them selves are sets. One may then wish for a totality M, consistsing of multisets of multisets, all with with domain M it self. Håkon Robbestad Gylterud Univalent multisets Stockholm University 10 / 25

Trees It is well known that (wellfounded) trees can serve as models of (wellfounded) iterative sets. Håkon Robbestad Gylterud Univalent multisets Stockholm University 11 / 25

Trees It is well known that (wellfounded) trees can serve as models of (wellfounded) iterative sets. Example The iterative set {{{ }, }, { }} is represented by Håkon Robbestad Gylterud Univalent multisets Stockholm University 11 / 25

Trees It is well known that (wellfounded) trees can serve as models of (wellfounded) iterative sets. Example The iterative set {{{ }, }, { }} is represented by but also by Håkon Robbestad Gylterud Univalent multisets Stockholm University 11 / 25

Trees It is well known that (wellfounded) trees can serve as models of (wellfounded) iterative sets. Example The iterative set {{{ }, }, { }} is represented by but also by For iterative multisets, we want to keep these two distinct. Håkon Robbestad Gylterud Univalent multisets Stockholm University 11 / 25

The W-type Definition Given a family A : Set, B : A Set, the set of all well founded trees with branchings in this family, denoted W a:a Ba is inductively generated by the rule: Håkon Robbestad Gylterud Univalent multisets Stockholm University 12 / 25

The W-type Definition Given a family A : Set, B : A Set, the set of all well founded trees with branchings in this family, denoted W a:a Ba is inductively generated by the rule: For each a : A and f : Ba W a:a Ba, there is a unique element (sup a f ) : W a:a Ba. Håkon Robbestad Gylterud Univalent multisets Stockholm University 12 / 25

Aczel s model of iterative sets in type theory Håkon Robbestad Gylterud Univalent multisets Stockholm University 13 / 25

Aczel s model of iterative sets in type theory Definition (Aczel) Given en a universe U : Set with decoding familty T : U Set, define a setoid (V, = V ) by Håkon Robbestad Gylterud Univalent multisets Stockholm University 13 / 25

Aczel s model of iterative sets in type theory Definition (Aczel) Given en a universe U : Set with decoding familty T : U Set, define a setoid (V, = V ) by V : Set V := W a:u Ta Håkon Robbestad Gylterud Univalent multisets Stockholm University 13 / 25

Aczel s model of iterative sets in type theory Definition (Aczel) Given en a universe U : Set with decoding familty T : U Set, define a setoid (V, = V ) by V : Set V := W a:u Ta = V : V V Set (sup a f ) = V (sup b g) := i) = V (g j) i:ta j:tb(f (f i) = V (g j) j:tb i:ta Håkon Robbestad Gylterud Univalent multisets Stockholm University 13 / 25

Aczel s model of iterative sets in type theory Lemma = V is equivalent to = V : V V Set (sup a f ) = V (sup b g) := (f x) = V (g (α x)) (f (βy)) = V α:ta Tb x:ta β:tb Ta y:tb (g y) Håkon Robbestad Gylterud Univalent multisets Stockholm University 14 / 25

Aczel s model of iterative sets in type theory Lemma = V is equivalent to = V : V V Set (sup a f ) = V (sup b g) := (f x) = V (g (α x)) (f (βy)) = V α:ta Tb x:ta β:tb Ta y:tb (g y) Proof. W-induction on V and apply the (type theoretical) axiom of choice twice. Håkon Robbestad Gylterud Univalent multisets Stockholm University 14 / 25

Aczel s model of iterative sets in type theory Diagramatically, (sup a f ) is equal, according to = V, to (sup b g) if the diagrams Ta α Tb Ta β Tb f g f g V V commutes up to = V. Håkon Robbestad Gylterud Univalent multisets Stockholm University 15 / 25

Aczel s model of iterative sets in type theory Diagramatically, (sup a f ) is equal, according to = V, to (sup b g) if the diagrams Ta α Tb Ta β Tb f g f g V V commutes up to = V. The natural change to make is to require that α and β form an equivalence of types. Håkon Robbestad Gylterud Univalent multisets Stockholm University 15 / 25

The model Definition M : Set M := W a:u Ta = M : M M Set (sup a f ) = M (sup b g) := (f x) = M (g (α x)) α:ta =Tb x:ta Håkon Robbestad Gylterud Univalent multisets Stockholm University 16 / 25

The model Definition M : Set M := W a:u Ta = M : M M Set (sup a f ) = M (sup b g) := (f x) = M (g (α x)) α:ta =Tb x:ta Ta α = Tb f g V Håkon Robbestad Gylterud Univalent multisets Stockholm University 16 / 25

The model Definition Elementhood between multisets is defined by : M M Set x (sup a f ) := i:ta (f a = M x) Håkon Robbestad Gylterud Univalent multisets Stockholm University 17 / 25

The identity type and Equivalence In Martin-Löf type theory, every A : Set is equipped with a type Id A : A A Set, which is inductively generated by If a : A then (refl a) : Id A a a. Håkon Robbestad Gylterud Univalent multisets Stockholm University 18 / 25

The identity type and Equivalence In Martin-Löf type theory, every A : Set is equipped with a type Id A : A A Set, which is inductively generated by If a : A then (refl a) : Id A a a. This induces a notion of extensional equality on functions, and a notion of equivalence between types, which are essential in Homotopy Type Theory. Håkon Robbestad Gylterud Univalent multisets Stockholm University 18 / 25

The identity type and Equivalence In Martin-Löf type theory, every A : Set is equipped with a type Id A : A A Set, which is inductively generated by If a : A then (refl a) : Id A a a. This induces a notion of extensional equality on functions, and a notion of equivalence between types, which are essential in Homotopy Type Theory. If A, B : Set we denote by A = B the type of equivalences from A to B. And if f, g : A B, we denote by f g the type of extensional equalities (homotopies) from f to g. Håkon Robbestad Gylterud Univalent multisets Stockholm University 18 / 25

A result on the identity type of W types Håkon Robbestad Gylterud Univalent multisets Stockholm University 19 / 25

A result on the identity type of W types Lemma For any A : Set and B : A Set, and all (sup a f ), (sup b g) : W A B, there is an equivalence Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Håkon Robbestad Gylterud Univalent multisets Stockholm University 19 / 25

A result on the identity type of W types Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Proof. There is a map going from left to right by induction on Id WA B. That is, for each (sup a f ) the element (refl a, refl f ) works. Call this map φ. Håkon Robbestad Gylterud Univalent multisets Stockholm University 20 / 25

A result on the identity type of W types Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Proof. There is a map going from left to right by induction on Id WA B. That is, for each (sup a f ) the element (refl a, refl f ) works. Call this map φ. To show that this map is an equivalence, we need to show that the inverse images of each element is a singleton. Håkon Robbestad Gylterud Univalent multisets Stockholm University 20 / 25

A result on the identity type of W types Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Proof. There is a map going from left to right by induction on Id WA B. That is, for each (sup a f ) the element (refl a, refl f ) works. Call this map φ. To show that this map is an equivalence, we need to show that the inverse images of each element is a singleton. So assume that p : α:id A a b Id f (Bα g). Håkon Robbestad Gylterud Univalent multisets Stockholm University 20 / 25

A result on the identity type of W types Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Proof. There is a map going from left to right by induction on Id WA B. That is, for each (sup a f ) the element (refl a, refl f ) works. Call this map φ. To show that this map is an equivalence, we need to show that the inverse images of each element is a singleton. So assume that p : α:id A a b Id f (Bα g). By induction (on the Σ-type and the two Id-types), it is enough to consider the case where p (refl a, refl f ). Håkon Robbestad Gylterud Univalent multisets Stockholm University 20 / 25

A result on the identity type of W types Id WA B (sup a f ) (sup b g) = α:id A a b Id f (Bα g) Proof. There is a map going from left to right by induction on Id WA B. That is, for each (sup a f ) the element (refl a, refl f ) works. Call this map φ. To show that this map is an equivalence, we need to show that the inverse images of each element is a singleton. So assume that p : α:id A a b Id f (Bα g). By induction (on the Σ-type and the two Id-types), it is enough to consider the case where p (refl a, refl f ). We check that φ refl (sup a f ) p, by the above definiton. And by induction on Id, we can show that every element in the inverse image of p is equal to refl (sup a f ). Håkon Robbestad Gylterud Univalent multisets Stockholm University 20 / 25

The univalence axiom Definition The axiom of extensionality states that for each f, g : A B, the obvious function is an equivalence of types. Id f g f g Definition The axiom of univalence for a universe U : Set with decoding family T : U Set, states that for each a, b : U, the obvious function is an equivalence of types. Id a b Ta = Tb Håkon Robbestad Gylterud Univalent multisets Stockholm University 21 / 25

Id is equivalent to = M Theorem The univalence axiom implies that for any m, m : M we have that Id m m = m =M m Håkon Robbestad Gylterud Univalent multisets Stockholm University 22 / 25

Proof. By W-induction. Assume a, b : U and f : Ta M and g : Tb M. Then (sup a f ) = M (sup b g) Inducion hypotheis = Definition of α:ta =Tb x:ta α:ta =Tb x:ta α:ta =Tb Extensionality = Univalence α:ta =Tb = α:a=b (fx) = M (g(αx)) Id (f x) (g(αx)) f g α Id f (g α) Id f (g T α) Previous lemma = Id (sup a f ) (sup b g) Håkon Robbestad Gylterud Univalent multisets Stockholm University 23 / 25

Axiomatisation of multiset theory Håkon Robbestad Gylterud Univalent multisets Stockholm University 24 / 25

Axiomatisation of multiset theory Extensionality xy x = y = z (z x = z y) Håkon Robbestad Gylterud Univalent multisets Stockholm University 24 / 25

Axiomatisation of multiset theory Extensionality xy x = y = z (z x = z y) x,y:m (Id x y) = z:m (z x = z y) Håkon Robbestad Gylterud Univalent multisets Stockholm University 24 / 25

Axiomatisation of multiset theory Extensionality xy x = y = z (z x = z y) x,y:m (Id x y) = z:m (z x = z y) Pairing xy u z z u = (z = x z = y)) Håkon Robbestad Gylterud Univalent multisets Stockholm University 24 / 25

Axiomatisation of multiset theory Extensionality xy x = y = z (z x = z y) x,y:m (Id x y) = z:m (z x = z y) Pairing xy u z z u = (z = x z = y)) Restricted separation x u z z u = (z x φ(z)) Håkon Robbestad Gylterud Univalent multisets Stockholm University 24 / 25

Conclusion This is work in progress, but the result on the identity type of M indicates that it is a good model of multisets in type theory. The current project is to give this more substance to this claim by giving an axiomatisation of iterative multiset theory. Håkon Robbestad Gylterud Univalent multisets Stockholm University 25 / 25