Higher-order many-sorted categorial algebras #
A many-sorted algebra is categorial when the carrier of each sort is a strict higher-order category and each operation is a higher-order functor from the product of the carriers of its input word to the carrier of its output sort. This library develops the theory of these algebras, in finite dimensions and in dimension $\omega$, together with the functors that relate their presentations, their dimensions and their signatures.
The guiding idea is that all these functors are instances of one construction. Categorial algebras are the models of an equationally partial specification: source, target and identity are total operations, composition is defined exactly when the boundaries match, and the categorical laws are existence equations, as in the equationally partial signatures of [Rei87], here organized hierarchically. A generalized hep-derivor between two such hierarchical equationally partial signatures maps sorts to sorts, interprets every operation symbol as a term, and selects in every sort the cells satisfying a family of existence equations in one variable. It transforms partial algebras of its target signature into partial algebras of its source signature, by restricting to the selected cells and evaluating the interpreting terms; when it sends models to models, it induces a functor between the categories of models. Graduation, unification, discretization, truncation and change of signature in finite dimensions are all induced in this way.
The parts of the library #
Preliminaries #
Sorted sets, words and valuations, many-sorted signatures and algebras, terms, free algebras
and substitutions, and derivors with their category of signatures (CategorialAlgebras.Derivor).
Partial algebras (CategorialAlgebras.PartialAlgebra), partial term operations,
existence and quasi-existence equations, and their categories of models, closed under
products. Algebraic squares of adjunctions (CategorialAlgebras.AlgebraicSquare),
corestriction of functors to full subcategories, and lax and split indexed categories with
their Grothendieck constructions (CategorialAlgebras.LaxIndexedCategory,
CategorialAlgebras.SplitIndexedCategory.Grothendieck). These are the modules under
CategorialAlgebras.Preliminaries.
Generalized hep-derivors #
Equationally partial and hierarchical signatures, generalized hep-derivors
(CategorialAlgebras.GeneralizedHepDerivor), the transformed algebras and the induced
functors (CategorialAlgebras.GeneralizedHepDerivor.transformedFunctor), and their
composition. Transforming successively includes in transforming by the composite, and this
comparison need not be invertible (CategorialAlgebras.exists_noninvertible_comparison); so
weak ep-algebras form a lax indexed category over hierarchical signatures, whose
Grothendieck construction contains the category of ep-algebras and generalized hep-derivor
homomorphisms (CategorialAlgebras.HepAlgebra). These are the modules under
CategorialAlgebras.HepDerivor.
The homogeneous and the heterogeneous presentations #
In the homogeneous presentation all the cells of a sort lie in one carrier, with a source, a
target and a partial composition in each dimension, and identities are cells of the carrier
(CategorialAlgebras.Homogeneous.CategorialAlgebra). In the heterogeneous presentation the
cells of each dimension form their own carrier, with boundaries, identities and partial
compositions between every pair of increasing dimensions
(CategorialAlgebras.Heterogeneous.CategorialAlgebra). In both, the categorial algebras of a
signature are identified with the models of a categorial specification by an isomorphism of
categories that is the identity on carriers (CategorialAlgebras.Homogeneous.modelIsomorphism,
CategorialAlgebras.Heterogeneous.modelIsomorphism). In dimension $\omega$ the homogeneous
algebras are those in which every cell has a finite dimension, a condition that no
quasi-existence axioms on the homogeneous signature express
(CategorialAlgebras.Homogeneous.not_qe_axiomatizable). These are the modules under
CategorialAlgebras.Homogeneous and CategorialAlgebras.Heterogeneous.
Graduation and unification #
Graduation sends a homogeneous algebra to the heterogeneous algebra of its cells of each
dimension, and unification sends a heterogeneous algebra to its top-dimensional carrier. Both
are induced by generalized hep-derivors (CategorialAlgebras.Presentations.graduation,
CategorialAlgebras.Presentations.unification), and they form an adjoint equivalence
between the two presentations in each finite dimension
(CategorialAlgebras.Presentations.presentationEquivalence). Graduation needs the categorical
equations: on arbitrary ep-algebras of the homogeneous signature it may fail to produce an
ep-algebra
(CategorialAlgebras.Presentations.GraduationCounterexample.exists_epAlgebra_graduation_failure).
These are the modules under CategorialAlgebras.Presentations.
Discretization and truncation #
Truncation forgets the cells above a dimension and discretization adds identities as the cells
of the missing dimensions. In both presentations both are induced by generalized
hep-derivors, truncation retracts discretization, and discretization is left adjoint to
truncation (CategorialAlgebras.Dimensions.homogeneousAdjunction,
CategorialAlgebras.Dimensions.heterogeneousAdjunction). They commute with graduation and
unification, and the four adjunctions form an algebraic square
(CategorialAlgebras.Dimensions.dimensionAlgebraicSquare). These are the modules under
CategorialAlgebras.Dimensions, which also hold the truncation and discretization functors
between finite dimensions and dimension $\omega$.
Dimension $\omega$ as a projective limit #
The categories of $\omega$-categorial algebras, in both presentations, are projective limits
of the categories of finite-dimensional ones along truncation
(CategorialAlgebras.Limits.ProjectiveLimit,
CategorialAlgebras.Limits.homogeneousCone_isEquivalence,
CategorialAlgebras.Limits.heterogeneousCone_isEquivalence): an $\omega$-categorial algebra is
reconstructed from its finite truncations, as an increasing union in the homogeneous
presentation and as a diagonal in the heterogeneous one, and so are its homomorphisms. These
are the modules under CategorialAlgebras.Limits.
Graduation and unification in dimension $\omega$ #
Graduation in dimension $\omega$ is the functor determined by the compatible family of finite
graduations (CategorialAlgebras.Omega.graduationFunctor). Unification identifies every cell
with its identities in higher dimensions (CategorialAlgebras.Omega.unificationFunctor), and is
not induced by any generalized hep-derivor (CategorialAlgebras.Omega.unification_not_induced).
They form an adjoint equivalence (CategorialAlgebras.Omega.presentationEquivalence),
discretization from finite dimensions is left adjoint to truncation, and the adjunctions form
an algebraic square (CategorialAlgebras.Omega.dimensionAlgebraicSquare). These are the
modules under CategorialAlgebras.Omega.
Change of signature #
A derivor between many-sorted signatures induces generalized hep-derivors between their
homogeneous and their heterogeneous categorial signatures, in every dimension
(CategorialAlgebras.ChangeOfSignature.homogeneous,
CategorialAlgebras.ChangeOfSignature.heterogeneous), functorially. The induced functors are
the reducts of categorial algebras up to an isomorphism that is the identity on elements
(CategorialAlgebras.ChangeOfSignature.homogeneousFunctorReductIso), and the reducts make the
categories of categorial algebras split indexed categories over signatures
(CategorialAlgebras.ChangeOfSignature.homogeneousIndexed,
CategorialAlgebras.ChangeOfSignature.heterogeneousIndexed). Change of signature commutes with
graduation, unification, discretization and truncation; in dimension $\omega$, graduation and
unification commute strictly with the reducts and extend to the Grothendieck constructions
(CategorialAlgebras.ChangeOfSignature.omegaGraduationGrothendieck). These are the modules
under CategorialAlgebras.ChangeOfSignature.
Conventions #
- Dimensions are a type:
Fin nfor finite dimensions andℕfor dimension $\omega$, so that most constructions are stated once for every type of dimensions. - The carriers of a transformed algebra are subtypes of selected cells. Equalities between transformed algebras therefore become isomorphisms that are the identity on the underlying elements, and functors induced by generalized hep-derivors are compared up to such isomorphisms, with lemmas stating that their components act as the identity.
- Composition in a higher category is written with the later arrow first.