Profunctor Optics: The Categorical Approach
summary
Derives profunctor optics from category theory by applying the Yoneda lemma inside the functor and profunctor categories, uses adjunctions (currying) and Tambara structure to build the free Tambara monad Phi, and shows how applying Phi to a profunctor reader yields the usual lens/prism representations. Works through coends/existentials to turn the polymorphic profunctor type for all P (P A B -> P S T) into concrete pairs of functions splitting S as C × A (lens) or C + A (prism), then recovers getter/setter-style implementations in Haskell.
AI-written summary · about
chapters (4)
related talks
21mFunctorial Syntax for All
41mWhat You Needa Know About Yoneda
26m2-Functoriality of Initial Semantics, and Applications
56mCategory Theory Through Functional Programming (part 2/3)
52mCategory Theory Through Functional Programming (part 1/3)
45mA categorical view of computational effects
02h 24mCategory Theory Track
21mEffectful Lenses: There and Back with Different Monads
