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 𝑛+1 factors through 𝑛→𝑛+1, so on πœ” β€” in the topos of trees β€” later is just the shift

βŠ³π‘ƒ(0)β‰…βŠ€,βŠ³π‘ƒ(𝑛+1)≅𝑃(𝑛),

and a LΓΆb step is a base value together with a rule producing the value at 𝑛+1 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 AlgStr(𝐹) over π’žοΈ€.

Over an object π‘₯, a displayed object of AlgStr(𝐹) is a structure map

π›Όβˆˆπ’žοΈ€(𝐹π‘₯,π‘₯).

Over 𝑓:π‘₯→𝑦, a displayed morphism from 𝛼 to 𝛽 is the proposition that 𝑓 is an algebra homomorphism:

𝛼⋆𝑓=𝐹𝑓⋆𝛽.

The total category Alg(𝐹)=∫AlgStr(𝐹) 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 π’žοΈ€op. Everything about its coalgebras is then inherited from the Eilenberg–Moore construction, instantiated at the opposite category β€” nothing is defined twice.

Algebras of π‘Š over π’žοΈ€op are coalgebras π›Ύβˆˆπ’žοΈ€(π‘₯,π‘Šπ‘₯) of the underlying endofunctor, and the monad algebra laws, read in π’žοΈ€op, 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:

coEM(π‘Š)=(EM(π‘Š))op.

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

CoalgStr(𝐹)=AlgStr(𝐹op),

a displayed category over π’žοΈ€op, where 𝐹op:π’žοΈ€opβ†’π’žοΈ€op 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:

Coalg(𝐹)=(∫CoalgStr(𝐹))op.

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,

𝐾:π’ŸοΈ€β†’EM(𝑇),

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

deg:π’žοΈ€β†’(𝐷,≀)

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 degπ‘₯≀deg𝑦.

A direct structure equips the objects with a well-founded strict relation

π‘₯β‰Ίπ‘¦βŸΊdegπ‘₯<deg𝑦.

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 AlgStr(𝑇) of the underlying endofunctor.

The second layer, EMStr(𝑇), is displayed over the total category Alg(𝑇). 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:

EM(𝑇)=∫EMStr(𝑇).

Definition. Initial algebra initial-algebra

Fix an endofunctor 𝐹:π’žοΈ€β†’π’žοΈ€. An initial 𝐹-algebra, written πœ‡πΉ, is an initial object of the category of algebras Alg(𝐹).

Unfolding the universal property: an initial algebra is an algebra (πœ‡πΉ,in) such that every algebra (π‘₯,𝛼) admits a unique morphism fold𝛼:πœ‡πΉβ†’π‘₯ satisfying

in⋆(fold𝛼)=𝐹(fold𝛼)⋆𝛼.

Definition. Later on families later-family

Conjugation with the adjunction between presheaves and families π‘ˆβŠ£Cofree lets us induce a later construction on families from the one on presheaves,

⊳Fam=π‘ˆβˆ˜βŠ³βˆ˜Cofree:Fam(π’žοΈ€)β†’Fam(π’žοΈ€).

Concretely, later on families evaluates to

⊳Fam𝐴(π‘₯)β‰…βˆπ‘¦β‰Ίπ‘₯Β βˆπ‘“:𝑦→π‘₯𝐴(𝑦)

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

πœ‘π‘₯:⊳Fam𝐴(π‘₯)→𝐴(π‘₯)for each π‘₯,

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

𝐾:π’ŸοΈ€β†’EM(𝑇)

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 π’ŸοΈ€β†’coEM(π‘Š) 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 Fam(π’žοΈ€): a morphism 𝐴→𝐡 is a function 𝐴(π‘₯)→𝐡(π‘₯) for each π‘₯.

Forgetting the restriction maps of a presheaf gives a functor

π‘ˆ:π–―π—Œπ—π’žοΈ€β†’Fam(π’žοΈ€).

It has both a left and a right adjoint,

FreeβŠ£π‘ˆβŠ£Cofree.

The two adjoints demonstrate different means of forcing a family to be functorial. The right adjoint universally quantifies over morphisms in,

Cofree(𝐴)(π‘₯)=βˆπ‘¦π’žοΈ€(𝑦,π‘₯)→𝐴(𝑦),

with restriction along 𝑓 given by precomposition. The left adjoint instead existentially quantifiers over morphisms out:

Free(𝐴)(π‘₯)=βˆ‘π‘¦π’žοΈ€(π‘₯,𝑦)×𝐴(𝑦),

with restriction acting on the first component. (For Free we ask that π’žοΈ€ have a set of objects, so that this sum is a set and thus Free defines a presheaf.)

Theorem. Presheaves are monadic and comonadic over families presheaves-monadic-comonadic-over-families

The adjoint triple FreeβŠ£π‘ˆβŠ£Cofree induces a monad 𝑇=π‘ˆβˆ˜Free and a comonad π‘Š=π‘ˆβˆ˜Cofree on Fam(π’žοΈ€).

Both comparison functors are equivalences: presheaves are the Eilenberg–Moore algebras of 𝑇 and the co-Eilenberg–Moore coalgebras of π‘Š,

π–―π—Œπ—π’žοΈ€β‰ƒEM(𝑇)π–―π—Œπ—π’žοΈ€β‰ƒcoEM(π‘Š).

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:

π‘†βˆ‹π‘“β‡’π‘†βˆ‹π‘”β‹†π‘“for every 𝑔:𝑧→𝑦.

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 Coalg(𝐹) β€” equivalently, an initial algebra for 𝐹op.

Unfolding the universal property: a terminal coalgebra is a coalgebra (𝜈𝐹,out) such that every coalgebra (π‘₯,𝛾) admits a unique morphism unfold𝛾:π‘₯β†’πœˆπΉ satisfying

(unfold𝛾)⋆out=𝛾⋆𝐹(unfold𝛾).

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

  1. A type of objects π’žοΈ€0
  2. For each pair of objects π‘₯,𝑦:π’žοΈ€0 a set of morphisms π’žοΈ€(π‘₯,𝑦). We may simply write a morphism with an arrow, denote 𝑓:π’žοΈ€(π‘₯,𝑦) as 𝑓:π‘₯→𝑦 or π‘₯→𝑓𝑦 or similar
  3. A composition operation on morphisms. For 𝑓:π‘₯→𝑦 and 𝑔:𝑦→𝑧, there is a morphism 𝑓⋆𝑔:π‘₯→𝑧
  4. For each π‘₯:π’žοΈ€0, an identity morphism 𝗂𝖽π‘₯:π‘₯β†’π‘₯
  5. Left-unitality of composition: for all 𝑓:π‘₯→𝑦, an equality

    𝗂𝖽𝖫𝑓:𝗂𝖽π‘₯⋆𝑓=𝑓
  6. Right-unitality of composition: for all 𝑓:π‘₯→𝑦, an equality

    𝗂𝖽𝖱𝑓:𝑓⋆𝗂𝖽𝑦=𝑓
  7. 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

  1. A type of objects 𝒦︀0, or 0-cells
  2. For all π‘₯,𝑦:𝒦︀0, a category 𝒦︀1(π‘₯,𝑦). 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 𝑓⇒𝛼𝑔
  3. For each π‘₯:𝒦︀0, an identity 1-cell 1π‘₯:𝒦︀(π‘₯,π‘₯)
  4. For all π‘₯,𝑦,𝑧:𝒦︀0, a composition functor 𝒦︀⋆π‘₯,𝑦,𝑧:𝒦︀(π‘₯,𝑦)×𝒦︀(𝑦,𝑧)→𝒦︀(π‘₯,𝑧). For 1-cells 𝑓:π‘₯→𝑦 and 𝑔:𝑦→𝑧, write their composite as 𝑓⋆𝑔:π‘₯→𝑧
  5. For all 𝑀,π‘₯,𝑦,𝑧:𝒦︀0, a natural isomorphism, the associator 𝛼 between the two composite functors 𝒦︀(𝑀,π‘₯)×𝒦︀(π‘₯,𝑦)×𝒦︀(𝑦,𝑧)→𝒦︀(𝑀,𝑧) that compose the leftmost, respectively rightmost, pair first:

    𝒦︀⋆𝑀,𝑦,π‘§βˆ˜(𝒦︀⋆𝑀,π‘₯,𝑦×id)⇒𝒦︀⋆𝑀,π‘₯,π‘§βˆ˜(id×𝒦︀⋆π‘₯,𝑦,𝑧)

    Its component at 1-cells 𝑓,𝑔,β„Ž is the invertible 2-cell

    𝛼𝑓,𝑔,β„Ž:(𝑓⋆𝑔)β‹†β„Žβ‡’π‘“β‹†(π‘”β‹†β„Ž)
  6. For all π‘₯,𝑦:𝒦︀0, natural isomorphisms, the left unitor πœ† and right unitor 𝜌, each between an endofunctor of 𝒦︀(π‘₯,𝑦) and the identity functor:

    𝒦︀⋆π‘₯,π‘₯,π‘¦βˆ˜βŸ¨1π‘₯,idβŸ©β‡’id𝒦︀⋆π‘₯,𝑦,π‘¦βˆ˜βŸ¨id,1π‘¦βŸ©β‡’id

    where 1π‘₯ and 1𝑦 in the pairings βŸ¨βˆ’,βˆ’βŸ© denote the constant functors at the identity 1-cells. The components at a 1-cell 𝑓:𝒦︀(π‘₯,𝑦) are the invertible 2-cells

    πœ†π‘“:1π‘₯β‹†π‘“β‡’π‘“πœŒπ‘“:𝑓⋆1𝑦⇒𝑓
  7. such that for all 𝑓:𝒦︀(π‘₯,𝑦) and 𝑔:𝒦︀(𝑦,𝑧) the triangle below commutes in 𝒦︀(π‘₯,𝑧):

  8. 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 1π‘₯, 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

  1. a 0-cell π‘₯, the object the monad acts on;
  2. an endo-1-cell 𝑑:𝒦︀(π‘₯,π‘₯);
  3. a multiplication 2-cell πœ‡:𝑑⋆𝑑⇒𝑑;
  4. a unit 2-cell πœ‚:1π‘₯⇒𝑑;
  5. such that πœ‡ is associative: the following diagram of 2-cells commutes in 𝒦︀(π‘₯,π‘₯), where the top map is the associator that rebrackets the threefold composite:

  6. 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 𝑓1:𝑏→𝑐, 𝑓2:𝑏→𝑑 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 πœ‹1. Correspondingly, the second part of this pair is πœ‹2. 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,

[0]≔βŠ₯
[π—Œπ—Žπ–Ό(𝑛)]β‰”βŠ€βŠ•[𝑛]

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: Id∘𝐹 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 𝐹op-coalgebra in π’žοΈ€op.

Example. If (𝜈𝐹,π—ˆπ—Žπ—) is a terminal coalgebra, then π—ˆπ—Žπ— is invertible and π—ˆπ—Žπ—βˆ’1:𝐹(𝜈𝐹)β†’πœˆπΉ is a corecursive algebra: a solution of β„Ž=π›Ύβ‹†πΉβ„Žβ‹†π—ˆπ—Žπ—βˆ’1 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 βŠ—Day,

π΄βŠ—Dayβˆ’βŠ£π΄βŠΈDayβˆ’.

Proof. Proof that Day Convolution is Closed day-closed-structure-proof

For 𝑋,𝐡:π’žοΈ€op→𝒱︀, the enriched hom in [π’žοΈ€op,𝒱︀] is given by the end:

βˆ«π‘((π΄βŠ—Day𝑋)π‘βŠΈπ’±οΈ€π΅π‘)β‰…βˆ«π‘((βˆ«π‘’,π‘£π’žοΈ€(𝑐,π‘’βŠ—π’žοΈ€π‘£)βŠ—π’±οΈ€π΄π‘’βŠ—π’±οΈ€π‘‹π‘£)βŠΈπ’±οΈ€π΅π‘)β‰…βˆ«π‘βˆ«π‘’,𝑣((π’žοΈ€(𝑐,π‘’βŠ—π’žοΈ€π‘£)βŠ—π’±οΈ€π΄π‘’βŠ—π’±οΈ€π‘‹π‘£)βŠΈπ’±οΈ€π΅π‘)β‰…βˆ«π‘’,𝑣((π΄π‘’βŠ—π’±οΈ€π‘‹π‘£)βŠΈπ’±οΈ€βˆ«π‘(π’žοΈ€(𝑐,π‘’βŠ—π’žοΈ€π‘£)βŠΈπ’±οΈ€π΅π‘))β‰…βˆ«π‘’,𝑣((π΄π‘’βŠ—π’±οΈ€π‘‹π‘£)βŠΈπ’±οΈ€π΅(π‘’βŠ—π’žοΈ€π‘£))β‰…βˆ«π‘£(π‘‹π‘£βŠΈπ’±οΈ€βˆ«π‘’(π΄π‘’βŠΈπ’±οΈ€π΅(π‘’βŠ—π’žοΈ€π‘£)))β‰…βˆ«π‘£(π‘‹π‘£βŠΈπ’±οΈ€(𝐴⊸𝐡)𝑣).

∎

Symmetrically, (𝐡⟜𝐴)𝑐=βˆ«π‘£π΄π‘£βŠΈπ’±οΈ€π΅(π‘βŠ—π’žοΈ€π‘£) and βˆ’βŠ—Dayπ΄βŠ£βˆ’βŸœπ΄, so the enriched presheaf category [π’žοΈ€op,𝒱︀] 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 𝐴,𝐡:π’žοΈ€op→𝒱︀ is the enriched presheaf

(π΄βŠ—Day𝐡)𝑐=βˆ«π‘’,π‘£π’žοΈ€(𝑐,π‘’βŠ—π’žοΈ€π‘£)βŠ—π’±οΈ€π΄π‘’βŠ—π’±οΈ€π΅π‘£,

with unit the representable π’žοΈ€(βˆ’,𝐼).

Day convolution makes the enriched presheaf category [π’žοΈ€op,𝒱︀] a monoidal category, symmetric when π’žοΈ€ is [1]. It is moreover closed.

Under the enriched Yoneda embedding the convolution of representables is representable, π’žοΈ€(βˆ’,π‘₯)βŠ—Dayπ’žοΈ€(βˆ’,𝑦)β‰…π’žοΈ€(βˆ’,π‘₯βŠ—π’žοΈ€π‘¦), so Day convolution is the cocontinuous extension of the tensor of π’žοΈ€.

As a Kan Extension

Equivalently, π΄βŠ—Day𝐡 is the left Kan extension of (𝑒,𝑣)β†¦π΄π‘’βŠ—π’±οΈ€π΅π‘£ along βŠ—π’žοΈ€op:π’žοΈ€opΓ—π’žοΈ€opβ†’π’žοΈ€op.

In π’πžπ­

When 𝒱︀=π’πžπ­, we recover the ordinary Day convolution of presheaves 𝐴,𝐡:π’žοΈ€opβ†’π’πžπ­, where the formula simplifies to:

(π΄βŠ—Day𝐡)𝑐=βˆ«π‘’,π‘£π’žοΈ€[𝑐,π‘’βŠ—π’žοΈ€π‘£]×𝐴𝑒×𝐡𝑣.

Definition. The Quotient and its Right Adjoint in Day Convolution day-quotient

Let 𝐢 be a small monoidal category. Recall that for presheaves 𝐴,𝐡:𝐢opβ†’π’πžπ­, the Day convolution provides a closed monoidal structure:

(π΄βŠ—π΅)(𝑐)=βˆ«π‘’,𝑣𝐢[𝑐,π‘’βŠ—π‘£]×𝐴(𝑒)×𝐡(𝑣)
(𝐴⊸𝐡)(𝑐)=βˆ«π‘’π΄(𝑒)→𝐡(π‘’βŠ—π‘)

which forms an adjunction π΄βŠ—βˆ’βŠ£π΄βŠΈβˆ’.

For covariant functors 𝐴:πΆβ†’π’πžπ­ and presheaves 𝐡:𝐢opβ†’π’πžπ­, 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 𝐺≅𝐺op.

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 𝐺→𝐢op and 𝐺→𝐢:

π—†π—„π–―π—Œπ—(𝐹)(𝑐)=βˆ«π‘ βˆˆπΊπΆ[𝑐,𝑠]×𝐹(𝑠)
π—†π—„π–’π—ˆπ—‰π—Œπ—(𝐹)(𝑐)=βˆ«π‘ βˆˆπΊπΆ[𝑠,𝑐]×𝐹(𝑠)

By substituting these extensions into the definitions of the residual and the quotient, we obtain a general coincidence for any 𝐹:πΊβ†’π’πžπ­ and 𝐡:𝐢opβ†’π’πžπ­:

π—†π—„π–―π—Œπ—(𝐹)βŠΈπ΅β‰…π·π—†π—„π–’π—ˆπ—‰π—Œπ—(𝐹)𝐡

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

Fix an endofunctor 𝐹:π’žοΈ€β†’π’žοΈ€, a coalgebra 𝛾:𝑋→𝐹𝑋 and an algebra 𝛼:𝐹𝐡→𝐡. A hylomorphism (or coalgebra-to-algebra morphism) from 𝛾 to 𝛼 is a morphism β„Ž:𝑋→𝐡 satisfying

β„Ž=π›Ύβ‹†πΉβ„Žβ‹†π›Ό.

Definition. The hylomorphism profunctor hylomorphism-profunctor

Fix an endofunctor 𝐹:π’žοΈ€β†’π’žοΈ€. Hylomorphisms form a profunctor from coalgebras to algebras,

π–§π—’π—…π—ˆ:π–’π—ˆπ–Ίπ—…π—€(𝐹)op×𝖠𝗅𝗀(𝐹)β†’π’πžπ­,

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, π–§π—’π—…π—ˆ(π—‚π—‡βˆ’1,βˆ’)≅𝖠𝗅𝗀(𝐹)(𝗂𝗇,βˆ’), and dually π–§π—’π—…π—ˆ(βˆ’,π—ˆπ—Žπ—βˆ’1)β‰…π–’π—ˆπ–Ίπ—…π—€(𝐹)(βˆ’,π—ˆπ—Žπ—) 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

  1. a map on 0-cells, π‘₯↦𝐹π‘₯;
  2. for all π‘₯,𝑦, a functor 𝐹π‘₯,𝑦:ℬ︀(π‘₯,𝑦)β†’π’žοΈ€(𝐹π‘₯,𝐹𝑦), acting on 1-cells and 2-cells;
  3. a unit comparison, natural 2-cells 𝐹π‘₯0:1𝐹π‘₯⇒𝐹(1π‘₯);
  4. a composition comparison, 2-cells 𝐹𝑓,𝑔2:𝐹𝑓⋆𝐹𝑔⇒𝐹(𝑓⋆𝑔) natural in 𝑓 and 𝑔;
  5. such that three coherence laws hold, one for each structure cell of ℬ︀:

    • left unit: (𝐹0▷𝐹𝑓)⋆𝐹1,𝑓2⋆𝐹(πœ†π‘“)=πœ†πΉπ‘“;
    • right unit: (𝐹𝑓◁𝐹0)⋆𝐹𝑓,12⋆𝐹(πœŒπ‘“)=πœŒπΉπ‘“;
    • associativity: (𝐹𝑓,𝑔2β–·πΉβ„Ž)⋆𝐹𝑓⋆𝑔,β„Ž2⋆𝐹(𝛼𝑓,𝑔,β„Ž)=𝛼𝐹𝑓,𝐹𝑔,πΉβ„Žβ‹†(𝐹𝑓◁𝐹𝑔,β„Ž2)⋆𝐹𝑓,π‘”β‹†β„Ž2.

Here ⋆ between 2-cells is vertical composition, and πœƒβ–·β„Ž and β„Žβ—πœƒ are whiskerings.

Lax functors compose: (𝐺∘𝐹)0=𝐺0⋆𝐺(𝐹0) and (𝐺∘𝐹)𝑓,𝑔2=𝐺𝐹𝑓,𝐹𝑔2⋆𝐺(𝐹𝑓,𝑔2). The coherence laws of the composite follow from those of 𝐹 and 𝐺 and naturality of 𝐺2, 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

  1. for each 0-cell π‘₯, a 1-cell 𝜎π‘₯:𝐹π‘₯→𝐺π‘₯;
  2. for each 1-cell 𝑓:π‘₯→𝑦, a 2-cell filling the naturality square,

    πœŽπ‘“:πΉπ‘“β‹†πœŽπ‘¦β‡’πœŽπ‘₯⋆𝐺𝑓;
  3. such that πœŽπ‘“ is natural in 𝑓: for a 2-cell πœƒ:𝑓⇒𝑔, (πΉπœƒβ–·πœŽπ‘¦)β‹†πœŽπ‘”=πœŽπ‘“β‹†(𝜎π‘₯β—πΊπœƒ);
  4. and such that 𝜎 respects the comparison cells of 𝐹 and 𝐺: one law relating 𝜎1π‘₯ to 𝐹0, 𝐺0 and the unitors, and one relating πœŽπ‘“β‹†π‘” to πœŽπ‘“, πœŽπ‘”, 𝐹2, 𝐺2 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 π’žοΈ€op→𝖒𝖠𝖳, and its Grothendieck construction is a displayed category over π’žοΈ€.

Definition. Monoidal Category monoidal-category

A monoidal category is a category π’žοΈ€ together with

  1. a functor βŠ—:π’žοΈ€Γ—π’žοΈ€β†’π’žοΈ€, the tensor product;
  2. an object 𝐼 of π’žοΈ€, the unit;
  3. 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 𝐢=𝕀op, 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 ℬ︀op of a bicategory ℬ︀ has the same 0-cells and reverses the 1-cells but not the 2-cells:

ℬ︀op(π‘₯,𝑦)=ℬ︀(𝑦,π‘₯).

Composition swaps its arguments, 𝑓⋆op𝑔=𝑔⋆𝑓. The left unitor of ℬ︀op is the right unitor of ℬ︀ and vice versa, and the associator of ℬ︀op 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 ℬ︀opβ†’π’žοΈ€op with the same action on cells. Reversing the 2-cells instead gives the bicategory ℬ︀co, whose hom-categories are the opposites (ℬ︀(π‘₯,𝑦))op.

Duality saves work: a coherence lemma about ℬ︀ can often be obtained by instantiating a companion lemma at ℬ︀op, which swaps left and right.

Definition. Pseudofunctor pseudofunctor

A pseudofunctor 𝐹:β„¬οΈ€β†’π’žοΈ€ is a lax functor whose unit and composition comparisons

𝐹π‘₯0:1𝐹π‘₯⇒𝐹(1π‘₯)𝐹𝑓,𝑔2:𝐹𝑓⋆𝐹𝑔⇒𝐹(𝑓⋆𝑔)

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 ℬ︀op→𝖒𝖠𝖳. When ℬ︀ is locally discrete on a category π’žοΈ€, these are the pseudofunctors π’žοΈ€op→𝖒𝖠𝖳 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 π—‚π—‡βˆ’1:πœ‡πΉβ†’πΉ(πœ‡πΉ) is a recursive coalgebra. Precomposing with the isomorphism 𝗂𝗇, the equation β„Ž=π—‚π—‡βˆ’1β‹†πΉβ„Žβ‹†π›Ό 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 𝕀opβ†’π’πžπ­.

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

In 1997, Hofmann and Streicher introduced an explicit construction to lift a Grothendieck universe from the category of sets into the category of set-valued presheaves on a small category. More recently, Awodey presented an elegant functorial analysis of this construction in terms of the categorical nerve, the right adjoint to the functor that takes a presheaf to its category of elements; in particular, the categorical nerve’s functorial action on the universal small discrete fibration gives the generic family of the universe’s Hofmann-Streicher lifting. Inspired by Awodey’s analysis, we define a relative version of Hofmann-Streicher lifting in terms of the right pseudo-adjoint to the 2-functor given by postcomposition with a fibration. Finally, we construct a new 2-bifibration of fibrations in which the opcartesian and cartesian lifts arise from these pseudo-adjunctions.
DOI Β· arXiv

Univalent Enriched Categories and the Enriched Rezk Completion vanderweide-2026-univalent

Enriched categories are categories whose sets of morphisms are enriched with extra structure. Such categories play a prominent role in the study of higher categories, homotopy theory, and the semantics of programming languages. In this paper, we study univalent enriched categories. We prove that all essentially surjective and fully faithful functors between univalent enriched categories are equivalences, and we show that every enriched category admits a Rezk completion. Finally, we use the Rezk completion for enriched categories to construct univalent enriched Kleisli categories.
DOI

Doubly Weak Double Categories fairbanks-2026-doubly

We propose a definition of double categories whose composition of 1-cells is weak in both directions. Namely, a doubly weak double category is a double computadβ€”a structure with 2-cells of all possible double-categorical shapesβ€”equipped with all possible composition operations, coherently. We also characterize them using β€œimplicit” double categories, which are double computads having all possible compositions of 2-cells, but no compositions of 1-cells; doubly weak double categories are then obtained by a simple representability criterion. Finally, they can also be defined by adding a β€œtidiness” condition to the double bicategories of Verity, or to the cubical bicategories of Garner.
DOI Β· arXiv

From Semantics to Syntax: A Type Theory for Comprehension Categories najmaei-2026-from

Recent models of intensional type theory have been constructed in algebraic weak factorization systems (AWFSs). AWFSs give rise to comprehension categories that feature non-trivial morphisms between types; these morphisms are not used in the standard interpretation of Martin-LΓΆf type theory in comprehension categories. We develop a type theory that internalizes morphisms between types, reflecting this semantic feature back into syntax. Our type theory comes with Ξ -, Ξ£-, and identity types. We discuss how it can be viewed as an extension of Martin-LΓΆf type theory with coercive subtyping, as sketched by Coraglia and Emmenegger. We furthermore define semantic structure that interprets our type theory and prove a soundness result. Finally, we exhibit many examples of the semantic structure, yielding a plethora of interpretations.
PDF Β· DOI Β· arXiv Β· pldb

2-dimensional Lawvere theories, commutativity, and higher Day convolution perutka_2026

Web Β· arXiv

Day algebras robinson_wrigley_2026

In this paper we show that the Day monoidal product generalises in a straightforward way to other algebraic constructions and partial algebraic constructions on categories. This generalisation was motivated by its applications in logic, for example in hybrid and separation logic. We use the description of the Day monoidal product using profunctors to show that the definition generalises to an extension of an arbitrary algebraic structure on a category to a pseudo-algebraic structure on a functor category. We provide two further extensions. First we consider the case where some of the operations on the category are partial, and second we show that the resulting operations on the functor category have adjoints (they are residuated).
DOI Β· arXiv

The Rezk Completion for Elementary Topoi wullaert-2026-the

The development of category theory in univalent foundations and the formalization thereof is an active field of research. Categories in that setting are often assumed to be univalent which means that identities and isomorphisms of objects coincide. One consequence hereof is that equivalences and identities coincide for univalent categories and that structure on univalent categories transfers along equivalences. However, constructions such as the Kleisli category, the Karoubi envelope, and the tripos-to-topos construction, do not necessarily give univalent categories. To deal with that problem, one uses the Rezk completion, which completes a category into a univalent one. However, to use the Rezk completion when considering categories with structure, one also needs to show that the Rezk completion inherits the structure from the original category. In this work, we present a modular framework for lifting the Rezk completion from categories to categories with structure. We demonstrate the modularity of our framework by lifting the Rezk completion from categories to elementary topoi in manageable steps.
DOI

The free bifibration on a functor clarke-2025-the

We consider the problem of constructing the free bifibration generated by a functor of categories 𝑝:𝐷→𝐢. This problem was previously considered by Lamarche, and is closely related to the problem, considered by Dawson, ParΓ©, and Pronk, of β€œfreely adjoining adjoints” to a category. We develop a proof-theoretic approach to the problem, beginning with a construction of the free bifibration Λ𝑝:𝐡𝑖𝑓𝑖𝑏(𝑝)→𝐢 in which objects of 𝐡𝑖𝑓𝑖𝑏(𝑝) are formulas of a primitive β€œbifibrational logic”, and arrows are derivations in a cut-free sequent calculus modulo a notion of permutation equivalence. We show that instantiating the construction to the identity functor generates a _zigzag double category_ β„€(𝐢), which is also the free double category with companions and conjoints (or fibrant double category) on 𝐢. The approach adapts smoothly to the more general task of building (𝑃,𝑁)-fibrations, where one only asks for pushforwards along arrows in 𝑃 and pullbacks along arrows in 𝑁 for some subsets of arrows; this encompasses Kock and Joyal’s notion of _ambifibration_ when (𝑃,𝑁) form a factorization system. We establish a series of progressively stronger normal forms, guided by ideas of _focusing_ from proof theory, and obtain a canonicity result under assumption that the base category is factorization preordered relative to 𝑃 and 𝑁. This canonicity result allows us to decide the word problem and to enumerate relative homsets without duplicates. Finally, we describe several examples of a combinatorial nature, including a category of plane trees generated as a free bifibration over πœ”, and a category of increasing forests generated as a free ambifibration over Ξ”, which contains the lattices of noncrossing partitions as quotients of its fibers by the Beck-Chevalley condition for bicartesian squares.
arXiv

Double Orthogonal Factorization Systems aberle-2025-double

We define strict and lax orthogonal factorization systems on double categories. These consist of an orthogonal factorization system on arrows and one on double cells that are compatible with each other. Our definitions are motivated by several explicit examples, including factorization systems on double categories of spans, relations and bimodules. We then prove monadicity results for orthogonal factorization systems on double categories in order to justify our definitions. For fibrant double categories we discuss the structure of the double orthogonal factorization systems that have a given orthogonal factorization system on the arrows in common. Finally, we study the interaction of orthogonal factorization systems on double categories with double fibrations.
arXiv

Hofmann-Streicher lifting of fibred categories slattery-2025-hofmann

DOI Β· arXiv

The internal languages of univalent categories vanderweide-2025-the

DOI Β· arXiv

The categorical contours of the Chomsky-SchΓΌtzenberger representation theorem mellies-2025-the

We develop fibrational perspectives on context-free grammars and on nondeterministic finite-state automata over categories and operads. A generalized CFG is a functor from a free colored operad (aka multicategory) generated by a pointed finite species into an arbitrary base operad: this encompasses classical CFGs by taking the base to be a certain operad constructed from a free monoid, as an instance of a more general construction of an operad of spliced arrows π’²οΈ€π’žοΈ€ for any category π’žοΈ€. A generalized NFA is a functor from an arbitrary bipointed category or pointed operad satisfying the unique lifting of factorizations and finite fiber properties: this encompasses classical word automata and tree automata without πœ–-transitions, but also automata over non-free categories and operads. We show that generalized context-free and regular languages satisfy suitable generalizations of many of the usual closure properties, and in particular we give a simple conceptual proof that context-free languages are closed under intersection with regular languages. Finally, we observe that the splicing functor 𝒲︀:Catβ†’Oper admits a left adjoint π’žοΈ€:Operβ†’Cat, which we call the contour category construction since the arrows of π’žοΈ€π’ͺοΈ€ have a geometric interpretation as oriented contours of operations of π’ͺοΈ€. A direct consequence of the contour / splicing adjunction is that every pointed finite species induces a universal CFG generating a language of tree contour words. This leads us to a generalization of the Chomsky-SchΓΌtzenberger Representation Theorem, establishing that a subset of a homset πΏβŠ†π’žοΈ€(𝐴,𝐡) is a CFL of arrows if and only if it is a functorial image of the intersection of a π’žοΈ€-chromatic tree contour language with a regular language.
DOI Β· arXiv

The Formal Theory of Monads, Univalently vanderweide-2025-thex

We develop the formal theory of monads, as established by Street, in univalent foundations. This allows us to formally reason about various kinds of monads on the right level of abstraction. In particular, we define the bicategory of monads internal to a bicategory, and prove that it is univalent. We also define Eilenberg-Moore objects, and we show that both Eilenberg-Moore categories and Kleisli categories give rise to Eilenberg-Moore objects. Finally, we relate monads and adjunctions in arbitrary bicategories. Our work is formalized in Coq using the UniMath library.
DOI

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.

Web Β· arXiv

Classical Linear Logic in Perfect Banach Lattices amorim_witzman_kozen_2025

In recent years, researchers have proposed various models of linear logic with strong connections to measure theory, with probabilistic coherence spaces (PCoh) being one of the most prominent. One of the main limitations of the PCoh model is that it cannot interpret continuous measures. To overcome this obstacle, Ehrhard has extended PCoh to a category of positive cones and linear Scott-continuous functions and shown that it is a model of intuitionistic linear logic. In this work we show that the category PBanLat₁ of perfect Banach lattices and positive linear functions of norm at most 1 can serve the same purpose, with some added benefits. We show that PBanLat₁ is a model of classical linear logic (without exponential) and that PCoh embeds fully and faithfully in PBanLat₁ while preserving the monoidal and *-autonomous structures. Finally, we show how PBanLat₁ can be used to give semantics to a higher-order probabilistic programming language.
DOI

Formal P-Category Theory and Normalization by Evaluation in Rocq berry_fiore_2025

Traditional category theory is typically based on set-theoretic principles and ideas, which are often non-constructive. An alternative approach to formalizing category theory is to use E-category theory, where hom sets become setoids. Our work reconsiders a third approach - P-category theory - from ČubriΔ‡ et al. (1998) emphasizing a computational standpoint. We formalize in Rocq a modest library of P-category theory - where homs become subsetoids - and apply it to formalizing algorithms for normalization by evaluation which are purely categorical but, surprisingly, do not use neutral and normal terms. ČubriΔ‡ et al. (1998) establish only a soundness correctness property by categorical means; here, we extend their work by providing a categorical proof also for a strong completeness property. For this we formalize the full universal property of the free Cartesian-closed category, which is not known to have been performed before. We further formalize a novel universal property of unquotiented simply typed lambda-calculus syntax and apply this to a proof of correctness of a categorical normalization by evaluation algorithm. We pair the overall mathematical development with a formalization in the Rocq proof assistant, following the principle that the formalization exists for practical computation. Indeed, it permits extraction of synthesized normalization programs that compute (long) beta-eta-normal forms of simply typed lambda-terms together with a derivation of beta-eta-conversion.
DOI

An axiomatics and a combinatorial model of creation/annihilation operators fiore-2025-an

A categorical axiomatic theory of creation/annihilation operators on symmetric Fock space is introduced, and the combinatorial model that motivated it is presented. Commutation relations and coherent states are considered in both frameworks.
DOI

Insights from Univalent Foundations: A Case Study Using Double Categories rasekh-2025-insights

Category theory unifies mathematical concepts, aiding comparisons across structures by incorporating not just objects, but also morphisms capturing interactions between objects. Of particular importance in some applications are double categories, which are categories with two classes of morphisms, axiomatizing two different kinds of interactions between objects. These have found applications in many areas of mathematics and theoretical computer science, for instance, the study of lenses, open systems, and rewriting. However, double categories come with a wide variety of equivalences, which makes it challenging to transport structure along equivalences. To deal with this challenge, we propose the univalence maxim: each notion of equivalence of categorical structures has a corresponding notion of univalent categorical structure which induces that notion of equivalence. We also prove corresponding univalence principles, which allow us to transport structure and properties along equivalences. In this way, the usually informal practice of reasoning modulo equivalence becomes grounded in an entirely formal logical principle. We apply this perspective to various double categorical structures, such as (pseudo) double categories and double bicategories. Concretely, we characterize and formalize their definitions in Coq UniMath up to chosen equivalences, which we achieve by establishing their univalence principles.
DOI

2-Rig Extensions and the Splitting Principle baez-2024-2

Classically, the splitting principle says how to pull back a vector bundle in such a way that it splits into line bundles and the pullback map induces an injection on 𝐾-theory. Here we categorify the splitting principle and generalize it to the context of 2-rigs. A 2-rig is a kind of categorified β€œring without negatives”, such as a category of vector bundles with βŠ• as addition and βŠ— as multiplication. Technically, we define a 2-rig to be a Cauchy complete π‘˜-linear symmetric monoidal category where π‘˜ has characteristic zero. We conjecture that for any suitably finite-dimensional object π‘Ÿ of a 2-rig 𝖱, there is a 2-rig map 𝐸:𝖱→𝖱′ such that 𝐸(π‘Ÿ) splits as a direct sum of finitely many β€œsubline objects” and 𝐸 has various good properties: it is faithful, conservative, essentially injective, and the induced map of Grothendieck rings 𝐾(𝐸):𝐾(𝖱)→𝐾(𝖱′) is injective. We prove this conjecture for the free 2-rig on one object, namely the category of Schur functors, whose Grothendieck ring is the free πœ†-ring on one generator, also known as the ring of symmetric functions. We use this task as an excuse to develop the representation theory of affine categories - that is, categories enriched in affine schemes - using the theory of 2-rigs.
arXiv

Logical Structure on Inverse Functor Categories fiore-2024-logical

Inspired by recent work on the categorical semantics of dependent type theories, we investigate the following question: When is logical structure (crucially, dependent-product and subobject-classifier structure) induced from a category to categories of diagrams in it? Our work offers several answers, providing a variety of conditions on both the category itself and the indexing category of diagrams. Additionally, motivated by homotopical considerations, we investigate the case when the indexing category is equipped with a class of weak equivalences and study conditions under which the localization map induces a structure-preserving functor between presheaf categories.
arXiv

Stabilized profunctors and stable species of structures fiore-2024-stabilized

We introduce a bicategorical model of linear logic which is a novel variation of the bicategory of groupoids, profunctors, and natural transformations. Our model is obtained by endowing groupoids with additional structure, called a kit, to stabilize the profunctors by controlling the freeness of the groupoid action on profunctor elements. The theory of generalized species of structures, based on profunctors, is refined to a new theory of stable species of structures between groupoids with Boolean kits. Generalized species are in correspondence with analytic functors between presheaf categories; in our refined model, stable species are shown to be in correspondence with restrictions of analytic functors, which we characterize as being stable, to full subcategories of stabilized presheaves. Our motivating example is the class of finitary polynomial functors between categories of indexed sets, also known as normal functors, that arises from kits enforcing free actions. We show that the bicategory of groupoids with Boolean kits, stable species, and natural transformations is cartesian closed. This makes essential use of the logical structure of Boolean kits and explains the well-known failure of cartesian closure for the bicategory of finitary polynomial functors between categories of set-indexed families and cartesian natural transformations. The paper additionally develops the model of classical linear logic underlying the cartesian closed structure and clarifies the connection to stable domain theory.
DOI Β· arXiv

Univalent Double Categories vanderweide-2024-univalent

PDF Β· DOI Β· pldb

A Fibrational Theory of First Order Differential Structures capucci-2024-a

We develop a categorical framework for reasoning about abstract properties of differentiation, based on the theory of fibrations. Our work encompasses the first-order fragments of several existing categorical structures for differentiation, including cartesian differential categories, generalised cartesian differential categories, tangent categories, as well as the versions of these categories axiomatising reverse derivatives. We explain uniformly and concisely the requirements expressed by these structures, using sections of suitable fibrations as unifying concept. Our perspective sheds light on their similarities and differences, as well as simplifying certain constructions from the literature.
DOI Β· arXiv

Contextads as Wreaths; Kleisli, Para, and Span Constructions as Wreath Products capucci-2024-contextads

We introduce contextads and the Ctx construction, unifying various structures and constructions in category theory dealing with context and contextful arrows – comonads and their Kleisli construction, actegories and their Para construction, adequate triples and their Span construction. Contextads are defined in terms of Lack–Street wreaths, suitably categorified for pseudomonads in a tricategory of spans in a 2-category with display maps. The associated wreath product provides the Ctx construction, and by its universal property we conclude trifunctoriality. This abstract approach lets us work up to structure, and thus swiftly prove that, under very mild assumptions, a contextad equipped colaxly with a 2-algebraic structure produces a similarly structured double category of contextful arrows. We also explore the role contextads might play qua dependently graded comonads in organizing contextful computation in functional programming. We show that many side-effects monads can be dually captured by dependently graded comonads, and gesture towards a general result on the β€˜transposability’ of parametric right adjoint monads to dependently graded comonads.
DOI Β· arXiv

Bicategorical type theory: semantics and syntax ahrens-2023-bicategorical

We develop semantics and syntax for bicategorical type theory. Bicategorical type theory features contexts, types, terms, and directed reductions between terms. This type theory is naturally interpreted in a class of structured bicategories. We start by developing the semantics, in the form of comprehension bicategories . Examples of comprehension bicategories are plentiful; we study both specific examples as well as classes of examples constructed from other data. From the notion of comprehension bicategory, we extract the syntax of bicategorical type theory, that is, judgment forms and structural inference rules. We prove soundness of the rules by giving an interpretation in any comprehension bicategory. The semantic aspects of our work are fully checked in the Coq proof assistant, based on the UniMath library.
DOI

Introducing String Diagrams: The Art of Category Theory hinze-2023-introducing

String diagrams are powerful graphical methods for reasoning in elementary category theory. Written in an informal expository style, this book provides a self-contained introduction to these diagrammatic techniques, ideal for graduate students and researchers. Much of the book is devoted to worked examples highlighting how best to use string diagrams to solve realistic problems in elementary category theory. A range of topics are explored from the perspective of string diagrams, including adjunctions, monad and comonads, Kleisli and Eilenberg–Moore categories, and endofunctor algebras and coalgebras. Careful attention is paid throughout to exploit the freedom of the graphical notation to draw diagrams that aid understanding and subsequent calculations. Each chapter contains plentiful exercises of varying levels of difficulty, suitable for self-study or for use by instructors.
DOI

What should a generic object be? sterling-2023-what

Jacobs has proposed definitions for (weak, strong, split) generic objects for a fibered category; building on his definition of (split) generic objects, Jacobs develops a menagerie of important fibrational structures with applications to categorical logic and computer science, including higher order fibrations, polymorphic fibrations, πœ†2-fibrations, triposes, and others. We observe that a split generic object need not in particular be a generic object under the given definitions, and that the definitions of polymorphic fibrations, triposes, etc. are strict enough to rule out some fundamental examples: for instance, the fibered preorder induced by a partial combinatory algebra in realizability is not a tripos in this sense. We propose a new alignment of terminology that emphasizes the forms of generic object appearing most commonly in nature, i.e. in the study of internal categories, triposes, and the denotational semantics of polymorphism. In addition, we propose a new class of acyclic generic objects inspired by recent developments in higher category theory and the semantics of homotopy type theory, generalizing the realignment property of universes to the setting of an arbitrary fibration.
DOI

Convolution Products on Double Categories and Categorification of Rule Algebras behr-2023-convolution

Motivated by compositional categorical rewriting theory, we introduce a convolution product over presheaves of double categories which generalizes the usual Day tensor product of presheaves of monoidal categories. One interesting aspect of the construction is that this convolution product is in general only oplax associative. For that reason, we identify several classes of double categories for which the convolution product is not just oplax associative, but fully associative. This includes in particular framed bicategories on the one hand, and double categories of compositional rewriting theories on the other. For the latter, we establish a formula which justifies the view that the convolution product categorifies the rule algebra product.
DOI

A Formal Logic for Formal Category Theory new_licata_2023

We present a domain-specific type theory for constructions and proofs in category theory. The type theory axiomatizes notions of category, functor, profunctor and a generalized form of natural transformations. The type theory imposes an ordered linear restriction on standard predicate logic, which guarantees that all functions between categories are functorial, all relations are profunctorial, and all transformations are natural by construction, with no separate proofs necessary. Important category-theoretic proofs such as the Yoneda lemma and Co-yoneda lemma become simple type-theoretic proofs about the relationship between unit, tensor and (ordered) function types, and can be seen to be ordered refinements of theorems in predicate logic. The type theory is sound and complete for a categorical model in virtual equipments, which model both internal and enriched category theory. While the proofs in our type theory look like standard set-based arguments, the syntactic discipline ensure that all proofs and constructions carry over to enriched and internal settings as well.
DOI

Classifying topoi in synthetic guarded domain theory: the universal property of multi-clock guarded recursion palombi_sterling_2023

Several different topoi have played an important role in the development and applications of synthetic guarded domain theory (SGDT), a new kind of synthetic domain theory that abstracts the concept of guarded recursion frequently employed in the semantics of programming languages. In order to unify the accounts of guarded recursion and coinduction, several authors have enriched SGDT with multiple β€œclocks” parameterizing different time-streams, leading to more complex and difficult to understand topos models. Until now these topoi have been understood very concretely qua categories of presheaves, and the logico-geometrical question of what theories these topoi classify has remained open. We show that several important topos models of SGDT classify very simple geometric theories, and that the passage to various forms of multi-clock guarded recursion can be rephrased more compositionally in terms of the lower bagtopos construction of Vickers and variations thereon due to Johnstone. We contribute to the consolidation of SGDT by isolating the universal property of multi-clock guarded recursion as a modular construction that applies to any topos model of single-clock guarded recursion.
Web

Strict universes for Grothendieck topoi gratzer-2022-strict

Hofmann and Streicher famously showed how to lift Grothendieck universes into presheaf topoi, and Streicher has extended their result to the case of sheaf topoi by sheafification. In parallel, van den Berg and Moerdijk have shown in the context of algebraic set theory that similar constructions continue to apply even in weaker metatheories. Unfortunately, sheafification seems not to preserve an important realignment property enjoyed by the presheaf universes that plays a critical role in models of univalent type theory as well as synthetic Tait computability, a recent technique to establish syntactic properties of type theories and programming languages. In the context of multiple universes, the realignment property also implies a coherent choice of codes for connectives at each universe level, thereby interpreting the cumulativity laws present in popular formulations of Martin-LΓΆf type theory. We observe that a slight adjustment to an argument of Shulman constructs a cumulative universe hierarchy satisfying the realignment property at every level in any Grothendieck topos. Hence one has direct-style interpretations of Martin-LΓΆf type theory with cumulative universes into all Grothendieck topoi. A further implication is to extend the reach of recent synthetic methods in the semantics of cubical type theory and the syntactic metatheory of type theory and programming languages to all Grothendieck topoi.
DOI Β· arXiv

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.

DOI Β· arXiv

Bicategories in univalent foundations ahrens-2021-bicategories

We develop bicategory theory in univalent foundations. Guided by the notion of univalence for (1-)categories studied by Ahrens, Kapulkin, and Shulman, we define and study univalent bicategories. To construct examples of univalent bicategories in a modular fashion, we develop displayed bicategories , an analog of displayed 1-categories introduced by Ahrens and Lumsdaine. We demonstrate the applicability of this notion and prove that several bicategories of interest are univalent. Among these are the bicategory of univalent categories with families and the bicategory of pseudofunctors between univalent bicategories. Furthermore, we show that every bicategory with univalent hom-categories is weakly equivalent to a univalent bicategory. All of our work is formalized in Coq as part of the UniMath library of univalent mathematics.
DOI

Magnitude homology of enriched categories and metric spaces leinster-2021-magnitude

DOI Β· arXiv

Coherence for bicategorical cartesian closed structure fiore-2021-coherence

We prove a strictification theorem for cartesian closed bicategories. First, we adapt Power’s proof of coherence for bicategories with finite bilimits to show that every bicategory with bicategorical cartesian closed structure is biequivalent to a 2-category with 2-categorical cartesian closed structure. Then we show how to extend this result to a Mac Lane-style β€œall pasting diagrams commute” coherence theorem: precisely, we show that in the free cartesian closed bicategory on a graph, there is at most one 2-cell between any parallel pair of 1-cells. The argument we employ is reminiscent of that used by ČubriΔ‡, Dybjer, and Scott to show normalisation for the simply-typed lambda calculus (ČubriΔ‡ et al., 1998). The main results first appeared in a conference paper (Fiore and Saville, 2020) but for reasons of space many details are omitted there; here we provide the full development.
DOI

Schur Functors and Categorified Plethysm baez-2021-schur

It is known that the Grothendieck group of the category of Schur functors is the ring of symmetric functions. This ring has a rich structure, much of which is encapsulated in the fact that it is a β€œplethory”: a monoid in the category of birings with its substitution monoidal structure. We show that similarly the category of Schur functors is a β€œ2-plethory”, which descends to give the plethory structure on symmetric functions. Thus, much of the structure of symmetric functions exists at a higher level in the category of Schur functors.
arXiv

The Sequent Calculus of Skew Monoidal Categories uustalu-2020-the

SzlachΓ‘nyi’s skew monoidal categories are a well-motivated variation of monoidal categories in which the unitors and associator are not required to be natural isomorphisms, but merely natural transformations in a particular direction. We present a sequent calculus for skew monoidal categories, building on the recent formulation by one of the authors of a sequent calculus for the Tamari order (skew semigroup categories). In this calculus, antecedents consist of a stoup (an optional formula) followed by a context, and the connectives behave like in the standard monoidal sequent calculus except that the left rules may only be applied in stoup position. We prove that this calculus is sound and complete with respect to existence of maps in the free skew monoidal category, and moreover that it captures equality of maps once a suitable equivalence relation is imposed on derivations. We then identify a subsystem of focused derivations and establish that it contains exactly one canonical representative from each equivalence class. This coherence theorem leads directly to simple procedures for deciding equality of maps in the free skew monoidal category and for enumerating any homset without duplicates. Finally, and in the spirit of Lambek’s work, we describe the close connection between this proof-theoretic analysis and Bourke and Lack’s recent characterization of skew monoidal categories as left representable skew multicategories. We have formalized this development in the dependently typed programming language Agda.
DOI Β· arXiv

Proof Theory of Partially Normal Skew Monoidal Categories uustalu-2021-proof

DOI Β· arXiv

Formalizing category theory in Agda hu-2021-formalizing

PDF Β· DOI Β· arXiv Β· pldb

The Grothendieck Construction in Categorical Network Theory moeller-2021-the

In this thesis, we present a flexible framework for specifying and constructing operads which are suited to reasoning about network construction. The data used to present these operads is called a network model, a monoidal variant of Joyal’s combinatorial species. The construction of the operad required that we develop a monoidal lift of the Grothendieck construction. We then demonstrate how concepts like priority and dependency can be represented in this framework. For the former, we generalize Green’s graph products of groups to the context of universal algebra. For the latter, we examine the emergence of monoidal fibrations from the presence of catalysts in Petri nets.
arXiv

Deductive Systems and Coherence for Skew Prounital Closed Categories uustalu-2021-deductive

DOI Β· arXiv

Bifibrations of Polycategories and Classical Linear Logic blanco-2020-bifibrations

DOI

Eilenberg-Kelly Reloaded uustalu-2020-eilenberg

DOI

Coherence and normalisation-by-evaluation for bicategorical cartesian closed structure fiore_saville_2020

We present two proofs of coherence for cartesian closed bicategories. Precisely, we show that in the free cartesian closed bicategory on a set of objects there is at most one structural 2-cell between any parallel pair of 1-cells. We thereby reduce the difficulty of constructing structure in arbitrary cartesian closed bicategories to the level of 1-dimensional category theory. Our first proof follows a traditional approach using the Yoneda lemma. For the second proof, we adapt Fiore’s categorical analysis of normalisation-by-evaluation for the simply-typed lambda calculus. Modulo the construction of suitable bicategorical structures, the argument is not significantly more complex than its 1-categorical counterpart. It also opens the way for further proofs of coherence using (adaptations of) tools from categorical semantics.
DOI

Monoidal Grothendieck construction moeller_vasilakopoulou_2020

We lift the standard equivalence between fibrations and indexed categories to an equivalence between monoidal fibrations and monoidal indexed categories, namely lax monoidal pseudofunctors to the 2-category of categories. Furthermore, we investigate the relation between this β€˜global’ monoidal version where the total category is monoidal and the fibration strictly preserves the structure, and a β€˜fibrewise’ one where the fibres are monoidal and the reindexing functors strongly preserve the structure, first hinted by Shulman. In particular, when the domain is cocartesian monoidal, we show how lax monoidal structures on a pseudofunctor to Cat bijectively correspond to lifts of the pseudofunctor to MonCat. Finally, we give some examples where this correspondence appears, spanning from the fundamental and family fibrations to network models and systems.
Web Β· arXiv

Noncommutative network models moeller-2019-noncommutative

Network models, which abstractly are given by lax symmetric monoidal functors, are used to construct operads for modeling and designing complex networks. Many common types of networks can be modeled with simple graphs with edges weighted by a monoid. A feature of the ordinary construction of network models is that it imposes commutativity relations between all edge components. Because of this, it cannot be used to model networks with bounded degree. In this paper, we construct the free network model on a given monoid, which can model networks with bounded degree. To do this, we generalize Green’s graph products of groups to pointed categories which are finitely complete and cocomplete.
DOI Β· arXiv

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.

DOI

Network Models baez-2017-network

Networks can be combined in various ways, such as overlaying one on top of another or setting two side by side. We introduce β€œnetwork models” to encode these ways of combining networks. Different network models describe different kinds of networks. We show that each network model gives rise to an operad, whose operations are ways of assembling a network of the given kind from smaller parts. Such operads, and their algebras, can serve as tools for designing networks. Technically, a network model is a lax symmetric monoidal functor from the free symmetric monoidal category on some set to π‚πšπ­, and the construction of the corresponding operad proceeds via a symmetric monoidal version of the Grothendieck construction.
arXiv

An Isbell duality theorem for type refinement systems mellies-2017-an

Any refinement system (= functor) has a fully faithful representation in the refinement system of presheaves, by interpreting types as relative slice categories, and refinement types as presheaves over those categories. Motivated by an analogy between side effects in programming and context effects in linear logic, we study logical aspects of this β€˜positive’ (covariant) representation, as well as of an associated β€˜negative’ (contravariant) representation. We establish several preservation properties for these representations, including a generalization of Day’s embedding theorem for monoidal closed categories. Then, we establish that the positive and negative representations satisfy an Isbell-style duality. As corollaries, we derive two different formulas for the positive representation of a pushforward (inspired by the classical negative translations of proof theory), which express it either as the dual of a pullback of a dual or as the double dual of a pushforward. Besides explaining how these constructions on refinement systems generalize familiar category-theoretic ones (by viewing categories as special refinement systems), our main running examples involve representations of Hoare logic and linear sequent calculus.
DOI Β· arXiv

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.

DOI

Univalent categories and the Rezk completion ahrens_etal_2015

We develop category theory within Univalent Foundations, which is a foundational system for mathematics based on a homotopical interpretation of dependent type theory. In this system, we propose a definition of β€˜category’ for which equality and equivalence of categories agree. Such categories satisfy a version of the univalence axiom, saying that the type of isomorphisms between any two objects is equivalent to the identity type between these objects; we call them β€˜saturated’ or β€˜univalent’ categories. Moreover, we show that any category is weakly equivalent to a univalent one in a universal way. In homotopical and higher-categorical semantics, this construction corresponds to a truncated version of the Rezk completion for Segal spaces, and also to the stack completion of a prestack.
DOI Β· arXiv

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.

PDF Β· DOI Β· pldb

Type refinement and monoidal closed bifibrations mellies_zeilberger_2013

The concept of refinement in type theory is a way of reconciling the β€œintrinsic” and the β€œextrinsic” meanings of types. We begin with a rigorous analysis of this concept, settling on the simple conclusion that the type-theoretic notion of β€œtype refinement system” may be identified with the category-theoretic notion of β€œfunctor”. We then use this correspondence to give an equivalent type-theoretic formulation of Grothendieck’s definition of (bi)fibration, and extend this to a definition of monoidal closed bifibrations, which we see as a natural space in which to study the properties of proofs and programs. Our main result is a representation theorem for strong monads on a monoidal closed fibration, describing sufficient conditions for a monad to be isomorphic to a continuations monad β€œup to pullback”.
Web

Coherence for categorified operadic theories gould_2010

Given an algebraic theory which can be described by a (possibly symmetric) operad 𝑃, we propose a definition of the weakening (or categorification) of the theory, in which equations that hold strictly for 𝑃-algebras hold only up to coherent isomorphism. This generalizes the theories of monoidal categories and symmetric monoidal categories, and several related notions defined in the literature. Using this definition, we generalize the result that every monoidal category is monoidally equivalent to a strict monoidal category, and show that the β€œstrictification” functor has an interesting universal property, being left adjoint to the forgetful functor from the category of strict 𝑃-categories to the category of weak 𝑃-categories. We further show that the categorification obtained is independent of our choice of presentation for 𝑃, and extend some of our results to many-sorted theories, using multicategories.
Web Β· arXiv

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.

Web

Sketches of an Elephant: A Topos Theory Compendium johnstone-2002

Web

Codescent objects and coherence lack_2002

DOI

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.

Normalization and the Yoneda embedding NormalizationAndTheYonedaEmbedding

We show how to solve the word problem for simply typed λβη-calculus by using a few well-known facts about categories of presheaves and the Yoneda embedding. The formal setting for these results is 𝒫-category theory, a version of ordinary category theory where each hom-set is equipped with a partial equivalence relation. The part of 𝒫-category theory we develop here is constructive and thus permits extraction of programs from proofs. It is important to stress that in our method we make no use of traditional proof-theoretic or rewriting techniques. To show the robustness of our method, we give an extended treatment for more general Ξ»-theories in the Appendix.
DOI

Two-dimensional monad theory blackwell_kelly_power_1989

Web

A general coherence result power_1989

Introduction to Higher-Order Categorical Logic lambek_scott_1986

Web

Subcategories defined by implications banaschewski_herrlich_1976

Categories for the Working Mathematician maclane_1971

Web

Construction of biclosed categories day1970construction

DOI

Adjointness in Foundations lawvere_1969

DOI

Functorial Semantics of Algebraic Theories lawvere_1963

Web
tag-category-theory tag