加载中…
We present a formal verification of Wolstenholme’s theorem – for prime – in Lean~4 with Mathlib. The proof proceeds by expanding the shifted factorial product to second order in , identifying the quadratic coefficient as the second elementary symmetric product, and showing its divisibility by via power sum vanishing in . The formalization comprises nine lemmas across approximately 800 lines of Lean, with zero 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智能校验的中文版本