Space-time tradeoffs of lenses and optics via higher category theory
Bruno Gavranovi\'c

TL;DR
This paper explores the space-time tradeoffs in lenses and optics using higher category theory, revealing operational differences and lifting categorical structures to the 2-categorical level for better understanding.
Contribution
It introduces a 2-category framework that captures internal configurations of optics, clarifies the relationship between lenses and optics, and discusses the limitations of existing categorical models.
Findings
Operational differences between cartesian optics and lenses are characterized.
A 2-category $ extbf{2-Optic}( extbf{C})$ is defined to track internal configurations.
The relationship between lenses and optics is explained via a lax 2-adjunction.
Abstract
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 whose 2-cells…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHomotopy and Cohomology in Algebraic Topology · Topological and Geometric Data Analysis · Computability, Logic, AI Algorithms
