Lean 中的组合博弈
Combinatorial Games in Lean

原始链接: https://github.com/vihdzp/combinatorial-games

本项目在 Lean 4 中对组合博弈论进行了形式化,主要关注满足以下条件的博弈:双人、完全信息、有限步,且最后移动者获胜(常规游戏规则)。 本仓库旨在建立一个涵盖以下四个主要领域的综合框架: 1. **通用理论:** 形式化诸如博弈温度、被支配位置和可逆位置等基础概念。 2. **特定博弈:** 实现尼姆游戏(Nim)、Hackenbush、Chomp 和井字棋等多种博弈。 3. **尼姆数(Nimbers):** 发展尼姆数理论,包括代数闭包和扩张定理。 4. **超实数(Surreal Numbers):** 构建其域结构,并证明其作为哈恩级数(Hahn series)的表示。 本项目主要参考约翰·H·康威(John H. Conway)的《关于数与博弈》(*On Numbers and Games*, 2001)及相关现代补充资料,旨在为 Lean 4 定理证明器中的这些数学结构建立严谨的机器验证基础。

```Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Lean 中的组合博弈 (github.com/vihdzp) wertyk 发布于 2 小时前 | 11 点 | 隐藏 | 过往 | 收藏 | 1 条评论 unprovable 10 分钟前 [–] 很棒!或许可以添加一个愿望清单或项目标签页?:) 顺带一提,我记得不久前读过一篇论文,其中指出在某些假设下,策梅洛定理(Zermelo's theorem)表明将游戏变为“量子游戏”实际上并没有提供任何真正的优势。 回复 考虑申请 YC 2026 年秋季批次!申请截止日期为 7 月 27 日。 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:```
相关文章

原文

A formalization of topics within combinatorial game theory in Lean 4.

A combinatorial game is two-player terminating game with perfect information. In other words, two players (called Left and Right) alternate changing some game state, which they always have full knowledge of. The game cannot go on forever, and whoever is left without a move to make loses. There are no draws.

Examples of combinatorial games include Nim, Hackenbush, and Chomp. Non-examples include poker, which has chance elements, Chess, which can end in a tie, or the Gale–Stewart games within Borel determinacy, which go on forever (see however this repo for more info on them).

There are broadly four things this repository aims to formalize:

  • The theory of general combinatorial games (temperature, dominated positions, reversible positions, etc.)
  • The theory of specific combinatorial games (poset games, Hackenbush, tic-tac-toe, etc.)
  • The theory of nimbers (prove them algebraically closed, prove the simplest extension theorems)
  • The theory of surreal numbers (set up their field structure, prove their representations as Hahn series)

Our development of combinatorial game theory is based largely on Conway (2001), supplemented by various other more modern resources.

联系我们 contact @ memedata.com