Documentation

CategorialAlgebras.Preliminaries.Algebra

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.

@[reducible, inline]
abbrev CategorialAlgebras.Signature (S : Type u) :
Type (max u (v + 1))

An $S$-sorted signature.

Equations
Instances For
    structure CategorialAlgebras.ManySortedSignature :
    Type (max (u + 1) (v + 1))

    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.

    • symbol : Signature self.sort

      The operation symbols at each input word and output sort.

    Instances For
      structure CategorialAlgebras.Algebra {S : Type u} (sig : Signature S) :
      Type (max (max u v) (w + 1))

      A total algebra for a many-sorted signature $\Sigma$.

      • carrier : S → Type w

        The carrier at each sort.

      • op {a : List S} {s : S} : sig a s → Word.Family self.carrier a → self.carrier s

        Interpretation of an operation on a family of arguments.

      Instances For

        Homomorphisms and the category of algebras #

        structure CategorialAlgebras.Algebra.Hom {S : Type u} {sig : Signature S} (A : Algebra sig) (B : Algebra sig) :
        Type (max (max u w) w')

        A homomorphism preserves the interpretation of every operation.

        Instances For
          theorem CategorialAlgebras.Algebra.Hom.ext_iff {S : Type u} {sig : Signature S} {A : Algebra sig} {B : Algebra sig} {x y : A.Hom B} :
          x = y ↔ x.toMap = y.toMap
          theorem CategorialAlgebras.Algebra.Hom.ext {S : Type u} {sig : Signature S} {A : Algebra sig} {B : Algebra sig} {x y : A.Hom B} (toMap : x.toMap = y.toMap) :
          x = y
          def CategorialAlgebras.Algebra.Hom.id {S : Type u} {sig : Signature S} (A : Algebra sig) :
          A.Hom A

          The identity homomorphism.

          Equations
          Instances For
            def CategorialAlgebras.Algebra.Hom.comp {S : Type u} {sig : Signature S} {A : Algebra sig} {B : Algebra sig} {C : Algebra sig} (f : A.Hom B) (g : B.Hom C) :
            A.Hom C

            Composition of homomorphisms, in diagrammatic order.

            Equations
            Instances For
              @[instance_reducible]

              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.
              Instances For