Documentation

CategorialAlgebras.ChangeOfSignature.Models

The functors of a change of signature #

The functor induced by $\mathbf{c}^{(n)}$ on partial algebras sends models of the homogeneous categorial specification of $\Lambda$ to models of that of $\Sigma$, and the same holds for $\mathbf{c}^{\mathrm{htg}(n)}$ and the heterogeneous specifications. The transformed algebra is the reduct of the categorial algebra along the derivor, up to the insertion of the trivial cell proofs: its cells of sort $s$ are the elements of sort $\varphi(s)$, every $\sigma$ acts as the term operation of $c(\sigma)$ (as that of $c(\sigma)_k$ at $\sigma_k$), and the categorial structure is that of the sort $\varphi(s)$. In particular the term operations of the terms of the base signature are total higher functors, while arbitrary terms of the categorial signature may contain partial compositions.

The induced functors on categorial algebras are naturally identified with the reduct functors, and they preserve compositions and identities of derivors up to natural isomorphisms that retain the underlying elements.

theorem CategorialAlgebras.ChangeOfSignature.mpr_heq {α β : Sort u_1} (h : α = β) (y : β) :
h.mpr y ≍ y

Transport along an equality of types is heterogeneously equal to the original element.

theorem CategorialAlgebras.ChangeOfSignature.mp_heq {α β : Sort u_1} (h : α = β) (y : α) :
h.mp y ≍ y

Transport along an equality of types is heterogeneously equal to the original element.

The homogeneous presentation #

theorem CategorialAlgebras.ChangeOfSignature.homogeneousTerm_mem {T : Type u} {tau : Signature T} {I : Type i} [LT I] (B : Homogeneous.CategorialAlgebra I tau) {R : Type u} (φ : R → T) (a : List R) {t : T} (P : Term tau (Word.MappedVariables φ a) t) (x : Word.Family (fun (r : R) => B.carrier (φ r)) a) :

In a homogeneous categorial algebra, the term $P$ of the base signature, regarded as a term of the categorial signature, is defined everywhere, with the value of its term functor.

def CategorialAlgebras.ChangeOfSignature.homogeneousCell {S T : Type u} {sig : Signature S} {tau : Signature T} {I : Type i} (c : Derivor sig tau) (B : PartialAlgebra (Homogeneous.Symbol I tau)) (s : S) (x : B.carrier (c.sortMap s)) :
(homogeneous I c).Cell B s

Insert the trivial cell proof of the homogeneous derivor of a change of signature.

Equations
Instances For

    Inserting the trivial cell proofs is bijective.

    The operations of the reduct have the values of the interpreting terms.

    The reduct realizes the transformation along the homogeneous derivor of a change of signature, by inserting only the trivial cell proofs.

    Formally weaker than the informal statement. Informally, the two algebras are equal; here the carrier of a transformed algebra is a subtype of cells, so the equality becomes an isomorphism that is the identity on elements.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[simp]
      theorem CategorialAlgebras.ChangeOfSignature.homogeneousRealization_hom_val {S T : Type u} {sig : Signature S} {tau : Signature T} {I : Type i} [LT I] (c : Derivor sig tau) (B : Homogeneous.CategorialAlgebra I tau) (s : S) (x : (homogeneousReduct c B).carrier s) :

      The realization of the reduct retains each underlying element.

      The homogeneous derivor of a change of signature sends models of the categorial specification of $\Lambda$ to models of that of $\Sigma$.

      The functor induced by the homogeneous derivor of a change of signature on models.

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

        The functor $\mathbf{c}^{(n)\ast}_{\mathfrak{gd}}$ on homogeneous categorial algebras, transported along the model isomorphisms.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[simp]
          theorem CategorialAlgebras.ChangeOfSignature.homogeneousModels_map_val {S T : Type u} {sig : Signature S} {tau : Signature T} {I : Type i} [LT I] (c : Derivor sig tau) {B C : (Homogeneous.specification I tau).Models} (f : B ⟶ C) (s : S) (x : ((homogeneousModels I c).obj B).obj.obj.carrier s) :
          ↑(((homogeneousModels I c).map f).hom.hom.toMap s x) = f.hom.hom.toMap (c.sortMap s) ↑x

          On model homomorphisms, the functor of a change of signature restricts the original map, reindexed along the sort map.

          The reduct and the induced model functor agree after expansion to models.

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

            The functor of a change of signature on homogeneous categorial algebras is the reduct functor, up to a natural isomorphism that retains the underlying elements.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def CategorialAlgebras.ChangeOfSignature.homogeneousModelsComp {S T U : Type u} {sig : Signature S} {tau : Signature T} {ups : Signature U} (I : Type i) [LT I] (c : Derivor sig tau) (d : Derivor tau ups) :

              The functor of a composite derivor is the composite of the functors, up to a natural isomorphism that retains the underlying elements.

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

                The functor of an identity derivor is the identity, up to a natural isomorphism that forgets only the cell proofs.

                Equations
                Instances For
                  noncomputable def CategorialAlgebras.ChangeOfSignature.homogeneousFunctorComp {S T U : Type u} {sig : Signature S} {tau : Signature T} {ups : Signature U} (I : Type i) [LT I] (c : Derivor sig tau) (d : Derivor tau ups) :

                  On categorial algebras, the functor of a composite derivor is the composite of the functors, up to a natural isomorphism.

                  Formally weaker than the informal statement. Informally, the two functors are equal; here the carriers of transformed algebras are subtypes of cells, so the equality becomes a natural isomorphism that is the identity on elements.

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

                    On categorial algebras, the functor of an identity derivor is the identity, up to a natural isomorphism.

                    Formally weaker than the informal statement. Informally, the two functors are equal; here the carriers of transformed algebras are subtypes of cells, so the equality becomes a natural isomorphism that is the identity on elements.

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

                      The heterogeneous presentation #

                      theorem CategorialAlgebras.ChangeOfSignature.heterogeneousTerm_app {T : Type u} {tau : Signature T} {I : Type i} [Preorder I] (k : I) {R : Type u} {φ : R → T} {a : List R} {b : List T} {t : T} (τ : tau b t) (ts : Word.Family (Term tau (Word.MappedVariables φ a)) b) :
                      heterogeneousTerm I k (Term.app τ ts) = Heterogeneous.base k τ fun (j : Fin b.length) => heterogeneousTerm I k (ts j)

                      The term $P_k$ is the copy in dimension $k$ of the operation at the root of $P$, applied to the copies of its arguments.

                      theorem CategorialAlgebras.ChangeOfSignature.heterogeneousTerm_mem {T : Type u} {tau : Signature T} {I : Type i} [Preorder I] (B : Heterogeneous.CategorialAlgebra I tau) {R : Type u} (φ : R → T) (k : I) (a : List R) {t : T} (P : Term tau (Word.MappedVariables φ a) t) (z : Word.Family (fun (p : I × R) => B.carrier (p.1, φ p.2)) (Heterogeneous.dimensionWord k a)) :

                      In a heterogeneous categorial algebra, the term $P_k$ is defined everywhere, with the value of the term functor of $P$ in dimension $k$.

                      def CategorialAlgebras.ChangeOfSignature.heterogeneousCell {S T : Type u} {sig : Signature S} {tau : Signature T} {I : Type i} [Preorder I] (c : Derivor sig tau) (B : PartialAlgebra (Heterogeneous.Symbol I tau)) (p : I × S) (x : B.carrier (heterogeneousSortMap c p)) :

                      Insert the trivial cell proof of the heterogeneous derivor of a change of signature.

                      Equations
                      Instances For

                        Inserting the trivial cell proofs is bijective.

                        The operations of the reduct have the values of the interpreting terms.

                        The reduct realizes the transformation along the heterogeneous derivor of a change of signature, by inserting only the trivial cell proofs.

                        Formally weaker than the informal statement. Informally, the two algebras are equal; here the carrier of a transformed algebra is a subtype of cells, so the equality becomes an isomorphism that is the identity on elements.

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

                          The realization of the reduct retains each underlying element.

                          The heterogeneous derivor of a change of signature sends models of the heterogeneous categorial specification of $\Lambda$ to models of that of $\Sigma$.

                          The functor induced by the heterogeneous derivor of a change of signature on models.

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

                            The functor $\mathbf{c}^{\mathrm{htg}(n)\ast}_{\mathfrak{gd}}$ on heterogeneous categorial algebras, transported along the model isomorphisms.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              @[simp]
                              theorem CategorialAlgebras.ChangeOfSignature.heterogeneousModels_map_val {S T : Type u} {sig : Signature S} {tau : Signature T} {I : Type i} [Preorder I] (c : Derivor sig tau) {B C : (Heterogeneous.specification I tau).Models} (f : B ⟶ C) (p : I × S) (x : ((heterogeneousModels I c).obj B).obj.obj.carrier p) :

                              On model homomorphisms, the functor of a change of signature restricts the original map, reindexed along the sort map.

                              The reduct and the induced model functor agree after expansion to models.

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

                                The functor of a change of signature on heterogeneous categorial algebras is the reduct functor, up to a natural isomorphism that retains the underlying elements.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  noncomputable def CategorialAlgebras.ChangeOfSignature.heterogeneousModelsComp {S T U : Type u} {sig : Signature S} {tau : Signature T} {ups : Signature U} (I : Type i) [Preorder I] (c : Derivor sig tau) (d : Derivor tau ups) :

                                  The functor of a composite derivor is the composite of the functors, up to a natural isomorphism that retains the underlying elements.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    noncomputable def CategorialAlgebras.ChangeOfSignature.heterogeneousFunctorComp {S T U : Type u} {sig : Signature S} {tau : Signature T} {ups : Signature U} (I : Type i) [Preorder I] (c : Derivor sig tau) (d : Derivor tau ups) :

                                    On categorial algebras, the functor of a composite derivor is the composite of the functors, up to a natural isomorphism.

                                    Formally weaker than the informal statement. Informally, the two functors are equal; here the carriers of transformed algebras are subtypes of cells, so the equality becomes a natural isomorphism that is the identity on elements.

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

                                      On categorial algebras, the functor of an identity derivor is the identity, up to a natural isomorphism.

                                      Formally weaker than the informal statement. Informally, the two functors are equal; here the carriers of transformed algebras are subtypes of cells, so the equality becomes a natural isomorphism that is the identity on elements.

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