用于可组合交互系统的容器态射
Container Morphisms for Composable Interactive Systems
AI总结:
本文提出一种基于依赖类型与容器态射的数学框架,通过在容器上定义单子及利用 Kleene 星号,实现了模块化且类型安全的客户端-服务器通信与有状态协议描述。
摘要:
本文提供了一个用于客户端-服务器通信的数学框架,由此产生了模块化且类型安全的架构。其灵感与动机源于软件工程中开发带有数据库层和前端的服务器后端实践,这些组件均通过请求/响应的概念进行通信。我利用依赖类型来确保请求/响应关系匹配,并展示了该理念如何融入容器及其态射的更广泛背景中。利用容器范畴及其幺半群积,我在容器上定义了模仿其函数式编程对应物的单子,并利用 Kleene 星号在同一系统中描述了有状态协议。
英文摘要:
This paper provides a mathematical framework for client-server communication that results in a modular and type-safe architecture. It is informed and motivated by the software engineering practice of developing server backends with a database layer and a frontend, all of which communicate with a notion of request/response. I make use of dependent types to ensure the request/response relation matches and show how this idea fits in the broader context of containers and their morphisms. Using the category of containers and their monoidal products, I define monads on containers that mimic their functional programming counterparts, and using the Kleene star, I describe stateful protocols in the same system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。