Algebras for sorted signatures #
A signature assigns a type of symbols to every input word and output sort. Algebras have arbitrary carrier universes; homomorphisms preserve all operations, including constants.
An $S$-sorted signature.
Equations
- CategorialAlgebras.Signature S = (List S → S → Type ?u.1)
Instances For
A many-sorted signature, with sorts in Type u and symbols in Type v.
Fixing these two universes gives a category of signatures and derivors.
- sort : Type u
The type of sorts.
The operation symbols at each input word and output sort.
Instances For
A total algebra for a many-sorted signature $\Sigma$.
- carrier : S → Type w
The carrier at each sort.
Interpretation of an operation on a family of arguments.
Instances For
Homomorphisms and the category of algebras #
A homomorphism preserves the interpretation of every operation.
- toMap : SortedSet.Map A.carrier B.carrier
The underlying sorted mapping.
- map_op {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier a) : self.toMap s (A.op σ x) = B.op σ fun (j : Fin a.length) => self.toMap (a.get j) (x j)
Preservation of operations.
Instances For
Algebras with carriers in a fixed universe form a category.
Equations
- One or more equations did not get rendered due to their size.
The forgetful functor to Mathlib's category of sorted sets.
Equations
- One or more equations did not get rendered due to their size.