107
Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES 2011, 8 September 2011 Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 1 / 21

Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for Logic-Enriched Type Theories

Robin Adams

Royal Holloway, University of London

TYPES 2011, 8 September 2011

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 1 / 21

Page 2: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Curry-Howard Isomorphism

There are two facts that are both sometimes referred to as theCurry-Howard isomorphism. One is trivial, one is not.

Non-trivial Fact

When we do so:

the rules for conjunction are the rules for product type;

the rules for impliciation are the rules for non-dependent functiontype;

the rules for universal quantification are (almost) the rules fordependent function type;

the rules for classical logic are the rules for control operators (usually);

the rules for modal logic are the rules for metavariables;

etc.

In this talk, ‘Curry-Howard’ shall mean the second.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 2 / 21

Page 3: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Curry-Howard IsomorphismThere are two facts that are both sometimes referred to as theCurry-Howard isomorphism. One is trivial, one is not.

Trivial Fact

It is possible to write a linear syntax for natural deduction proofs, and thenwrite Γ ` P : φ for ‘P is a proof of φ (that depends on the free variablesand hypotheses Γ)’

Non-trivial Fact

When we do so:

the rules for conjunction are the rules for product type;

the rules for impliciation are the rules for non-dependent functiontype;

the rules for universal quantification are (almost) the rules fordependent function type;

the rules for classical logic are the rules for control operators (usually);

the rules for modal logic are the rules for metavariables;

etc.

In this talk, ‘Curry-Howard’ shall mean the second.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 2 / 21

Page 4: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Curry-Howard Isomorphism

There are two facts that are both sometimes referred to as theCurry-Howard isomorphism. One is trivial, one is not.

Non-trivial Fact

When we do so:

the rules for conjunction are the rules for product type;

the rules for impliciation are the rules for non-dependent functiontype;

the rules for universal quantification are (almost) the rules fordependent function type;

the rules for classical logic are the rules for control operators (usually);

the rules for modal logic are the rules for metavariables;

etc.

In this talk, ‘Curry-Howard’ shall mean the second.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 2 / 21

Page 5: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Curry-Howard Isomorphism

There are two facts that are both sometimes referred to as theCurry-Howard isomorphism. One is trivial, one is not.

Non-trivial Fact

When we do so:

the rules for conjunction are the rules for product type;

the rules for impliciation are the rules for non-dependent functiontype;

the rules for universal quantification are (almost) the rules fordependent function type;

the rules for classical logic are the rules for control operators (usually);

the rules for modal logic are the rules for metavariables;

etc.

In this talk, ‘Curry-Howard’ shall mean the second.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 2 / 21

Page 6: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 7: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 8: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 9: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 10: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 11: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

My Beliefs on Curry-Howard

I believe:

1 Curry-Howard is surprising,

2 There is something there to be explained. (Why do propositionsbehave like types?)

3 We do not have a good explanation yet. (Propositions are notliterally types.)

4 We are having problems because we tacetly assumepropositions-as-types.

5 We should instead turn Curry-Howard into a mathematical object.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 3 / 21

Page 12: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

IntroductionWe have:

systems of first-orderarithmetic

systems ofsecond-orderarithmetic

set theories

type theories

. . .

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

PA

I 0Σ

IΣ2

I 1Σ

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 13: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

IntroductionWe have:

systems of first-orderarithmetic

systems ofsecond-orderarithmetic

set theories

type theories

. . .

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

ATR 0

WKL0

RCA 0

ACA 0PA

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 14: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

IntroductionWe have:

systems of first-orderarithmetic

systems ofsecond-orderarithmetic

set theories

type theories

. . .

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

ATR 0

WKL0

RCA 0

ACA 0PA

CZF

IZF

ZF

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 15: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

IntroductionWe have:

systems of first-orderarithmetic

systems ofsecond-orderarithmetic

set theories

type theories

. . .

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 16: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

IntroductionWe have:

systems of first-orderarithmetic

systems ofsecond-orderarithmetic

set theories

type theories

. . .

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 17: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 18: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 19: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

I If propositions reallywere types, itshould be easy.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 20: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

LTT

LTTW

0

ML(CZF)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 21: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

I 0Σ

IΣ2

I 1Σ

WKL0

RCA 0

ACA 0

ATR 0

PA

CZF

IZF

ZF

1

ML 2

ML

ML

MLW

V1ML

LTT

LTTW

0

ML(CZF)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 22: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

LTT ML+EM

Curry−Howard

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 23: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

Syntactic translationsare possible.

Curry-Howard becomesjust one of a family.

LTT ML+EM

Curry−Howard

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 24: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

Syntactic translationsare possible.

Curry-Howard becomesjust one of a family.

LTT ML+EM

Curry−Howard

Double Negation

Russell−Prawitz

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 25: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

Syntactic translationsare not enough.

LTT ML+EM

Curry−Howard

Double Negation

Russell−Prawitz

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 26: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Introduction

It is very difficult totranslate between thesystems on the left,and the systems on theright.

Syntax and semanticsare both very different.

Logic-enriched typetheories (LTTs) help.

We need a semanticsfor LTTs.

LTT ML+EM

Curry−Howard

Double Negation

Russell−Prawitz

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 4 / 21

Page 27: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

1 Logic-Enriched Type TheoriesSyntax

2 Categorical SemanticsIntroduction to Categorical SemanticsCategorical Semantics for Logic-Enriched Type TheoriesSoundness and Completeness Theorems

3 ApplicationsConservativity of ACA0 over PABounded Quantification

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 5 / 21

Page 28: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:Judgement forms:

Γ ` A Type Γ ` M : AΓ ` φ Prop Γ ` P : φ

and associated equality judgements.

arrow types A→ B

product types A× B

natural numbers Na type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 29: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ Bwith objects λx : A.M

product types A× B

natural numbers Na type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 30: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× Bwith objects (M,M)

natural numbers Na type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 31: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× B

natural numbers Nwith objects 0 and S(M)

a type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 32: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× B

natural numbers Na type universe Uwith objects N̂ and M×̂M

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 33: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× B

natural numbers Na type universe U

classical predicate logicwith propositions M =A M, ¬φ, φ ∧ ψ, ∀x : A.φ, . . .

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 34: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× B

natural numbers Na type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 35: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTT

LTT0 is a system with:

arrow types A→ B

product types A× B

natural numbers Na type universe U

classical predicate logic

a propositional universe prop Type

We write Set (A) for A→ prop.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 6 / 21

Page 36: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 37: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 38: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 39: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 40: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 41: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 42: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 43: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 44: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 45: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Propositional UniverseA type universe is a type whose objects are names of types:

The universe U contains N̂, N̂×̂N̂, . . . .

A type is small iff it has a name in U, large otherwise.

A propositional universe is a type whose objects are names of propositions:

The universe prop contains ¬̂0=̂N̂S(0), ∀̂x : N̂.x=̂N̂x , etc.

In LTT0, prop contains the propositions that do not involvequantification over large types.

A proposition is small iff it has a name in prop, large otherwise.

The strength of an LTT is determined by which types and whichpropositions we can eliminate over.

We can only eliminate N over small types.

We can only use proof by induction with small propositions.

Adding a new type or connective is conservative. Adding it to theuniverses is not.Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 7 / 21

Page 46: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics

We can give semantics to a type theory in a variety of ways:

Map types to sets, ω-sets, PERs, sheaves, domains, . . .

To save repeating work, we:

define the properties a category must have for us to build a semanticsfrom its objects;

give semantics to the theory in an arbitrary category with thoseproperties.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 8 / 21

Page 47: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a Dependent Type TheoryTo give semantics to adependent type theory, weneed:

a category B (whoseobjects interpret contextsΓ);

a category E (whoseobjects interprettypes-in-contextΓ ` A Type);

a functor P : E→ B→(mapping Γ ` A to(Γ, x : A)→ Γ).

such that

p = cod ◦P is a fibration

B has a terminal object

. . .

EP- B→

B

p

?

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 9 / 21

Page 48: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a Dependent Type TheoryTo give semantics to adependent type theory, weneed:

a category B (whoseobjects interpret contextsΓ);

a category E (whoseobjects interprettypes-in-contextΓ ` A Type);

a functor P : E→ B→(mapping Γ ` A to(Γ, x : A)→ Γ).

such that

p = cod ◦P is a fibration

B has a terminal object

. . .

E

P- B→

B

p

?

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 9 / 21

Page 49: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a Dependent Type TheoryTo give semantics to adependent type theory, weneed:

a category B (whoseobjects interpret contextsΓ);

a category E (whoseobjects interprettypes-in-contextΓ ` A Type);

a functor P : E→ B→(mapping Γ ` A to(Γ, x : A)→ Γ).

such that

p = cod ◦P is a fibration

B has a terminal object

. . .

EP- B→

B

p

?�

cod

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 9 / 21

Page 50: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a Dependent Type TheoryTo give semantics to adependent type theory, weneed:

a category B (whoseobjects interpret contextsΓ);

a category E (whoseobjects interprettypes-in-contextΓ ` A Type);

a functor P : E→ B→(mapping Γ ` A to(Γ, x : A)→ Γ).

such that

p = cod ◦P is a fibration

B has a terminal object

. . .

EP- B→

B

p

?�

cod

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 9 / 21

Page 51: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a LTT

To give semantics to a LTT,we need, in addition:

a category P (whoseobjects interpretpropositions-in-contextΓ ` φ Prop);

a fibration q : P→ B(mapping Γ ` φ Prop toΓ)

for every objectΓ ` A Type in E,a right adjoint π∗ a ∀ anda left adjoint ∃ a π∗

such that P is a locallyCartesian closed category.

P EP- B→

B

p

?�

cod

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 10 / 21

Page 52: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a LTT

To give semantics to a LTT,we need, in addition:

a category P (whoseobjects interpretpropositions-in-contextΓ ` φ Prop);

a fibration q : P→ B(mapping Γ ` φ Prop toΓ)

for every objectΓ ` A Type in E,a right adjoint π∗ a ∀ anda left adjoint ∃ a π∗

such that P is a locallyCartesian closed category.

P EP- B→

B

p

?�

codq

-

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 10 / 21

Page 53: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a LTT

To give semantics to a LTT,we need, in addition:

a category P (whoseobjects interpretpropositions-in-contextΓ ` φ Prop);

a fibration q : P→ B(mapping Γ ` φ Prop toΓ)

for every objectΓ ` A Type in E,a right adjoint π∗ a ∀ anda left adjoint ∃ a π∗

such that P is a locallyCartesian closed category.

P EP- B→

B

p

?�

codq

-

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 10 / 21

Page 54: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for a LTT

To give semantics to a LTT,we need, in addition:

a category P (whoseobjects interpretpropositions-in-contextΓ ` φ Prop);

a fibration q : P→ B(mapping Γ ` φ Prop toΓ)

for every objectΓ ` A Type in E,a right adjoint π∗ a ∀ anda left adjoint ∃ a π∗

such that P is a locallyCartesian closed category.

P EP- B→

B

p

?�

codq

-

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 10 / 21

Page 55: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)

an object U in E over the empty context (terminal object)a generic object x : U ` T (x) Type in E over domP(` U Type);

D ⊂ - E

A?

⊂ - B?

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)an object prop in E over the terminal objecta generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 56: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)an object U in E over the empty context (terminal object)

a generic object x : U ` T (x) Type in E over domP(` U Type);

D ⊂ - E

A?

⊂ - B?

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)an object prop in E over the terminal objecta generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 57: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)an object U in E over the empty context (terminal object)a generic object x : U ` T (x) Type in E over domP(` U Type);

D � D×A B

A?� B

?

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)an object prop in E over the terminal objecta generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 58: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for Universes

To give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)

an object U in E over the empty context (terminal object)

a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)

an object prop in E over the terminal object

a generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 59: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)an object U in E over the empty context (terminal object)a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)

an object prop in E over the terminal objecta generic object V in E over domPprop.

Q ⊂ - P

C?

⊂ - B?

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 60: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)an object U in E over the empty context (terminal object)a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)an object prop in E over the terminal object

a generic object V in E over domPprop.

Q ⊂ - P

C?

⊂ - B?

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 61: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for UniversesTo give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)an object U in E over the empty context (terminal object)a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)an object prop in E over the terminal objecta generic object V in E over domPprop.

Q � Q×C B

C?� B

?

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 62: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for Universes

To give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)

an object U in E over the empty context (terminal object)

a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)

an object prop in E over the terminal object

a generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 63: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Categorical Semantics for Universes

To give semantics to a dependent type theory with a universe (U,T ), weneed:

a substructure (intended to represent the small types and smallcontexts)

an object U in E over the empty context (terminal object)

a generic object x : U ` T (x) Type in E over domP(` U Type);

To give semantics to (prop,V ), we need in addition:

a substructure (intended to represent the small propositions andcontexts consisting solely of small propositions)

an object prop in E over the terminal object

a generic object V in E over domPprop.

We require > → 〈x : N〉 → 〈x : N〉 to be a weak fibred natural numberobject in both of these right-hand-sides.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 11 / 21

Page 64: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Interpretation

Given an LTTW-category C, define:

for every valid context Γ, an object [[Γ]] of B;

for every type A such that Γ ` A Type, an object [[Γ ` A]] of E suchthat p [[Γ ` A]] = [[Γ]]

for every term M such that Γ ` M : A, an arrow[[Γ ` M]] : [[Γ]]→ domP [[Γ ` A]]

for every proposition φ such that Γ ` φprop, an object [[Γ ` φ]] of Pover [[Γ]]

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 12 / 21

Page 65: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Soundness Theorem

Theorem

Every judgement is true in any LTTW-category. That is:

1 If Γ ` A = B then [[Γ ` A]] = [[Γ ` B]]

2 If Γ ` M = N : A then [[Γ ` M]] = [[Γ ` N]]

3 If Γ ` φ = ψ then [[Γ ` φ]] = [[Γ ` ψ]]

4 If there is a proof Γ ` P : φ then there is a vertical arrow> → [[Γ ` φ]] in the fibre P/ [[Γ]].

Proof.

Induction on derivations.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 13 / 21

Page 66: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Completeness Theorem

Theorem

If a judgement is true in every category C, then it is derivable in T .

Proof.

Define the category Cl (T ), the classifying category of T , thus:

the objects of B are the valid contexts;

the objects of E are the pairs (Γ,A) such that Γ ` A Type,quotiented by equality;

. . .

If a judgement is true in Cl (T ), then it is derivable in T .

In fact, Cl (T ) is an initial object in the metacategory ofLTTW-categories. The interpretation given earlier is the unique functorCl (T )→ C. This is the sort of thing that gets category theorists excited.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 14 / 21

Page 67: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Completeness Theorem

Theorem

If a judgement is true in every category C, then it is derivable in T .

Proof.

Define the category Cl (T ), the classifying category of T , thus:

the objects of B are the valid contexts;

the objects of E are the pairs (Γ,A) such that Γ ` A Type,quotiented by equality;

. . .

If a judgement is true in Cl (T ), then it is derivable in T .

In fact, Cl (T ) is an initial object in the metacategory ofLTTW-categories. The interpretation given earlier is the unique functorCl (T )→ C.

This is the sort of thing that gets category theorists excited.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 14 / 21

Page 68: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Completeness Theorem

Theorem

If a judgement is true in every category C, then it is derivable in T .

Proof.

Define the category Cl (T ), the classifying category of T , thus:

the objects of B are the valid contexts;

the objects of E are the pairs (Γ,A) such that Γ ` A Type,quotiented by equality;

. . .

If a judgement is true in Cl (T ), then it is derivable in T .

In fact, Cl (T ) is an initial object in the metacategory ofLTTW-categories. The interpretation given earlier is the unique functorCl (T )→ C. This is the sort of thing that gets category theorists excited.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 14 / 21

Page 69: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.

The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 70: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.Define the higher-order recursive (hor) functions to be those built up from0M and SM by composition, primitive recursion, pairing, projection,lambda-abstraction and application.

The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 71: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.Define the higher-order recursive (hor) functions to be those built up from0M and SM by composition, primitive recursion, pairing, projection,lambda-abstraction and application.Define the arithmetic predicates to be those built up from equality byBoolean operations and quantification over |M|.

The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 72: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.The objects of E are the sets built up from |M| by ×, → and P,where A→ B is the set of hor functions from A to B,and PA is the set of arithmetic subsets of A.

The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 73: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.

The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 74: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

Note that E and P are radically different.

We can similarly prove LTT0

conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 75: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conservativity of LTT0 over PAI have previously given syntactic proofs that LTT0 is conservative over PA.We can now give a semantic proof of the same result.

Theorem

LTT0 is conservative over PA.

Proof.

From any model M of PA, we construct a model of LTT0.The objects of E are the sets built up from |M| by ×, → and P.The objects of B are the sets of all sequences of objects of E. The arrowsare the hor functions.The objects of P over b ∈ B are all subsets of b.

We can similarly prove LTT0 conservative over ACA0.

Corollary

ACA0 is conservative over PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 15 / 21

Page 76: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?

Just close it under bounded quantification? Categorical semantics arehorrible.Answer: Put (a name of) prop in U.We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 77: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?Just close it under bounded quantification? Categorical semantics arehorrible.

Answer: Put (a name of) prop in U.We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 78: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?Just close it under bounded quantification? Categorical semantics arehorrible.Answer: Put (a name of) prop in U.

We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 79: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?Just close it under bounded quantification? Categorical semantics arehorrible.Answer: Put (a name of) prop in U.We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 80: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?Just close it under bounded quantification? Categorical semantics arehorrible.Answer: Put (a name of) prop in U.We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).

(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 81: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Bounded Quantification

Problem: How do we turn prop into the set of Σ0-propositions?Just close it under bounded quantification? Categorical semantics arehorrible.Answer: Put (a name of) prop in U.We can define bounded quantification by elimination N over prop:

∀x < 0.φ(x) = >∀x < S(n).φ(x) = ∀x < n.φ(x) ∧ φ(n)

Conversely, any formula in prop in the new LTT corresponds to aΣ0-formula in I Σ0(exp).(Show that the functions in N→ N are all defined by a Σ0-formula inI Σ0(exp). Use the fact that the Σ0-definable functions are closed underprimitive recursion.)

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 16 / 21

Page 82: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conclusion

Logic-enriched type theories are the right setting for investigating manyfoundational questions in type theory, and in orthodox logic.

At themoment, they are a solution looking for a problem.

I don’t want to carry on finding new proofs of old results.

Questions I plan to investigate:

What is the proof-theoretic ordinal of this LTT?

What is the set of functions definable in this LTT?

Some logical features work nicely in LTTs (Σ0-induction,Σ1-induction)

Some do not (Σ2-induction)

What’s the difference between these?

Please bring me some more.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 17 / 21

Page 83: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conclusion

Logic-enriched type theories are the right setting for investigating manyfoundational questions in type theory, and in orthodox logic. At themoment, they are a solution looking for a problem.

I don’t want to carry on finding new proofs of old results.

Questions I plan to investigate:

What is the proof-theoretic ordinal of this LTT?

What is the set of functions definable in this LTT?

Some logical features work nicely in LTTs (Σ0-induction,Σ1-induction)

Some do not (Σ2-induction)

What’s the difference between these?

Please bring me some more.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 17 / 21

Page 84: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conclusion

Logic-enriched type theories are the right setting for investigating manyfoundational questions in type theory, and in orthodox logic. At themoment, they are a solution looking for a problem.

I don’t want to carry on finding new proofs of old results.

Questions I plan to investigate:

What is the proof-theoretic ordinal of this LTT?

What is the set of functions definable in this LTT?

Some logical features work nicely in LTTs (Σ0-induction,Σ1-induction)

Some do not (Σ2-induction)

What’s the difference between these?

Please bring me some more.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 17 / 21

Page 85: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Conclusion

Logic-enriched type theories are the right setting for investigating manyfoundational questions in type theory, and in orthodox logic. At themoment, they are a solution looking for a problem.

I don’t want to carry on finding new proofs of old results.

Questions I plan to investigate:

What is the proof-theoretic ordinal of this LTT?

What is the set of functions definable in this LTT?

Some logical features work nicely in LTTs (Σ0-induction,Σ1-induction)

Some do not (Σ2-induction)

What’s the difference between these?

Please bring me some more.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 17 / 21

Page 86: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:Judgement forms:

Γ ` A type Γ ` M : AΓ ` φ Prop Γ ` P : φ

and associated equality judgements.

Type A ::=

A→ A | A× A | N | U | T (M) | Set (A)

Term M ::= x

| λx : A.M | MM | (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |{x : A | P}

Proposition φ ::=

M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::=

· · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 87: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A

| A× A | N | U | T (M) | Set (A)

Term M ::= x | λx : A.M | MM

| (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |{x : A | P}

Proposition φ ::=

M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::=

· · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 88: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A

| N | U | T (M) | Set (A)

Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M)

|0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |{x : A | P}

Proposition φ ::=

M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::=

· · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 89: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A | N

| U | T (M) | Set (A)

Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M)

| N̂ | M×̂M |{x : A | P}

Proposition φ ::=

M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::=

· · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 90: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×

classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A | N | U | T (M)

| Set (A)

Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |

{x : A | P}

Proposition φ ::=

M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::=

· · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 91: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A | N | U | T (M)

| Set (A)

Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |

{x : A | P}

Proposition φ ::= M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ

| prop | V (P)

Proof P ::= · · ·

| M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 92: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A | N | U | T (M)

| Set (A)

Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M) |0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |

{x : A | P}

Proposition φ ::= M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::= · · · | M=̂MM | ¬̂φ | φ∧̂φ | · · ·

| M ∈ M

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 93: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

Syntax of an LTTLTT0 is a system with:

arrow types

product types

natural numbers

a type universe closed under N and ×classical predicate logic

a propositional universe

typed sets

Type A ::= A→ A | A× A | N | U | T (M) | Set (A)Term M ::= x | λx : A.M | MM | (M,M) | π1(M) | π2(M) |

0 | S(M) | EN(M,M,M,M) | N̂ | M×̂M |{x : A | P}

Proposition φ ::= M =A M | ¬φ | φ ∧ φ | φ ∨ φ | φ→ φ |∀x : A.φ | ∃x : A.φ | prop | V (P)

Proof P ::= · · · | M=̂MM | ¬̂φ | φ∧̂φ | · · · | M ∈ MRobin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 18 / 21

Page 94: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

We can give a semantic proof of this result:A function f : Nn → N is definable in PA iff there is a formulaφ[x1, . . . , xn, y ] such that:

1 for all a1, . . . , an, PA ` φ[a1, . . . , an, f (a1, . . . , an)];

2 PA ` ∀x1 · · · ∀xn∃!yφ[x1, . . . , xn, y ]

Theorem

The functions definable in PA are exactly the ε0-recursive functions.

Proof.

Construct a model of LTT0 in which the arrows are the ε0-recursivefunctions. Then apply conservativity.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 19 / 21

Page 95: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

History of LTTs

2002 Aczel and Gambino [?] define translations betweenConstructive ZF (CZF) and the type theory ML1V.

2006 Gambino and Aczel [?] introduce the logic-enriched typetheory ML(CZF) as a half-way stage.

2007 Adams and Luo [?] show how an LTT can represent Weyl’sschool of predicativism.

2010 Adams and Luo [?] show their system is not conservativeover PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 20 / 21

Page 96: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

History of LTTs

2002 Aczel and Gambino [?] define translations betweenConstructive ZF (CZF) and the type theory ML1V.

2006 Gambino and Aczel [?] introduce the logic-enriched typetheory ML(CZF) as a half-way stage.

2007 Adams and Luo [?] show how an LTT can represent Weyl’sschool of predicativism.

2010 Adams and Luo [?] show their system is not conservativeover PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 20 / 21

Page 97: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

History of LTTs

2002 Aczel and Gambino [?] define translations betweenConstructive ZF (CZF) and the type theory ML1V.

2006 Gambino and Aczel [?] introduce the logic-enriched typetheory ML(CZF) as a half-way stage.

2007 Adams and Luo [?] show how an LTT can represent Weyl’sschool of predicativism.

2010 Adams and Luo [?] show their system is not conservativeover PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 20 / 21

Page 98: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

History of LTTs

2002 Aczel and Gambino [?] define translations betweenConstructive ZF (CZF) and the type theory ML1V.

2006 Gambino and Aczel [?] introduce the logic-enriched typetheory ML(CZF) as a half-way stage.

2007 Adams and Luo [?] show how an LTT can represent Weyl’sschool of predicativism.

2010 Adams and Luo [?] show their system is not conservativeover PA.

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 20 / 21

Page 99: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 100: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 101: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 102: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 103: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 104: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 105: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 106: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21

Page 107: Categorical Semantics for Logic-Enriched Type Theories · 2011-09-15 · Categorical Semantics for Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London TYPES

The Moral of the Story

From this work, I take the message:

LTTs can do some things better than either orthodox logics or typetheories.

LTTs are very useful as an intermediary between orthodox logics andtype theories.

LTTs turn Curry-Howard into a mathematical object — a translationfrom an LTT to a type theory;

. . . which becomes just one of a family of translations.

But I need semantics to guide future research.

I also need to think of better names.

I do not claim:

LTTs are ‘better’ than predicate logics or type theories.

Curry-Howard is ‘bad’

Robin Adams (RHUL) Categorical Semantics for LTTs TYPES 2011 21 / 21