arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.00390math.CT
收藏

作为共单子的余代数的Delta透镜

Delta lenses as coalgebras for a comonad

Bryce Clarke

摘要:

Delta透镜是一种范畴间的态射,用于模拟系统间的双向转换。经典的基于状态的透镜,也被称为非常良好行为的透镜,既是单子的代数,也是共单子的余代数。三角形透镜推广了基于状态的透镜,虽然三角形透镜被描述为半单子的某些代数,但很自然地会问它们是否也作为余代数出现。本文通过证明从基上的Delta透镜范畴到基上的余函子范畴的遗忘函子是余单子的,证明了Delta透镜是余单子的余代数。证明利用一个图解的方法三角洲透镜,并澄清了几个结果在文献中关于三角洲透镜和cofunctors之间的关系。有趣的是,虽然这项工作并没有推广相应的结果,基于状态的镜头,它确实提供了新的途径,探索镜头作为coalgebras。

英文摘要:

Delta lenses are a kind of morphism between categories which are used to model bidirectional transformations between systems. Classical state-based lenses, also known as very well-behaved lenses, are both algebras for a monad and coalgebras for a comonad. Delta lenses generalise state-based lenses, and while delta lenses have been characterised as certain algebras for a semi-monad, it is natural to ask if they also arise as coalgebras. This short paper establishes that delta lenses are coalgebras for a comonad, through showing that the forgetful functor from the category of delta lenses over a base, to the category of cofunctors over a base, is comonadic. The proof utilises a diagrammatic approach to delta lenses, and clarifies several results in the literature concerning the relationship between delta lenses and cofunctors. Interestingly, while this work does not generalise the corresponding result for state-based lenses, it does provide new avenues for exploring lenses as coalgebras.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑