Notes on monads and algebras with successor [00CB]
- October 30, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Algebras for endofunctors and monads [00CJ]
- October 31, 2023
- Jon Sterling
Definition Algebra for an endofunctor [00C6]
- October 30, 2023
- Jon Sterling
Let F be an endofunctor on a category \mathcal {C}; an algebra for F is defined to be an object X\in \mathcal {C} equipped with a mapping {FX}\xrightarrow {{\alpha _{X}}}{X}.
Definition Homomorphism of algebras [00C7]
- October 30, 2023
- Jon Sterling
Let F be an endofunctor on a category \mathcal {C} and let X,Y be a pair of algebras for F; a homomorphism of algebras from X to Y is given by a morphism {X}\xrightarrow {{h}}{Y} in \mathcal {C} that preserves the algebra structure in the following sense:
Definition Restricting endofunctor algebras along endomorphisms [00CQ]
- November 1, 2023
- Jon Sterling
Let X be a an algebra for an endofunctor {\mathcal {C}}\xrightarrow {{F}}{\mathcal {C}}, and let {X}\xrightarrow {{x}}{X} be an endomorphism in \mathcal {C}. We define the restriction of X by {X}\xrightarrow {{x}}{X} to be the algebra x\cdot X whose carrier is X with {FX}\xrightarrow {{\alpha _{x\cdot X}}}{X} defined to be the following composite:
Definition Algebra for a monad [00C5]
- October 30, 2023
- Jon Sterling
Let \mathbb {T} \equiv {\mathopen {}\left (T,\eta ,\mu \right )\mathclose {}} be a monad on a category \mathcal {C}. An algebra for \mathbb {T} is defined to be a T-algebra X satisfying the following unit and associativity laws:
Definition Weak algebra for a monad [00C8]
- October 30, 2023
- Jon Sterling
We shall refer to an algebra for the underlying endofunctor of a monad as a weak algebra, following Joyal and Moerdijk.
The induced monad algebra on a fixed point [00CF]
- October 30, 2023
- Jon Sterling
Construction The induced monad algebra [00CD]
- October 30, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} be a monad on a category \mathcal {C}, and let X be a weak algebra for \mathbb {T} that is a fixed point, i.e. the algebra map is invertible by {X}\xrightarrow {{\pi _{X}}}{TX}. We may define the induced \mathbb {T}-algebra \bar {X} to have the same carrier object as X and with the algebra map {TX}\xrightarrow {{\alpha _{\bar {X}}}}{X} defined as follows:
We must show that our construction in fact gives rise to a monad algebra.
Lemma Unitality of the induced monad algebra [00CE]
- October 30, 2023
- Jon Sterling
Let \mathbb {T} be a monad on a category \mathcal {C}, and let X be a weak algebra for \mathbb {T} for which the algebra map is invertible by {X}\xrightarrow {{\pi _{X}}}{TX}. Then the induced monad algebra \bar {X} is unital.
Proof.
- October 30, 2023
- Jon Sterling
We are trying to check that the following morphism is an identity:
- We unfold the definition of the algebra map \alpha _{\bar {X}}.
-
We use the unit law for \mathbb {T}.
-
Finally, we use the fact that \pi _{X} is inverse to \alpha _{X}.
Lemma Associativity of the induced monad algebra [00CG]
- October 30, 2023
- Jon Sterling
Let \mathbb {T} be a monad on a category \mathcal {C}, and let X be a weak algebra for \mathbb {T} for which the algebra map is invertible by {X}\xrightarrow {{\pi _{X}}}{TX}. Then the induced monad algebra \bar {X} is associative.
Proof.
- October 30, 2023
- Jon Sterling
We are trying to check that the following identity holds:
-
We will start on the right-hand side. We first unfold the definition of the algebra map.
-
We use the fact that \pi _{X} inverts \alpha _{X}.
-
We use the associativity of the monad \mathbb {T}.
-
Folding the definition of the algebra map, we have the desired cell.
Corollary The induced monad algebra is a monad algebra [00CH]
- October 30, 2023
- Jon Sterling
Let \mathbb {T} be a monad on a category \mathcal {C}, and let X be a weak algebra for \mathbb {T} for which the algebra map is invertible. Then the induced monad algebra \bar {X} is in fact a monad algebra.
Proof.
- October 30, 2023
- Jon Sterling
Because it is unital and associative.
Lemma Lifting homomorphisms to the induced monad algebra [00CK]
- October 31, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} \equiv {\mathopen {}\left (T,\eta ,\mu \right )\mathclose {}} be a monad on a category \mathcal {C} and let I be an invertible weak algebra for \mathbb {T}; let X be an arbitrary \mathbb {T}-algebra equipped with an endomap {X}\xrightarrow {{x}}{X}\in \mathcal {C}. Then a homomorphism {I}\xrightarrow {{j}}{x\cdot X} also tracks a homomorphism {\bar {I}}\xrightarrow {{j}}{X}, where \bar {I} is the induced monad algebra of I and x\cdot X is the restriction of X along x.
Proof.
- October 31, 2023
- Jon Sterling
Suppose that {I}\xrightarrow {{j}}{x\cdot X} is a homomorphism; we must check that the same map tracks a homomorphism {\bar {I}}\xrightarrow {{j}}{X}.
-
First, we unfold the definition of the induced monad algebra.
-
Next, we use the algebra homomorphism law for {I}\xrightarrow {{j}}{x\cdot X}.
-
We unfold the restricted algebra map.
-
Then we use the associativity law for the algebra X.
-
We use the algebra homomorphism law for {I}\xrightarrow {{j}}{x\cdot X} again.
-
We recall that \pi _{I} and \alpha _{I} are inverse.
Successor algebras [00CM]
- November 1, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
These results are attributed by Joyal and Moerdijk to Jean Bénabou and Mamuka Jibladze.
Definition Successor algebra [00C9]
- October 30, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} be a monad on a category \mathcal {C}. A successor algebra for \mathbb {T} is defined to be a algebra X for \mathbb {T} together with a morphism {X}\xrightarrow {{s_{X}}}{X} in \mathcal {C} called the successor map.
Definition Homomorphism of successor algebras [00CA]
- October 30, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
A homomorphism of successor algebras is a monad algebra homomorphism {X}\xrightarrow {{h}}{Y} that preserves the successor operation:
Definition The successor restriction of a successor algebra [00CC]
- October 30, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} be a monad on a category \mathcal {C}, and let X be an successor algebra for \mathbb {T}. We define the successor restriction of X to be the weak algebra s\cdot X :\equiv s_{X}\cdot X defined by restricting X along its successor map.
Construction The induced successor algebra on a fixed point [00CN]
- November 1, 2023
- Jon Sterling
Let \mathbb {T}\equiv {\mathopen {}\left (T,\eta ,\mu \right )\mathclose {}} be a monad on a category \mathcal {C}, and let X be a weak algebra for \mathbb {T}. The monad algebra \bar {X} induced by X can be equipped with the structure of a successor algebra by defining {X}\xrightarrow {{s_{\bar {X}}}}{X} to be the following map:
Converting between weak algebra and successor algebra homomorphisms [00DB]
- November 5, 2023
- Jon Sterling
Lemma Lifting homomorphisms to the induced successor algebra [00CR]
- November 1, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} \equiv {\mathopen {}\left (T,\eta ,\mu \right )\mathclose {}} be a monad on a category \mathcal {C} and let I be an invertible weak algebra for \mathbb {T}; let X be an arbitrary successor algebra. Then a homomorphism {I}\xrightarrow {{j}}{s\cdot X} also tracks a successor algebra homomorphism {\bar {I}}\xrightarrow {{j}}{X}, where \bar {I} is the induced successor algebra of I and s\cdot X is the successor restriction of X.
Proof.
- November 1, 2023
- Jon Sterling
We have already seen that {I}\xrightarrow {{j}}{s\cdot X} tracks an algebra homomorphism {\bar {I}}\xrightarrow {{j}}{X}. It remains to show that this homomorphism preserves the successor operation.
-
We first unfold the successor operation of the induced successor algebra on I.
-
Then we use the algebra property of {I}\xrightarrow {{j}}{s\cdot X}.
-
Then we unfold the restricted algebra structure.
-
Finally we the unitality of the monad algebra X.
Lemma From successor algebra homomorphisms to weak algebra homomorphisms [00D9]
- November 5, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let \mathbb {T} \equiv {\mathopen {}\left (T,\eta ,\mu \right )\mathclose {}} be a monad on a category \mathcal {C} and let I be an invertible weak algebra for \mathbb {T}; let X be an arbitrary successor algebra. Then a successor algebra homomorphism {\bar {I}}\xrightarrow {{j}}{X} also tracks a weak algebra homomorphism {I}\xrightarrow {{j}}{s\cdot X}, where \bar {I} is the induced successor algebra of I and s\cdot X is the successor restriction of X.
Proof.
- November 5, 2023
- Jon Sterling
We work backwards.
-
First, we unfold the algebra structure of the successor restriction.
-
We then use the successor algebra homomorphism property of {\bar {I}}\xrightarrow {{j}}{X}.
-
Next we use the algebra homomorphism property of {\bar {I}}\xrightarrow {{j}}{X}.
-
We unfold the definition of the induced monad algebra.
-
We unfold the successor map on the induced successor algebra.
-
We contract the composition of the initial (weak) algebra map with its inverse.
-
Finally, we use the unit law of the monad \mathbb {T}.
Corollary Weak algebra homomorphisms and successor algebra homomorphisms are interchangeable [00DA]
- November 5, 2023
- Jon Sterling
Let \mathbb {T} be a monad on a category \mathcal {C} and let I be an invertible weak algebra for \mathbb {T}; let X be an arbitrary successor algebra. Then a morphism {I}\xrightarrow {{j}}{X} in \mathcal {C} tracks a weak algebra homomorphism {I}\xrightarrow {{j}}{s\cdot X} if and only if it tracks a successor algebra homomorphism {\bar {I}}\xrightarrow {{j}}{X}, where \bar {I} is the induced successor algebra of I and s\cdot X is the successor restriction of X.
Proof.
- November 5, 2023
- Jon Sterling
This follows from the following two lemmas:
Theorem From initial weak algebras to initial successor algebras [00D8]
- November 5, 2023
- Jon Sterling
- [joyal-moerdijk-1995]
Let I be the initial weak algebra for a monad \mathbb {T} on a category \mathcal {C}. Then the induced successor algebra \bar {I} is the initial successor algebra for \mathbb {T}.
Proof.
- November 5, 2023
- Jon Sterling
Let X be a successor algebra; we have shown that weak algebra homomorphism {I}\xrightarrow {{\iota }}{s\cdot X} from I to the successor restriction of X also tracks a successor algebra homomorphism {\bar {I}}\xrightarrow {{\iota }}{X}. To see that this homomorphism is unique, fix any successor algebra homomorphism {\bar {I}}\xrightarrow {{j}}{X}; we have also shown that such a homomorphism also tracks a (weak algebra) homomorphism {I}\xrightarrow {{j}}{s\cdot X}. But {I}\xrightarrow {{\iota }}{s\cdot X} is the such weak algebra homomorphism, so we have \iota = j.