Univalent categories and the Rezk completion Benedikt Ahrens 1 , - - PowerPoint PPT Presentation

univalent categories and the rezk completion
SMART_READER_LITE
LIVE PREVIEW

Univalent categories and the Rezk completion Benedikt Ahrens 1 , - - PowerPoint PPT Presentation

Univalent categories and the Rezk completion Benedikt Ahrens 1 , Krzysztof Kapulkin 2 , Michael Shulman 1 1 Institute for Advanced Study, Princeton 2 University of Pittsburgh, Pittsburgh TYPES 2013 3 kinds of sameness for categories Equality C =


slide-1
SLIDE 1

Univalent categories and the Rezk completion

Benedikt Ahrens1, Krzysztof Kapulkin2, Michael Shulman1

1 Institute for Advanced Study, Princeton 2 University of Pittsburgh, Pittsburgh

TYPES 2013

slide-2
SLIDE 2

3 kinds of sameness for categories

Equality C = D Isomorphism C ∼ = D Equivalence C ≃ D

  • most properties of categories invariant under equivalence
  • we can only substitute equals for equals
  • in set-theoretic foundations these notions are worlds apart

In this talk: Define categories in the Univalent Foundations for which all three coincide

slide-3
SLIDE 3

Outline

1

Introduction to Univalent Foundations

2

Category Theory in Univalent Foundations

slide-4
SLIDE 4

Univalent Foundations

What are the Univalent Foundations?

  • Intensional Martin-Löf Type Theory

Types as Spaces interpretation, i.e. Homotopy Type Theory + Univalence Axiom Martin-Löf Type Theory and its Homotopy Interpretation Sigma type

  • x:A B(x)

total space of a fibration Product type

  • x:A B(x)

space of sections of a fibration Identity type IdA(a, b) space of paths p : a b

slide-5
SLIDE 5

Univalence : equivalent types are equal

Universes in MLTT

  • Types in MLTT are stratified in Universes Un
  • can consider IdU(A, B) (polymorphic in universe level n)
  • Univalence allows to construct identities between A and B

Univalence

  • Define type Equiv(A, B) of Equivalences from A to B
  • Univalence Axiom identifies Equiv(A, B) with Id(A, B)
  • Can construct f : Equiv(A, B) for suitable A, B
slide-6
SLIDE 6

Level of a type

Definition (Propositions & Sets) A type A is a proposition if any two a, b : A are equal, that is, isProp(A) :=

  • x y:A

Id(x, y) A type A is a set if for any x, y : A, the type Id(x, y) is a proposition isSet(A) :=

  • x y:A

isProp(Id(x, y))

  • Propositions are “proof–irrelevant” types.
  • Points of a set are equal in a unique way, if they are.
slide-7
SLIDE 7

Equivalence of types

Definition (Equivalence of types) A function f : A → B is an equivalence of types if there are

  • g : B → A
  • η :
  • a:A

Id

  • g
  • f(a)
  • , a
  • ǫ :
  • b:B

Id

  • f
  • g(b)
  • , b
  • together with a coherence condition τ :

x:A Id

  • f(ηx), ǫ(fx)
  • “f is an equivalence” is a proposition, written isEquiv(f)
  • Equiv(A, B) :=
  • f:A→B

isEquiv(f)

slide-8
SLIDE 8

The Univalence Axiom

Definition (From paths to equivalences) id_to_equivA,B : Id(A, B) → Equiv(A, B) refl(A) → (a → a) Univalence Axiom univalence :

  • A B:U

isEquiv(id_to_equivA,B) In particular, Univalence gives a map backwards: equiv_to_idA,B : Equiv(A, B) → Id(A, B)

slide-9
SLIDE 9

Outline

1

Introduction to Univalent Foundations

2

Category Theory in Univalent Foundations

slide-10
SLIDE 10

Outline

1

Introduction to Univalent Foundations

2

Category Theory in Univalent Foundations Notation Write p : x y for p : IdA(x, y)

slide-11
SLIDE 11

Categories in Univalent Foundations — Take I

A naïve definition of categories A category C is given by

  • a type C0 of objects
  • for any a, b : C0, a type C(a, b) of morphisms
  • operations: identity & composition

ida : A(a, a) (◦)a,b,c : A(b, c) → A(a, b) → A(a, c)

  • axioms: unitality & associativity

id ◦ f f f ◦ id f (h ◦ g) ◦ f h ◦ (g ◦ f) Problem: Would require higher coherence data...

slide-12
SLIDE 12

Coherence for associativity

Two ways to associate a composition of four morphisms from left to right: (i ◦ h) ◦ (g ◦ f)

  • ((i ◦ h) ◦ g) ◦ f
  • i ◦ (h ◦ (g ◦ f))

(i ◦ (h ◦ g)) ◦ f

  • i ◦ ((h ◦ g) ◦ f)
slide-13
SLIDE 13

Coherence for associativity

Two ways to associate a composition of four morphisms from left to right: (i ◦ h) ◦ (g ◦ f)

  • ((i ◦ h) ◦ g) ◦ f
  • i ◦ (h ◦ (g ◦ f))

(i ◦ (h ◦ g)) ◦ f

  • i ◦ ((h ◦ g) ◦ f)
  • Would need to ask for higher coherence
  • ,
  • etc
slide-14
SLIDE 14

Categories in Univalent Foundations — Take II

A less naïve definition of categories A category C is given by

  • a type C0 of objects
  • for any a, b : C0, a set C(a, b) of morphisms
  • operations: identity & composition
  • axioms: unitality & associativity

For this definition of category, the pentagon is automatically coherent.

slide-15
SLIDE 15

Isomorphism in a category

Definition (Isomorphism in a category) A morphism f : C(a, b) is an isomorphism if there are

  • g : C(b, a)
  • η : g ◦ f ida

ǫ : f ◦ g idb

  • “f is an isomorphism” is a proposition, written isIso(f)
  • Iso(a, b) :=
  • f:C(a,b)

isIso(f)

slide-16
SLIDE 16

From paths to isomorphisms

Definition (From paths to isomorphisms, univalent categories) For objects a, b : C0 we define id_to_isoa,b : (a b) → Iso(a, b) refl(a) → ida We call the category C univalent if, for any objects a, b : C0, id_to_isoa,b : (a b) → Iso(a, b) is an equivalence of types.

  • In a univalent category, isomorphic objects are equal.
  • “C is univalent” is a proposition, written isUniv(C).
slide-17
SLIDE 17

Examples of univalent categories

  • SET (follows from the Univalence Axiom)
  • categories of algebraic structures (groups, rings,...)
  • made precise by the Structure Identity Principle

(Coquand, Aczel)

  • full subcategories of univalent categories
  • functor category DC, if D is univalent (see below)
slide-18
SLIDE 18

What about categories as objects?

Definition (Functor) A functor F from C to D is given by

  • a map F0 : C0 → D0
  • for any a, a′ : C0, a map Fa,a′ : C(a, a′) → D(Fa, Fa′)
  • preserving identity and composition

A functor F is an isomorphism of categories if

  • F0 is an equivalence of types
  • Fa,a′ is an equivalence of types (a bijection) for any a, a′

C ∼ = D :=

  • F:C→D

isIsoOfCats(F)

slide-19
SLIDE 19

Natural transformations

Definition (Natural transformation) Let F, G : C → D be functors. A natural transformation α : F → G is given by

  • for any a : C0 a morphism αa : D(Fa, Ga) s.t.
  • for any f : C(a, b), Gf ◦ αa αb ◦ Ff

The type of natural transformations F → G is a set. Definition (Functor category DC)

  • objects: functors from C to D
  • morphisms from F to G: natural transformations

A natural transformation α is an isomorphism iff each αa is.

slide-20
SLIDE 20

Equivalence of categories

Definition (Left Adjoint, Equivalence of Categories) A functor F : C → D is a left adjoint if there are

  • G : D → C
  • η : 1C → GF
  • ǫ : FG → 1D
  • + higher coherence data.

A left adjoint F is an equivalence of categories if η and ǫ are isomorphisms. “F is an equivalence” is a proposition. C ≃ D :=

  • F:C→D

isEquivOfCats(F)

slide-21
SLIDE 21

1 kind of sameness for univalent categories

Equality C D Isomorphism C ∼ = D Equivalence C ≃ D Theorem For univalent categories C and D, these three are equivalent as types. In particular, we can substitute a univalent category with an equivalent one.

slide-22
SLIDE 22

Rezk completion

  • “Being univalent” is a proposition

Inclusion from univalent categories to categories Theorem The inclusion of univalent categories into categories has a left adjoint (in bicategorical sense), C → C Rezk completion of C That is, any functor F : C → D with D univalent factors uniquely via ηC : C → C: C

ηC

  • C

∃!

  • η is unit of adjunction

D

slide-23
SLIDE 23

Formalization and reference

Formalization in Coq

  • Rezk completion formalized
  • approx. 4000 lines of code
  • based on Voevodsky’s library “Foundations”

github.com/benediktahrens/rezk_completion References

  • preprint with same title

arxiv.org/abs/1303.0584

  • C. Rezk, A model for the homotopy theory of homotopy

theory, 2001