Space-time tradeoffs of lenses and optics via higher category theory
Not on the map. Why?
Abstract (arXiv)
Optics and lenses are abstract categorical gadgets that model systems with bidirectional data flow. In this paper we observe that the denotational definition of optics - identifying two optics as equivalent by observing their behaviour from the outside - is not suitable for operational, software oriented approaches where optics are not merely observed, but built with their internal setups in mind. We identify operational differences between denotationally isomorphic categories of cartesian optics and lenses: their different composition rule and corresponding space-time tradeoffs, positioning them at two opposite ends of a spectrum. With these motivations we lift the existing categorical constructions and their relationships to the 2-categorical level, showing that the relevant operational concerns become visible. We define the 2-category 2-Optic(C) whose 2-cells explicitly track optics' internal configuration. We show that the 1-category Optic(C) arises by locally quotienting out the connected components of this 2-category. We show that the embedding of lenses into cartesian optics gets weakened from a functor to an oplax functor whose oplaxator now detects the different composition rule. We determine the difficulties in showing this functor forms a part of an adjunction in any of the standard 2-categories. We establish a conjecture that the well-known isomorphism between cartesian lenses and optics arises out of the lax 2-adjunction between their double-categorical counterparts. In addition to presenting new research, this paper is also meant to be an accessible introduction to the topic.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 14 of its 29 references that are in the map. First posted on arXiv 19 Sep 2022.
Builds on
14 of 29 references.
References · 14
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2021Categorical Foundations of Gradient-Based Learningcited by 44
- 2018The simple essence of automatic differentiationcited by 22
- 2016Compositional game theorycited by 13
- 2019Lenses and Learnerscited by 11
- 2020Profunctor Optics, a Categorical Updatecited by 6
- 2022Value Iteration is Optic Compositioncited by 5
- 2018Limits of bimorphic lensescited by 4
- 2019Bayesian open gamescited by 3
- 2022Diegetic Representation of Feedback in Open Gamescited by 2
- 2017Profunctor Optics: Modular Data Accessorscited by 1
- 2021Functorial aggregationcited by 1
2 more
- 2021A category theory framework for Bayesian learningcited by 1
- 2022Lenses for Composable Serverscited by 1
Built on by
Citing papers per year: 2024: 2.
2 papers.