arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16507cs.LO
收藏

深度视觉:在Lean 4中Wolstenholme定理的正式证明

Deep Vision: A Formal Proof of Wolstenholmes Theorem in Lean 4

Alexandre Linhares

AI总结:

本文在Lean 4中用Mathlib证明了Wolstenholme定理,通过展开移位阶乘积并利用幂和消失性,展示了其在模p^3下的等价性。

摘要:

我们展示了Wolstenholme定理--对于素数p≥5,$\binom{2p}{p} \equiv 2 \pmod{p^3}$--在Lean~4与Mathlib中的形式验证。证明通过将移位阶乘积展开到p的二次项,识别二次对称积,并通过$\mathbb{Z}/p\mathbb{Z}$中的幂和消失性证明其可被p整除。形式化包含约800行Lean代码和九个引理,无任何\sorry声明。据我们所知,这是首次在Lean~4中形式化验证Wolstenholme定理。证明是通过定理证明的关联类比引擎与人类引导的形式化协作发现的。

英文摘要:

We present a formal verification of Wolstenholme's theorem -- $\binom{2p}{p} \equiv 2 \pmod{p^3}$ for prime $p \geq 5$ -- in Lean~4 with Mathlib. The proof proceeds by expanding the shifted factorial product $\prod_{k=1}^{p-1}(p+k)$ to second order in $p$, identifying the quadratic coefficient as the second elementary symmetric product, and showing its divisibility by $p$ via power sum vanishing in $\mathbb{Z}/p\mathbb{Z}$. The formalization comprises nine lemmas across approximately 800 lines of Lean, with zero \texttt{sorry} declarations. To our knowledge, this is the first formal verification of Wolstenholme's theorem in Lean~4. The proof was discovered through a collaboration between a relational analogy engine for theorem proving and human-directed formalization.

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

↑