arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.19142cs.LOcs.FL
收藏

在Lean中形式化计算路径与基本群

Formalizing Computational Paths and Fundamental Groups in Lean

Microsoft(微软);Centro de Informática, Universidade Federal de Pernambuco(巴西伯南布哥联邦大学计算机中心);Departamento de Matemática, Universidade Federal Rural de Pernambuco(巴西伯南布哥联邦农村大学数学系)

Arthur F. Ramos, Anjolina G. de Oliveira, Ruy J. G. B. de Queiroz, Tiago M. L. de Veras

AI总结:

本文在Lean 4中形式化了计算路径理论,并通过六个代数拓扑例子展示了其在同伦计算中的应用。

摘要:

计算路径将命题等式视为由标记推演步骤和重写规则构建的显式路径。这种观点起源于de Queiroz及其合作者的工作,并产生了一种弱群结构的等式,以及受同伦类型理论启发的计算账户。在本文中,我们展示了如何在Lean 4中完全机制化这一框架,并展示它如何支持具体的同伦计算。我们的贡献有三个方面。首先,我们在Lean中形式化了计算路径的理论,包括路径形成、组合、逆运算以及一个识别冗余或平凡路径的重写系统。我们证明了具有计算路径的等式类型在原始理论的意义下具有弱群结构。其次,我们将这一材料组织成一个可重用的Lean库ComputationalPathsLean,该库为路径、重写和环空间提供了接口。该库允许后来的发展将计算路径视为命题等式的替代品,当处理同伦结构时。第三,我们将该库应用于代数拓扑中的六个经典例子。我们给出了Lean证明,圆的基群同构于整数,圆柱和莫比乌斯带也具有同构于整数的基群(通过退化到圆),环面的基群同构于两个整数的乘积,克莱因瓶的基群同构于Z cross Z的半直积,实射影平面的基群同构于Z_2。这些案例研究证明了计算路径方法能够扩展到现代证明助手中的非平凡同伦计算。所有在此处描述的定义和证明都可在开源的Lean 4仓库中找到。

英文摘要:

Computational paths treat propositional equality as explicit paths built from labelled deduction steps and rewrite rules. This view originates in work by de Queiroz and collaborators [1] and yields a weak groupoid structure for equality, together with a computational account of homotopy inspired by homotopy type theory. In this paper we present a complete mechanization of this framework in Lean 4 and show how it supports concrete homotopy theoretic computations. Our contributions are threefold. First, we formalize the theory of computational paths in Lean, including path formation, composition, inverses, and a rewrite system that identifies redundant or trivial paths. We prove that equality types with computational paths carry a weak groupoid structure in the sense of the original theory. Second, we organize this material into a reusable Lean library, ComputationalPathsLean, which exposes an interface for paths, rewrites, and loop spaces. This library allows later developments to treat computational paths as a drop-in replacement for propositional equality when reasoning about homotopical structure. Third, we apply the library to six canonical examples in algebraic topology. We give Lean proofs that the fundamental group of the circle is isomorphic to the integers, the cylinder and Mobius band also have fundamental group isomorphic to the integers (via retraction to the circle), the fundamental group of the torus is isomorphic to the product of two copies of the integers, the fundamental group of the Klein bottle is isomorphic to the semidirect product Z cross Z, and the fundamental group of the real projective plane is isomorphic to Z_2. These case studies demonstrate that the computational paths approach scales to nontrivial homotopical computations in a modern proof assistant. All the definitions and proofs described here are available in an open-source Lean 4 repository.

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

↑