fibrational versions of dialectica categories

29
Fibrational Versions of Dialectica Categories Valeria de Paiva Cuil, Inc. Stanford Logic Seminar May 2010

Upload: valeria-de-paiva

Post on 21-Dec-2014

694 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Fibrational Versions of Dialectica Categories

Fibrational Versions of Dialectica Categories

Valeria de Paiva

Cuil, Inc.

Stanford Logic SeminarMay 2010

Page 2: Fibrational Versions of Dialectica Categories

Outline

Introduction

Original Dialectica Categories (de Paiva, 1988)

Original Fibrational Dialectica (Hyland, 2002)

Cartesian Closed Dialectica categories (Biering, 2008)

Discussion

Page 3: Fibrational Versions of Dialectica Categories

Introduction: What, why?

(Prove existence and describe) Cartesian Closed Dialecticacategories

I Chapter 4 of Bodil Biering’s PhD thesis “DialecticaInterpretations: A Categorical Analysis”, 2008

I Why? Categorical understanding of Godel’s DialecticaInterpretation

I What for?I For Godel, the interpretation was a way of proving

consistency of arithmetic, an extension of Hilbert’sprogramme

I For me (20 years ago) a way of producing models of LinearLogic from a proven way of understanding logic

I For Biering: a way of unifying categorical structures,brought back to proof theory?...

Page 4: Fibrational Versions of Dialectica Categories

Biering’s Thesis Abstract

I The Dialectica interpretations are remarkable syntacticconstructions

I Use these constructions to develop new mathematicalstructures: Dialectica categories, the Dialectica- andDiller-Nahm triposes, and the Dialectica- and Diller-Nahmtoposes

I The mathematical structures created from the functionalinterpretations provide us with new models for typetheories and programming logics

I Studying the mathematical structures we gain new insightsinto the syntactical constructions.

I Product: Biering et al “Copenhagen interpretation”

Page 5: Fibrational Versions of Dialectica Categories

Biering’s Thesis Table of Contents

A collection of articles, want to discuss chapter 4...I IntroductionI Topos Theoretic Versions of Dialectica InterpretationsI A Unified View on the Dialectica TriposesI Cartesian Closed Dialectica CategoriesI The Copenhagen interpretationI (BI Hyperdoctrines and Higher Order Separation Logic)

Page 6: Fibrational Versions of Dialectica Categories

Functional Interpretations

I Starting with Godel’s Dialectica interpretation a series of”translation functions” between theories

I Avigad and Feferman on the Handbook of Proof Theory:This approach usually follows Godel’s originalexample: first, one reduces a classical theory C toa variant I based on intuitionistic logic; then onereduces the theory I to a quantifier-free functionaltheory F.

I Examples of functional interpretations:I Kleene’s realizabilityI Kreisel’s modified realizabilityI Kreisel’s No-CounterExample interpretationI Dialectica interpretationI Diller-Nahm interpretation

Page 7: Fibrational Versions of Dialectica Categories

Godel’s Dialectica InterpretationFor each formula A of HA we associate a formula of the formAD = ∃u∀xAD(u,x) (where AD is a quantifier-free formula ofGodel’s system T) inductively as follows: when Aat is an atomicformula, then its interpretation is itself.Assume we have already defined AD = ∃u∀x .AD(u,x) andBD = ∃v∀y .BD(v ,y).We then define:

I (A∧B)D = ∃u,v∀x ,y .(AD ∧BD)

I (A→ B)D = ∃f : U→ V ,F : U×X → Y ,∀u,y .( AD(u,F (u,y))→ BD(fu;y))

I (∀zA)D(z) = ∃f : Z → U∀z,x .AD(z, f (z),x)

I (∃zA)D(z) = ∃z,u∀x .AD(z,u,x)

The intuition here is that if u realizes ∃u∀x .AD(u,x) then f (u)realizes ∃v∀y .BD(v ,y) and at the same time, if y is acounterexample to ∃v∀y .BD(v ,y), then F (u,y) is acounterexample to ∀x .AD(u,x).

Page 8: Fibrational Versions of Dialectica Categories

Categorical Dialectica Interpretation

I Main references:I The ‘Dialectica’ Interpretation and Categories (P. J. Scott,

Zeit. fur Math Logik und Grund. der Math. 24, 1978)I The Dialectica Categories, (de Paiva, AMS vol 92, 1989)I Proof Theory in the Abstract, (Hyland, APAL 2002)I Dialectica categories are naturally symmetric monoidal

closed, but not cartesian closed categories.I We would like them to be cartesian closed.

Why?Can we make them Cartesian closed?Yes, in different ways.

Page 9: Fibrational Versions of Dialectica Categories

Plan of Biering’s ‘Cartesian Closed DialecticaCategories’

I Recall the definitions and basic properties of originaldialectica categories

I Discuss three approaches to classes of Cartesian closedDialectica categories

I Preferred way explained, leads to a generalisation ofconstruction

I Show monads and comonads in generalisationI Example of non-Girardian comonad that produces weak

exponentialsI Example of extensional version of DialecticaI Conclusions

Page 10: Fibrational Versions of Dialectica Categories

Original Dialectica Categories (V. de Paiva, 1987)

Suppose that we have a category C, with finite limits,interpreting some type theory.The category Dial(C) has as objects triples A = (U,X ,α),where U,X are objects of C and α is a sub-object of U×X ,that is a monic in Sub(U×X ).A map from A = (U,X ,α) to B = (V ,Y ,β ) is a pair of maps(f ,F ) in C, f : U→ V , F : U×X → Y such that

α(u,F (u,y))≤ β (f (u),y)

The predicate α is not symmetric: read (U,X ,α) as∃u.∀x .α(u,x), a proposition in the image of the Dialecticainterpretation. The functionals f and F correspond to thedialectica interpretation of implication.

Page 11: Fibrational Versions of Dialectica Categories

Original Dialectica Categories

My thesis has four chapters, four main definitions and four maintheorems. The first two chapters are about the “original”dialectica categories.

Theorem (V de Paiva, 1987)If C is a ccc with stable, disjoint coproducts, then Dial(C) hasproducts, tensor products, units and a linear function space(1,×,⊗, I,→) and Dial(C) is symmetric monoidal closed.This means that Dial(C) models Intuitionistic Linear Logic (ILL)without modalities. How to get modalities? Need to define aspecial comonad and lots of work to prove theorem 2...

Page 12: Fibrational Versions of Dialectica Categories

Original Dialectica Categories!A must satisfy !A→!A⊗!A, !A⊗B→!A, !A→ A and !A→!!A,together with several equations relating them.The point is to define a comonad such that its coalgebras arecommutative comonoids and the coalgebra and the comonoidstructure interact nicely.

Theorem (V de Paiva, 1987)Given C a cartesian closed category with free monoids(satisfying certain conditions), we can define a comonad T onDial(C) such that its Kleisli category Dial(C)T is cartesianclosed.Define T by saying A = (U,X ,α) goes to (U,X ∗,α∗) where X ∗

is the free commutative monoid on X and α∗ is the multisetversion of α.Loads of calculations prove that the linear logic modalitiy ! iswell-defined and we obtain a full model of ILL and IL, aposteriori of CLL.Construction generalized in many ways, cf. dePaiva, TAC, 2006.

Page 13: Fibrational Versions of Dialectica Categories

Fibrational Dialectica (M. Hyland, 2002)Given C a category with finite limits and a pre-ordered fibrationp : E → C with for each I in C, a preordered collection ofpredicates E(I) = (E(I),`), construct a category Dial(p). Theobjects A of Dial(p) are triples (U,X ,α) where U,X are objectsin C and α is in E(U×X ). Maps in Dial(p) are pairs of maps inC,(f ,F ) in C, f : U→ V , F : U×X → Y such that

α(u,F (u,y)) ` β (f (u),y)

Theorem (Hyland, 2002)If C is a CCC and p : E → C is (pre-ordered) fibered cartesianclosed then Dial(p) is symmetric monoidal closed.If, moreover, C has finite, distributive coproducts and E(0)∼= 1and the injections X → X +Y and Y → X +Y induce anequivalence E(X +Y )≡ E(X )×E(Y ) then Dial(p) has finiteproducts.This is a generalization of the original Dialectica categories, wherethe fibration is the subobject fibration.

Page 14: Fibrational Versions of Dialectica Categories

Categorical Logic in slogans

“categorical model theory” or “categorical proof theory”?I Categorical model theory: model theory, where models are

categories, instead of sets.I Categorical proof theory: models are categories,

propositions are objects, derivations are arrows in thecategory. concept of two different proofs being ‘the same’

I Logic connectives correspond to structure in thecategories, Lawvere and Lambek in the 60’s.

I Textbook: Lambek and Scott “Introduction to higher ordercategorical logic”, 1986.

I Main example: Intuitionistic propositional logic modeled asCartesian Closed Categories (CCCs).

I Works for first-order intuitionistic logic too, models arehyperdoctrines

Page 15: Fibrational Versions of Dialectica Categories

Fibrations for DummiesFibrations can be used for modeling several kinds of typetheories. Too complicated, perhaps?

I Intuition: given a set I, consider the I-indexed family of sets(Xi)i∈I or X (i), for each i in I.

I Want something similar where instead of indexing sets, wehave a base category B, creating a “family of objects of acategory indexed by objects I in the base category B”

I There are two “equivalent” ways of doing this, using“indexed categories” or “fibrations”.

I A fibration is a structure p : E → B, where p is a functorand E ,B are categories, satisfying certain axioms.

I Think of B as Sets and E as Fam(Sets) where Fam(Sets)is the category where objects are families of sets {Xi}i∈I , Iand Xi are sets. Maps from f : {Xi}i∈I →{Yj}j∈J consist ofa function φ : I→ J (a re-indexing function) together with afamily of maps {fi : Xi → Yφ(i)}i∈I

Page 16: Fibrational Versions of Dialectica Categories

Fibrations for Dummies 2I Which certain axioms? Given a functor p : E → B when

can we think of each object X in E as a family (Xi)i∈Iindexed by I = pX in B?

I There is a functor p : Fam(Sets)→ (Sets) that takes thefamily {Xi}i∈I to I.

I Call a map f : {Xi}i∈I →{Yj}j∈J , vertical if pf = 1I – nore-indexing going on.

I Call a map f : {Xi}i∈I →{Yj}j∈J , cartesian if each fi is anisomorphism, pure re-indexing, fis don’t do any work.

I Given a family of sets {Xi}i∈I any map α : K → I induces a(cartesian) map f : {Xα(k)}k∈K →{Xi}i∈I where each fi isthe identity.

I cartesian maps have a universal property: an arbitrarymap f factors through a cartesian map g, when φ = pffactors through α = pg and the factorization is uniquelydetermined.

Page 17: Fibrational Versions of Dialectica Categories

Fibrations for Dummies 3

DefinitionA map g : X ′→ X in E is called cartesian if given any mapf : Y → X , each factorization of φ = pf through α = pg uniquelydetermines a factorization of f through g.[insert picture]

DefinitionA functor p : E → B is a fibration, if for all X in E and mapsα : K → I = pX there exists an object X ′ and a cartesian mapg : X ′→ X such that pg = α.Cartesian liftings are unique up to iso, so: If p : E → B is afibration, a cleavage for this fibration is a particular choice ofcartesian liftings. A fibration equipped with a particularcleavage is called a cloven fibration. (usually to show afunctor is a fibration, we produce a cleavage)

Page 18: Fibrational Versions of Dialectica Categories

Proof Theory in the Abstract (Troelstra Fest)

A destilation of the program of ”proof theory in the abstract” asdeveloped since the late 60s. Structure of paper in 2002:

I BackgroundI DialecticaI Diller-NahmI Classical logic

Highly recommended for philosophy and clarity of explanationof the problems with classical logic.

Page 19: Fibrational Versions of Dialectica Categories

Proof Theory in the Abstract (Troelstra Fest)

For Dialectica main theorems are:

Theorem (Hyland Thm 2.3, p.8, 2002)If T is a CCC interpreting some type theory and p : P→ T is(pre-ordered) fibered cartesian closed then Dial = Dial(p) asdefined is symmetric monoidal closed.Natural propositional structure in place

Theorem (Hyland Thm 2.5, p.9, 2002)The fibration q : Dial → T has left and right adjoints tore-indexing along product projections. These satisfy theBeck-Chevalley conditions.Predicate structure in place.But to really interpret Dialectica we need conjunctions anddisjunctions. Here the maths turns out not be so pretty.

Page 20: Fibrational Versions of Dialectica Categories

Proof Theory in the Abstract (Troelstra Fest)

For conjunction, to cope with diagonals A→ A⊗A need ‘weakcases definition’. To cope with projections A⊗B→ A needinhabited types. For disjunction we need a weak coproduct aswell as a weak initial object and a codiagonal. The structurecan be made to work, but it ain’t good category theory. (Theseproblems and way-outs were known from the non-fibrational case).

Theorem (Hyland, Thm 2.6 p.14, 2002)The poset reflection of our indexed category Dial → T of proofs is afirst-order hyperdoctrine: we get indexed Heyting algebras and goodquantification.Diller-Nahm has better structure!Hyland suggests an abstract analysis of the interpretation of settheory studied by Burr.Jacobs, Streicher and de Paiva first version of 2.3 in note in 1995 (Jacob’s book exercise). Streicher’ note “A

Semantic Version of the Diller-Nahm Variant of Godel’s Dialectica Interpretation”, 2000.

Page 21: Fibrational Versions of Dialectica Categories

Cartesian Closed Dialectica Categories?

Several people took up more (categorical) analysis ofDialectica, e.g. Streicher, Rosolini, Birkedal. etc...

The natural structure of Dial(p) is smcc with finite products.Biering: How can we make it cartesian closed?

I Make the tensor product, a cartesian productHyland’s ‘hackery’ above

I Get a Girardian comonad on the Dialectica categoryDiller-Nahm variants (VdP88), (Strei?), (Burr98)?, ...

I Add enough structure to define a weak function space –without making the tensor a product, (Biering06)

Page 22: Fibrational Versions of Dialectica Categories

Cloven Dialectica CategoriesHyland defined the category Dial(p) for pre-ordered fibrations.Biering generalized it, using fibrations into usual categories,requiring p to be a cloven fibration. This is needed to obtainassociativity of composition in Dial(p). She defines Dial(p) andprove it’s a category. With appropriate conditions it has some ofthe structure we want.

Theorem (Biering, 2008)Let p : E → T be a cloven fibration. If T has finite, distributivecoproducts and products, and the injections X → X +Y andY → X +Y induce an equivalence µ : E(X )×E(Y )≡ E(X +Y ),natural in X and Y , then Dial(p) has binary products.Moreover, if E(0)∼= 1, then Dial(p) has a terminal object.The proof is a direct generalization of Hyland’s proof.How can one make the category Dial(p) above cartesianclosed? It has products and a terminal object, but no functionspaces. Biering will define ‘weak’ function spaces for aparticular example of fibration, the codomain fibration.

Page 23: Fibrational Versions of Dialectica Categories

Codomain Dialectica Categories?

What is the codomain fibration?For any category C, there is a category Arr(C), whose objectsare the arrows of C, say α : X → I.A morphism in Arr(C) from α : X → I to β : Y → J consists of apair of morphisms, f : X → Y and g : I→ J.There is a functor cod : Arr(C)→ C which sends an object inArr(C), say α : X → I to its codomain I, and a morphism, thesquare, (f : X → Y ,g : I→ J) to g, the ‘lower’ edge.The functor cod : Arr(C)→ C is a fibration.

Theorem (Biering, Prop 3.7 p6, 2008)Let C be a category with finite limits and finite coproducts, andassume that the coproducts are stable and disjoint, thenDial(cod(C)) has finite products.Can we make Dial(cod(C)) cartesian closed? Almost...

Page 24: Fibrational Versions of Dialectica Categories

A comonad in Dial(p)

DefinitionLet C be a category with finite products and stable, disjointcoproducts. The functor −+1 : C→ C together with families ofmaps ι : X → X +1 and µ : (X +1)+1→ X +1 is a monad onC. Define a comonad L+ on the subobject fibrationDial(Sub(C)) using the monad −+1 as follows. Let α be asubobject of U×X in C , then L+(α,U,X ) = (α+,U,(X +1))where α+ is reindexing of α along the arrowU× (X +1)∼= U×X +U→ (U×X )+1.This means that α+(u,x) = α(u,x), if x is in X,> if x is in 1.This comonad simply makes the second coordinatewell-pointed.

Page 25: Fibrational Versions of Dialectica Categories

A comonad in Dial(p)The comonad L+ just defined is not Girardian, that is we do nothave the isomorphism

!(A×B)∼=!A⊗!B

Had this iso being satisfied, then the Kleisli category of thecomonad would be cartesian closed. As it is, the best we cando is to have weak function spaces, ie is a retraction

C(A×B,C)EC(A, [B,C])

where the weak function space is given byB→ C = (W V × (1+Y )V×Z ),V ×Z ,γ).

Theorem (Biering, 2008, 4.7, p 12)Let C be a cartesian closed category with finite limits, andstable, disjoint coproducts, which is locally cartesian closed.Then the Dialectica-Kleisli category, DialL +(cod(C)), which wedenote by Dial+, has finite products and weak function spaces.Same is true for DialL +(Sub(C)).Main result, proof takes 6 pages, ‘souped up’ proof of dial thm1.

Page 26: Fibrational Versions of Dialectica Categories

Discussion

Examples of fibrations that meet the conditions of Theorem 4.7:

I cod(PER)→ PERI cod(Set)→ SetI the codomain fibration cod(C)→ C for a topos C andI the subobject fibration Sub(C)→ C

Biering decribes example where the fibration isFam(PER)→ PER (a per is a partial equivalence relation), theproduct as as well as the weak function space inDial+(Fam(PER)). But calculating there is unwieldy.

Page 27: Fibrational Versions of Dialectica Categories

Discussion

I Biering concludes: Two new variants of Dialecticacategories.

I First, make proof theory out of Dial+. One needs to extendGodel’s T with stable, disjoint coproducts and subset typesand interpret implication by new weak function space.Advantage: don’t need atomic formulas to be decidable.

I Second, make proof theory of Dial(p). A type-theoreticversion of Dialectica. Instead of formulas over Heytingarithmetic (original dialectica) have dependent types oversome type system and Dialectica turns the dependent typesystem into a lambda-calculus without eta-rule.Advantage?

I Further work: Other comonads for Dialectica? Oliva’swork. Do PER model better? Didn’t describe structure forgeneralized dialectica categories, apart from products.

Page 28: Fibrational Versions of Dialectica Categories

Conclusions

I A worked out example of “proof theory in the abstract”I dialectica categories Dial(C) (1988)I dialectica pre-ordered fibration Dial(p) (2002)I Dialectica-Kleisli category Dial+ (2008)I More to come Oliva, Hofstra, Triffonov, etc..?

THANK YOU!

Page 29: Fibrational Versions of Dialectica Categories

ReferencesI Troelstra, A. S. (1973) Metamathematical Investigation of

Intuitionistic Arithmetic and Analysis, Springer-Verlag.I W. Hodges and B. Watson: translation of K. Godel, ’Uber

eine bisher noch nicht bentzte Erweiterung des finitenStandpunktes’, JPL 9 (1980)

I Avigad, Feferman.Godel’s Functional (Dialectica)Interpretation

I V de Paiva. The Dialectica Categories, AMS-92, 1989I Burr, W. (1999) Concepts and aims of functional

interpretations: towards a functional interpretation ofconstructive set theory.

I M. Hyland, Proof Theory in the Abstract, APAL, 2002.I P. Oliva. An analysis of Godel’s Dialectica interpretation via

linear logic. Dialectica,2008I Biering. Dialectica Interpretations: a categorical analysis,

PHD Thesis, 2008I Collected Works of Kurt Godel, vol 2 Feferman et al, 1990