Tag. category-theory
Notes (62)
Predecessors simplify later predecessors-simplify-later
A predecessor of is a top element of its strict downset: a strict morphism through which every strict morphism into factors uniquely. Equivalently, β the downset is representable.
The Yoneda lemma then collapses later to evaluation:
with becoming restriction along . The name is from the naturals: every strict map into factors through , so on β in the topos of trees β later is just the shift
and a LΓΆb step is a base value together with a rule producing the value at from the value at .
When this predecessor exists, we can give a simpler description of later, as in the topos of trees, but this may not be possible in all direct categories.
Algebras as a displayed category algebras-displayed
Fix an endofunctor . The -algebras form a displayed category over .
Over an object , a displayed object of is a structure map
Over , a displayed morphism from to is the proposition that is an algebra homomorphism:
The total category is the category of -algebras.
The co-EilenbergβMoore category as a displayed category co-eilenberg-moore-displayed
A comonad on is a monad on . Everything about its coalgebras is then inherited from the EilenbergβMoore construction, instantiated at the opposite category β nothing is defined twice.
Algebras of over are coalgebras of the underlying endofunctor, and the monad algebra laws, read in , are the comonad coalgebra laws β the unit and multiplication of , viewed in , are the counit and comultiplication :
The co-EilenbergβMoore category is the opposite of the total category:
Coalgebras as a displayed category coalgebras-displayed
Fix an endofunctor . Coalgebras require no new construction: a coalgebra is an algebra in the opposite category. Define
a displayed category over , where is acting on the opposite category.
Concretely, over an object a displayed object is a structure map
The category of coalgebras is the opposite of the total category:
The outer opposite returns morphisms to the direction of : a morphism is a map with
Definition. The comparison functor of an adjunction comparison-functor
An adjunction with and induces a monad on . Write for the counit of the adjunction. Every object of then induces a -algebra carried by the object , witnessed by the map
This assignment extends to a functor into the EilenbergβMoore category,
the comparison functor of the adjunction.
Dually, an adjunction induces a comonad on the other side and a comparison into the co-EilenbergβMoore category. When these comparisons are equivalences we say that the adjunction is (co)monadic.
Definition. Direct categories direct-category
A well-founded order is a set with a proposition-valued transitive relation admitting no infinite descent: every element is accessible. Write for .
A direct structure on a category over is a functor
into the well-founded order viewed as a poset category. The functor organizes two pieces of data at once: an ordering on the objects, and the invariant that morphisms respect it β forces .
A direct structure equips the objects with a well-founded strict relation
Intuitively, direct categories are the right generalization of well-foundedness to the categorical setting: a direct category is essentially one whose underlying graph is a directed acyclic graph, layered by degree, so that data at an object may be defined by recursion from data at all objects strictly below it.
The degrees order the objects, while the morphisms of say how an object sits over its predecessors.
Definition. Earlier on presheaves earlier-presheaf
Later takes a limit over smaller indices. Dually, the earlier modality takes a colimit over larger indices: an element of at is a -element sitting at some object strictly above , carried down along a chosen morphism .
Earlier is left adjoint to later:
Under this adjunction, corresponds to
.
The EilenbergβMoore category as a displayed category eilenberg-moore-displayed
Fix a monad on . Its EilenbergβMoore category arises in two displayed layers. The first layer is the displayed category of algebras of the underlying endofunctor.
The second layer, , is displayed over the total category . Over an algebra the displayed objects are the propositions that satisfies the monad algebra laws:
The EilenbergβMoore category is the total category of the tower:
Definition. Initial algebra initial-algebra
Fix an endofunctor . An initial -algebra, written , is an initial object of the category of algebras .
Unfolding the universal property: an initial algebra is an algebra such that every algebra admits a unique morphism satisfying
Definition. Later on families later-family
Conjugation with the adjunction between presheaves and families lets us induce a later construction on families from the one on presheaves,
Concretely, later on families evaluates to
Definition. Later on presheaves later-presheaf
The later modality for presheaves on a direct category is given by the presheaf of natural transformations
out of the strict downset.
An element of at is a coherent choice of -elements at all objects strictly smaller than .
Restriction in along precomposes with the induced map . At an object of minimal degree the strict downset is empty, so is trivial there.
Via functoriality, every presheaf restricts to smaller indices. Thus we may define the map
that sends an element over to the family of all its restrictions along morphisms from strictly lower objects.
Theorem. LΓΆb induction on families lob-family
Like later on families, the recursion principle for families is inherited from that on presheaves. Given a family and a step
the construction is a chain of transpositions with LΓΆb for presheaves used in the middle:
Just as for presheaves, the fixed point constructed above is unique: the two transpositions are bijections, and the presheaf-level fixed point is already unique.
Theorem. LΓΆb induction for presheaves on a direct category lob-presheaf
Let be a direct category and a presheaf on it. Every map
has a fixed point: a global element with
and this fixed point is unique.
The hypothesis says: the value of at any object is determined by its values over the strict past β turns a coherent family over the strict downset of into a value at . The proof is recursion along the well-founded : at each , the section already constructed over the past assembles into an element of , and extends it to .
Definition. Locally contractive endofunctors locally-contractive-functor
Write for the presheaf of morphisms . An endofunctor on presheaves is locally contractive when its action on morphisms factors through later: there is a map
Definition. Monadicity and comonadicity monadicity-comonadicity
An adjunction with and induces a monad on , and a comparison functor
sending each object of to the -algebra it carries.
The functor is monadic when is an equivalence: the adjunction exhibits as objects of equipped with algebraic structure for , the EilenbergβMoore category.
Comonadicity is monadicity in the opposite category: a left adjoint with right adjoint induces a comonad on , a comparison into the co-EilenbergβMoore category, and is comonadic when this comparison is an equivalence.
The adjoint triple between presheaves and families presheaf-family-adjoint-triple
A family over is a set for each object , with no action of morphisms. Families form a category : a morphism is a function for each .
Forgetting the restriction maps of a presheaf gives a functor
It has both a left and a right adjoint,
The two adjoints demonstrate different means of forcing a family to be functorial. The right adjoint universally quantifies over morphisms in,
with restriction along given by precomposition. The left adjoint instead existentially quantifiers over morphisms out:
with restriction acting on the first component. (For we ask that have a set of objects, so that this sum is a set and thus defines a presheaf.)
Theorem. Presheaves are monadic and comonadic over families presheaves-monadic-comonadic-over-families
The adjoint triple induces a monad and a comonad on .
Both comparison functors are equivalences: presheaves are the EilenbergβMoore algebras of and the co-EilenbergβMoore coalgebras of ,
So presheaves are both monadic and comonadic over families.
Reading the algebra structure concretely: a -algebra on a family is a map for each , subject to the monad algebra laws β that is, exactly a functorial action of restriction.
The comonadic reading is the same structure seen from the elementβs side: a -coalgebra is a map , giving each value its restriction along every morphism into . Where the monad says restriction acts on values, the comonad says a value already carries all of its restrictions β and the coalgebra laws say it does so coherently.
Definition. Proper and maximal sieves proper-maximal-sieve
The representable is itself a sieve on . A sieve on is proper when it is not equal to the representable.
Say that a proper sieve is maximal when it contains all other proper sieves as a sub-sieve.
Definition. Sieves sieve
A sieve on an object of is a subobject of the representable presheaf : a presheaf with a monic morphism . Sieves are a generalization from the notion of ideal found in ring theory to category theory.
A morphism belongs to , written , when lies in the image of the inclusion at . Because is a presheaf and the inclusion is natural, membership is closed under precomposition:
A sieve is thus a βdownward closedβ collection of morphisms into .
Sieves on are ordered by refinement: when every morphism belonging to belongs to .
Theorem. Maximality of the strict downset among proper sieves strict-downset-maximal
Call a direct structure reflecting when every morphism between objects of equal degree is a split epimorphism. In a reflecting direct category, every non-invertible-in-degree morphism strictly raises degree, and the strict downset is as large as a proper sieve can be:
If the direct structure is reflecting, then every proper sieve on refines into the strict downset:
Suppose with of equal degree. By reflection has a section , and closure under precomposition gives , contradicting properness.
So every morphism in strictly raises degree. That is, every morphism in is also a member of .
Definition. The strict downset sieve of a direct category strict-downset-sieve
Let carry a direct structure. The strict downset of an object is the presheaf of morphisms into from strictly lower objects:
with restriction by precomposition β well defined since degrees are non-decreasing, so precomposing can only stay strictly below.
The evident inclusion makes a sieve on . It is moreover a proper sieve, as it exlcudes the identity.
Definition. Terminal coalgebra terminal-coalgebra
Fix an endofunctor . A terminal -coalgebra, written , is a terminal object of the category of coalgebras β equivalently, an initial algebra for .
Unfolding the universal property: a terminal coalgebra is a coalgebra such that every coalgebra admits a unique morphism satisfying
Well-founded posets are thin direct categories well-founded-poset-as-thin
Every poset forms a thin category. Similarly, if the poset is well-founded then it induces a thin direct category.
Definition. Category category
A category consists of
- A type of objects
- For each pair of objects a set of morphisms . We may simply write a morphism with an arrow, denote as or or similar
- A composition operation on morphisms. For and , there is a morphism
- For each , an identity morphism
Left-unitality of composition: for all , an equality
Right-unitality of composition: for all , an equality
Associativity of composition: for all , , , an equality
Concretely, the definition above is meant to model the one used in the Cubical standard library [1].
However, the notion of category is flexible. Depending on the context, we may be talking of small, locally small, wild, or any other kind of category that may augment which things we require to be (homotopy) sets, which things we require to be small types, etc. For the most part, the same idea of a category will apply across all of these settings.
Definition. Bicategory bicategory
A bicategory is a notion of weak 2-category that arises as a category weakly enriched in categories. That is, instead of having hom sets, between any two objects a bicategory has hom categories such that the enriched category laws hold up to invertible 2-cell rather than strictly.
A bicategory consists of
- A type of objects , or 0-cells
- For all , a category . We may elide the subscript and simply write this as . Refer to the objects of as 1-cells between and , and we may write as or . For , refer to the morphisms in between and as 2-cells and write the morphism as or
- For each , an identity 1-cell
- For all , a composition functor . For 1-cells and , write their composite as
For all , a natural isomorphism, the associator between the two composite functors that compose the leftmost, respectively rightmost, pair first:
Its component at 1-cells is the invertible 2-cell
For all , natural isomorphisms, the left unitor and right unitor , each between an endofunctor of and the identity functor:
where and in the pairings denote the constant functors at the identity 1-cells. The components at a 1-cell are the invertible 2-cells
such that for all and the triangle below commutes in :
and such that for all composable 1-cells the pentagon below commutes:
Definition. Monad in a bicategory monad-in-a-bicategory
Fix a bicategory , with composition , identity 1-cells , associator , and unitors . A monad in internalises the usual notion of monad: it is an endo-1-cell carrying a multiplication and a unit that satisfy the monoid laws up to the coherence cells of the bicategory.
A monad in consists of
- a 0-cell , the object the monad acts on;
- an endo-1-cell ;
- a multiplication 2-cell ;
- a unit 2-cell ;
such that is associative: the following diagram of 2-cells commutes in , where the top map is the associator that rebrackets the threefold composite:
and such that and satisfy the unit laws: the following two diagrams commute in , where the hypotenuses are the left and right unitors:
Taking to be the bicategory of categories, functors, and natural transformations recovers an ordinary monad on a category: is the endofunctor, the multiplication, and the unit, with the coherence cells all identities.
Definition. Free Monoidal Category over a Set free-monoidal-category
Fix a set . The objects of the free monoidal category over , , are generated inductively by the elements of and a unit element over a binary operation . The morphisms are given by a quotient-inductive type. They are generated by associators, unitors, and identity over composition and parallel action over then quotiented by associativity and composition equation to satisfy the category laws, equations constraining the associators/unitors to be natural isomorphisms, and pentagon/triangle equations to satiate the axioms of a monoidal category.
Definition 0.1. Global Elimination Principle for the Free Monoidal Category free-monoidal-category-elimination
Given any displayed monoidal category over with an interpretation , we may construct a global section . We refer to this as the global elimination principle of .
Definition. Global Elimination Principle for the Free Monoidal Category free-monoidal-category-elimination
Given any displayed monoidal category over with an interpretation , we may construct a global section . We refer to this as the global elimination principle of .
Products of Categories as Total Categories product-as-total-category
Given categories and , is equivalent to the total category of weakening.
Definition. Quiver quiver
A quiver is just a directed graph presented via a type of objects, a type of edges, and two projection functions that pick out source and target of an edge.
Definition. Thin Category thin-category
A category is thin if there is at most one morphism between any two objects.
Definition. Element of a Presheaf element-of-presheaf
An element of a presheaf at an object is an element of the set .
Definition. Universal Element of a Presheaf universal-element
A universal element of a presheaf on a category is an element , where is some object of , demonstrating that is representable by .
(Slightly) more concretely, a universal element is captured by the following three pieces of data
- An object of
- An element
- A proof that the map sending a morphism to is an equivalence
This third point states that morphisms from into are uniquely determined by an element of at the domain .
Or equivalently, universal elements are terminal in the category of elements.
What is a universal property, really? universal-property
Universal properties are a convenient method for defining an object in a category up to isomorphism. Rather than giving a concrete, bottom-up construction of an object, we can instead uniquely specify its behavior.
Consider the example of products in a category . We say that the product of and is any object of such that the following diagram commutes.
We say that satisfies the universal property of the product of and .
Surely this matches our set-based intuition of what a product should behave like. Similarly, we can sketch out constructions of other universal properties like initial objects, terminal objects, exponentials, etc. However, what is precisely meant by the term universal property?
The notion of a universal property is made precise by the notion of a universal element of a presheaf. That is, an object satisfies a universal property if we can build a universal element of the appropriate presheaf at that object.
Letβs look at the universal element characterization of the products example. Note that a map into a product is determined by a map into each component. To map into , we need both a map into and a map into , as in the above diagram. That is, to build a map , we must simultaneously provide elements of and at .
Using the product of presheaves, this means we are providing a single element of the presheaf . Quite nicely, the universal element of this presheaf provides the object of that is the product of and . The universal element, provided that it exists, contains the following data:
- An object
- An element
- A proof that the map sending to a pair of maps , is an equivalence. Therefore, any element of factors through
Recall that the product of presheaves is computed pointwise in the category of sets, so if we expand the type of the element above we find that is a pair of maps and .
The first part of this pair is precisely . Correspondingly, the second part of this pair is . Finally, the universality of the element (i.e. the proof that any other element factors through ) captures our commutative diagram from above.
This is a very rough sketch of what a universal property is, and has elided for now an important application of the Yoneda lemma. In any case, all a universal property is really saying is that a particular presheaf is representable; and, rather elegantly, a universal element of a presheaf is convenient packaging of that representability proof.
In summary, universal properties are not as ad-hoc as they may initially seem, and the language of presheaves provides a reusable and precise definition that can be instantiated to describe a very large class of properties.
Definition. Constant Presheaf constant-presheaf
The constant presheaf of a set on a category is a functor such that
I often call this the discrete presheaf for , but I donβt know if thatβs standard.
Finite Cardinal Arithmetic in a Topos finite-cardinal-arithmetic-topos
In a topos with a natural numbers object , you can define finite cardinals as objects that arise as the pullback along a morphism of the generic finite cardinal. Write for the cardinal corresponding to .
The above characterization is a little obtuse and does warrant some more explanation. One way to make it more concrete is that and , and that finite cardinals warrant a nice induction principle. If is a property expressible in the internal language such that satisfies , and that whenever satisfies then satisfies ; then every finite cardinal satisfies . That is, forms a -closed subobject of and thus is all of .
My working mental model is in a presheaf topos, where the natural numbers object can be defined explicitly as .
Definition 0.2. Constant Presheaf constant-presheaf
The constant presheaf of a set on a category is a functor such that
I often call this the discrete presheaf for , but I donβt know if thatβs standard.
The finite cardinals with respect to can be characterized then as,
These obey nice algebraic properties.
Definition. Subobject subobject
In a category , a subobject of is an isomorphism class of monomorphisms into .
Definition. Terminal Object terminal-object
An object in a category is terminal if there is a unique morphism from any other object into it.
Because terminal objects are unique up to unique isomorphism (as are all universal objects) we often just write to refer to the terminal object. Likewise, refers to the unique morphism into .
Definition. Equalizer equalizer
Let and be objects in a category with two parallel morphisms . The equalizer of and , if it exists, is the universal object with the following property:
- There is a morphism
Constructing Equalizers in Type Theory equalizers-in-type-theory
In the presence of -types, one may construct all equalizers. Given types and with functions , the equalizer may be constructed as
Definition. Subobject Classifier subobject-classifier
Subsets of a set may classically be identified with a characteristic map . Intuitively, for every , gives a truth value to the statement β is in the subset β. In this manner, the domain of the characteristic map, , classifies the subsets of .
Generalizing over this principle, in a category an object is a subobject classifier if maps into it from some object likewise uniquely identify a subobject of .
We can understand to behave like an object of truth values that are not necessarily boolean valued. A morphism can be thought of like a predicate on . If were a set, this would precisely be the characteristic function on it. However, this idea can generalize beyond sets. For instance in the category of graphs, is a cleverly constructed graph such that any graph homomorphism into it picks out a unique subgraph of .
There are always two (suggestively named) disjoint βpointsβ of , thought of as morphisms out of the terminal object . I think if weβre being careful, may properly be the βsubobject classifierβ but I always use the term to refer to itself.
A subobject induces a unique characteristic morphism such that
Moreover, the appropriate square must be a pullback.
Definition. Closed Monoidal Structure closed-monoidal-category
A monoidal category is left closed if for each , the functor has a right adjoint forming the left internal-hom out of .
That is, for all , there is a natural isomorphism
There is an obvious right-handed variant that is right adjoint to .
If is both right and left closed, the monoidal category is simply called closed (or perhaps biclosed).
Definition. The Bicategory of Categories bicategory-of-categories
The bicategory of categories has
- as 0-cells, categories (at a fixed pair of universe levels, for objects and for morphisms);
- as hom-category , the functor category , so 1-cells are functors and 2-cells are natural transformations;
- as identity 1-cell, the identity functor;
as composition, on functors. On natural transformations and the horizontal composite is given directly by its components
Every component of the left unitor, the right unitor and the associator is an identity morphism, and their inverses are identities too. So the only content of the triangle and pentagon is that composites of identities are identities.
is still a bicategory and not a strict 2-category: and agree on objects and on morphisms, but in the formalization they are not the same functor definitionally. The structure cells are there to name that agreement.
A monad in is an ordinary monad on a category, and a prestack is a pseudofunctor into .
Definition. Category of Elements category-of-elements
Let be a presheaf on a category . The category of elements of is the displayed category over whose displayed objects over are the elements , and whose displayed morphisms over from to are proofs that .
Since is a set, there is at most one displayed morphism over each between given elements: a morphism of elements is a morphism of that happens to carry back to . Its total category is the classical category of elements , and a universal element of is exactly a terminal object of .
Definition. Corecursive algebra corecursive-algebra
Fix an endofunctor . An algebra is corecursive when for every coalgebra there is exactly one hylomorphism from to . Equivalently, the functor of the hylomorphism profunctor is constantly a singleton. It is the dual of a recursive coalgebra: an -algebra in is corecursive exactly when it is recursive as an -coalgebra in .
Example. If is a terminal coalgebra, then is invertible and is a corecursive algebra: a solution of is the same thing as a solution of , that is, a coalgebra map into the terminal coalgebra, and there is exactly one, .
Theorem. Day Convolution is Closed day-closed-structure
Let be a symmetric monoidal closed category that is complete and cocomplete. Let be a small monoidal -enriched category and be -enriched presheaves on . Define
Then, for Day convolution ,
Proof. Proof that Day Convolution is Closed day-closed-structure-proof
For , the enriched hom in is given by the end:
β
Symmetrically, and , so the enriched presheaf category is biclosed [1].
Definition. Day Convolution day-convolution
Let be a symmetric monoidal closed category that is complete and cocomplete. Let be a small monoidal -enriched category. The Day convolution of -enriched presheaves is the enriched presheaf
with unit the representable .
Day convolution makes the enriched presheaf category a monoidal category, symmetric when is [1]. It is moreover closed.
Under the enriched Yoneda embedding the convolution of representables is representable, , so Day convolution is the cocontinuous extension of the tensor of .
As a Kan Extension
Equivalently, is the left Kan extension of along .
In
When , we recover the ordinary Day convolution of presheaves , where the formula simplifies to:
Definition. The Quotient and its Right Adjoint in Day Convolution day-quotient
Let be a small monoidal category. Recall that for presheaves , the Day convolution provides a closed monoidal structure:
which forms an adjunction .
For covariant functors and presheaves , we can define the quotient and its right adjoint, each of which is a presheaf on :
These form the adjunction .
Definition. The Quotient and Residual Coincidence in Day Convolution day-quotient-coincidence
The Day quotient, , takes to be a covariant functor and to be a contravariant one. While the residual takes both to be contravariant.
This apparent variance mismatch disappears when we restrict to the groupoid core , where variance is trivialized since .
For any functor on the core, we can freely extend it to both a presheaf and a covariant copresheaf on by left Kan extension along the respective inclusions and :
By substituting these extensions into the definitions of the residual and the quotient, we obtain a general coincidence for any and :
This equivalence states that computing the residual against the presheaf extension of is perfectly isomorphic to taking the quotient by its covariant extension.
The Representable Case
Instantiating the above theorem at a representable functor on the core, : the co-Yoneda lemma says that the left Kan extensions compute to the representables on :
Applying the general coincidence theorem, the left and right adjoints coincide precisely on (opposite-variance) representables:
When is the discrete monoidal category of strings, this recovers the derivative of formal grammars.
In nominal sets, I suspect that this construction also describes name abstraction and the freshness quantifier, although I have not check all of the details of the proof.
Definition. Hylomorphism hylomorphism
Definition. The hylomorphism profunctor hylomorphism-profunctor
Fix an endofunctor . Hylomorphisms form a profunctor from coalgebras to algebras,
where is the set of with .
The action is by composition. If is a coalgebra morphism () and is an algebra morphism (), then is again a hylomorphism:
In these terms, a coalgebra is recursive when is the terminal functor, and an algebra is corecursive when is. For the inverse of an initial algebra the profunctor is representable, , and dually for a terminal coalgebra.
When every value of is a singleton, every divide-and-conquer specification over has exactly one solution. This is what local contractivity guarantees.
Definition. Lax Functor lax-functor
A lax functor between bicategories consists of
- a map on 0-cells, ;
- for all , a functor , acting on 1-cells and 2-cells;
- a unit comparison, natural 2-cells ;
- a composition comparison, 2-cells natural in and ;
such that three coherence laws hold, one for each structure cell of :
- left unit: ;
- right unit: ;
- associativity: .
Here between 2-cells is vertical composition, and and are whiskerings.
Lax functors compose: and . The coherence laws of the composite follow from those of and and naturality of , without using the triangle or pentagon of any of the bicategories involved.
A lax functor whose comparison cells are invertible is a pseudofunctor.
Definition. Lax and Pseudonatural Transformations lax-natural-transformation
Let be lax functors. A lax natural transformation consists of
- for each 0-cell , a 1-cell ;
for each 1-cell , a 2-cell filling the naturality square,
- such that is natural in : for a 2-cell , ;
- and such that respects the comparison cells of and : one law relating to , and the unitors, and one relating to , , , and the associators.
A lax natural transformation is pseudonatural when every is invertible. As with pseudofunctors, this is a property, so the pseudonatural transformations are a full subcategory of the category of lax transformations and modifications.
Between prestacks the 1-cells are taken to be pseudonatural. The reason is biuniversality: a transformation whose components are all equivalences of categories is an equivalence of prestacks only if its naturality cells are invertible, and a biuniversal element should be exactly a representation of a prestack up to such an equivalence.
Definition. Locally Discrete Bicategory locally-discrete-bicategory
Every category is a bicategory with only identity 2-cells. Its 0-cells are the objects of , and the hom-category is the discrete category on the set : a 2-cell is a proof that . Composition and identities are those of ; the unitors and associator are the unit and associativity laws of . Since the homs of are sets, any two parallel 2-cells are equal, so the triangle and pentagon hold trivially.
A functor gives a pseudofunctor , whose comparison 2-cells are the functor laws of .
The locally discrete bicategory is how ordinary indexed categories enter bicategorical language: a prestack on is a pseudofunctor , and its Grothendieck construction is a displayed category over .
Definition. Monoidal Category monoidal-category
A monoidal category is a category together with
- a functor , the tensor product;
- an object of , the unit;
natural isomorphisms
the associator, left unitor and right unitor;
such that the triangle and the pentagon below commute for all objects .
Definition. Nominal Sets nominal-set
Fix a countably infinite set of names . A nominal set [1] is a set equipped with an action by the group of finite permutations , such that every element has a finite support.
A finite set of names supports if any permutation fixing pointwise also fixes . The intersection of all supports for is called the least support, denoted .
The category of nominal sets is equivalent to the Schanuel topos. Under this equivalence, a nominal set corresponds to a functor , where is the category of finite sets and injections, given by mapping a finite set of names to the set of elements supported by :
Definition. Nominal Sets as Day Quotients nominal-sets-quotient
In the Schanuel topos, the underlying category for Day convolution is , where is the category of finite sets and injections.
Given a nominal set , its presheaf action describes elements supported by :
Instead of taking a priori as a presheaf, we can view it as a finitely- supported -set. We can restrict our attention to the groupoid core , asking for the support to be exactly the input:
This family is functorial on finite sets and bijections.
By extending this functor along the inclusions described in Quotient Coincidence, we can extend to both a presheaf and a copresheaf on . This suggests the equivalence:
I suspect this allows us to describe name abstraction [1] βwhich ordinarily looks like an operation on two presheaves of the same varianceβas the quotient of by the induced copresheaf .
Concretely, is usually given by the quotient of the product by an equivalence relation:
where for permutations fixing .
On the other hand, the Day quotient computes to a coend:
A priori, a coend over of the product is expressed as the quotient of a set of triples by an equivalence relation :
However, because the comprehension formula fixes , we reduce to a quotient of pairs:
I suspect that this quotient will equate to the one given by , thus resolving the apparent issues with variance. I further suspect that one will need the sheaf condition (pullback-preservation) of nominal sets to establish this equivalence.
Definition. Opposite Bicategory opposite-bicategory
The opposite of a bicategory has the same 0-cells and reverses the 1-cells but not the 2-cells:
Composition swaps its arguments, . The left unitor of is the right unitor of and vice versa, and the associator of is the inverse of the associator of , with its arguments reversed.
Since the 2-cells keep their direction, a lax functor induces a lax (not oplax) functor with the same action on cells. Reversing the 2-cells instead gives the bicategory , whose hom-categories are the opposites .
Duality saves work: a coherence lemma about can often be obtained by instantiating a companion lemma at , which swaps left and right.
Definition. Pseudofunctor pseudofunctor
A pseudofunctor is a lax functor whose unit and composition comparisons
are invertible 2-cells. So preserves identities and composition up to coherent isomorphism.
Being pseudo is a property of a lax functor: invertibility of a 2-cell is a proposition, since inverses are unique. The data of a pseudofunctor is exactly the data of a lax functor, and everything proved about lax functors applies to pseudofunctors unchanged. Pseudofunctors are closed under composition and identities, as lax functors are, because invertible 2-cells are closed under composition and under the action of a functor on hom-categories.
The main examples here are prestacks, pseudofunctors . When is locally discrete on a category , these are the pseudofunctors of fibred category theory.
Definition. Recursive coalgebra recursive-coalgebra
Fix an endofunctor . A coalgebra is recursive when for every algebra there is exactly one hylomorphism from to , that is, exactly one solution of
Equivalently, the functor of the hylomorphism profunctor is constantly a singleton.
Recursiveness is a coalgebraic form of well-foundedness: decomposes each input into subproblems, and recursiveness says that every divide-and-conquer program built on this decomposition has a unique meaning, without mentioning an order on inputs. [1] use recursive coalgebras on categories of indexed families to obtain algorithms that are correct by the type of the map they compute.
Example. If is an initial algebra, then is invertible (Lambekβs lemma) and is a recursive coalgebra. Precomposing with the isomorphism , the equation is equivalent to , which says is an algebra map out of the initial algebra; there is exactly one, .
The dual notion is a corecursive algebra.
Definition. The Schanuel Topos schanuel-topos
Let be the category of finite sets and injections. The Schanuel topos is the category of pullback-preserving functors .
Equivalently, it is the category of nominal sets, which are sets equipped with an action by the group of permutations on a countable set of names , such that every element has finite support.
Definition. Total Bicategory total-bicategory
The total bicategory of a displayed bicategory over packages the base and the displayed data together, one dimension up from the total category of a displayed category.
- Its 0-cells are pairs of a 0-cell of and a displayed 0-cell over it.
- Its hom-category from to is the total category of the displayed hom-category . So a 1-cell is a pair and a 2-cell is a pair .
- Identities, composition, unitors and associator are pairs of the base structure and the displayed structure over it, and the triangle and pentagon hold because they hold in the base and, over that, in the displayed bicategory.
Projecting to first components is a pseudofunctor whose unit and composition comparisons are identity 2-cells.
References (67)
Hofmann-Streicher lifting of fibred categories slattery-2026-hofmann
Univalent Enriched Categories and the Enriched Rezk Completion vanderweide-2026-univalent
Doubly Weak Double Categories fairbanks-2026-doubly
From Semantics to Syntax: A Type Theory for Comprehension Categories najmaei-2026-from
2-dimensional Lawvere theories, commutativity, and higher Day convolution perutka_2026
Day algebras robinson_wrigley_2026
The Rezk Completion for Elementary Topoi wullaert-2026-the
The free bifibration on a functor clarke-2025-the
Double Orthogonal Factorization Systems aberle-2025-double
Hofmann-Streicher lifting of fibred categories slattery-2025-hofmann
The internal languages of univalent categories vanderweide-2025-the
The categorical contours of the Chomsky-SchΓΌtzenberger representation theorem mellies-2025-the
The Formal Theory of Monads, Univalently vanderweide-2025-thex
Logical relations for call-by-push-value models, via internal fibrations in a 2-category amorim_kura_saville_2025
We give a denotational account of logical relations for call-by-push-value (CBPV) in the fibrational style of Hermida, Jacobs, Katsumata and others. Fibrations β which axiomatise the usual notion of sets-with-relations β provide a clean framework for constructing new, logical relations-style, models. Such models can then be used to study properties such as effect simulation.
Extending this picture to CBPV is challenging: the models incorporate both adjunctions and enrichment, making the appropriate notion of fibration unclear. We handle this using 2-category theory. We identify an appropriate 2-category, and define CBPV fibrations to be fibrations internal to this 2-category which strictly preserve the CBPV semantics.
Next, we develop the theory so it parallels the classical setting. We give versions of the codomain and subobject fibrations, and show that new models can be constructed from old ones by pullback. The resulting framework enables the construction of new, logical relations-style, models for CBPV.
Finally, we demonstrate the utility of our approach with particular examples. These include a generalisation of Katsumataβs -lifting to CBPV models, an effect simulation result, and a relative full completeness result for CBPV without sum types.
Classical Linear Logic in Perfect Banach Lattices amorim_witzman_kozen_2025
Formal P-Category Theory and Normalization by Evaluation in Rocq berry_fiore_2025
An axiomatics and a combinatorial model of creation/annihilation operators fiore-2025-an
Insights from Univalent Foundations: A Case Study Using Double Categories rasekh-2025-insights
2-Rig Extensions and the Splitting Principle baez-2024-2
Logical Structure on Inverse Functor Categories fiore-2024-logical
Stabilized profunctors and stable species of structures fiore-2024-stabilized
Univalent Double Categories vanderweide-2024-univalent
A Fibrational Theory of First Order Differential Structures capucci-2024-a
Contextads as Wreaths; Kleisli, Para, and Span Constructions as Wreath Products capucci-2024-contextads
Bicategorical type theory: semantics and syntax ahrens-2023-bicategorical
Introducing String Diagrams: The Art of Category Theory hinze-2023-introducing
What should a generic object be? sterling-2023-what
Convolution Products on Double Categories and Categorification of Rule Algebras behr-2023-convolution
A Formal Logic for Formal Category Theory new_licata_2023
Classifying topoi in synthetic guarded domain theory: the universal property of multi-clock guarded recursion palombi_sterling_2023
Strict universes for Grothendieck topoi gratzer-2022-strict
Parsing as a lifting problem and the Chomsky-SchΓΌtzenberger representation theorem mellis_zeilberger_2022
We begin by explaining how any context-free grammar encodes a functor of operads from a freely generated operad into a certain βoperad of spliced wordsβ. This motivates a more general notion of CFG over any category , defined as a finite species equipped with a color denoting the start symbol and a functor of operads into the operad of spliced arrows in . We show that many standard properties of CFGs can be formulated within this framework, and that usual closure properties of CF languages generalize to CF languages of arrows. We also discuss a dual fibrational perspective on the functor via the notion of βdisplayedβ operad, corresponding to a lax functor of operads .
We then turn to the Chomsky-SchΓΌtzenberger Representation Theorem. We describe how a non-deterministic finite state automaton can be seen as a category equipped with a pair of objects denoting initial and accepting states and a functor of categories satisfying the unique lifting of factorizations property and the finite fiber property. Then, we explain how to extend this notion of automaton to functors of operads, which generalize tree automata, allowing us to lift an automaton over a category to an automaton over its operad of spliced arrows. We show that every CFG over a category can be pulled back along a ND finite state automaton over the same category, and hence that CF languages are closed under intersection with regular languages. The last important ingredient is the identification of a left adjoint to the operad of spliced arrows functor, building the βcontour categoryβ of an operad. Using this, we generalize the C-S representation theorem, proving that any context-free language of arrows over a category is the functorial image of the intersection of a -chromatic tree contour language and a regular language.
Bicategories in univalent foundations ahrens-2021-bicategories
Magnitude homology of enriched categories and metric spaces leinster-2021-magnitude
Coherence for bicategorical cartesian closed structure fiore-2021-coherence
Schur Functors and Categorified Plethysm baez-2021-schur
The Sequent Calculus of Skew Monoidal Categories uustalu-2020-the
Proof Theory of Partially Normal Skew Monoidal Categories uustalu-2021-proof
Formalizing category theory in Agda hu-2021-formalizing
The Grothendieck Construction in Categorical Network Theory moeller-2021-the
Deductive Systems and Coherence for Skew Prounital Closed Categories uustalu-2021-deductive
Bifibrations of Polycategories and Classical Linear Logic blanco-2020-bifibrations
Eilenberg-Kelly Reloaded uustalu-2020-eilenberg
Coherence and normalisation-by-evaluation for bicategorical cartesian closed structure fiore_saville_2020
Monoidal Grothendieck construction moeller_vasilakopoulou_2020
Noncommutative network models moeller-2019-noncommutative
Coinduction in flow: the later modality in fibrations basold_2019
This paper provides a construction on fibrations that gives access to the so-called later modality, which allows for a controlled form of recursion in coinductive proofs and programs. The construction is essentially a generalisation of the topos of trees from the codomain fibration over sets to arbitrary fibrations. As a result, we obtain a framework that allows the addition of a recursion principle for coinduction to rather arbitrary logics and programming languages. The main interest of using recursion is that it allows one to write proofs and programs in a goal-oriented fashion. This enables easily understandable coinductive proofs and programs, and fosters automatic proof search.
Part of the framework are also various results that enable a wide range of applications: transportation of (co)limits, exponentials, fibred adjunctions and first-order connectives from the initial fibration to the one constructed through the framework. This means that the framework extends any first-order logic with the later modality. Moreover, we obtain soundness and completeness results, and can use up-to techniques as proof rules. Since the construction works for a wide variety of fibrations, we will be able to use the recursion offered by the later modality in various context. For instance, we will show how recursive proofs can be obtained for arbitrary (syntactic) first-order logics, for coinductive set-predicates, and for the probabilistic modal mu-calculus. Finally, we use the same construction to obtain a novel language for probabilistic productive coinductive programming. These examples demonstrate the flexibility of the framework and its accompanying results.
Network Models baez-2017-network
An Isbell duality theorem for type refinement systems mellies-2017-an
Category Theory in Coq 8.5 timany-2016-category
We report on our experience implementing category theory in Coq 8.5. Our work formalizes most of basic category theory, including concepts not covered by existing formalizations, in a library that is fit to be used as a general-purpose category-theoretical foundation.
Our development particularly takes advantage of two features new to Coq 8.5: primitive projections for records and universe polymorphism. Primitive projections allow for well-behaved dualities while universe polymorphism provides a relative notion of largeness and smallness. The latter is one of the main contributions of this paper. It pushes the limits of the new universe polymorphism and constraint inference algorithm of Coq 8.5.
In this paper we present in detail smallness and largeness in categories and the foundation they are built on top of. We furthermore explain how we have used the universe polymorphism of Coq 8.5 to represent smallness and largeness arguments by simply ignoring them and entrusting them to the universe inference algorithm of Coq 8.5. We also briefly discuss our experience throughout this implementation, discuss concepts formalized in this development and give a comparison with a few other developments of similar extent.
Univalent categories and the Rezk completion ahrens_etal_2015
Functors are type refinement systems mellies_zeilberger_2015
The standard reading of type theory through the lens of category theory is based on the idea of viewing a type system as a category of well-typed terms. We propose a basic revision of this reading: rather than interpreting type systems as categories, we describe them as functors from a category of typing derivations to a category of underlying terms. Then, turning this around, we explain how in fact any functor gives rise to a generalized type system, with an abstract notion of typing judgment, typing derivations and typing rules. This leads to a purely categorical reformulation of various natural classes of type systems as natural classes of functors.
The main purpose of this paper is to describe the general framework (which can also be seen as providing a categorical analysis of refinement types), and to present a few applications. As a larger case study, we revisit Reynoldsβ paper on βThe Meaning of Typesβ (2000), showing how the paperβs main results may be reconstructed along these lines.
Type refinement and monoidal closed bifibrations mellies_zeilberger_2013
Coherence for categorified operadic theories gould_2010
Framed bicategories and monoidal fibrations shulman_2008
In some bicategories, the 1-cells are βmorphismsβ between the 0-cells, such as functors between categories, but in others they are βobjectsβ over the 0-cells, such as bimodules, spans, distributors, or parametrized spectra. Many bicategorical notions do not work well in these cases, because the βmorphisms between 0-cellsβ, such as ring homomorphisms, are missing. We can include them by using a pseudo double category, but usually these morphisms also induce base change functors acting on the 1-cells. We avoid complicated coherence problems by describing base change βnonalgebraicallyβ, using categorical fibrations. The resulting βframed bicategoriesβ assemble into 2-categories, with attendant notions of equivalence, adjunction, and so on which are more appropriate for our examples than are the usual bicategorical ones.
We then describe two ways to construct framed bicategories. One is an analogue of rings and bimodules which starts from one framed bicategory and builds another. The other starts from a βmonoidal fibrationβ, meaning a parametrized family of monoidal categories, and produces an analogue of the framed bicategory of spans. Combining the two, we obtain a construction which includes both enriched and internal categories as special cases.
Sketches of an Elephant: A Topos Theory Compendium johnstone-2002
Categorical Logic and Type Theory jacobs-1999
This book is an attempt to give a systematic presentation of both logic and type theory from a categorical perspective, using the unifying concept of fibred category. Its intended audience consists of logicians, type theorists, category theorists and (theoretical) computer scientists.