Cours 6: Algebraic theories
Free monads
- Pointed set:
-
a set
equipped with an element
One should think of
-ary operation:-
element of
Monoid:
- set equipped with binary operation
- with associativity law:
Partiality monad:
Algebraic theories
- A signature
: -
is a family
of sets
An element
- A term of a signature
with variables in : -
is a finite tree of which nodes are the operations of
and leaves are in
NB: notation:
- An algebraic theory of signature
: -
is a family of pairs
(also written )
- Given a set
of variables and algebraic theory: -
where
Ex: The algebraic theory of monoids
-
-
Signature:
for
-
Equations:
- associativity:
- unit laws:
- associativity:
In the case of the algebraic theory of monoids:
Ex: Magmas
- Magma:
-
a set equipped with a binary operation
(no associativity, no unit)
- Commutative monoids:
-
Th: algebraic theory defines a monad
in that way
and
natural in
- An element of
: -
is a tree of signature
with leaves in (and also in ) modulo the equations of the algebraic theory.
For every such leaf
Substitute
The equivalence class
does not depend on the choice of
Algebraic theory of the commutative rings
are associative and commutative : neutral elements : inverse law- distributivity
since we can push the
Algebras of algebraic theories
- An algebra of an algebraic theory:
-
is a set
equipped with a function for every operation of arity , and satisfies the equations of the theory. - A homomorphism
between such algebras: -
is a function
such that for all
Th:
commutes
The state monad
Fact: the state monad can be defined as the monad associated to a specific algebraic theory of mnemoids.
The free mnemoid generated by
To make things simpler, let us take
and
How does one recover the algebra of a given alg. theory from the monad ?
For instance: can we recover the notion of monoid from the monad
- unit of the monad:
- multiplication of the monad:
- An algebra of a monad
: -
is an object
of the category equipped with a morphism s.t. the following diagrams commute:
and
- A homomorphism between
-algebras : -
is a morphism
s.t. the following diagram commutes:
This defines a category
Th: for every algebraic theory, the category of algebras (and homomorphisms) of the theory is isomorphic to the category of
-algebras for the associated monad .
Example: in the case of the “free monoid monad”
a function
NB:
In particular:
- neutral element:
- multiplication:
Claim:
Because of
Claim:
Because of
More generally:
Hence: a
Associativity comes from the equation
We can recover the monad from the notion of
-algebra ⟶ the monad is an invariant of an algebraic theory.
From Monads to categories of -algebras
For every monad
Observation:
every object
The monad
A monoid is a topological space equipped with a contractible space of operations ⟹ operads (
-algebras)
Operads: generalization of algebraic theories to a topological space of operations
Back to homorphisms: why are they so simple?
means that
In other words:
Leave a comment