Categories of Optics
Category Theory
2018-09-10 v2
Abstract
Bidirectional data accessors such as lenses, prisms and traversals are all instances of the same general 'optic' construction. We give a careful account of this construction and show that it extends to a functor from the category of symmetric monoidal categories to itself. We also show that this construction enjoys a universal property: it freely adds counit morphisms to a symmetric monoidal category. Missing in the folklore is a general definition of 'lawfulness' that applies directly to any optic category. We provide such a definition and show that it is equivalent to the folklore profunctor optic laws.
Cite
@article{arxiv.1809.00738,
title = {Categories of Optics},
author = {Mitchell Riley},
journal= {arXiv preprint arXiv:1809.00738},
year = {2018}
}
Comments
51 pages. v2: typos/minor fixes