Notation 3.1 The adjunction in Proposition 2.11
gives rise to a strong monad with
satisfying six equations. Eugenio Moggi [Mog91] demonstrated how strong monads can be seen as notions of computation, giving a (“let ”) calculus in which µ is used to interpret composition and σ to substitute for parameters. Constructions similar to ours can be performed in this generality.
However, rather than develop an abstract theory of monads, our purpose is to demonstrate the relevance of one particular monad and show how it accounts for the intuitions in Section 1. The associativity law for µ involves Σ^{6} X, but we certainly don’t want to compute with such λ-terms unless it is absolutely necessary! In fact we can largely avoid using σ and µ in this work.
Definition 3.2
An Eilenberg–Moore algebra for the monad is an object A of C
together with a morphism α:Σ^{2} A→ A such that
η_{A};α=id_{A} and µ_{A};α=Σ^{2} α;α.
Lemma 3.3
For any object X, (Σ^{X},Σ^{ηX}) is an algebra.
Proof The equations are just those in Lemma 2.10, although the one involving µ is Σ^{(−)} applied to the naturality equation for η with respect to η_{X}. ▫
These are the only algebras that will be used in this paper, but [B] shows how general algebras may be regarded as the topologies on subspaces that are defined by an axiom of comprehension. In other words, all algebras are of this form, but with a generalised definition of the type X.
Definition 3.4 We shall show that the following are equivalent
(when A=Σ^{X} etc.):
We must be careful with the notation J^{X}, as it is ambiguous which way round the product is in the exponent.
Proposition 3.5
If H is a homomorphism or central, and invertible in C,
then its inverse is also a homomorphism or central, respectively. ▫
Lemma 3.6 For any map f:X→ Y in C,
the map Σ^{f}:Σ^{Y}→Σ^{X} is both a homomorphism and central.
Proof It is a homomorphism by naturality of η, and central by naturality of J^{(−)}, with respect to f. ▫
Lemma 3.7
Every homomorphism H:Σ^{Y}→Σ^{X} is central.
Proof The front and back faces commute since H is a homomorphism. The left, bottom and top faces commute by naturality of J^{(−)} with respect to Σ^{H}, η_{X} and η_{Y}. Using the split epi, the right face commutes, but this expresses centrality. ▫
Remark 3.8
To obtain the converse, we ought first to understand how monads
provide a “higher order” account of infinitary algebraic theories
[Lin69].
The infinitary theory corresponding to our monad
has an operation-symbol J of arity U for each morphism
J:Σ^{U}→Σ
(for example, the additional lattice structure consists of morphisms
∧:Σ^{2}→Σ and ⋁:Σ^{ℕ}→Σ).
Then the centrality square is the familiar rule for
a homomorphism H to commute with the symbol J.
More generally, H commutes with J:Σ^{U}→Σ^{V} iff it is a homomorphism parametrically with respect to a V-indexed family of U-ary operation-symbols. (So, for example, a map J:Σ^{3}→Σ^{2} denotes a pair of ternary operations.) The next two results are examples of this idea, and we apply it to the lattice structure in the topological interpretation in Proposition 5.5.
Lemma 3.9
H:Σ^{Y}→Σ^{X} is a homomorphism with respect to
all constants σ∈Σ,
Proof J=∼id:1→Σ^{Σ} denotes a Σ-indexed family of constants, for which the centrality square is as shown. ▫
The following proof is based on the idea that each r∈ T B corresponds to an operation-symbol of arity B that acts on A as r_{A}:A^{B}→ A by f↦ α(T f r). The rectangle says that K is a homomorphism for this operation-symbol, but it does so for all r∈ T B simultaneously by using the exponential (−)^{T B}.
Thielecke [Thi97a, Lemma 5.2.5] proves this result using his CPS λ-calculus, whilst Selinger [Sel01, Lemma 2.10] gives another categorical proof. They do so with surprisingly little comment, given that it is the Completeness Theorem corresponding to the easy Soundness Lemma 3.7.
Theorem 3.10 All central maps are homomorphisms.
Proof Let H:B=Σ^{Y}→ A=Σ^{X}. Writing T for both the functor Σ^{Σ(−)} and its effect on internal hom-sets, consider the rectangle
in which the left-hand square says that T preserves composition and the right-hand square that H is an Eilenberg–Moore homomorphism. To deduce the latter, it suffices to show that the rectangle commutes at id∈ B^{B} (which T takes to id∈ TB^{TB}).
Re-expanding, the map along the bottom is Σ^{X× B}→Σ^{Σ2 X×Σ2 B}→ Σ^{X×Σ2 B} by
θ↦λ F G.G(λ b.F(θ b)) ↦λ x G.G(λ b.η_{X} x (θ b)) =λ x G.G(λ b.θ b x), |
which is η_{ΣB}^{X}, and similarly the top map is η_{ΣB}^{Y}. Thus the rectangle says that H:Σ^{Y}→Σ^{X} is central with respect to η_{ΣB}, which was the hypothesis. ▫
Notation 3.11 We write Alg (or sometimes Alg_{C})
for the category of Eilenberg–Moore algebras and homomorphisms.
Lemma 3.12
For any object X,
(Σ^{ΣX},µ_{X}) is the free algebra on X.
In particular,
(Σ, Σ^{η1}) is the initial algebra. ▫
Definition 3.13 The full subcategory of Alg consisting
of free algebras is known as the Kleisli category for the monad.
As Σ^{ΣX} is free on X, the name of this object in the traditional presentation of the Kleisli category is abbreviated to X, and the homomorphism X→_{K} Y (i.e. Σ^{ΣX}→Σ^{ΣY}) is named by the ordinary map f:X→Σ^{ΣY}. This presentation is complicated by the fact that the identity on X is named by η_{X} and the composite of f:X→_{K} Y and g:Y→_{K} Z by f;Σ^{2} g;µ_{Z}.
Using the double exponential transpose (Proposition 2.11), this homomorphism is more simply written as an arbitrary map F:Σ^{Y}→Σ^{X}, with the usual identity and composition.
The (opposites of the) categories composed of morphisms F:Σ^{Y}→Σ^{X}, in the cases where F is an arbitrary C-map (as for the Kleisli category), or required to be a homomorphism, will be developed in Section 6.