Documentation

CategorialAlgebras.Heterogeneous.Signature

The heterogeneous categorial signature #

Sorts are pairs of a dimension and an original sort. Original symbols have one copy in each dimension. Only composition has a domain condition, involving source and target.

Dimension words and families #

@[reducible, inline]
abbrev CategorialAlgebras.Heterogeneous.dimensionWord {I : Type i} {S : Type u} (k : I) (a : List S) :
List (I × S)

An input word with all its letters placed in dimension $k$.

Equations
Instances For
    theorem CategorialAlgebras.Heterogeneous.dimensionWord_get {I : Type i} {S : Type u} (k : I) (a : List S) (j : Fin (dimensionWord k a).length) :
    (dimensionWord k a).get j = (k, a.get (Fin.cast ⋯ j))

    The letter at a position of a dimension word.

    def CategorialAlgebras.Heterogeneous.dimensionFamily {I : Type i} {S : Type u} {A : I × S → Type w} (k : I) (a : List S) :
    Word.Family A (dimensionWord k a) ≃ Word.Family (fun (s : S) => A (k, s)) a

    Families on a dimension word are families of cells in that dimension.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem CategorialAlgebras.Heterogeneous.dimensionFamily_natural {I : Type i} {S : Type u} {A : I × S → Type w} {B : I × S → Type x} (f : SortedSet.Map A B) (k : I) (a : List S) (x : Word.Family A (dimensionWord k a)) :
      ((dimensionFamily k a) fun (j : Fin (dimensionWord k a).length) => f ((dimensionWord k a).get j) (x j)) = fun (j : Fin a.length) => f (k, a.get j) ((dimensionFamily k a) x j)

      Changing the carrier family commutes with dimensional reindexing.

      theorem CategorialAlgebras.Heterogeneous.dimensionFamily_rel {I : Type i} {S : Type u} {A : I × S → Type w} {B : I × S → Type x} (R : (s : I × S) → A s → B s → Prop) (k : I) (a : List S) (x : Word.Family A (dimensionWord k a)) (y : Word.Family B (dimensionWord k a)) :
      (∀ (j : Fin (dimensionWord k a).length), R ((dimensionWord k a).get j) (x j) (y j)) ↔ ∀ (j : Fin a.length), R (k, a.get j) ((dimensionFamily k a) x j) ((dimensionFamily k a) y j)

      Pointwise relations are preserved and reflected by dimensional reindexing.

      Symbols and terms #

      inductive CategorialAlgebras.Heterogeneous.Symbol (I : Type i) [Preorder I] {S : Type u} (sig : Signature S) :
      List (I × S) → I × S → Type (max i v u)

      The enlarged signature, with disjoint constructors for the symbol families.

      Instances For
        def CategorialAlgebras.Heterogeneous.Symbol.boundary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {j k : I} (h : j < k) (s : S) (b : Bool) :
        Symbol I sig [(k, s)] (j, s)

        Select source (false) or target (true).

        Equations
        Instances For
          def CategorialAlgebras.Heterogeneous.unary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {s t : I × S} (σ : Symbol I sig [s] t) (r : Term (Symbol I sig) X s) :
          Term (Symbol I sig) X t

          Apply a unary symbol between possibly different sorts.

          Equations
          Instances For
            def CategorialAlgebras.Heterogeneous.binary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {j k : I} (h : j < k) {s : S} (t r : Term (Symbol I sig) X (k, s)) :
            Term (Symbol I sig) X (k, s)

            Apply a composition symbol to two terms.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def CategorialAlgebras.Heterogeneous.boundary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {j k : I} (h : j < k) (b : Bool) {s : S} (t : Term (Symbol I sig) X (k, s)) :
              Term (Symbol I sig) X (j, s)

              Apply a source or target symbol.

              Equations
              Instances For
                def CategorialAlgebras.Heterogeneous.identityTerm {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {j k : I} (h : j < k) {s : S} (t : Term (Symbol I sig) X (j, s)) :
                Term (Symbol I sig) X (k, s)

                Apply an identity symbol.

                Equations
                Instances For
                  def CategorialAlgebras.Heterogeneous.base {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} (k : I) {a : List S} {s : S} (σ : sig a s) (t : Word.Family (fun (s : S) => Term (Symbol I sig) X (k, s)) a) :
                  Term (Symbol I sig) X (k, s)

                  Apply an original symbol using its original input positions.

                  Equations
                  Instances For
                    def CategorialAlgebras.Heterogeneous.singletonEquation {T : Type u} {σ : Signature T} {X : T → Type x} {s : T} (e : EEquation σ X s) :

                    A single existence equation, as a sorted set.

                    Equations
                    Instances For
                      def CategorialAlgebras.Heterogeneous.compositionDomain {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {j k : I} (h : j < k) (s : S) :

                      The unique composition domain equation.

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

                        Domain conditions and hierarchy #

                        Only compositions have nonempty domain conditions.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def CategorialAlgebras.Heterogeneous.Symbol.rank {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {a : List (I × S)} {s : I × S} :
                          Symbol I sig a s → ℕ

                          Height in the dependency hierarchy.

                          Equations
                          Instances For
                            theorem CategorialAlgebras.Heterogeneous.domain_symbol_rank {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {a : List (I × S)} {s : I × S} (σ : Symbol I sig a s) (τ : OperationSymbol (Symbol I sig)) (h : τ ∈ ((epSignature I sig).domain σ).symbols) :
                            τ.snd.snd.rank < σ.rank

                            Domain dependencies strictly decrease height.

                            The heterogeneous categorial signature is hierarchical.

                            Equations
                            Instances For

                              Expansion of categorial algebras #

                              @[reducible, inline]

                              Expansion on the exact carrier of sort $(k,s)$.

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