加载中…
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 are . The formalization includes all dependencies, notably the computation of the ring of integers of the quadratic field , 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智能校验的中文版本