A delta lens (or d-lens) is a functor with additional structure specifying a suitable choice of lifts. Delta lenses can be understood in a number of ways:
A morphism between categories which is both functor and cofunctor;
A generalization of split Grothendieck opfibrations where the chosen lifts need not be opcartesian morphisms;
A categorification of classical lenses between sets.
A delta lens from a category to a category consists of a functor together with a lifting operation sending each pair to a morphism in , where , such that
defines a choice of lifts: ,
preserves identity morphisms: ,
preserves composition: where .
A delta lens is equivalent to a functor and a cofunctor such that for all objects , and .
See (Ahman-Uustalu 2017, Section 6) and (Clarke 2020).
A delta lens between codiscrete categories is precisely a classical lens (in computer science); see (Johnson-Rosebrugh 2016, Proposition 4).
Every function yields a delta lens between discrete categories.
Every discrete opfibration is a delta lens whose lifting operation is determined by the unique opcartesian lifts. Conversely, a delta lens is a discrete opfibration if the equation holds for all morphisms in .
A split Grothendieck opfibration is a delta lens whose chosen lifts are opcartesian morphisms.
Dually, a split Grothendieck fibration is a delta lens .
Every split epimorphism of monoids with a chosen section is a delta lens, when the monoids a considered as categories with a single object.
More generally, every bijective on objects functor with a chosen section is a delta lens.
The notion of delta lens was first defined in computer science as a generalization of the classical lenses between sets:
The connection between delta lenses and split Grothendieck opfibrations was first explored in the paper:
The following paper details the connection between delta lenses and the classical lenses:
The characterisation of delta lenses in terms of functors and cofunctors first appeared in the paper:
The notion of delta lens between internal categories as well as the link between cofunctors, delta lenses, and split Grothendieck opfibrations is developed in the papers:
Bryce Clarke, Internal lenses as functors and cofunctors, EPTCS, 323, 2020 (doi:10.4204/EPTCS.323.13)
Bryce Clarke, Internal split opfibrations and cofunctors, Theory and Applications of Categories, 35, 2020 (link)
Last revised on August 11, 2023 at 10:40:04. See the history of this page for a list of all contributions to it.