Documentation

CategorialAlgebras.HepDerivor.Category

Composition of generalized hep-derivors #

A composite combines the second sort domain with the translated first domain. Translation retains the unique positional variable, including when sort maps are not injective. Bundled hierarchical signatures and generalized hep-derivors form a category at fixed sort and symbol universes.

def CategorialAlgebras.Word.singletonMap {S : Type u} {T : Type u'} (φ : S → T) (s t : S) :
Variables [s] t → Variables [φ s] (φ t)

Change the sort of the unique positional variable of a singleton word.

Equations
Instances For
    @[simp]
    theorem CategorialAlgebras.Word.singletonMap_id {S : Type u} (s t : S) (x : Variables [s] t) :
    singletonMap id s t x = x

    Changing singleton sorts by the identity fixes their variables.

    @[simp]
    theorem CategorialAlgebras.Word.singletonMap_comp {S : Type u} {T : Type u'} {U : Type u''} (φ : S → T) (ψ : T → U) (s t : S) (x : Variables [s] t) :
    singletonMap ψ (φ s) (φ t) (singletonMap φ s t x) = singletonMap (ψ ∘ φ) s t x

    Successive changes of singleton sorts compose.

    def CategorialAlgebras.Derivor.translateSingleton {S : Type u} {T : Type u'} {sig : Signature S} {tau : Signature T} (c : Derivor sig tau) (s : S) {t : S} (p : Term sig (Word.Variables [s]) t) :

    Translate a term in one variable and identify the translated positions with those of the singleton word of its new sort.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem CategorialAlgebras.Derivor.translateSingleton_eq {S : Type u} {T : Type u'} {sig : Signature S} {tau : Signature T} (c : Derivor sig tau) (s : S) {t : S} (p : Term sig (Word.Variables [s]) t) :

      Singleton translation is word translation followed by the positional equivalence.

      @[simp]
      theorem CategorialAlgebras.Derivor.translateSingleton_identity {S : Type u} {sig : Signature S} (s : S) {t : S} (p : Term sig (Word.Variables [s]) t) :

      Singleton translation by the identity fixes terms.

      theorem CategorialAlgebras.Derivor.translateSingleton_comp {S : Type u} {T : Type u'} {U : Type u''} {sig : Signature S} {tau : Signature T} {ups : Signature U} (c : Derivor sig tau) (d : Derivor tau ups) (s : S) {t : S} (p : Term sig (Word.Variables [s]) t) :

      Singleton translation commutes with composition.

      def CategorialAlgebras.Derivor.translateSingletonSet {S : Type u} {T : Type u'} {sig : Signature S} {tau : Signature T} (c : Derivor sig tau) (s : S) (E : EEquationSet sig (Word.Variables [s])) :

      Translate a sorted set of singleton equations, taking the union over source sorts.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[simp]
        theorem CategorialAlgebras.Derivor.translateSingletonSet_empty {S : Type u} {T : Type u'} {sig : Signature S} {tau : Signature T} (c : Derivor sig tau) (s : S) :

        Translation preserves the empty sorted set.

        theorem CategorialAlgebras.Derivor.translateSingletonSet_union {S : Type u} {T : Type u'} {sig : Signature S} {tau : Signature T} (c : Derivor sig tau) (s : S) (E H : EEquationSet sig (Word.Variables [s])) :

        Translation preserves unions of sorted sets.

        @[simp]

        The identity fixes singleton equation sets.

        theorem CategorialAlgebras.Derivor.translateSingletonSet_comp {S : Type u} {T : Type u'} {U : Type u''} {sig : Signature S} {tau : Signature T} {ups : Signature U} (c : Derivor sig tau) (d : Derivor tau ups) (s : S) (E : EEquationSet sig (Word.Variables [s])) :

        Successive translations of singleton equation sets equal composite translation.

        theorem CategorialAlgebras.GeneralizedHepDerivor.ext {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} {c d : GeneralizedHepDerivor sig tau} (h : c.toDerivor = d.toDerivor) (hd : c.domain ≍ d.domain) :
        c = d

        Equality is determined by the underlying derivor and its dependent sort domains.

        @[reducible, inline]

        Identity generalized hep-derivor, with no restrictions on cells.

        Equations
        Instances For
          @[reducible, inline]
          abbrev CategorialAlgebras.GeneralizedHepDerivor.comp {S : Type u} {T : Type u'} {U : Type u''} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) :

          Composition translates the first domain and adjoins the second domain.

          Equations
          Instances For
            @[simp]

            The identity is a left unit for composition.

            @[simp]

            The identity is a right unit for composition.

            theorem CategorialAlgebras.GeneralizedHepDerivor.comp_assoc {S : Type u} {T : Type u'} {U : Type u''} {V : Type u'''} {sig : HepSignature S} {tau : HepSignature T} {ups : HepSignature U} {xi : HepSignature V} (c : GeneralizedHepDerivor sig tau) (d : GeneralizedHepDerivor tau ups) (e : GeneralizedHepDerivor ups xi) :
            (c.comp d).comp e = c.comp (d.comp e)

            Composition of generalized hep-derivors is associative.

            structure CategorialAlgebras.BundledHepSignature :
            Type (max (u + 1) (v + 1))

            A hierarchical signature with its sort type, at fixed sort and symbol universes.

            • sorts : Type u

              The sort type.

            • signature : HepSignature self.sorts

              The hierarchical signature on these sorts.

            Instances For
              @[instance_reducible]

              Hierarchical signatures and generalized hep-derivors form a category.

              Equations
              • One or more equations did not get rendered due to their size.