Table of Contents
Fetching ...

A computational method for left-adjointness

Simon Forest

TL;DR

The paper develops a computational framework for verifying when functors between locally finitely presentable categories are left adjoints, leveraging presheaf models and Kan models to encode categories and functors. It introduces a concrete reflection construction and an explicit left-adjointness criterion based on preserving certain colimits and orthogonality conditions, together with a game of reflection to guide finite approximations. A detailed OCaml implementation demonstrates encoding finite sets, finite categories, and presheaves, and implements left Kan extensions, colimits, and the reflection moves to decide adjointness on concrete examples. The work bridges abstract category theory with computable reasoning tools, enabling automated or semi-automated proofs of left adjointness and cartesian-closure properties in practical settings.

Abstract

In this work, we investigate an effective method for showing that functors between categories are left adjoints. The method applies to a large class of categories, namely locally finitely presentable categories, which are ubiquitous in practice and include standard examples like Set, Grp, etc. Our method relies on a known description of these categories as orthogonal sub-classes of presheaf categories. The functors on which our method applies are the ones that can be presented as particular profunctors, called Kan models in this context. The method for left-adjointness then relies on computing that a particular criterion is satisfied. From this method, we also derive another method for showing that a category is cartesian closed. As proofs of concept and effectivity, we give a concrete implementation of the structures and of the left-adjointness criterion in OCaml and apply it on several examples.

A computational method for left-adjointness

TL;DR

The paper develops a computational framework for verifying when functors between locally finitely presentable categories are left adjoints, leveraging presheaf models and Kan models to encode categories and functors. It introduces a concrete reflection construction and an explicit left-adjointness criterion based on preserving certain colimits and orthogonality conditions, together with a game of reflection to guide finite approximations. A detailed OCaml implementation demonstrates encoding finite sets, finite categories, and presheaves, and implements left Kan extensions, colimits, and the reflection moves to decide adjointness on concrete examples. The work bridges abstract category theory with computable reasoning tools, enabling automated or semi-automated proofs of left adjointness and cartesian-closure properties in practical settings.

Abstract

In this work, we investigate an effective method for showing that functors between categories are left adjoints. The method applies to a large class of categories, namely locally finitely presentable categories, which are ubiquitous in practice and include standard examples like Set, Grp, etc. Our method relies on a known description of these categories as orthogonal sub-classes of presheaf categories. The functors on which our method applies are the ones that can be presented as particular profunctors, called Kan models in this context. The method for left-adjointness then relies on computing that a particular criterion is satisfied. From this method, we also derive another method for showing that a category is cartesian closed. As proofs of concept and effectivity, we give a concrete implementation of the structures and of the left-adjointness criterion in OCaml and apply it on several examples.

Paper Structure

This paper contains 28 sections, 22 theorems, 33 equations, 1 figure.

Key Result

Proposition 1

Given a small category $C$, $\hat{C}$ is l.f.p., complete, cocomplete and cartesian closed. Moreover, the colimits and limits are pointwisely computed as in $\mathbf{Set}$: given a diagram of presheaves $X_{(-)} \colon I \rightarrow \hat{C}$ and $c \in C$, we have $(\mathop{\mathrm{colim}}\nolimits_

Figures (1)

  • Figure 1: The cocone morphism between $\mathop{\mathrm{colim}}\nolimits_i \tilde{F}' A_i$ and $\tilde{F}' (\mathop{\mathrm{colim}}\nolimits_i A_i)$.

Theorems & Definitions (73)

  • Definition 1
  • Definition 2
  • Example 1
  • Definition 3: adamek1994locally
  • Example 2
  • Example 3
  • Definition 4
  • Example 4
  • Proposition 1
  • Definition 5
  • ...and 63 more