arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.22067nlin.CGcs.LO
收藏

随机状态共伴随体编码细胞自动机评估

Random state comonads encode cellular automata evaluation

Centre for Complexity Science, Imperial College London(帝国理工学院复杂性科学中心);Nethermind(内特曼德)

Madalina I Sas, Julian H J Sutherland

AI总结:

本文通过Haskell实现,提出基于共伴随体的细胞自动机计算模型,支持随机行为并展示多个经典CA模型案例,为复杂系统研究提供新的理论工具。

摘要:

细胞自动机(CA)是生命科学中的核心概念,在许多研究集体行为和涌现现象的领域中普遍存在,从形态发生到社会动态,甚至脑模型。最近,对形式化CA的兴趣有所增加,理论上通过范畴论,实践中则以函数式编程范式来实现。不幸的是,这些方法要么停留在缺乏重要实用功能的简单实现中,要么过于抽象且概念上难以接近,无法为整个ALife社区所用。在本文中,我们通过Haskell的实用实现,提供了一个简短且易于理解的范畴论CA计算模型介绍。我们将数组作为具有状态和随机生成器的共伴随体,允许其他已知实现中未支持的随机行为。我们还强调了功能实现对于复杂系统的重要性:得益于Curry-Howard-Lambek同构性,功能程序能够建立模拟、系统规则或语义与范畴描述之间的映射,这可能促进我们对一般化涌现行为理论的理解和开发。使用此实现,我们展示了四个著名的CA模型的案例研究:首先是Wolfram的1D CA,然后是Conway的游戏人生,Greenberg-Hasings可兴奋细胞,以及2D中的随机森林火灾模型,并提出了向N维扩展的方向。最后,我们建议共伴随体模型可以编码任意拓扑结构,并提出未来将共伴随体网络作为发展方向。

英文摘要:

Cellular automata (CA) are quintessential ALife and ubiquitous in many studies of collective behaviour and emergence, from morphogenesis to social dynamics and even brain modelling. Recently, there has been an increased interest in formalising CA, theoretically through category theory and practically in terms of a functional programming paradigm. Unfortunately, these remain either in the realm of simple implementations lacking important practical features, or too abstract and conceptually inaccessible to be useful to the ALife community at large. In this paper, we present a brief and accessible introduction to a category-theoretical model of CA computation through a practical implementation in Haskell. We instantiate arrays as comonads with state and random generators, allowing stochastic behaviour not currently supported in other known implementations. We also emphasise the importance of functional implementations for complex systems: thanks to the Curry-Howard-Lambek isomorphism, functional programs facilitate a mapping between simulation, system rules or semantics, and categorical descriptions, which may advance our understanding and development of generalised theories of emergent behaviour. Using this implementation, we show case studies of four famous CA models: first Wolfram's CA in 1D, then Conway's game of life, Greenberg-Hasings excitable cells, and the stochastic Forest Fire model in 2D, and present directions for an extension to N dimensions. Finally, we suggest that the comonadic model can encode arbitrary topologies and propose future directions for a comonadic network.

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

↑