A type theory for cartesian closed bicategories Marcelo Fiore and - - PowerPoint PPT Presentation

▶
a type theory for cartesian closed bicategories
SMART_READER_LITE
LIVE PREVIEW

A type theory for cartesian closed bicategories Marcelo Fiore and - - PowerPoint PPT Presentation

A type theory for cartesian closed bicategories Marcelo Fiore and Philip Saville* University of Cambridge Department of Computer Science and Technology * now at University of Edinburgh School of Informatics 9th July 2019 1 / 25 Cartesian


slide-1
SLIDE 1

A type theory for cartesian closed bicategories

Marcelo Fiore and Philip Saville*

University of Cambridge Department of Computer Science and Technology * now at University of Edinburgh School of Informatics

9th July 2019

1 / 25

slide-2
SLIDE 2

Cartesian closed bicategories

Cartesian closed categories ‘up to isomorphism’. Examples:

  • Generalised species and cartesian distributors

particularly for applications in higher category theory (Fiore, Gambino, Hyland, Winskel), (Fiore & Joyal)

  • Categorical algebra (operads)

(Gambino & Joyal)

  • Game semantics (concurrent games)

(Yamada & Abramsky, Winskel et al., Paquet)

2 / 25

slide-3
SLIDE 3

Internal monoids

In a category with finite products: 1 e Ý Ñ M

m

Ð Ý M ˆ M Unit law 1 ˆ M M ˆ 1 M ˆ M M

e ˆ M M ˆ e – – m

  • Assoc. law

pM ˆ Mq ˆ M M ˆ pM ˆ Mq M ˆ M M ˆ M M

– M ˆ m m m ˆ M m

3 / 25

slide-4
SLIDE 4

Internal monoids

In a category with finite products: 1 e Ý Ñ M

m

Ð Ý M ˆ M In Set: monoids In Cat: strict monoidal categories Unit law 1 ˆ M M ˆ 1 M ˆ M M

e ˆ M M ˆ e – – m

  • Assoc. law

pM ˆ Mq ˆ M M ˆ pM ˆ Mq M ˆ M M ˆ M M

– M ˆ m m m ˆ M m

3 / 25

slide-5
SLIDE 5

Internal pseudomonoids

In Cat: 1 e Ý Ñ M

m

Ð Ý M ˆ M Unit 2-cells 1 ˆ M M ˆ 1 M ˆ M M

e ˆ M M ˆ e » » m

  • Assoc. 2-cell

pM ˆ Mq ˆ M M ˆ pM ˆ Mq M ˆ M M ˆ M M

» M ˆ m m m ˆ M m λ

–

α

–

ρ

– data

4 / 25

slide-6
SLIDE 6

Internal pseudomonoids

In Cat: 1 e Ý Ñ M

m

Ð Ý M ˆ M Unit 2-cells 1 ˆ M M ˆ 1 M ˆ M M

e ˆ M M ˆ e » » m

  • Assoc. 2-cell

pM ˆ Mq ˆ M M ˆ pM ˆ Mq M ˆ M M ˆ M M

» M ˆ m m m ˆ M m λ

–

α

–

ρ

– + triangle and pentagon laws ù monoidal category data

4 / 25

slide-7
SLIDE 7

Internal pseudomonoids

In Cat: 1 e Ý Ñ M

m

Ð Ý M ˆ M ...likewise in any fp-bicategory Unit 2-cells 1 ˆ M M ˆ 1 M ˆ M M

e ˆ M M ˆ e » » m

  • Assoc. 2-cell

pM ˆ Mq ˆ M M ˆ pM ˆ Mq M ˆ M M ˆ M M

» M ˆ m m m ˆ M m λ

–

α

–

ρ

– + triangle and pentagon laws ù monoidal category data

4 / 25

slide-8
SLIDE 8

In a CCC every rX ñ Xs becomes a monoid: ´ 1

IdX

Ý Ý Ñ rX ñ Xs

˝

Ð Ý rX ñ Xs ˆ rX ñ Xs ¯ ? In a cc-bicategory every rX ñ Xs becomes a pseudomonoid: ´ 1

IdX

Ý Ý Ñ rX ñ Xs

˝

Ð Ý rX ñ Xs ˆ rX ñ Xs ¯

need to check coherence laws (i.e. triangle + pentagon)

5 / 25

slide-9
SLIDE 9

Coherence

Programme:

  • 1. Construct a type theory Λˆ,Ñ

ps

for cartesian closed bicategories (this work),

  • 2. Use NBE to prove the type theory is coherent

bicategorical version of [Fiore2002]

(my thesis),

6 / 25

slide-10
SLIDE 10

Coherence

Programme:

  • 1. Construct a type theory Λˆ,Ñ

ps

for cartesian closed bicategories (this work),

  • 2. Use NBE to prove the type theory is coherent

bicategorical version of [Fiore2002]

(my thesis), Application: Algebraic structure definable in every CCC ñ algebraic pseudo-structure definable in every cc-bicategory

6 / 25

slide-11
SLIDE 11

Desiderata

A type theory Λˆ,Ñ

ps

that:

7 / 25

slide-12
SLIDE 12

Desiderata

A type theory Λˆ,Ñ

ps

that:

  • 1. Generalises the simply-typed lambda calculus,
  • 2. Is reasonable for calculations,
  • 3. Is sound and complete

7 / 25

slide-13
SLIDE 13

Desiderata

A type theory Λˆ,Ñ

ps

that:

  • 1. Generalises the simply-typed lambda calculus,
  • 2. Is reasonable for calculations,
  • 3. Is sound and complete

i.e. freeness property for the syntactic model.

7 / 25

slide-14
SLIDE 14

Bicategories

8 / 25

slide-15
SLIDE 15

Bicategories

  • Objects X P obpBq,

8 / 25

slide-16
SLIDE 16

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

8 / 25

slide-17
SLIDE 17

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

1-cells X

f

Ý Ñ Y 2-cells X Y

f

óα

f 1

8 / 25

slide-18
SLIDE 18

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

1-cells X

f

Ý Ñ Y 2-cells X Y

f

óα

f 1

X Y

f f 1 óα óα1 f 2

8 / 25

slide-19
SLIDE 19

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

1-cells X

f

Ý Ñ Y 2-cells X Y

f

óα

f 1

  • Functors

1

IdX

Ý Ý Ñ BpX, Xq BpY , Zq ˆ BpX, Y q

˝X,Y ,Z

Ý Ý Ý Ý Ñ BpX, Zq

8 / 25

slide-20
SLIDE 20

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

1-cells X

f

Ý Ñ Y 2-cells X Y

f

óα

f 1

  • Functors

1

IdX

Ý Ý Ñ BpX, Xq BpY , Zq ˆ BpX, Y q

˝X,Y ,Z

Ý Ý Ý Ý Ñ BpX, Zq X Y Z

f óα f 1 g óβ g1

8 / 25

slide-21
SLIDE 21

Bicategories

  • Objects X P obpBq,
  • Hom-categories

` BpX, Y q, ‚, id ˘ :

1-cells X

f

Ý Ñ Y 2-cells X Y

f

óα

f 1

  • Functors

1

IdX

Ý Ý Ñ BpX, Xq BpY , Zq ˆ BpX, Y q

˝X,Y ,Z

Ý Ý Ý Ý Ñ BpX, Zq

  • Invertible 2-cells

ph ˝ gq ˝ f

ah,g,f

ù ù ù ñ h ˝ pg ˝ f q IdX ˝ f

lf

ù ñ f g ˝ IdX

rg

ù ñ g subject to a triangle law and pentagon law.

8 / 25

slide-22
SLIDE 22

Cartesian closed bicategories

Bicategories B equipped with biuniversal 1-cells

9 / 25

slide-23
SLIDE 23

Cartesian closed bicategories

Bicategories B equipped with biuniversal 1-cells (fp) πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq (cc) eval : pA ñ Bq ˆ A Ñ B

NB: Differ from the ‘cartesian bicategories’ of Carboni and Walters!

9 / 25

slide-24
SLIDE 24

Cartesian closed bicategories

Bicategories B equipped with biuniversal 1-cells (fp) πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq (cc) eval : pA ñ Bq ˆ A Ñ B inducing families of equivalences

B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq

» BpX, A “

⊲ Bq

BpX ˆ A, Bq » NB: Differ from the ‘cartesian bicategories’ of Carboni and Walters!

9 / 25

slide-25
SLIDE 25

Cartesian closed bicategories

Bicategories B equipped with biuniversal 1-cells (fp) πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq (cc) eval : pA ñ Bq ˆ A Ñ B inducing families of equivalences

B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq pπ1˝´,...,πn˝´q

% »

x´,...,“y

(tupling)

BpX, A “

⊲ Bq

BpX ˆ A, Bq

evalA,B˝p´ˆAq

% »

λ

(currying)

NB: Differ from the ‘cartesian bicategories’ of Carboni and Walters!

9 / 25

slide-26
SLIDE 26

Substitution and composition

In any CCC: xkru1{x1, . . . , un{xns “ uk “ πk ˝ xu1, . . . , uny

10 / 25

slide-27
SLIDE 27

Substitution and composition

In any CCC: xkru1{x1, . . . , un{xns “ uk “ πk ˝ xu1, . . . , uny In any cc-bicategory: xkru1{x1, . . . , un{xns “ uk – πk ˝ xu1, . . . , uny

10 / 25

slide-28
SLIDE 28

Substitution and composition

In any CCC: xkru1{x1, . . . , un{xns “ uk “ πk ˝ xu1, . . . , uny In any cc-bicategory: xkru1{x1, . . . , un{xns “ uk – πk ˝ xu1, . . . , uny

Question: what is bicategorical substitution?

10 / 25

slide-29
SLIDE 29

An algebraic theory with substitution:

11 / 25

slide-30
SLIDE 30

An algebraic theory with substitution:

  • Sorts S,

11 / 25

slide-31
SLIDE 31

An algebraic theory with substitution:

  • Sorts S,
  • Constants x1 : X1, . . . , xn : Xn $ tpx1, . . . , xnq : Y ,

11 / 25

slide-32
SLIDE 32

An algebraic theory with substitution:

  • Sorts S,
  • Constants x1 : X1, . . . , xn : Xn $ tpx1, . . . , xnq : Y ,
  • Variables x1 : X1, . . . , xn : Xn $ xi : Xi p1 ď i ď nq,

11 / 25

slide-33
SLIDE 33

An algebraic theory with substitution:

  • Sorts S,
  • Constants x1 : X1, . . . , xn : Xn $ tpx1, . . . , xnq : Y ,
  • Variables x1 : X1, . . . , xn : Xn $ xi : Xi p1 ď i ď nq,
  • A substitution rule

t, pu1, . . . , unq ÞÑ trui{xis

11 / 25

slide-34
SLIDE 34

An algebraic theory with substitution:

  • Sorts S,
  • Constants x1 : X1, . . . , xn : Xn $ tpx1, . . . , xnq : Y ,
  • Variables x1 : X1, . . . , xn : Xn $ xi : Xi p1 ď i ď nq,
  • A substitution rule

t, pu1, . . . , unq ÞÑ trui{xis such that xkrui{xis “ uk p1 ď k ď nq trxi{xis “ t trui{xisrvj{yjs “ t ruirvj{yjs{xis

11 / 25

slide-35
SLIDE 35

Abstract clone pS, Cq = abstract theory of substitution:

12 / 25

slide-36
SLIDE 36

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,

12 / 25

slide-37
SLIDE 37

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,
  • Hom-sets CpX1, . . . , Xn; Y q of operations X1, . . . , Xn

t

Ý Ñ Y ,

12 / 25

slide-38
SLIDE 38

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,
  • Hom-sets CpX1, . . . , Xn; Y q of operations X1, . . . , Xn

t

Ý Ñ Y ,

  • Projections X1, . . . , Xn

ppiq

X1,...,Xn

Ý Ý Ý Ý Ý Ñ Xi p1 ď i ď nq,

12 / 25

slide-39
SLIDE 39

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,
  • Hom-sets CpX1, . . . , Xn; Y q of operations X1, . . . , Xn

t

Ý Ñ Y ,

  • Projections X1, . . . , Xn

ppiq

X1,...,Xn

Ý Ý Ý Ý Ý Ñ Xi p1 ď i ď nq,

  • Substitution mappings

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns

12 / 25

slide-40
SLIDE 40

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,
  • Hom-sets CpX1, . . . , Xn; Y q of operations X1, . . . , Xn

t

Ý Ñ Y ,

  • Projections X1, . . . , Xn

ppiq

X1,...,Xn

Ý Ý Ý Ý Ý Ñ Xi p1 ď i ď nq,

  • Substitution mappings

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns such that ppkqru1, . . . , uns “ uk p1 ď k ď nq trpp1q, . . . , ppnqs “ t t ru‚s rv‚s “ trv‚ru‚ss

12 / 25

slide-41
SLIDE 41

Abstract clone pS, Cq = abstract theory of substitution:

  • Sorts S,
  • Hom-sets CpX1, . . . , Xn; Y q of operations X1, . . . , Xn

t

Ý Ñ Y ,

  • Projections X1, . . . , Xn

ppiq

X1,...,Xn

Ý Ý Ý Ý Ý Ñ Xi p1 ď i ď nq,

  • Substitution mappings

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns such that ppkqru1, . . . , uns “ uk p1 ď k ď nq trpp1q, . . . , ppnqs “ t t ru‚s rv‚s “ trv‚ru‚ss Note: every clone defines a category

12 / 25

slide-42
SLIDE 42

Biclone pS, Cq = abstract theory of bicategorical substitution:

13 / 25

slide-43
SLIDE 43

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,

13 / 25

slide-44
SLIDE 44

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,
  • Hom-categories

` CpX1, . . . , Xn; Y q, ‚, id ˘ ,

13 / 25

slide-45
SLIDE 45

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,
  • Hom-categories

` CpX1, . . . , Xn; Y q, ‚, id ˘ ,

  • Projection 1-cells ppiq

X1,...,Xn : X1, . . . , Xn Ñ Xi p1 ď i ď nq,

13 / 25

slide-46
SLIDE 46

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,
  • Hom-categories

` CpX1, . . . , Xn; Y q, ‚, id ˘ ,

  • Projection 1-cells ppiq

X1,...,Xn : X1, . . . , Xn Ñ Xi p1 ď i ď nq,

  • Substitution functors

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns τ, pσ1, . . . , σnq ÞÑ τrσ1, . . . , σns

13 / 25

slide-47
SLIDE 47

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,
  • Hom-categories

` CpX1, . . . , Xn; Y q, ‚, id ˘ ,

  • Projection 1-cells ppiq

X1,...,Xn : X1, . . . , Xn Ñ Xi p1 ď i ď nq,

  • Substitution functors

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns τ, pσ1, . . . , σnq ÞÑ τrσ1, . . . , σns

  • Structural isomorphisms

ppkqru1, . . . , uns

̺pkq

u‚

ù ù ñ uk p1 ď k ď nq trpp1q, . . . , ppnqs

ιt

ù ñ t t ru‚s rv‚s

assoct;u‚;v‚

ù ù ù ù ù ù ñ trv‚ru‚ss subject to a triangle law and pentagon law.

13 / 25

slide-48
SLIDE 48

Biclone pS, Cq = abstract theory of bicategorical substitution:

  • Sorts S,

Note: every biclone defines a bicategory

  • Hom-categories

` CpX1, . . . , Xn; Y q, ‚, id ˘ ,

  • Projection 1-cells ppiq

X1,...,Xn : X1, . . . , Xn Ñ Xi p1 ď i ď nq,

  • Substitution functors

CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns τ, pσ1, . . . , σnq ÞÑ τrσ1, . . . , σns

  • Structural isomorphisms

ppkqru1, . . . , uns

̺pkq

u‚

ù ù ñ uk p1 ď k ď nq trpp1q, . . . , ppnqs

ιt

ù ñ t t ru‚s rv‚s

assoct;u‚;v‚

ù ù ù ù ù ù ñ trv‚ru‚ss subject to a triangle law and pentagon law.

13 / 25

slide-49
SLIDE 49

A type theory for biclones

14 / 25

slide-50
SLIDE 50

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

14 / 25

slide-51
SLIDE 51

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

Judgements:

14 / 25

slide-52
SLIDE 52

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

Judgements:

  • Relating terms: Γ $ t : B

14 / 25

slide-53
SLIDE 53

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

Judgements:

  • Relating terms: Γ $ t : B
  • Relating rewrites: Γ $ τ : t ñ t1 : B

14 / 25

slide-54
SLIDE 54

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

Judgements:

  • Relating terms: Γ $ t : B
  • Relating rewrites: Γ $ τ : t ñ t1 : B
  • Equational theory Γ $ τ ” τ 1 : t ñ t1 : B

14 / 25

slide-55
SLIDE 55

A type theory for biclones

Hom-categories ` CpX1, . . . , Xn; Y q, ‚, id ˘

(c.f. Hilken, Seely, Hirschowitz)

Judgements:

  • Relating terms: Γ $ t : B
  • Relating rewrites: Γ $ τ : t ñ t1 : B
  • Equational theory Γ $ τ ” τ 1 : t ñ t1 : B

Vertical composition: Γ $ τ 1 : t1 ñ t2 : B Γ $ τ : t ñ t1 : B Γ $ τ 1 ‚ τ : t ñ t2 : B Identities: Γ $ t : B Γ $ idt : t ñ t : B

14 / 25

slide-56
SLIDE 56

A type theory for biclones

A substitution functor CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns τ, pσ1, . . . , σnq ÞÑ τrσ1, . . . , σns

slide-57
SLIDE 57

A type theory for biclones

A substitution functor CpX1, . . . , Xn; Y q ˆ śn

i“1 CpΓ; Xiq Ñ CpΓ; Y q

t, pu1, . . . , unq ÞÑ tru1, . . . , uns τ, pσ1, . . . , σnq ÞÑ τrσ1, . . . , σns Explicit substitution: x1 : A1, . . . , xn : An $ t : B p∆ $ ui : Aiqi“1.,n ∆ $ t txi ÞÑ uiu : B

x1 : A1, . . . , xn : An $ τ : t ñ t1 : B p∆ $ σi : ui ñ u1

i : Aiqi“1,...,n

∆ $ τ txi ÞÑ σiu : t txi ÞÑ uiu ñ t1 txi ÞÑ u1

iu : B

ù binds the variables x1, . . . , xn

15 / 25

slide-58
SLIDE 58

A type theory for biclones

Structural isomorphisms ̺pkq, ι, assoc

slide-59
SLIDE 59

A type theory for biclones

Structural isomorphisms ̺pkq, ι, assoc Distinguished invertible rewrites e.g.:

p∆ $ ui : Aiqi“1,...,n

p1 ď k ď nq

x1 : A1, . . . , xn : An $ ̺pkq

u‚ : xk txi ÞÑ uiu –

ù ñ uk : Ak

16 / 25

slide-60
SLIDE 60

The syntactic model is free

17 / 25

slide-61
SLIDE 61

The syntactic model is free

SynpSq C S

syntactic model biclone signature D! strict h# @ h

17 / 25

slide-62
SLIDE 62

The syntactic model is free

SynpSq ˇ ˇ

1

B S ˇ ˇ

1 syntactic model

  • n unary contexts

bicategory unary signature D! strict h# @ h

17 / 25

slide-63
SLIDE 63

The syntactic model is free

SynpSq ˇ ˇ

1

B S ˇ ˇ

1 syntactic model

  • n unary contexts

bicategory unary signature D! strict h# @ h

ù An internal language for bicategories.

17 / 25

slide-64
SLIDE 64

fp-Bicategories

18 / 25

slide-65
SLIDE 65

fp-Bicategories

1-cells πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq Adjoint equivalences B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq pπ1˝´,...,πn˝´q

% »

x´,...,“y

18 / 25

slide-66
SLIDE 66

A type theory for fp-bicategories

1-cells πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq

19 / 25

slide-67
SLIDE 67

A type theory for fp-bicategories

1-cells πi : ΠnpA1, . . . , Anq Ñ Ai p1 ď i ď nq Projections

p1 ď i ď nq

p : ΠnpA1, . . . , Anq $ πippq : Ai

19 / 25

slide-68
SLIDE 68

A type theory for fp-bicategories

Equivalences

B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq pπ1˝´,...,πn˝´q

% »

x´,...,“y

̟piq ‚ πi tp´qu p:p´, . . . , “q

slide-69
SLIDE 69

A type theory for fp-bicategories

Equivalences

B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq pπ1˝´,...,πn˝´q

% »

x´,...,“y

πi ˝ u ñ ti : Ai pi “ 1, . . . , nq u ñ xt1, . . . , tny : ΠnpA1, . . . , Anq

̟piq ‚ ` πi ˝ p´q ˘ p:p´, . . . , “q

for a counit p̟piq : πi ˝ xt1, . . . , tny ñ ti : Aiqi“1,...,n

20 / 25

slide-70
SLIDE 70

A type theory for fp-bicategories

Equivalences

B pX, ΠnpA1, . . . , Anqq śn

i“1 BpX, Aiq pπ1˝´,...,πn˝´q

% »

x´,...,“y

syntactic sugar

πi tuu ñ ti : Ai pi “ 1, . . . , nq u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq

̟piq ‚ πi tp´qu p:p´, . . . , “q

for a counit p̟piq : πi ttuppt1, . . . , tnqu ñ ti : ΠnpA1, . . . , Anqqi“1,...,n

20 / 25

slide-71
SLIDE 71

A type theory for fp-bicategories

πi tuu ñ ti : Ai pi “ 1, . . . , nq u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq

̟piq ‚ πi tp´qu p:p´, . . . , “q

21 / 25

slide-72
SLIDE 72

A type theory for fp-bicategories

πi tuu ñ ti : Ai pi “ 1, . . . , nq u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq

̟piq ‚ πi tp´qu p:p´, . . . , “q

Tupling map pΓ $ ti : Aiqi“1,...,n Γ $ tuppt1 . . . , tnq : ΠnpA1, . . . , Anq

21 / 25

slide-73
SLIDE 73

A type theory for fp-bicategories

πi tuu ñ ti : Ai pi “ 1, . . . , nq u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq

̟piq ‚ πi tp´qu p:p´, . . . , “q

Tupling map pΓ $ ti : Aiqi“1,...,n Γ $ tuppt1 . . . , tnq : ΠnpA1, . . . , Anq Counit (β-law)

pΓ $ ti : Aiqi“1,...,n

p1 ď k ď nq

Γ $ ̟pkq

t‚ : πk ttuppt1 . . . , tnqu –

ù ñ tk : Ak

21 / 25

slide-74
SLIDE 74

A type theory for fp-bicategories

πi tuu ñ ti : Ai pi “ 1, . . . , nq u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq

̟piq ‚ πi tp´qu p:p´, . . . , “q

Tupling map pΓ $ ti : Aiqi“1,...,n Γ $ tuppt1 . . . , tnq : ΠnpA1, . . . , Anq Counit (β-law)

pΓ $ ti : Aiqi“1,...,n

p1 ď k ď nq

Γ $ ̟pkq

t‚ : πk ttuppt1 . . . , tnqu –

ù ñ tk : Ak

Mediating 2-cell pΓ $ αi : πi tuu ñ ti : Aiqi“1,...,n Γ $ p:pα1, . . . , αnq : u ñ tuppt1, . . . , tnq : ΠnpA1, . . . , Anq + three equational rules. ù η-law is derivable

21 / 25

slide-75
SLIDE 75

The syntactic model is free

pSynpSq, Πnp´qq pC, Πnp´qq S

syntactic model fp-biclone signature

(Require Π1pXq “ X)

D! strict h# @ h

22 / 25

slide-76
SLIDE 76

The syntactic model is free

` SynpSq ˇ ˇ

1, Πnp´q

˘ pB, Πnp´qq S ˇ ˇ

1 syntactic model

  • n unary contexts

fp-bicategory unary signature

(Require Π1pXq “ X)

D! strict h# @ h

22 / 25

slide-77
SLIDE 77

The syntactic model is free

` SynpSq ˇ ˇ

1, Πnp´q

˘ pB, Πnp´qq S ˇ ˇ

1 syntactic model

  • n unary contexts

fp-bicategory unary signature

(Require Π1pXq “ X)

D! strict h# @ h

ù An internal language for fp-bicategories. derived from definition of biadjoint

22 / 25

slide-78
SLIDE 78

The syntactic model is free

pSynpSq, Πnp´q, “

⊲q

pC, Πnp´q, “

⊲q

S

syntactic model cc-biclone signature D! strict h# @ h

(Require Π1pXq “ X) 23 / 25

slide-79
SLIDE 79

The syntactic model is free

` SynpSq ˇ ˇ

1, Πnp´q, “ ⊲˘

pB, Πnp´q, “

⊲q

S ˇ ˇ

1 syntactic model

  • n unary contexts

cc-bicategory with strict products unary signature D! strict h# @ h

(Require Π1pXq “ X) 23 / 25

slide-80
SLIDE 80

The syntactic model is free

` SynpSq ˇ ˇ

1, Πnp´q, “ ⊲˘

pB, Πnp´q, “

⊲q

S ˇ ˇ

1 syntactic model

  • n unary contexts

cc-bicategory unary signature @ h

(Require Π1pXq “ X)

unique up to equivalence

23 / 25

slide-81
SLIDE 81

The syntactic model is free

` SynpSq ˇ ˇ

1, Πnp´q, “ ⊲˘

pB, Πnp´q, “

⊲q

S ˇ ˇ

1 syntactic model

  • n unary contexts

cc-bicategory unary signature @ h

(Require Π1pXq “ X)

unique up to equivalence

ù An internal language for cartesian closed bicategories.

23 / 25

slide-82
SLIDE 82

STLC up to isomorphism

Embedding of STLC-terms to Λˆ,Ñ

ps

  • terms:

xk ÞÑ xk πkptq ÞÑ πk t t u xt1, . . . , tny ÞÑ tupp t1 , . . . , tn q apppt, uq ÞÑ eval t t , u u λx.t ÞÑ λx. t

24 / 25

slide-83
SLIDE 83

STLC up to isomorphism

Embedding of STLC-terms to Λˆ,Ñ

ps

  • terms:

xk ÞÑ xk πkptq ÞÑ πk t t u xt1, . . . , tny ÞÑ tupp t1 , . . . , tn q apppt, uq ÞÑ eval t t , u u λx.t ÞÑ λx. t

pSTLC terms Γ $ t : Bq{βη – pΛˆ,Ñ

ps

  • terms Γ $ t : Bq{–Γ

B

t –Γ

B t1

ô Γ $ τ : t

–

ù ñ t1 : B for some invertible τ

24 / 25

slide-84
SLIDE 84

Key properties of Λˆ,Ñ

ps

:

25 / 25

slide-85
SLIDE 85

Key properties of Λˆ,Ñ

ps

:

  • 1. Principled development ñ few rules,
  • 2. An internal language for cc-bicategories,
  • 3. STLC up-to-isomorphism.

25 / 25

slide-86
SLIDE 86

Key properties of Λˆ,Ñ

ps

:

  • 1. Principled development ñ few rules,
  • 2. An internal language for cc-bicategories,
  • 3. STLC up-to-isomorphism.

A type theory for cartesian closed bicategories (LICS’19): https://arxiv.org/abs/1904.06538

25 / 25

slide-87
SLIDE 87

1 / 3

slide-88
SLIDE 88

cc-Bicategories

1-cells evalA,B : pA “

⊲ Bq ˆ A Ñ B

Adjoint equivalences BpX, A “

⊲ Bq

BpX ˆ A, Bq

evalA,B˝p´ˆAq

% »

λ

2 / 3

slide-89
SLIDE 89

Rules for exponentials

explicit weakening by x free variable in context

px : Aq eval tu tincxu , xu ñ t : B u ñ λx.t : A “

⊲ B ǫ ‚ eval tp´q tincxu , xu e:px . ´q eval

f : A “

⊲ B, x : A $ evalpf , xq : B

Γ, x : A $ t : B

lam

Γ $ λx.t : A “

⊲ B

Γ, x : A $ t : B

ǫ-intro (β-rule)

Γ, x : A $ ǫt : eval tpλx.tq tincxu , xu ñ t : B Γ, x : A $ t : B Γ $ u : A “

⊲ B

Γ, x : A $ α : eval tu tincxu , xu ñ t : B

e:px . αq-intro

Γ $ e:px . αq : u ñ λx.t : A “

⊲ B

+ three equational rules ù η-rule derivable

3 / 3