User:Michiexile/MATH198/Lecture 10

From HaskellWiki

IMPORTANT NOTE: THESE NOTES ARE STILL UNDER DEVELOPMENT. PLEASE WAIT UNTIL AFTER THE LECTURE WITH HANDING ANYTHING IN, OR TREATING THE NOTES AS READY TO READ.

This lecture will be shallow, and leave many things undefined, hinted at, and is mostly meant as an appetizer, enticing the audience to go forth and seek out the literature on topos theory for further studies.

Subobject classifier

One very useful property of the category Set is that the powerset of a given set is still a set; we have an internal concept of object of all subobjects. Certainly, for any category (small enough) C, we have a contravariant functor Sub():CSet taking an object to the set of all equivalence classes of monomorphisms into that object; with the image Sub(f) given by the pullback diagram

If the functor Sub() is representable - meaning that there is some object XC0 such that Sub()=hom(,X) - then the theory surrounding representable functors, connected to the Yoneda lemma - give us a number of good properties.

One of them is that every representable functor has a universal element; a generalization of the kind of universal mapping properties we've seen in definitions over and over again during this course; all the definitions that posit the unique existence of some arrow in some diagram given all other arrows.

Thus, in a category with a representable subobject functor, we can pick a representing object ΩC0, such that Sub(X)=hom(X,Ω). Furthermore, picking a universal element corresponds to picking a subobject Ω0Ω such that for any object A and subobject A0A, there is a unique arrow χ:AΩ such that there is a pullback diagram

One can prove that Ω0 is terminal in C, and we shall call Ω the subobject classifier, and this arrow Ω0=1Ω true. The arrow χ is called the characteristic arrow of the subobject.

In Set, all this takes on a familiar tone: the subobject classifier is a 2-element set, with a true element distinguished; and a characteristic function of a subset takes on the true value for every element in the subset, and the other (false) value for every element not in the subset.

Defining topoi

Definition A topos is a cartesian closed category with all finite limits and with a subobject classifier.

It is worth noting that this is a far stronger condition than anything we can even hope to fulfill for the category of Haskell types and functions. The functional proogramming relevance will take a back seat in this lecture, in favour of usefulness in logic and set theory replacements.

Properties of topoi

The meat is in the properties we can prove about topoi, and in the things that turn out to be topoi.

Theorem Let E be a topos.

  • E has finite colimits.

Power object

Since a topos is closed, we can take exponentials. Specifically, we can consider [AΩ]. This is an object such that hom(B,[AΩ])=hom(A×B,Ω)=Sub(A×B). Hence, we get an internal version of the subobject functor. (pick B to be the terminal object to get a sense for how global elements of [AΩ] correspond to subobjects of A)

Internal logic

We can use the properties of a topos to develop a logic theory - mimicking the development of logic by considering operations on subsets in a given universe:

Classically, in Set, and predicate logic, we would say that a predicate is some function from a universe to a set of truth values. So a predicate takes some sort of objects, and returns either True or False.

Furthermore, we allow the definition of sets using predicates:

{xU:P(x)}

Looking back, though, there is no essential difference between this, and defining the predicate as the subset of the universe directly; the predicate-as-function appears, then, as the characteristic function of the subset. And types are added as easily - we specify each variable, each object, to have a set it belongs to.

This way, predicates really are subsets. Type annotations decide which set the predicate lives in. And we have everything set up in a way that open sup for the topos language above.

We'd define, for predicates P,Q acting on the same type:

{xA:}=A
{xA:}=
{x:(PQ)(x)}={x:P(x)}{x:Q(x)}
{x:(PQ)(x)}={x:P(x)}{x:Q(x)}
{xA:(¬P)(x)}=A{xA:P(x)}

We could then start to define primitive logic connectives as set operations; the intersection of two sets is the set on which both the corresponding predicates hold true, so =. Similarily, the union of two sets is the set on which either of the corresponding predicates holds true, so =. The complement of a set, in the universe, is the negation of the predicate, and all other propositional connectives (implication, equivalence, ...) can be built with conjunction (and), disjunction (or) and negation (not).

So we can mimic all these in a given topos:

We say that a universe U is just an object in a given topos.

A predicate is a subobject of the universe.


Conjunction: Given predicates P,Q, we need to define the conjunction PQ as some PQ:UΩ that corresponds to both P and Q simultaneously.

We can construct pullback diagrams

File:ToposConjunctionPart1.png File:ToposConjunctionPart2.png

in which u=χP×χQ. Furthermore, the arrow Failed to parse (unknown function "\true"): {\displaystyle true\times\true: 1\to\Omega\times\Omega} is monic, and thus has a classifier :Ω×ΩΩ.

Now, we define PQ as the composition χP×χQ, and observe that PQ classifies the intersection PQ.

Implication: Next we define 1 to be the equalizer of and proj1. Given v×w:TΩ×Ω, we write v1w if v×w factors through 1.

Using the definition of an equalizer we arrive at v1w iff v=vw. From this, we can deduce

u1true
u1u
If u1v and v1w then u1w.
If u1v and v1u then u=v

and thus, 1 is a partial order on [TΩ]. Intuitively, u1v if v is at least as true as u.

This relation corresponds to inclusion on subobjects. Note that 1:Ω1Ω×Ω, given from the equalizer, gives us Ω1 as a relation on Ω - a subobject of Ω×Ω. Specifically, it has a classifying arrow :Ω×ΩΩ. We write hk=h×k. And for subobjects P,QA, we write PQ for the subobject classified by χPχQ.

It turns out, without much work, that this PQ behaves just like classical implication in its relationship to .

Membership: We can internalize the notion of membership as a subobject AA×ΩA, and thus get the membership relation from a pullback:

For generalized elements x×h:TA×ΩA, we write xAh<math>for<math>x×hA. Both notations indicate evAh×x=true.

Universal quantification: For any object A, the maximal subobject of A is A itself, embedded with 1A into itself. Thus, we have an arrow tA:1ΩA representing this subobject. Being a map from 1, it is specifically monic, so it has a classifying arrow A:ΩAΩ that takes a given subobject of A to true precisely if it is in fact the maximal subobject.

Now, with a relation r:RB×A, we define a.R by the following pullback:

where λχr comes from the universal property of the exponential.

Theorem For any s:SB monic, Sa.R iff S×AR.

This theorem tells us that the subobject given by a.R is the largest subobject of B that is related by R to all of A.

Falsum: We can define the false truth value using these tools as wΩ.w. This might be familiar to the more advanced Haskell type hackers - as the type

x :: forall a. a

which has to be able to give us an element of any type, regardless of the type itself. And in Haskell, the only element that inhabits all types is undefined.

From a logical perspective, we use a few basic inference rules:

and connect them up to derive

*
w.w:w.w
w.w:w
w.w:ϕ

for any ϕ not involving w - and we can always adjust any ϕ to avoid w.

Thus, the formula w.w has the property that it implies everything - and thus is a good candidate for the false truth value; since the inference

is the defining introduction rule for false.


Negation: We define negation the same way as in classical logic: ¬ϕ=ϕfalse.


Disjunction: We can define

PQ=w.((ϕw)(ψw))w

Note that this definition uses one of our primary inference rules:

as the defining property for the disjunction, and we may derive any properties we like from these.

Existential quantifier: Finally, the existential quantifier is derived similarly to the disjunction - by figuring out a rule we want it to obey, and using that as a definition for it:

x.ϕ=w.(x.ϕw)w

Here, the rule we use as defining property is

File:ToposExistentsConnective.png

Before we leave this exploration of logic, some properties worth knowing about: While we can prove ¬(ϕ¬ϕ) and ϕ¬¬ϕ, we cannot, in just topos logic, prove things like

¬(ϕψ)(¬ϕ¬ψ)
¬¬ϕϕ

nor any statements like

¬(x.¬ϕ)(x.ϕ)
¬(x.ϕ)(x.¬ϕ)
¬(x.¬ϕ)(x.ϕ)

We can, though, prove

¬(x.ϕ)(x.¬ϕ)

If we include, extra, an additional inference rule (called the Boolean negation rule) given by

then suddenly we're back in classical logic, and can prove ¬¬ϕϕ and ϕ¬ϕ.

Examples

Sheaves, topology and time sheaves

Exercises

No homework at this point. However, if you want something to think about, a few questions and exercises:

  1. blah