We still have to show that SC has powers of Σ, and that all of its objects are sober. In fact SC freely adjoins sobriety to C.
Lemma 7.1
Still writing Σ^{(−)} for the exponential in C,
SC(X,Σ^{Y})≅ C(X,Σ^{Y}),
where the homomorphism H:Σ^{2} Y→Σ^{X}
corresponds to the map f:X→Σ^{Y} by
H=Σ^{f} and f=η_{X};Σ^{H};Σ^{ηY}. |
Proof H∈SC(X,Σ^{Y}) is by definition a homomorphism H:Σ^{2} Y→Σ^{X}, whose double exponential transpose P:X→Σ^{3} Y has equal composites with Σ^{3} Y⇉Σ^{5} Y by Lemma 4.3, and so factors as f:X→Σ^{Y} through the equaliser by Proposition 4.9. More explicitly,
η_{X};Σ^{Σf};Σ^{ηY} = f;η_{ΣY};Σ^{ηY} = f |
by Lemma 2.10, and
Σ^{f} = Σ^{ΣηY};Σ^{ΣH};Σ^{ηX} = Σ^{ΣηY};Σ^{ηΣY};H = H |
since H is a homomorphism. ▫
Proposition 6.11 (and the way in which objects of SC are named) allow us to use the product notation ambiguously in both categories. Relying on that, we can now also justify writing Σ^{X} for powers in either C or SC.
Corollary 7.2 SC has powers of Σ and
C→SC preserves them.
Proof SC(Γ×_{SC} X,Σ) = SC(Γ×_{C}X,Σ) by Proposition 6.11. Then by the Lemma this is C(Γ× X,Σ) ≅ C(Γ,Σ^{X})≅SC(Γ,Σ^{X}). ▫
Proof Alg_{SC} is defined from SC in the same way as Alg_{C}≡Alg is defined from C (Definition 3.2). Consider the defining square for a homomorphism over SC:
The vertices are retracts of powers of Σ, and Lemma 7.1 extends to such objects. Hence the SC-maps α, β and H might as well just be C-maps, by Lemma 7.1, and the equations hold in SC iff they hold in C. ▫
Proposition 7.4 All objects of SC are sober,
SSC≅SC and HSC≅HC.
Proof The categories all share the same objects, and by Lemma 7.1,
HSC(X,Y) = SC(Σ^{Y},Σ^{X}) ≅ C(Σ^{Y},Σ^{X}) = HC(X,Y). |
Lemma 7.3 provides the analogous result for SC, namely
SSC(X,Y) = Alg_{SC}(Σ^{Y},Σ^{X}) ≅ Alg(Σ^{Y},Σ^{X}) = SC(X,Y). |
Then all objects of SC are sober by Theorem 4.10. ▫
By Corollary 4.12, SC therefore has focusP for every prime P. The construction in the previous section shows that this is given by composition with the second class map force.
Proof The correspondence between H and P is double exponential transposition (Proposition 2.11), and H is a homomorphism (i.e. H is in SC) iff P is prime, by Lemma 4.3. In particular, H=id_{ΣX} corresponds to P=η_{X}. When H is a homomorphism we have
P = η_{X};Σ^{H} = η_{X};Σ^{2} |
| = |
| ;η_{Y}, |
or thunk(a), where x:X⊢ a:Y is the term corresponding to H, so
focusP = focus(thunka) = a. ▫ |
Theorem 7.6 SC is, up to isomorphism,
the universal way of forcing all objects of C to be sober.
Proof Let D be a category with products and an exponentiating object Σ_{D}, and let F:C→D be a functor that preserves this structure. Suppose that all objects of D are sober. Given any homomorphism H:Σ^{Y}→Σ^{X} in C, consider its image under the functor in D. This is a homomorphism F H:Σ_{D}^{F Y}→Σ_{D}^{F X} since F commutes with Σ^{(−)} and preserves the Eilenberg–Moore equation. Therefore F H is of the form Σ_{D}^{g} for some unique g:F X→ F Y, since all objects of D are sober. Then g is the effect of F on the given SC-morphism H:X→ Y.
This construction preserves identities and compositions by the usual uniqueness arguments, and similarly if H=Σ^{f} with f:X→ Y in C then g=F f. Hence we have a commutative triangle of functors. As the objects X and Y of SC are just objects of C and F(X× Y)≅ F X× F Y on C, products in SC are also preserved, as are powers of Σ. ▫
Remark 7.7 Peter Selinger, for whom (his version of) the computational
category HC is of primary interest,
calls C and SC value categories,
and takes an egalitarian view of them [Sel01, Section 3.5].
However, we have just shown that SC has a universal property,
so it is the sober completion of C,
and such (established) language does make a value-judgement:
we regard SC as better than C,
since it includes denotational values that we have argued ought
to be present.
Be careful, however, to distinguish this sober completion of the category C from the sobrification X of the space (object) X [Joh82, Corollary II 1.7(ii)]. If C has equalisers, X is obtained by forming the equaliser that we used to define sobriety (cf. Remark 4.8). In [B] we shall obtain the space pts(A,α) of points of an arbitrary algebra by forming an equaliser of this kind. These “concrete” constructions on objects are carried out within a single sufficiently expressive category, whereas SC is a new category that is obtained “abstractly” by re-naming features of the old category C.
Remark 7.8 What of the extra structure in Remarks 2.4ff?
The lattice operations ⊤, ⊥, ∧ and ∨, being
morphisms 1→Σ or Σ×Σ→Σ in C,
are carried by the functor C→SC into the new category.
The equations for a distributive lattice still hold,
because any functor preserves equations, and this one also preserves products.
The Euclidean principle remains valid in the new category too,
as Σ^{Σ} is also preserved.
This leaves ℕ, from which preservation of the existential quantifier and
continuity axiom follow easily.
The only issue is in fact the way in which new values are created in SC by the combination of focus and primitive recursion. We leave the reader to add parameters: S:Γ×ℕ× X→ X.
Proposition 7.9 C→SC preserves the natural numbers object,
i.e. ℕ admits primitive recursion in SC.
Proof The recursion data consist of z:Γ→ X and a homomorphism S:Σ^{X}→Σ^{X}. So Z≡ z;η_{X} is prime and has equal composites in the lower triangle below, whilst the parallel squares each commute, by naturality of η.
As ℕ has the universal property in C, there are mediators R:Γ×ℕ→Σ^{2} X and Γ×ℕ→Σ^{4} X making the whole diagram commute. But, by uniqueness of the second, the composites Γ×ℕ⇉Σ^{4} X are equal, so R is prime by Lemma 4.3, and focusR:ℕ→ X is the required mediator in SC. ▫
Finally, we note a result that would hold automatically if SC were a cartesian closed category.
Lemma 7.10 The functor SC→C^{op} preserves such colimits as exist.
Proof The diagram for a colimit in SC is a diagram for a limit in C whose vertices are powers of Σ and whose edges are homomorphisms. If the diagram has a colimit C in SC then it is a cone of homomorphisms in C with vertex Σ^{C} whose limiting property is tested by other cones of homomorphisms from powers of Σ. We have to extend this property to cones from arbitrary objects Γ of C.
Let φ:Γ→Σ^{Y} be a typical edge of the cone and H:Σ^{Y}→Σ^{Z} an edge of the diagram. Then Σ^{2}φ;Σ^{ηY}:Σ^{2}Γ→Σ^{Y} is a homomorphism, and is an edge of a cone with vertex Σ^{2}Γ because the diagram above commutes.
Hence there is a mediator Γ→Σ^{2}Γ→Σ^{C} to the limit. It is unique because any other such mediator Γ→Σ^{C} can be lifted to a homomorphism Σ^{2}Γ→Σ^{C} in the same way, and this must agree with the mediator that we have. ▫
Proposition 7.11
The functor X×(−) preserves (distributes over)
such colimits as exist in SC.
Proof The functor X×(−) on SC is (−)^{X} on C, which is defined at powers of Σ and homomorphisms between them. If C is the colimit of a diagram with typical edge H:Z→ Y in SC then the Lemma says that Σ^{C} is the limit of the diagram with typical edge H:Σ^{Y}→Σ^{Z} in C. Now (−)^{X}, in so far as it is defined, preserves limits, since it has a left adjoint X×(−) in C. (You may like to draw the diagrams to show this explicitly.) Hence Σ^{C× X} is the limit of the diagram with typical edge H^{X}:Σ^{X× Y}→Σ^{X× Z} in C. Since fewer (co)cones have to be tested, C× X is the colimit of the diagram with typical edge X×H:X× Y→ X× Z in SC. ▫