Two-dimensional models of type theory

Size: px
Start display at page:

Download "Two-dimensional models of type theory"

Transcription

1 Two-dimensional models of type theory Richard Garner Uppsala University Logic Colloquium 2008, Bern 1/33

2 Outline Motivation Two-dimensional type theory: syntax Two-dimensional type theory: semantics Further directions (NB: Talk notes available athttp:// rhgg2) 2/33

3 Motivation Robert Seely showed in 1984 that we have: Extensional Martin-Löf type theories semantics syntax Locally cartesian closed categories. 3/33

4 Motivation Robert Seely showed in 1984 that we have: Extensional Martin-Löf type theories semantics syntax Locally cartesian closed categories. What is the analogous result for intensional type theory? Intensional Martin-Löf type theories semantics? syntax 3/33

5 We want to retain two key aspects of Seely s semantics: Σ-type formation is left adjoint to substitution and Π-type formation is right adjoint to substitution. 4/33

6 We want to retain two key aspects of Seely s semantics: Σ-type formation is left adjoint to substitution and Π-type formation is right adjoint to substitution. So we can t use categories with families, categories with attributes, type-categories, D-categories, categories with display maps, etc. 4/33

7 We want to retain two key aspects of Seely s semantics: Σ-type formation is left adjoint to substitution and Π-type formation is right adjoint to substitution. So we can t use categories with families, categories with attributes, type-categories, D-categories, categories with display maps, etc. Instead look at models in higher dimensional categories. 4/33

8 These models should have: Objects A, modelling types; 1-cells f: A B, modelling terms x : A f(x) : B; 2-cells f A g α B modelling judgements x : A α(x) : Id B (f(x), g(x)); 3-cells f A α Γ β B g modelling judgements x : A Γ(x) : Id IdB (f(x),g(x))(α(x), β(x)); And so on... 5/33

9 In such a way that Σ-type formation is a higher-dimensional left adjoint to substitution and Π-type formation is a higher-dimensional right adjoint to substitution. 6/33

10 In such a way that Σ-type formation is a higher-dimensional left adjoint to substitution and Π-type formation is a higher-dimensional right adjoint to substitution. I.e., should have Intensional Martin-Löf type theories semantics syntax Higher-dimensional locally cartesian closed categories. 6/33

11 The two-dimensional case Extensional Martin-Löf type theories semantics syntax Locally cartesian closed categories inclusion inclusion Intensional Martin-Löf type theories semantics syntax Higher-dimensional locally cartesian closed categories 7/33

12 The two-dimensional case Extensional Martin-Löf type theories inclusion Two-dimensional Martin-Löf type theories inclusion Intensional Martin-Löf type theories semantics syntax semantics syntax semantics syntax Locally cartesian closed categories inclusion Two-dimensional locally cartesian closed categories inclusion Higher-dimensional locally cartesian closed categories 8/33

13 The two-dimensional case Two-dimensional Martin-Löf type theories semantics syntax Two-dimensional locally cartesian closed categories 9/33

14 Coherence problems Seely 1984 said that: Extensional Martin-Löf type theories semantics syntax Locally cartesian closed categories Split comprehension categories with products, strong sums and strong equality 10/33

15 Coherence problems Hofmann 1994 corrected this picture: Extensional Martin-Löf type theories syntax semantics Split comprehension categories with products, strong sums and strong equality inclusion coherence Locally cartesian closed categories fibre over1 codomain fibration Comprehension categories with products, strong sums and strong equality. 11/33

16 Coherence problems So in two dimensions we are looking for Two-dimensional Martin-Löf type theories Two-dimensional locally cartesian closed categories syntax semantics fibre over1 codomain fibration Split comprehension 2-categories with products, strong sums and strong equality inclusion coherence Comprehension 2-categories with products, strong sums and strong equality. 12/33

17 Coherence problems And we ll concentrate on looking Two-dimensional Martin-Löf type theories Two-dimensional locally cartesian closed categories syntax semantics Split comprehension 2-categories with products, strong sums and strong equality Comprehension 2-categories with products, strong sums and strong equality. 13/33

18 Intensional Martin-Löf type theory Sequent calculus with four forms of judgement: Atype ( A is a type ); a : A ( a is a term of type A ) A = Btype ( A and B are definitionally equal types ); a = b : A ( a and b are definitionally equal terms of type A ). Can also have judgements under hypotheses; so if Atype, we can have x : A B(x)type; x : A f(x) : B(x); x : A B(x) = C(x) type; x : A f(x) = g(x) : B(x). And so on; in general can have things like x : A, y : B(x), z : C(x, y) f(x, y, z) : D(x, y, z). 14/33

19 These come with inference rules for: Congruence of definitional equality; Weakening, contraction and exchange; Substitution; for example: x : A f(x) : B y : B C(y)type x : A C(f(x)) type or x : A f(x) : B y : B g(y) : C(y) type; x : A g(f(x)) : C(f(x)) Logical operations: Σ-types,Π-types and identity types. 15/33

20 Identity types Atype a, b : A Id A (a, b)type Id-FORM; a : A r(a) : Id A (a, a) Id-INTRO; x, y : A, z : Id A (x, y) C(x, y, z) type x : A d(x) : C(x, x,r(x)) a, b : A p : Id A (a, b) J C (d, a, b, p) : C(a, b, p) Id-ELIM; x, y : A, z : Id A (x, y) C(x, y, z) type x : A d(x) : C(x, x,r(x)) a : A J C (d, a, a,r(a)) = d(a) : C(a, a,r(a)) Id-COMP. 16/33

21 Extensional Martin-Löf type theory Obtained by adding the equality reflection rules: Atype a, b : A p : Id A (a, b) a = b : A Atype a, b : A p : Id A (a, b) p = r(a) : Id A (a, b) Id-REFL-1; Id-REFL-2; causing definitional equality andid-equality to coincide. 17/33

22 Extensional Martin-Löf type theory Obtained by adding the equality reflection rules: Atype a, b : A p : Id A (a, b) a = b : A Atype a, b : A p : Id A (a, b) p = r(a) : Id A (a, b) Id-REFL-1; Id-REFL-2; causing definitional equality andid-equality to coincide. Good from a category-theoretic perspective; Bad from a proof-theoretic one. 17/33

23 Two-dimensional Martin-Löf type theory We call a type A is discrete just when the Id-reflection rules Atype a, b : A p : Id A (a, b) a = b : A Atype a, b : A p : Id A (a, b) p = r(a) : Id A (a, b) Id-REFL-1; Id-REFL-2; obtain at the type A. 18/33

24 Two-dimensional Martin-Löf type theory We call a type A is discrete just when the Id-reflection rules Atype a, b : A p : Id A (a, b) a = b : A Atype a, b : A p : Id A (a, b) p = r(a) : Id A (a, b) Id-REFL-1; Id-REFL-2; obtain at the type A. So the intensional theory says that no types need be discrete; The extensional theory says that all types are discrete; Our two-dimensional theory will say that all identity types are discrete. 18/33

25 Two-dimensional Martin-Löf type theory Explicitly, obtained by adding to intensional type theory the discrete identity rules: Atype a, b : A p, q : Id A (a, b) s : Id IdA (a,b)(p, q) p = q : Id A (a, b) Atype a, b : A p, q : Id A (a, b) s : Id IdA (a,b)(p, q) s = r(p) : Id IdA (a,b)(p, q) Id-DISC-1; Id-DISC-2. Resultant type theory is intermediate between the intensional and the extensional ones. 19/33

26 Two-dimensional syntactic model We build a2-category Ctxt from the syntax of two-dimensional type theory. Objects are contexts Γ = ( x 1 : C 1, x 2 : C 2 (x 1 ),..., x n : C n (x 1,..., x n 1 ) ) ; Morphisms f: Γ are context morphisms x : Γ f 1 (x) : D 1 x : Γ f 2 (x) : D 2 (f 1 (x))... x : Γ f n (x) : D n (f 1 (x),..., f n 1 (x)) (or x : Γ f(x) : for short) (all modulo definitional equality). 20/33

27 What about 2-cells of Ctxt? Easy to describe into contexts of length1: Given f, g: Γ (y : B) in Ctxt, a 2-cell α: f g is given by x : Γ α(x) : Id B (f(x), g(x)). (modulo definitional equality). 21/33

28 What about 2-cells of Ctxt? Easy to describe into contexts of length1: Given f, g: Γ (y : B) in Ctxt, a 2-cell α: f g is given by x : Γ α(x) : Id B (f(x), g(x)). (modulo definitional equality). To describe2-cells into longer contexts, we need the Leibnitz rule: a, b : A c : C(a) p : Id A (a, b) p (c) : C(b) obtained byid-elimination on p. 21/33

29 Using Leibnitz: Given f, g: Γ (y : B, z : C(y)) in Ctxt looking like x : Γ f 1 (x) : B, x : Γ g 1 (x) : B, x : Γ f 2 (x) : C(f 1 (x)) x : Γ g 2 (x) : C(g 1 (x)) a 2-cell α: f g will be given by x : Γ α 1 (x) : Id B (f 1 (x), g 1 (x)) x : Γ α 2 (x) : Id C(f1 (x))( α1 (x) (f 2 (x)), g 2 (x) ). And so on. 22/33

30 Composition in Ctxt is defined using substitution (for1-cell composition) andid-elimination (for2-cell composition). 23/33

31 Composition in Ctxt is defined using substitution (for1-cell composition) andid-elimination (for2-cell composition). Example Composite of2-cells f (x : A) α g β h (y : B) in Ctxt given by the transitivity proof x : A trans(α(x), β(x)) : Id B (f(x), h(x)). 23/33

32 A two-dimensional indexed category For each contextγ Ctxt, we have a 2-category Type(Γ) with: Objects being judgements x : Γ A(x)type; Morphisms f: A B being judgements x : Γ, y : A(x) f(x, y) : B(x); 2-cells α: f g being judgements x : Γ, y : A(x) α(x, y) : Id B(x) (f(x, y), g(x, y)). 24/33

33 A two-dimensional indexed category Each f: Γ in Ctxt induces a substitution 2-functor f : Type( ) Type( ); 25/33

34 A two-dimensional indexed category Each f: Γ in Ctxt induces a substitution 2-functor f : Type( ) Type( ); each α: f g: Γ induces a pseudo-natural transformation α : g f : Type( ) Type( ); 25/33

35 A two-dimensional indexed category Each f: Γ in Ctxt induces a substitution 2-functor f : Type( ) Type( ); each α: f g: Γ induces a pseudo-natural transformation α : g f : Type( ) Type( ); so we obtain a split indexed2-category Type( ): Ctxt coop 2-Cat ps. 25/33

36 Sum types Each type x : Γ A(x)type induces a dependent projection π A : Γ, A Γ in Ctxt; so obtain a weakening2-functor A := π A : Type(Γ) Type(Γ, A). 26/33

37 Sum types Each type x : Γ A(x)type induces a dependent projection π A : Γ, A Γ in Ctxt; so obtain a weakening2-functor A := π A : Type(Γ) Type(Γ, A). Proposition A has a left biadjoint Σ A : Type(Γ, A) Type(Γ) B Σx : A. B(x) 26/33

38 Product types However, for the following to be true... Proposition A has a right biadjoint Π A : Type(Γ, A) Type(Γ) B Πx : A. B(x) 27/33

39 Product types However, for the following to be true... Proposition A has a right biadjoint Π A : Type(Γ, A) Type(Γ) B Πx : A. B(x)... we need to add function extensionality. 27/33

40 Function extensionality M, N : Π(A, B) K : Πx : A.Id Π(A,B) (M x, N x) ext(m, N, K) : Id(M, N) EXT; x : A f(x) : B(x) ext ( λ(f), λ(f), λx.r(f(x)) ) = r(λ(f)) : Id Π(A,B) ( λ(f), λ(f) ) EXT-COMP; M, N : Π(A, B) K : Πx : A.Id(M x, N x) a : A µ(m, N, K, a) : Id IdB(a) (M a,n a)(ext(m, N, K) a, K a) EXT-COMP 2 ; x : A f(x) : B(x) a : A µ ( λ(f), λ(f), λx.r(f(x)), a) = r(r(f(a))) : Id ( r(f(a)), r(f(a)) ) EXT-COMP 3. 28/33

41 Two-dimensional semantics We define a model of two-dimensional type theory to be: A2-category C; A split indexed2-category T( ): C coop 2-Cat ps ; Left and right biadjoints for each weakening2-functor A ; Plus extra data (Beck-Chevalley, strong sums,... ) 29/33

42 Soundness and completeness Every two-dimensional type theory gives rise to a two-dimensional syntactic model. 30/33

43 Soundness and completeness Every two-dimensional type theory gives rise to a two-dimensional syntactic model. Every two-dimensional model admits a sound interpretation of the syntax. 30/33

44 Soundness and completeness Every two-dimensional type theory gives rise to a two-dimensional syntactic model. Every two-dimensional model admits a sound interpretation of the syntax. Can also associate a type theory to every two-dimensional model: the internal language. 30/33

45 Further directions Need to extend this: Two-dimensional Martin-Löf type theories Two-dimensional locally cartesian closed categories syntax semantics Split comprehension 2-categories with products, strong sums and strong equality Comprehension 2-categories with products, strong sums and strong equality. 31/33

46 Further directions To this: Two-dimensional Martin-Löf type theories Two-dimensional locally cartesian closed categories syntax semantics fibre over1 codomain fibration Split comprehension 2-categories with products, strong sums and strong equality inclusion coherence Comprehension 2-categories with products, strong sums and strong equality. 32/33

47 Further directions Construct examples of two-dimensional models: Hofmann and Streicher s groupoid model; 2-category of groupoid-valued fibrations on a category C; 2-category of stacks on a site(c, J). 33/33

48 Further directions Construct examples of two-dimensional models: Hofmann and Streicher s groupoid model; 2-category of groupoid-valued fibrations on a category C; 2-category of stacks on a site(c, J). Higher dimensional models... 33/33

Two-dimensional models of type theory

Two-dimensional models of type theory Math. Struct. in Comp. Science (2009), vol. 19, pp. 687 736. c 2009 Cambridge University Press doi:10.1017/s0960129509007646 First published online 2 July 2009 Printed in the United Kingdom Two-dimensional

More information

TWO-DIMENSIONAL MODELS OF TYPE THEORY

TWO-DIMENSIONAL MODELS OF TYPE THEORY TWO-DIMENSIONAL MODELS OF TYPE THEORY RICHARD GARNER Abstract. We describe a non-extensional variant of Martin-Löf type theory which we call two-dimensional type theory, and equip it with a sound and complete

More information

TWO-DIMENSIONAL MODELS OF TYPE THEORY RICHARD GARNER

TWO-DIMENSIONAL MODELS OF TYPE THEORY RICHARD GARNER TWO-DIMENSIONAL MODELS OF TYPE THEORY RICHARD GARNER arxiv:0808.2122v2 [math.lo] 14 Oct 2011 Abstract. We describe a non-extensional variant of Martin-Löf type theory which we call two-dimensional type

More information

Locally cartesian closed categories

Locally cartesian closed categories Locally cartesian closed categories Clive Newstead 80-814 Categorical Logic, Carnegie Mellon University Wednesday 1st March 2017 Abstract Cartesian closed categories provide a natural setting for the interpretation

More information

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006 From Categories with Families to Locally Cartesian Closed Categories Pierre Clairambault June 12, 2006 1 Contents 1 Introduction 3 2 Mathematical preliminaries 3 2.1 Basic categorical elements...................................

More information

A Type Theory for Formalising Category Theory

A Type Theory for Formalising Category Theory A Type Theory for Formalising Category Theory Robin Adams 24 July 2012 Robin Adams Type Theory for Category Theory 24 July 2012 1 / 28 1 Introduction The Problem of Notation Category Theory in Five Minutes

More information

Homotopy Theoretic Aspects of Constructive Type Theory

Homotopy Theoretic Aspects of Constructive Type Theory Homotopy Theoretic Aspects of Constructive Type Theory Michael Alton Warren August 2008 Carnegie Mellon University Homotopy Theoretic Aspects of Constructive Type Theory Michael Alton Warren August 2008

More information

The equivalence axiom and univalent models of type theory.

The equivalence axiom and univalent models of type theory. The equivalence axiom and univalent models of type theory. (Talk at CMU on February 4, 2010) By Vladimir Voevodsky Abstract I will show how to define, in any type system with dependent sums, products and

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

Categorical Homotopy Type Theory

Categorical Homotopy Type Theory Categorical Homotopy Type Theory André Joyal UQÀM MIT Topology Seminar, March 17, 2014 Warning The present slides include corrections and modifications that were made during the week following my talk.

More information

Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory

Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory Frank Pfenning LICS 01 Boston, Massachusetts June 17, 2001 Acknowledgments: Alberto Momigliano,... 1 Outline 1. Introduction 2.

More information

arxiv: v1 [math.ct] 8 Apr 2019

arxiv: v1 [math.ct] 8 Apr 2019 arxiv:1904.04097v1 [math.ct] 8 Apr 2019 A General Framework for the Semantics of Type Theory Taichi Uemura April 9, 2019 Abstract We propose an abstract notion of a type theory to unify the semantics of

More information

Homotopy Type Theory. Benno van den Berg. LoLaCo, 29 September 2014

Homotopy Type Theory. Benno van den Berg. LoLaCo, 29 September 2014 Homotopy Type Theory Benno van den Berg LoLaCo, 29 September 2014 1 / 19 What is homotopy type theory? It introduces ideas from HOMOTOPY THEORY in TYPE THEORY. 2 / 19 What is homotopy theory? What is homotopy

More information

Introduction to type theory and homotopy theory

Introduction to type theory and homotopy theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 1 / 47 Homotopy theory Homotopy type theory types have a homotopy theory Intensional type theory New perspectives on extensional

More information

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 Homotopy theory Homotopy type theory types have a homotopy theory New perspectives on extensional vs. intensional Intensional

More information

Homotopy theory in type theory

Homotopy theory in type theory Homotopy theory in type theory Michael Shulman 11 April 2012 Review of type theory Type theory consists of rules for deriving typing judgments: (x 1 : A 1 ), (x 2 : A 2 ),..., (x n : A n ) (b : B) The

More information

Dependent type theory

Dependent type theory Dependent type theory Γ, ::= () Γ, x : A Contexts t, u, A, B ::= x λx. t t u (x : A) B Π-types (t, u) t.1 t.2 (x : A) B Σ-types We write A B for the non-dependent product type and A B for the non-dependent

More information

Univalence for Free. Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA. GT Types & Réalisabilité March 13th 2013

Univalence for Free. Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA. GT Types & Réalisabilité March 13th 2013 Univalence for Free Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA Project Team πr 2 INRIA Rocquencourt & PPS, Paris 7 University GT Types & Réalisabilité March 13th 2013 Univalence for Free

More information

Homotopy theory in type theory

Homotopy theory in type theory Homotopy theory in type theory Michael Shulman 11 April 2012 Review of type theory Type theory consists of rules for deriving typing judgments: (x 1 : A 1 ), (x 2 : A 2 ),..., (x n : A n ) (b : B) The

More information

Homotopy Type Theory

Homotopy Type Theory Homotopy Type Theory Jeremy Avigad Department of Philosophy and Department of Mathematical Sciences Carnegie Mellon University February 2016 Homotopy Type Theory HoTT relies on a novel homotopy-theoretic

More information

Equality and dependent type theory. CIRM, May 31

Equality and dependent type theory. CIRM, May 31 CIRM, May 31 The Axiom of Univalence, a type-theoretic view point In type theory, we reduce proof-checking to type-checking Hence we want type-checking to be decidable This holds as soon as we have the

More information

Canonicity for 2-Dimensional Type Theory

Canonicity for 2-Dimensional Type Theory DRAFT Canonicity for 2-Dimensional Type Theory Daniel R. Licata Robert Harper Carnegie Mellon University {drl,rwh}@cs.cmu.edu Abstract Recent work on higher-dimensional dependent type theory enriches conventional

More information

Canonicity for 2-Dimensional Type Theory

Canonicity for 2-Dimensional Type Theory Canonicity for 2-Dimensional Type Theory Daniel R. Licata Robert Harper Carnegie Mellon University {drl,rwh}@cs.cmu.edu Abstract Higher-dimensional dependent type theory enriches conventional one-dimensional

More information

Semantics and syntax of higher inductive types

Semantics and syntax of higher inductive types Semantics and syntax of higher inductive types Michael Shulman 1 Peter LeFanu Lumsdaine 2 1 University of San Diego 2 Stockholm University http://www.sandiego.edu/~shulman/papers/stthits.pdf March 20,

More information

Homotopy Type Theory Lecture Notes

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

More information

On the Interpretation of Type Theory in Locally. Department of Computer Science, University of Edinburgh

On the Interpretation of Type Theory in Locally. Department of Computer Science, University of Edinburgh On the Interpretation of Type Theory in Locally Cartesian Closed Categories Martin Hofmann Department of Computer Science, University of Edinburgh JCMB, KB, Mayeld Rd., Edinburgh EH9 3JZ, Scotland Abstract.

More information

Higher Order Containers

Higher Order Containers Higher Order Containers Thorsten Altenkirch 1, Paul Levy 2, and Sam Staton 3 1 University of Nottingham 2 University of Birmingham 3 University of Cambridge Abstract. Containers are a semantic way to talk

More information

Weak ω-groupoids in Type Theory

Weak ω-groupoids in Type Theory Weak ω-groupoids in Type Theory Based on joint work with Ondrej Rypacek Thorsten Altenkirch Functional Programming Laboratory School of Computer Science University of Nottingham April 2, 2012 Thorsten

More information

The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories

The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories Under consideration for publication in Math. Struct. in Comp. Science The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories P I E R R E C L A I R A M B A U L T 1 and P E

More information

Focusing on Binding and Computation

Focusing on Binding and Computation Focusing on Binding and Computation Dan Licata Joint work with Noam Zeilberger and Robert Harper Carnegie Mellon University 1 Programming with Proofs Represent syntax, judgements, and proofs Reason about

More information

The category of open simply-typed lambda terms

The category of open simply-typed lambda terms The category of open simply-typed lambda terms Daniel Murfet based on joint work with William Troiani o Reminder on category theory Every adjunction gives rise to a monad C F / G D C(Fx,y) = D(x, Gy) C(FGx,x)

More information

WHAT IS AN ELEMENTARY HIGHER TOPOS?

WHAT IS AN ELEMENTARY HIGHER TOPOS? WHAT IS AN ELEMENTARY HIGHER TOPOS? ANDRÉ JOYAL Abstract. There should be a notion of elementary higher topos in higher topos theory, like there is a notion of elementary topos in topos theory. We are

More information

Homotopy and Directed Type Theory: a Sample

Homotopy and Directed Type Theory: a Sample Homotopy and Directed Type Theory: a Sample Dan Doel October 24, 2011 Type Theory Overview Judgments Γ ctx Γ A type Γ M : A Families Γ, x : A B(x) type Inference Γ 1 J 1 Γ 2 J 2 Type Theory Overview Π

More information

Type Theory and Univalent Foundation

Type Theory and Univalent Foundation Thierry Coquand Clermont-Ferrand, October 17, 2013 This talk Revisit some questions discussed by Russell at the beginning of Type Theory -Russell s Paradox (1901) -Theory of Descriptions (1905) -Theory

More information

A Model of Guarded Recursion via Generalised Equilogical Spaces

A Model of Guarded Recursion via Generalised Equilogical Spaces A Model of Guarded Recursion via Generalised Equilogical Spaces Aleš Bizjak, Lars Birkedal Department of Computer Science Aarhus University Abstract We present a new model, called GuardedEqu, of guarded

More information

Cronfa - Swansea University Open Access Repository

Cronfa - Swansea University Open Access Repository Cronfa - Swansea University Open Access Repository This is an author produced version of a paper published in : Annals of Pure and Applied Logic Cronfa URL for this paper: http://cronfaswanacuk/record/cronfa1731

More information

Modal Dependent Type Theory and Dependent Right Adjoints

Modal Dependent Type Theory and Dependent Right Adjoints Modal Dependent Type Theory and Dependent Right Adjoints Lars Birkedal Ranald Clouston Bassel Mannaa Rasmus Ejlers Møgelberg Andrew M. Pitts Bas Spitters Outline Many examples of modalities: nominal type

More information

Modular correspondence between dependent type theories and categories including pretopoi and topoi.

Modular correspondence between dependent type theories and categories including pretopoi and topoi. Under consideration for publication in Math. Struct. in Comp. Science Modular correspondence between dependent type theories and categories including pretopoi and topoi. Maria Emilia Maietti Dipartimento

More information

Categorical models of homotopy type theory

Categorical models of homotopy type theory Categorical models of homotopy type theory Michael Shulman 12 April 2012 Outline 1 Homotopy type theory in model categories 2 The universal Kan fibration 3 Models in (, 1)-toposes Homotopy type theory

More information

2-Dimensional Directed Dependent Type Theory

2-Dimensional Directed Dependent Type Theory Submitted to POPL 2011 2-Dimensional Directed Dependent Type Theory Daniel R. Licata Robert Harper Carnegie Mellon University {drl,rwh}@cs.cmu.edu Abstract The groupoid interpretation of dependent type

More information

Kripke Semantics for Martin-Löf s Extensional Type Theory

Kripke Semantics for Martin-Löf s Extensional Type Theory Kripke Semantics for Martin-Löf s Extensional Type Theory Steve Awodey 1 and Florian Rabe 2 1 Department of Philosophy, Carnegie Mellon University, Pittsburgh, USA, awodey@andrew.cmu.edu 2 School of Engineering

More information

Homotopy Type Theory An Overview (unfinished)

Homotopy Type Theory An Overview (unfinished) Homotopy Type Theory n Overview (unfinished) Nicolai Kraus Tue Jun 19 19:29:30 UTC 2012 Preface This composition is an introduction to a fairly new field in between of mathematics and theoretical computer

More information

The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories

The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories Under consideration for publication in Math. Struct. in Comp. Science The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories P I E R R E C L A I R A M B A U L T 1 and P E

More information

Structural Foundations for Abstract Mathematics

Structural Foundations for Abstract Mathematics May 5, 2013 What no foundation can give us: Certainty What foundations need not give us: Ontological reduction What set theory gives us: Common language in which all mathematics can be encoded:,,,... Dispute

More information

Lecture 2. x if x X B n f(x) = α(x) if x S n 1 D n

Lecture 2. x if x X B n f(x) = α(x) if x S n 1 D n Lecture 2 1.10 Cell attachments Let X be a topological space and α : S n 1 X be a map. Consider the space X D n with the disjoint union topology. Consider further the set X B n and a function f : X D n

More information

Programming with Higher Inductive Types

Programming with Higher Inductive Types 1/32 Programming with Higher Inductive Types Herman Geuvers joint work with Niels van der Weide, Henning Basold, Dan Frumin, Leon Gondelman Radboud University Nijmegen, The Netherlands November 17, 2017

More information

Theory and Applications of Linear Dependent Types First Year Report, DPhil

Theory and Applications of Linear Dependent Types First Year Report, DPhil Theory and Applications of Linear Dependent Types First Year Report, DPhil Matthijs Vákár Oxford, UK, October 6, 2014 Abstract This report outlines a proposed 2-year research programme towards the degree

More information

Model Theory in the Univalent Foundations

Model Theory in the Univalent Foundations Model Theory in the Univalent Foundations Dimitris Tsementzis January 11, 2017 1 Introduction 2 Homotopy Types and -Groupoids 3 FOL = 4 Prospects Section 1 Introduction Old and new Foundations (A) (B)

More information

Univalent Foundations and Set Theory

Univalent Foundations and Set Theory Univalent Foundations and Set Theory Talk by Vladimir Voevodsky from Institute for Advanced Study in Princeton, NJ. May 8, 2013 1 Univalent foundations - are based on a class of formal deduction systems

More information

arxiv: v2 [math.lo] 27 Jun 2018

arxiv: v2 [math.lo] 27 Jun 2018 A diagram model of linear dependent type theory Martin Lundfall Stockholm University martin@dapp.org arxiv:1806.09593v2 [math.lo] 27 Jun 2018 Abstract We present a type theory dealing with non-linear,

More information

Duality for first order logic

Duality for first order logic Duality for first order logic Dion Coumans Radboud University Nijmegen Aio-colloquium, June 2010 Outline 1 Introduction to logic and duality theory 2 Algebraic semantics for classical first order logic:

More information

Models of Type Theory Based on Moore Paths

Models of Type Theory Based on Moore Paths Models of Type Theory Based on Moore Paths Ian Orton 1 and Andrew M. Pitts 2 1 University of Cambridge Computer Laboratory, Cambridge, UK Ian.Orton@cl.cam.ac.uk 2 University of Cambridge Computer Laboratory,

More information

M, N ::= x λp : A.M MN (M, N) () c A. x : b p x : b

M, N ::= x λp : A.M MN (M, N) () c A. x : b p x : b A PATTERN-MATCHING CALCULUS FOR -AUTONOMOUS CATEGORIES ABSTRACT. This article sums up the details of a linear λ-calculus that can be used as an internal language of -autonomous categories. The coherent

More information

Normalisation by Evaluation for Dependent Types

Normalisation by Evaluation for Dependent Types Normalisation by Evaluation for Dependent Types Ambrus Kaposi Eötvös Loránd University, Budapest, Hungary (j.w.w. Thorsten Altenkirch, University of Nottingham) FSCD, Porto 24 June 2016 Introduction Goal:

More information

Setoids and universes

Setoids and universes U.U.D.M. Report 2008:42 Setoids and universes K. O. Wilander Department of Mathematics Uppsala University SETOIDS AND UNIVERSES K.O. WILANDER Abstract. Setoids commonly take the place of sets when formalising

More information

From syntax to semantics of Dependent Type Theories - Formalized

From syntax to semantics of Dependent Type Theories - Formalized RDP 2015, Jun. 30, 2015, WCMCS, Warsaw. From syntax to semantics of Dependent Type Theories - Formalized by Vladimir Voevodsky from the Institute for Advanced Study in Princeton, NJ. I will be speaking

More information

Fibrational Semantics

Fibrational Semantics Fibrational Semantics Brice Halimi Paris Ouest University & Sphere Introduction The question What can Set Theory do for Philosophy? would never be asked nowadays. The main reason for dismissing such a

More information

Adjunctions! Everywhere!

Adjunctions! Everywhere! Adjunctions! Everywhere! Carnegie Mellon University Thursday 19 th September 2013 Clive Newstead Abstract What do free groups, existential quantifiers and Stone-Čech compactifications all have in common?

More information

Decomposing Modalities

Decomposing Modalities Decomposing Modalities Frank Pfenning Department of Computer Science Carnegie Mellon University Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP 15) Berlin, Germany August 1, 2015 1 /

More information

2-Dimensional Directed Type Theory

2-Dimensional Directed Type Theory 2-Dimensional Directed Type Theory Daniel R. Licata Robert Harper Carnegie Mellon University {drl,rwh}@cs.cmu.edu Recent work on higher-dimensional type theory has explored connections between Martin-Löf

More information

A Fibrational View of Geometric Morphisms

A Fibrational View of Geometric Morphisms A Fibrational View of Geometric Morphisms Thomas Streicher May 1997 Abstract In this short note we will give a survey of the fibrational aspects of (generalised) geometric morphisms. Almost all of these

More information

A categorical structure of realizers for the Minimalist Foundation

A categorical structure of realizers for the Minimalist Foundation A categorical structure of realizers for the Minimalist Foundation S.Maschio (joint work with M.E.Maietti) Department of Mathematics University of Padua TACL 2015 Ischia The Minimalist Foundation Many

More information

A Schema for Higher Inductive Types of Level One and Its Interpretation

A Schema for Higher Inductive Types of Level One and Its Interpretation A Schema for Higher Inductive Types of Level One and Its Interpretation Hugo Moeneclaey hmoenecl@ens-cachan.fr Under the supervision of : Peter Dybjer Department of Computing Science and Engineering, Chalmers

More information

The synthetic theory of -categories vs the synthetic theory of -categories

The synthetic theory of -categories vs the synthetic theory of -categories Emily Riehl Johns Hopkins University The synthetic theory of -categories vs the synthetic theory of -categories joint with Dominic Verity and Michael Shulman Vladimir Voevodsky Memorial Conference The

More information

Adjoint Logic and Its Concurrent Semantics

Adjoint Logic and Its Concurrent Semantics Adjoint Logic and Its Concurrent Semantics Frank Pfenning ABCD Meeting, Edinburgh, December 18-19, 2017 Joint work with Klaas Pruiksma and William Chargin Outline Proofs as programs Linear sequent proofs

More information

Adjunction Based Categorical Logic Programming

Adjunction Based Categorical Logic Programming .. Wesleyan University March 30, 2012 Outline.1 A Brief History of Logic Programming.2 Proof Search in Proof Theory.3 Adjunctions in Categorical Proof Theory.4 Connective Chirality and Search Strategy

More information

Algebraic models of homotopy type theory

Algebraic models of homotopy type theory Algebraic models of homotopy type theory Nicola Gambino School of Mathematics University of Leeds CT2016 Halifax, August 9th 1 Theme: property vs structure Fundamental distinction: satisfaction of a property

More information

TYPE THEORY AND HOMOTOPY

TYPE THEORY AND HOMOTOPY TYPE THEORY AND HOMOTOPY STEVE AWODEY 1. Introduction The purpose of this informal survey article is to introduce the reader to a new and surprising connection between Geometry, Algebra, and Logic, which

More information

Theories With Duality DRAFT VERSION ONLY

Theories With Duality DRAFT VERSION ONLY Theories With Duality DRAFT VERSION ONLY John C. Baez Department of athematics, University of California Riverside, CA 9252 USA Paul-André elliès Laboratoire PPS Université Paris 7 - Denis Diderot Case

More information

Sheaf models of type theory

Sheaf models of type theory Thierry Coquand Oxford, 8 September 2017 Goal of the talk Sheaf models of higher order logic have been fundamental for establishing consistency of logical principles E.g. consistency of Brouwer s fan theorem

More information

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

Quantum groupoids and logical dualities

Quantum groupoids and logical dualities Quantum groupoids and logical dualities (work in progress) Paul-André Melliès CNS, Université Paris Denis Diderot Categories, ogic and Foundations of Physics ondon 14 May 2008 1 Proof-knots Aim: formulate

More information

Higher Inductive Types: The circle and friends, axiomatically

Higher Inductive Types: The circle and friends, axiomatically Higher Inductive Types: The circle and friends, axiomatically Peter LeFanu Lumsdaine Dalhousie University Halifax, Nova Scotia Foundational Methods in Computer Science Kananaskis, June 2011 DTT Dependent

More information

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance:

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance: Modèles des langages de programmation Domaines, catégories, jeux Programme de cette seconde séance: Modèle ensembliste du lambda-calcul ; Catégories cartésiennes fermées 1 Synopsis 1 the simply-typed λ-calculus,

More information

A Relationally Parametric Model of Dependent Type Theory

A Relationally Parametric Model of Dependent Type Theory Archived version from NCDOCKS Institutional Repository http://libres.uncg.edu/ir/asu/ A Relationally Parametric Model of Dependent Type Theory By: Robert Atkey, Neil Ghani, and Patricia Johann Abstract

More information

A completeness theorem for symmetric product phase spaces

A completeness theorem for symmetric product phase spaces A completeness theorem for symmetric product phase spaces Thomas Ehrhard Fédération de Recherche des Unités de Mathématiques de Marseille CNRS FR 2291 Institut de Mathématiques de Luminy CNRS UPR 9016

More information

Kripke Semantics for Martin-Löf s Extensional Type Theory

Kripke Semantics for Martin-Löf s Extensional Type Theory Kripke Semantics for Martin-Löf s Extensional Type Theory Steve Awodey 1 and Florian Rabe 2 1 Carnegie Mellon University, Pittsburgh, USA 2 Jacobs University Bremen, Germany Abstract It is well-known that

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Unbounded quantifiers via 2-categorical logic

Unbounded quantifiers via 2-categorical logic via Unbounded via A. University of Chicago March 18, 2010 via Why? For the same reasons we study 1-categorical. 1 It tells us things about 2-categories. Proofs about fibrations and stacks are simplified

More information

Propositional Logic Sequent Calculus

Propositional Logic Sequent Calculus 1 / 16 Propositional Logic Sequent Calculus Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 16 1 Intuition 2 The LK system 3 Derivation 4 Summary 5 Exercises Outline 3 / 16 1 Intuition

More information

Category Theory (UMV/TK/07)

Category Theory (UMV/TK/07) P. J. Šafárik University, Faculty of Science, Košice Project 2005/NP1-051 11230100466 Basic information Extent: 2 hrs lecture/1 hrs seminar per week. Assessment: Written tests during the semester, written

More information

Information Theory. Lecture 7

Information Theory. Lecture 7 Information Theory Lecture 7 Finite fields continued: R3 and R7 the field GF(p m ),... Cyclic Codes Intro. to cyclic codes: R8.1 3 Mikael Skoglund, Information Theory 1/17 The Field GF(p m ) π(x) irreducible

More information

Proper multi-type display calculi for classical and intuitionistic inquisitive logic

Proper multi-type display calculi for classical and intuitionistic inquisitive logic 1/18 Proper multi-type display calculi for classical and intuitionistic inquisitive logic Giuseppe Greco Delft University of Technology, The Netherlands www.appliedlogictudelft.nl TACL 2017, Prague Joint

More information

A categorical model for a quantum circuit description language

A categorical model for a quantum circuit description language A categorical model for a quantum circuit description language Francisco Rios (joint work with Peter Selinger) Department of Mathematics and Statistics Dalhousie University CT July 16th 22th, 2017 What

More information

A Linear/Producer/Consumer model of Classical Linear Logic

A Linear/Producer/Consumer model of Classical Linear Logic A Linear/Producer/Consumer model of Classical Linear Logic Jennifer Paykin Steve Zdancewic February 14, 2014 Abstract This paper defines a new proof- and category-theoretic framework for classical linear

More information

On the categorical semantics of Elementary Linear Logic

On the categorical semantics of Elementary Linear Logic On the categorical semantics of Elementary Linear Logic Olivier Laurent Preuves Programmes Systèmes CNRS Université Paris VII bstract We introduce the notion of elementary Seely category as a notion of

More information

Topological Groupoids and Exponentiability

Topological Groupoids and Exponentiability Topological Groupoids and Exponentiability Susan Niefield (joint with Dorette Pronk) July 2017 Overview Goal: Study exponentiability in categories of topological groupoid. Starting Point: Consider exponentiability

More information

Waldhausen Additivity and Approximation in Quasicategorical K-Theory

Waldhausen Additivity and Approximation in Quasicategorical K-Theory Waldhausen Additivity and Approximation in Quasicategorical K-Theory Thomas M. Fiore partly joint with Wolfgang Lück, http://www-personal.umd.umich.edu/~tmfiore/ http://www.him.uni-bonn.de/lueck/ Motivation

More information

Derived Algebraic Geometry I: Stable -Categories

Derived Algebraic Geometry I: Stable -Categories Derived Algebraic Geometry I: Stable -Categories October 8, 2009 Contents 1 Introduction 2 2 Stable -Categories 3 3 The Homotopy Category of a Stable -Category 6 4 Properties of Stable -Categories 12 5

More information

Notes on Linear Algebra I. # 1

Notes on Linear Algebra I. # 1 Notes on Linear Algebra I. # 1 Oussama Moutaoikil Contents 1 Introduction 1 2 On Vector Spaces 5 2.1 Vectors................................... 5 2.2 Vector Spaces................................ 7 2.3

More information

SOME EXERCISES. This is not an assignment, though some exercises on this list might become part of an assignment. Class 2

SOME EXERCISES. This is not an assignment, though some exercises on this list might become part of an assignment. Class 2 SOME EXERCISES This is not an assignment, though some exercises on this list might become part of an assignment. Class 2 (1) Let C be a category and let X C. Prove that the assignment Y C(Y, X) is a functor

More information

A few bridges between operational and denotational semantics of programming languages

A few bridges between operational and denotational semantics of programming languages A few bridges between operational and denotational semantics of programming languages Soutenance d habilitation à diriger les recherches Tom Hirschowitz November 17, 2017 Hirschowitz Bridges between operational

More information

HOMOTOPY TYPE THEORY AND VOEVODSKY S UNIVALENT FOUNDATIONS

HOMOTOPY TYPE THEORY AND VOEVODSKY S UNIVALENT FOUNDATIONS BULLETIN (New Series) OF THE AMERICAN MATHEMATICAL SOCIETY Volume 51, Number 4, October 2014, Pages 597 648 S 0273-0979(2014)01456-9 Article electronically published on May 9, 2014 HOMOTOPY TYPE THEORY

More information

Grammatical resources: logic, structure and control

Grammatical resources: logic, structure and control Grammatical resources: logic, structure and control Michael Moortgat & Dick Oehrle 1 Grammatical composition.................................. 5 1.1 Grammar logic: the vocabulary.......................

More information

Indexed Induction-Recursion

Indexed Induction-Recursion Indexed Induction-Recursion Peter Dybjer a, a Department of Computer Science and Engineering, Chalmers University of Technology, 412 96 Göteborg, Sweden Email: peterd@cs.chalmers.se, http://www.cs.chalmers.se/

More information

Towards a directed HoTT based on 4 kinds of variance

Towards a directed HoTT based on 4 kinds of variance Towards a directed HoTT based on 4 kinds of variance Promoter: Frank Piessens Supervisors: Jesper Cockx, Dominique Devriese Dept. Computer Science, KU Leuven June 29, 2015 Table of Contents 1 Introduction

More information

Program Testing and Constructive Validity

Program Testing and Constructive Validity Program Testing and Constructive Validity Peter Dybjer Chalmers University of Technology, Göteborg, Sweden Philosophy and Foundations of Mathematics: Epistemological and Ontological Aspects - to Per Martin-Löf

More information

Names and Symmetry in Computer Science

Names and Symmetry in Computer Science 1/27 Names and Symmetry in Computer Science Andrew Pitts Computer Laboratory LICS 2015 Tutorial 2/27 An introduction to nominal techniques motivated by Programming language semantics Automata theory Constructive

More information

THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY

THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY MASTER THESIS MATHEMATICAL INSTITUTE LMU MUNICH ANDREAS FRANZ THESIS SUPERVISOR: DR. IOSIF PETRAKIS Abstract. Martin-Löf s intensional type theory

More information

Weak topologies, duality and polarities

Weak topologies, duality and polarities 1/26 Introduction Duality Polarity Conclusion SD2014, Vienna Weak topologies, duality and polarities Marie Kerjean PPS Laboratory Paris 7 University July 12, 2014 2/26 Introduction Duality Polarity Conclusion

More information