Ramanujan–Nagell 定理在 Lean 4 中的形式化证明
A formal proof of the Ramanujan--Nagell theorem in Lean 4
AI总结:
利用 Lean 交互式定理证明器和 Mathlib 库,完整形式化了 Ramanujan–Nagell 定理,即丢番图方程 $x^2 + 7 = 2^n$ 仅有五个整数解。
摘要:
我们给出了 Ramanujan–Nagell 定理在 Lean 交互式定理证明器(使用 Mathlib 库)中的完整形式化:丢番图方程 $x^2 + 7 = 2^n$ 的整数解仅有 $(n,x) \in \{(3,\pm1),(4,\pm3),(5,\pm5),(7,\pm11),(15,\pm181)\}$。形式化包括所有依赖,特别是二次域 $\mathbb{Q}(\sqrt{-7})$ 的整数环、类数和单位群的计算。我们描述了证明策略、形式化的架构以及在弥合教科书证明与其机器验证对应物之间差距时遇到的挑战,特别关注所需的代数数论基础设施。
英文摘要:
We present a complete formalization, in the Lean interactive theorem prover with the Mathlib library, of the Ramanujan--Nagell theorem: the only integer solutions to the Diophantine equation $x^2 + 7 = 2^n$ are $(n,x) \in \{(3,\pm1),(4,\pm3),(5,\pm5),(7,\pm11),(15,\pm181)\}$. The formalization includes all dependencies, notably the computation of the ring of integers of the quadratic field $\mathbb{Q}(\sqrt{-7})$, its class number, and unit group. We describe the proof strategy, the architecture of the formalization, and the challenges encountered in bridging the gap between textbook proofs and their machine-checked counterparts, with particular attention to the algebraic number theory infrastructure required.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。