C AHIERS DE
TOPOLOGIE ET GÉOMÉTRIE DIFFÉRENTIELLE CATÉGORIQUES
M ICHAEL B ARR Models of sketches
Cahiers de topologie et géométrie différentielle catégoriques, tome 27, n
o2 (1986), p. 93-107
<
http://www.numdam.org/item?id=CTGDC_1986__27_2_93_0>
© Andrée C. Ehresmann et les auteurs, 1986, tous droits réservés.
L’accès aux archives de la revue « Cahiers de topologie et géométrie différentielle catégoriques » implique l’accord avec les conditions générales d’utilisation (
http://www.numdam.org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit contenir la présente mention de copyright.
Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques
MODELS OF SKETCHES
by
Michael BARR CAHIERS DE TOPOLOGIEET
GÉOMÉTRIE
DIFFÉRENTIELLECAT#GORIQUES
Vol. XXVII-2 (1986)
RESUME.
Le but de cet aticle est d’6tudier lescategories qui
sontdes
categories
de modbles d’uneesquisse.
Les r6sultatsprincipaux répondent à
laquestion
de la caract6risation dutype
de1’esquisse
par
rapport
auxpropri6t6s
de sacategorie
de modLIes. Les es-quisses qu’on emploie
sont un peu differentes de celles de A. et C.Ehresmann,
mais la notion d6coule de la leur.INTRODUCTION.
Ever since the dissertation of Lawvere
[1963 ], categorists
havebeen interested in the
question
ofpresenting categories
ascategories
of functors and natural transformations between them. One of the earliest
attempts
to gobeyond product preserving
functors(and
thus
equational theories)
was Ehresmann’scategories
of sketched struc- tures. Theconcept
of sketch was laid out at least asearly
as[Ehres-
mann,
1966 ],
but the mostcomplete exposition
seems to be[Bastiani
&Ehresmann, 1972 ]. Meantime,
Isbell[1972 ]
wasexploring
a similaridea, again
motivatedby
the idea ofdescribing interesting categories
ascategories
of functors and natural transformations.In
[Barr
&Wells, 1985 ],
a variation of Ehresmann’s sketches wasthe main
conceptual
tool used topresent
abstract theories. The sketches used there were not evencategories.
This has been criticized as a retro-grade step
and it seemsappropriate
to say a few words about our rea- sons. Theprincipal
reason is that our sketches are the closestthing
we could find to a naive
presentation
and thus seemed to reflect actual mathematical usage better than any substitute. Inretrospect,
there isan even more
important
reason for sketchesbeing useful ;
in many of the mostinteresting
andcommonplace
casesthey
arefinite,
realizedon a
computer.
In view of thegrowing
use of theories in theoreticalcomputer
science(see [Ehrig
&Mahr, 1985 J
and the many references foundthere),
this can be a verygreat advantage.
Some open
questions
were raised in[Barr
&Wells, 1985]
as toidentifying types
of sketches fromproperties
of theircategories
ofmodels. An
example
of thetype
ofquestion
is this : whatproperty
of the
category
of commutative von Neumannregular rings
would allowone to
predict
from thecategorical structure,
that it has apresentation
as the
category
of models of anequational theory,
eventhough
it isnormally presented
with an existentialquantifier
and thus one would94
expect
it to bepresented using
aregular theory.
The fact is that there is both aregular presentation
and apurely equational
one means thatwe must also consider the
question
ofknowing
if two sketches have thesame models. The
question
we arereally addressing
is when a sketch isequivalent
in that sense to one with such and suchproperty.
The
equivalence
relation used is the leastequivalence
relationsuch that
Sl -> S2
is anequivalence
if it induces anequivalence
betweenthe
categories
of set-valued models. This relation is too crude ingeneral.
However,
we willmostly
beconsidering
coherent sketches here and ifthey
are at mostcountable,
theconceptual completeness
theoremof
[Barr
&Makkai,
toappear]
can bereadily
shown toimply
that ifa
morphism
induces anequivalence
between thecategories
of set-valuedmodels,
then it induces anequivalence
between theirclassifying toposes
and hence between theircategories
of models valued in anytopos.
More
generally,
sketches need have no models atall,
and thisequival-
ence relation is
clearly
much too crude.In the
past
few years, thestudy
of initialobjects
incategories
of models has entered theoretical
computer
science in a substantial way. Thearguments
in this paper arepartly inspired by
thestudy
of initial
objects,
eventhough
the end results areindependent
of that.A
forthcom ing
paper of Wells and this author willexplore
the relevanceof these results in
computer
science.1 would like to thank Charles Wells with whom I have had many fruitful discussions on this
subject.
I amgrateful
for thesupport
I have received from the National Science andEngineering
ResearchCouncil and from the Ministbre de 1’Education de la Province du Qu6bec
through grants
from the Fonds pour la Formation de Chercheurs et l’Aide à laRecherche, especially
to theGroupe
Interuniversitaire enEtudes
C2t6goriques.
SKETCHES.
By
asketch,
we meansomething
a little moregeneral
that thatconsidered in
[Barr
&Wells, 19851
but also a little different in thatwe do not suppose
identity
arrows chosen. See the discussionfollowing
the definition of commutative
diagram
below for anexplanation
ofhow we deal with
identity
arrows.A sketch S =
(G, D, L , C)
consists of agraph G,
a set D ofdiagrams
inG,
a set L of cones in G and a set C of cocones in G.A
morphism
of sketches is amorphism
of thegraphs
which preserves thediagrams,
cones and cocones. The sketchunderlying
acategory
hasas
graph
the onegotten by forgetting
thecomposition,
and has fordiagrams
all the commutativediagrams,
for cones all limit cones andfor cocones all colimit cocones. Thus a
morphism
of a sketch ina
category (also
called a model of the sketch in thatcategory)
musttake all the
diagrams
to commutativediagrams,
all the cones tolimits and all the cocones to colimits. A
morphism
of modelsis,
asusual,
a natural tranformation. Note that the notion of natural transfor- mation between twomorphisms
fromgraph
G to acategory
E makesperfectly good
sense. IfF,
G : G > E are twomorphisms,
a naturaltransformation oc : F -> G consists of a
family a(s)
ofmorphisms
indexedby
the nodes of G such thata ( s) : F(s) - G(s)
and if f: s - t is an arrowof
G, then
thediagram
,commutes.
There is a certain
notation,
shown to meoriginally by
JohnGray,
that makes the
describing
of sketches much easier. If S is asketch,
a node in the
graph
G is called a sort of S . If s and t aresorts,
it makes no sense tospeak
of a sort that is aproduct
of s and t . Justfor that reason, we are free to use the notation s x t to mean what we want. We may and do use such a notation as a shorthand for a
node, having,
in the firstinstance,
no connection with s ort,
but also asimplying, by
its very name, the existence of a conein L . Let us say that such a cone is defined
implicitly by
this notation.In a similar
vein,
a node named 1 is understood to be the vertex ofan
empty
cone. There is a similar convention for arrows. If f : r -> sand g : r - t are arrows in the
graph,
then an arrow named(f, g) :
r - s x timplies
that there is adiagram
in D.
Analogous
remarksapply
toAn arrow written f : s F t is understood to
imply
the existence ofa cone .
96
Of course the duals of these conventions
give implicit
cocones.There is one more convention
giving diagrams.
If we have twopaths
in G between the same
pair
ofobjects,
then we will indicate that the
diagram
is in D
by writing
In the definition of free
monoid,
wealways
have anempty string.
When monoids are
generalized
tocategories,
we also allowempty strings,
butonly
between a node and itself. Thus in thediagram above,
we will allow the case that m =0,
say, butonly
when s = t.The statement that such a
diagram
commutes in acategory
meanssimply
that thecomposite
Some care must be exercised in
translating
naivediagrams
intoformal
diagrams.
Forexample,
if one wants to say of thediagram
that d o
d°=
d od 1,
it is not sufficient toput
in adiagram
based on agraph
of thatshape,
for our definition would forced ° = d1,
which isnot intended.
Instead,
we must use adiagram
based on thegraph Q
with the
shape
and a
morphism
Similar remarks
apply
in the case that one wants to force amorphism
to be
idempotent
withoutforcing
it to be theidentity.
Using
thisnotation,
it is often not necessary to write down manydiagrams,
cones or cocones at all.If S is a sketch and s is a sort of
S ,
then we define a new sketchSs
as follows. If S does not contain anobject 1,
we add it. Inaddition,
we add an arrow 1 -> S . We think of this sketch as
having
a newconstant of
type
s.Many
of our results below arephrased
in terms of initialobjects
in the
category
of models. An initialobject
in acategory is,
asusual,
anobject
that hasexactly
one map to every otherobject. Clearly
a
category
that has an initialobject
is connected. Now if acateg-
ory is not
connected,
it is stillpossible
that eachcomponent
has an initialobject.
If that is so, the initialobjects
of thecomponents
willbe called an initial
family.
Such afamily
has theproperty
that eachobject
in thecategory
has aunique morphism
from aunique
oneof the
objects.
Anexample
of an initialfamily
is the set ofprime
fields in the
category
of fields. lf there is nodanger
ofconfusion,
we will continue to call an
object
of an initialfamily
an initialobject.
A
generalization
in another direction isgiven by
anobject
thathas a
morphism
to every otherobject,
without itnecessarily being unique.
Thecategory
whoseobjects
aremonoids,
but withmorphisms
that are
multiplicative
maps, does not have an initialobject,
but theone element monoid has a
morphism
to every other monoid. The iden-tity
element can go to anyidempotent
element. Let us call such anobject quasi-initial.
A sketch is called an FP sketch
(for
finiteproduct)
if there areno cocones and all the cones are discrete and finite. The
category
ofmodels of such a sketch is
evidently
thealgebras
for a multi-sortedequational theory.
A sketch is called an LE sketch
(for
leftexact)
if there are nococones and all the cones are finite. In both of these cases, we will
generally
omit mention of the coconesentirely, writing,
"Let( G, D, L )
be an FP
(or LE)
sketch".A sketch is called a
regular
sketch if its cones are finite and thecocones are of the form
implicit
in the notation s->-> t.A sketch is called an FS sketch
(for
finitesum)
if the cones arefinite and all the cocones are finite and discrete.
A sketch is called a coherent sketch if the cones are finite and
98
the cocones are either finite discrete or of the form s zit .
A sketch is called a
geometric
sketch if the cones are finite and the cocones are either discrete or of the form s ->->t .More
general
sketches are indeedpossible.
Wecould,
forinstance,
add
operators
that are to beinterpreted
in models as universalquanti-
fiers or
types
that are to be instantiated as powerobjects.
Theseconstructions are
certainly possible
but we will notexplore
them here.Our sketches
represent
the most that can be done withgeneralized
exactness conditions.
THE MAIN RESULTS.
Theorem 1. Let 5 be a coherent sketch and let
Mod(S)
be thecategory
of models of S. Then of thefollowing,
we have(i)
_>(ii)
=>(iii).
(i)
We can findmorphisms
of sketches 5 ->- 5#- S’
thatare
equivalences
with 5’ an FS sketch and such that the nodes in-0160
can be built
inductively
out of nodes of 5using
cones and 5’ hasthe same nodes as
S #;
(ii) Every
connecteddiagram
inMod(S)
has apointwise limit ;
(jij)For
any sort s ofS,
the sketchSs
has an initialfamily
of models.Remark. It is an open
question
whether(iii) > (i).
Later results sug-gest
itmight,
but I have not been able to find aproof.
I note that iii isreally
the statement that for each sort s, the functorev(s) : Mod( 5) -+
Setgiven by ev(s )(M)
=M(s )
ismulti-representable
which means that thefunctor is a
disjoint
union ofrepresentable
functors.Although
he doesn’tappear to use the
word,
this notion isessentially
due to Diers.See,
for ex-ample, [ Diers, 1980],
Proof.
(i)
=>(ii).
Since the nodes of5"
and hence of S’ are built in the way described and limits commute withlimits,
we can prove this under theassumption
that S is an FS sketch.Let D : Jazz
Mod( S)
be adiagram
witch 3 connected. Apoint-
wise limit of models is a left exact functor since limits commute with limits.
As for
commuting
with finite sums, it is sufficient to show that if J is connected andare functors with limit sets
Si
1 andS2’ respectively,
thenS
1 +S2
is thelimit of E 1 +
E2.
This isapplied
as follows. Whenever there is a cocone s = S 1 +s 2 in thesketch,
letEk
denote thediagram D(sK)
in Set andSk
denote the set lim
Ek,
for k _1,
2. Then it follows that Si 1+S2
is thelimit of
as it should be. To
verify
theassertion,
let(x1)
be an element of the limit. Then for eachi,
either x iEE 1(i )
or xi EE2(i ).
This determinesa
partition
of J into twopieces,
the indices i for which x1 EE1 (i )
andthose for which x1 E
E2(i).
It is clear that if there is anarrow 1 - j in J ,
then iand j
are in the same half of thepartition.
Thus if J isconnected,
then either xi eEi(il
for all i or Xi EE2(i)
for all2. Thus either
(xj)
E Si 1 or(xi) E S2.
(ii) => (iii).
Thecategory Mod( 55)
has all limits ifMod(5)
does.In
fact,
the evidentunderlying
functorMod(S,)- Mod(5)
creates limits.Since the
category Mod( SS )
haspullbacks,
it is easy to see that if twoalgebras
are in the samecomponent,
there is analgebra
that maps to each of them.By
astraightforward cardinality argument,
we see that everyalgebra
contains asubalgebra
bounded incardinality by
thelarger
of the size of the sketch andNo.
Thus there is a set ofalgebras
with the
property
that eachalgebra
admits amorphism
from atleast one
algebra
in the set. Since intersections are connectedlimits,
we may suppose the
algebras
in this set contain no propersubalgebras.
(It
isquite
common in modeltheory
to suppose that the models arenon-empty ;
we do not make such anassumption
here. SeeAppendix
A for a
discussion.)
There may well bemorphisms
between these min- imalalgebras,
but we can deal with that as follows. Let A =A.
be a minimal
algebra. Suppose
there is anon-isomorphism
Ai 1-> Ao
where
A
1 is also minimal. Continue this way until we either find analgebra An with
nonon-isomorphic morphisms
from a minimalalgebra
orwe have constructed an infinite sequence. In the latter case, let
Aw
be a minimalsubalgebra
of the inverse limit(which
is over aconnected
diagram). Continuing
in this way, we build a sequence indexedby
all ordinals. In that case, therebeing only
a set ofnon-isomorphic
minimal ordinals
a > j3
withAa, - A B.
In that case, we have both thearrow
Aa ->AB that
comes from thediagram
and theisomorphism.
Butthe
equalizer
of those two arrows is asubalgebra
ofAa
which mustbe all of
Aa .
Thisimplies
that the arrow in thediagram A A3
is an
isomorphism.
From the sequencewe see that there is a map
AB AS +1
thatsplits AB+1 -> AS.
This meansthat either the latter map is an
isomorphism
orAB +1 has
a proper sub-algebra,
both of which contradict our construction. 0 Theorem 2. Let S be a coherent sketch and letMod(S)
be thecategory
of models of S. Then the
following
areequivalent :
(i)
There is a sketchmorphism
S’ C 5 which is anequivalence
with 5’ a
regular
sketch and 5’ has the sameobjects
asS ; (ii)
Thecategory Mod(S)
haspointwise products ; (iii)
Thecategory Mod(S)
haspointwise
finiteproducts ;
(iv)
For every sort s, thecategory Mod (S;)
isconnected ;
(v)
For any sort s of5y
the sketchSs
has aquasi-initial
model.Proof. We will show that
0)
=>(ii)
=>(iii)
=>(iv)
=>(i)
and that(ii) => (v)
=>(iv).
(i)
=>(ii).
We may suppose that 5 is aregular
sketch. Productscommute with
arbitrary
limits and withregular epis.
Thus thepoint-
wise
product
of models is a model andis,
of course, theproduct
inthe
category
of models.(ii)
=>(iii).
Trivial.(iii)
=>(iv).
Asabove,
the fact that theproducts
arecomputed pointwise
allows us to show that thecategory
of models of5s
stillhas finite
products
and hence is connected.(iv)
=>(i).
it is clear that if we have a discrete coconeand
equations
that force all but onesi
to beempty
in everymodel,
thenwe can
replace
the discrete coconeby
therequirement
that si -> s be anisomorphism.
This can be done eitherby making
the inclusion of si -> s a cone orby adding
an inverse arrow. Thus it is sufficient to show that if there is adecomposition
s = r+ t,
then eitherM(r)
is
empty
in every model M orM(t)
isempty
in every model M or thecategory
of models ofSs
is not connected.So suppose we have a model
Mr
withMr(r) # 0
and a nother modelMt
withMt(t) / &5.
Choose elements p EMr(r )
and T CMt(t ).
A modelof
S S
is apair (M, 0)
where 0 EM(s).
SinceM(s)
=M(r)+ M(t),
the mod-els come in two varieties
according
as 0 EM(r)
or 0 eM(t).
LetMod,
and
Modt
denote the fullsubcategories consisting
of the two varieties of models. Then(Mr, p)
is anobject
ofModr
and(Mt, T)
is anobject
ofMod t ;
thus neithersubcategory
isempty.
If we show that there are nomorphisms
betweenobjects
in thesubcategories,
it will follow that thecategory
of models of5 s
is not connected. But if(M, 0)
is anobject
ofModr
and(M’, a’)
anobject
ofModt
and f :(M, 0) ->(M’, o-’)
amorphism
betweenthem,
we see from the commutativediagram
that
a contradiction.
(ii) ==>(v).
Since theforgetful
functorMod(Ss)-> Mode(S)
createsproducts (the pointwise
nature of the products is crucialhere),
theformer
category
continues to haveproducts,.
Now let S’ be the sketch derivedby splitting
eachregular
epi in S . Thatis,
whenever g : t ++s is a cocone inS ,
add a new arrow g : s -> t and anequation f o g
= id.The arrow 5 -> S’ induces a functor
Mode (S’ ) -> Mod (S)
and thisfunctor is
readily
seen to besurjective
onobjects,
since any model M of S can be made into a model ofS’ , generally
in many different waysby splitting arbitrarily
eachM( t) ->->M(s).
Of course,morphisms
will not remain
morphisms
of the newtheory,
so the induced functoris not full. It is clear that the
epis
can now bedropped
from the sketch S’ withoutchanging
thecategory
ofmodels,
so that thatcategory has, by
Theorem1,
an initialfamily {Mi}.
Since everyobject
ofMod(S’ )
allows
just
one arrow fromjust
oneMi,
it is clear that each model of 5 allows at least one arrow from at least one Mi. Since now the cat- egoryMod( S)
hasproducts,
theproduct
of the Mi isobviously
aquasi-initial
model.(v)
=>(iv).
Trivial. 0The
category
of fields of a fixed finite characteristic p has an initialobject Zp (and
is thusconnected)
but if oneadjoins
a new cons-tant of
type
non-zero the resultantcategory
of models is nolonger
connected. There is one
component
for eachprime
ideal inZp[ x]
Thus it is necessary that in
parts (iii)
and(iv)
above the conditions be satisfied notmerely
inS ,
but also inSs .
Theorem 3. Let 5 be a coherent sketch and let Mod
(S)
be thecategory
of models of S. Then the
following
areequivalent :
(i)
We can findmorphisms
of sketchesS->S#- S’
thatare qui-
valences with S’ an LE sketch and such that the nodes in S" can
be built
inductively
out of the nodes of Susing
cones and S’ has thesame nodes as
S ;
(ii) Every diagram
in Mod(S)
has apointwise limit ; (iii)
For any sort s ofS,
the sketchSs
has an initial model.Proof.
(i)
=>(ii).
Because of the fact that the nodes of S’ are built with limit cones from the nodes of S and limits commute withlimits,
it is sufficient to show that models of an LE sketch have
limits,
whichis well
(in fact,
anapplication
of the fact that limits commute withlimits).
(ii)
=>(iii).
From Theorem1,
eachcomponent
has an initial modeland if there are
products,
there isjust
onecomponent.
(in)
=>(i).
Condition(iii)
isequivalent
to thesupposition
thatfor each sort s c
S ,
the functorev(s) : Mod( 5 ) ->
Set isrepresented by
a model we will denote
Ms. By
Theorem2,
we can suppose that S is aregular
sketch. let t ->->-S be anepi
cocone in S . Then for eachmodel M, M(t)
->->M(s).
Inparticular, Ms (t ) ->-> MS( s).
Wehave,
The
equivalences
above are either the Yoneda Lemma or come from the fact thatMs represents ev(s).
There is an obvious
representation
of S into the functorcategory
Set Mod(s), that sends the sort s to
ev( s).
Thereis
a leastregular
sub-category 5 11
ofSet
(S) that contains theimage
of S .Although S #
can
easily
be obtained as anintersection,
Iprefer
to build it up from below. So letSo = S
and construct S 1by adding
toSo
all the follow-ing (to simplify notation,
we will refer to theobject ev(s )
inSet Mod
(S)simply
as s andsimilarly
forarrows) :
(a)
When f : r -> s and g : s + t arecomposable
arrows inS o, put
g o f intoSl .
(b)
When s and t are sorts inS o, put s x t
and theprojection
arrowsinto
Si.
(c)
If f : r -> s and g : r + t arein So, put f, g>:
r +sxt intoSi . (d)
Whenf,
g :s -t
are aparallel pair
inSo, put
theirequalizer
into
5i .
(e)
When f : r -> s inSo equalizes
f and g ,put
the inducedarrow from r to the
equalizer
intoSi.
(f)
When f : s -. t is a coconein S.
and g : s - rcoequalizers the
kernelpair of f,
thenput
into S 1 theunique
arrow h : t -> r for which h o f = g.Make
S
1 into a sketchby taking
fordiagrams
alldiagrams
thatcommute in
Set
, for cones all the finite cones that are limits inSet
and for cocones all the arrows that arepointwise surjective
inSet
. I should note that the nature ofSet
is such that adiagram
commutes or a cone or cocone is a limit or colimit if andonly
if it is in every model. Thus every model M : S-> Set has a
unique
extension to a model of
51
and everymorphism
of models has a similar extension. Themorphism 50-+ Si
induces anequivalence
This process can be carried out with
51
toproduce
a sketchS,,
that also has the same
category
of models asSo.
We can thus build achain of sketches
all with the same
property.
Their union511 evidently
has the same pro-perty
and is aregular category. Moreover,
the evaluationis full and faithful.
Although
this fact can be ferreted out from theproof
of the main theorem of[Barr, 1971],
it is madeexplicit in [Makkai, 1980]
and[Barr,
toappear].
From(*),
it follows thatwhich means that there is in
5"
asplitting
for thegiven epi
cocone.This means
that,,
if S’ is the LE sketch with the samegraph, diagrams
and cones of
S ,
it will have the samecategory
of models as5 ,
hence as 5. 0
The reader will note that the full
embedding
theorem forregular categories
was crucial inmaking
thisargument
work. I am indebtedto M. Makkai for
suggesting
that Itry
this. It is notable inbeing
thefirst
example
I have come on in which the full power of the full embed-ding
theorem has been used. Inprevious applications, mainly,
if notexclusively,
limited todiagram chasing,
the existence of aregular embedding
into a functorcategory
that reflectsisomorphisms
wouldhave
readily
sufficed. The fact that there is not a similar fullembedding
theorem for coherent
categories explains why
I cannot prove that the three statements of Theorem 1 are notequivalent.
Infact,
as is observ- ed in[Barr,
toappear],
the existence of a fullembedding
into afunctor
category
would force the lattices ofcomplemented subobjects
to be atomic. It is easy to find an
example
of a coherent Grothendiecktopos
in which this fails. Forexample,
thecategory
of sheaves ona non-discrete Stone space will do.
In order to
explain
our finalresult,
we have toexplain
what wemean
by saying
that acategory
is closed underultraproducts.
Unlikelimits and
colimits,
anultraproduct
is not definedby
any universalmapping property.
Of course, if thecategory
hasproducts
and(filtered)
colimits,
then it hasultraproducts
constructed as colimits ofproducts
(see
theAppendix
for moredetails).
Butusually
thecategory
ofmodels of a coherent
theory (such
as thetheory
offields)
lacks pro- ducts and hence does not havecategorical ultraproducts.
Let S be a
geometric
sketch. LetReg(5)
denote the sketch deriv- ed from Sby om itting
all the discrete cocones. ThenReg( S)
is aregular
sketch and hence itscategory
of models hasproducts.
Thecategory
of models of anygeometric
sketch has filtered colimits(they
commute with finite limits and all
colimits),
hence thecategory
ofmodels of
Reg( S)
hascategorical ultraproducts.
It is clear that there is a full inclusionMod( S )-> Mod(Reg( S)).
We will say thatMod( S )
is closed under
ultraproducts
if anyultraproduct
inMod(Reg( S))
ofobjects
ofMod( S )
is anobject
ofMod ( S ).
This definition defines a
property
of aparticular presentation
ofa
theory.
It is not true that atheory
that is closed under ultrafilters in onepresentation
will be closed in allpresentations.
Robert Par6 hassuggested
thefollowing example.
Consider the sketch S withcountably
many sorts S1, s2, ... and no other structure. This has the same models in Set
(and
in anytopos
with countablesums)
as thetheory
to which asort s and a cocone s = s 1 + S2 + ... has been added. Yet the first
theory
is closed underultraproducts
and the second one isn’t. Thus thefollowing
theorem is a theorem about aparticular presentation
of a
theory,
rather than thetheory
itself. It is not known whether it is necessary to suppose thehypotheses
for extensionsby
asingle constant,
but that is what thisproof requires.
Theorem 4. Let S be a
geometric
sketch. Then S isequivalent
to acoherent sketch if and
only
of for all sorts s ofS,
the models ofSs
are closed under
ultraproducts.
The sense of
"equivalent"
issimply
this : that if there are any infinite discrete cocones in thesketch,
it should be the case that allbut
finitely
many of them areempty
in every model andthey
cansimply
be deleted from the sketch. The resultant sketch has the same
category
of models as theoriginal.
There is no apriori guarantee
that this will be the case for everypossible
codomaintopos.
Proof.
Suppose
there is an infinite discrete cocone s = Sl + s 2 + ... inS . We can remove from the sketch and from the above sum any sort which is
actually empty
in every model. If the resultant sum is stillinfinite,
then we must have for each i a modelMi
for whichMi(i) # 0.
Choose an elementcy E Mi(i).
Then(Mi, 6i)
is a model ofS S.
Let u be anon-principal
ultrafilter on the index set and(M, a)
be the
ultraproduct
over u. If M is a model ofSs ,
then Q EM(s) = EM(si)
so that o- E
M(si )
for aunique
i. Now anon-principal ultraproduct
doesnot
depend
on any one coordinate. Thus(M, a)
is also theultraproduct
of all the
(M - CJ)’ j i
l. For any J e u with ii J,
we have a commuta-tive
diagram
in thecategory
ofReg(S, )
modelsBut the map on the left
actually
lands inTTj Sk#Mj (Sk)
which is takenby
the lower map to
Sk# M(Sk),
a contradiction. 0Of course all these theorems are
proved
under thehypothesis
that the
category
inquestion
is thecategory
of all models of some kind oftheory. They
are relative resultsgiving
conditions on thecategory
of models of sometheory being actually
thecategory
of models ofa less rich
theory.
There are absolute results at one end of the scale.For
example,
the Gabriel-Ulmer Theorem[1971]
caneasily
be seen toimply
that acategory
is thecategory
of models of a left exacttheory
if andonly
if it iscomplete,
has filtered colimits and the latter commute with finite limits.(See
alsoKelly, [19821)
And ofcourse, we have the well-known characterization of a
category
ofmodels of a finite
product
sketch asregular
with effectiveequivalence
relations and
sufficiently
manyprojectives. Beyond that,
we have noanswers to the
question
of absolute characterizations. This appears to be aninteresting
and difficultquestion.
Theonly property that
Iknow of that is
possessed by
thecategory
of models of anygeometric theory
is filtered colimits.APPENDIX.
The purpose of this
Appendix
is a short discussion of the reasons forallowing
theempty
set to be a model(or,
in the case of a multi-sortedtheory,
one of the sets in amodel)
of atheory.
It is an
arbitrary requirement
that results in thecategory
of modelsbeing
lesscomplete
that itnaturally
is. Forexample,
there is a theoremin universal
algebra
that says, ineffect,
that every collection of sub- models of a left exacttheory
is eitherempty
or is a submodel. In cer- tainparts
of abstractcomputer science,
a datatype
is defined to bean initial 1
algebra
for atheory.
But atheorey
will have anon-empty
initialalgebra only
if there are constants in thetheory.
It may be un- realistic toimagine empty
datatypes,
but thepoint
is that thetheory
takes a very unnatural
aspect
if that is built in to the core. Some para-metrizing types
have no constant untilthey
are introducedvia the para- meters.The
only argument
forbanning
theempty
model that has any forcecomes from the observation that if
(Mi)
is a collection of models and M is anon-principal ultraproduct
of theMi,
then one wants andexpects
106
that
M(s)
will beempty
if andonly
if the set of i for whichMi(s)
isnull
belongs
to the ultrafilter. if one takes the traditional definition ofan
ultraproduct
as aquotient
of theproduct,
theultraproductwiIl
beempty
as soon as one factor is. There is asimple
way around this dif-ficulty
which is to take aslightly
different definition ofultraproducts.
This definition of the
ultraproduct
is as the colimit of theproducts
taken over the subsets in the ultrafilter. If we let u denote an ultrafil- ter of subsets of the index set
I,
then for any J E u we can form theproduct TT [Mi(S) |i E J} .
For K E u, K CJ,
there is an obvious mapgotten by restricting
coordinates. Thisgives
a directedsystem
of theseproducts
and the colimit can be defined to be theultraproduct.
Not
only
does thisgive
the correct definition in case there is asmall set of indices i for which
Mi(s) = 0,
but it alsogives
an easyproof
of the left exactness of theultraproduct
construction as wellas
showing
that it exists if(as
oftenhappens) products
and filteredcolimits do. Of course, this definition is
easily
seen to agree with the older one in case all the factors arenon-empty.
REFERENCES.
M. BARR, Exact
categories,
Lecture Notes in Math. 236,Springer (1971),
1-120.M. BARR, Representations of
categories,
J. Pure Appl.Algebra
(toappear).
M. BARR & M. MAKKAI, Representations of Grothendieck toposes, Can. J. Math.
M. BARR & C. WELLS,
Toposes,Triples
andTheories, Springer,
1984.A. BASTIANI(-EHRESMANN) & C. EHRESMANN,
Categories
of sketched structures, Cahiers Top. et Géom. Diff. XIII-2(1972),
104-213.Reprinted
in "Charles Ehresmann : Oeuvrescompletes
et Commentées" IV-2, Amiens, 1983.Y. DIERS, Multimonads and multimonadic
categories,
J. PureAppl. Algebra
17 (1980) 153-170.C. EHRESMANN, Introduction to the theory of structured
categories,
Techn. Report X,University
of Kansas, 1966.Re printed
in "Charles Ehresmann : Oeuvres com-plètes
et commentées" IV-1, Amiens, 1982.H. EHRIG & B. MAHR, Fundamentals of
algebraic
specifications 1,Springer,
1985.P. GABRIEL & F. ULMER, Lokal
präsentierbare Kategorien,
Lecture Notes in Math. 221,Springer
(1971).J. R. ISBELL, General functorial
semantics,
I, Amer. J. Math. 94(1972),
535-596.G. M. KELLY, On the
essentially-algebraic
theorygenerated by
a sketch, Bull.Austral. Math. Soc. 26
(1982),
45-56.M. MAKKAI, On full
embeddings, I,
J. Pure Appl.Algebra
16(1980),
183-195.Department of Mathematics and Statistics McGill
University
Burnside Hall
805 Sherbrooke Street West MONTREAL, PQ, H3A 2K6 CANADA