数学 > 范畴论
[提交于 2020年9月15日]
标题:Internal lenses as functors and cofunctors
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Lenses may be characterised as objects in the category of algebras over a monad, however they are often understood instead as morphisms, which propagate updates between systems. Working internally to a category with pullbacks, we define lenses as simultaneously functors and cofunctors between categories. We show that lenses may be canonically represented as a particular commuting triangle of functors, and unify the classical state-based lenses with both c-lenses and d-lenses in this framework. This new treatment of lenses leads to considerable simplifications that are important in applications, including a clear interpretation of lens composition.
提交历史
来自:EPTCS[v1] 2020年9月15日 星期二 02:16:24 UTC