使并发函数化
Making Concurrency Functional
AI总结:
本文桥接函数式与交互式计算范式,通过并发博弈将函数提升为策略,揭示函数式编程与逻辑范式为并发博弈子范畴,并支持策略丰富化向函数式情形的转移。
摘要:
本文桥接了计算中的两大主要范式:函数式范式(基本上是从输入到输出的计算)和交互式范式(计算在进行过程中对其环境作出反应)。任何关于交互的组合理论的核心都在于系统与其环境之间的二分法。并发博弈与策略通过区分Player移动(系统的事件)和Opponent移动(环境的事件),以精细的细节、非常局部且分布式的方式处理了这种二分法。函数式方法必须通过其更直接的输入与输出区分,更加巧妙地处理这种二分法。这催生了多种函数式方法,专门针对特定的交互需求。通过并发博弈,我们能更清晰地看到不同范式之间的分离与联系,并展示如何:\n * 将函数提升为策略;并发博弈中固有的“Scott序”在将函数依赖转化为因果依赖中起关键作用。\n * 函数式编程与逻辑的若干范式作为并发博弈的子范畴自然产生,包括稳定域理论;非确定性数据流;交互几何;dialectica解释;lenses与optics;及其在依赖型lenses与optics中对容器的扩展。\n * 将策略的丰富化(如概率、量子或实数计算)转移到函数式情形中。
英文摘要:
The article bridges between two major paradigms in computation, the functional, at basis computation from input to output, and the interactive, where computation reacts to its environment while underway. Central to any compositional theory of interaction is the dichotomy between a system and its environment. Concurrent games and strategies address the dichotomy in fine detail, very locally, in a distributed fashion, through distinctions between Player moves (events of the system) and Opponent moves (those of the environment). A functional approach has to handle the dichotomy much more ingeniously, through its blunter distinction between input and output. This has led to a variety of functional approaches, specialised to particular interactive demands. Through concurrent games we can more clearly see what separates and connects the differing paradigms, and show how: * to lift functions to strategies; the "Scott order" intrinsic to concurrent games plays a key role in turning functional dependency to causal dependency. * several paradigms of functional programming and logic arise naturally as subcategories of concurrent games, including stable domain theory; nondeterministic dataflow; geometry of interaction; the dialectica interpretation; lenses and optics; and their extensions to containers in dependent lenses and optics. * to transfer enrichments of strategies (such as to probabilistic, quantum or real-number computation) to functional cases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。