[Paper Review] Generalized Lens Categories via functors $\mathcal{C}^{ m op} o\mathsf{Cat}$
This paper generalizes the category of lenses by defining a new category, ${\mathsf{Lens}}_F$, for any functor $F: \mathcal{C}^{\mathrm{op}} \to \mathsf{Cat}$, using a variant of the Grothendieck construction. It shows that standard lenses, ringed spaces, and open dynamical systems all arise as special cases, unifying these structures under a common categorical framework and extending lens theory to symmetric monoidal categories via the coKleisli construction.
Lenses have a rich history and have recently received a great deal of attention from applied category theorists. We generalize the notion of lens by defining a category $\mathsf{Lens}_F$ for any category $\mathcal{C}$ and functor $F\colon \mathcal{C}^{ m op} o\mathsf{Cat}$, using a variant of the Grothendieck construction. All of the mathematics in this note is straightforward; the purpose is simply to see lenses in a broader context where some closely-related examples, such as ringed spaces and open continuous dynamical systems, can be included.
Motivation & Objective
- To extend the theory of lenses beyond the standard setting of pairs in $\mathsf{Set}$ to include structures like ringed spaces and open dynamical systems.
- To provide a unified categorical framework for lenses using indexed categories and a variant of the Grothendieck construction.
- To generalize lens categories to arbitrary symmetric monoidal categories by constructing a coKleisli-based lens category.
- To show that the resulting generalized lens categories inherit monoidal structures when the input functor is lax monoidal.
Proposed method
- Define the generalized lens category ${\mathsf{Lens}}_F$ as the opposite of the Grothendieck construction of a functor $F: \mathcal{C}^{\mathrm{op}} \to \mathsf{Cat}$.
- Represent morphisms in ${\mathsf{Lens}}_F$ as pairs $(f, f^\sharp)$, where $f: c \to d$ is a morphism in $\mathcal{C}$ and $f^\sharp: c \times y \to x$ is a morphism in $F(c)$, generalizing the get and put operations of lenses.
- Use the slice category functor $\mathsf{Slice}: \mathsf{Set}^{\mathrm{op}} \to \mathsf{Cat}$ to recover the standard category of lenses in $\mathsf{Set}$.
- Construct the lens category in symmetric monoidal categories via the coKleisli category of commutative comonoids, using the functor $\mathsf{coKl}: \mathsf{Comon}_\mathcal{C}^{\mathrm{op}} \to \mathsf{Cat}$.
- Apply the monoidal Grothendieck construction to endow ${\mathsf{Lens}}_F$ with a symmetric monoidal structure when $F$ is lax monoidal.
Experimental results
Research questions
- RQ1How can the notion of a lens be generalized to include structures like ringed spaces and open dynamical systems?
- RQ2Can the standard category of lenses in $\mathsf{Set}$ be recovered as a special case of a more general construction using indexed categories?
- RQ3What is the categorical structure of lens categories in symmetric monoidal categories, and how can it be constructed explicitly?
- RQ4Under what conditions does the generalized lens category ${\mathsf{Lens}}_F$ inherit a monoidal structure from the input functor $F$?
Key findings
- The generalized lens category ${\mathsf{Lens}}_F$ is isomorphic to the standard category of lenses in $\mathsf{Set}$ when $F$ is the slice category functor $\mathsf{Slice}$.
- The category of lenses in a symmetric monoidal category $\mathcal{C}$ is recovered as ${\mathsf{Lens}}_{\mathsf{coKl}}$, where $\mathsf{coKl}$ is the coKleisli construction on commutative comonoids in $\mathcal{C}$.
- The lens category ${\mathsf{Lens}}_F$ inherits a symmetric monoidal structure when $F$ is a lax monoidal functor, as shown by the monoidal Grothendieck construction.
- The construction unifies seemingly disparate structures: standard lenses, ringed spaces (via the sheaf functor $\mathsf{Sh}$), and open dynamical systems (via the submersion functor $\mathsf{Subm}$).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.