Bertrand’s postulate
ProvedProofsInTheBook.Chapter02.chapter02_bertrandbook-chapter-02lean4number-theoryproofs-from-the-book
For every natural number , there exists a prime natural number such that
The upper endpoint is included, so the case is witnessed by .
This is a prime-existence theorem, with no extra prime-gap certificate assumed.
Preamble
import Mathlib open Nat Finset
Formal statement
theorem ProofsInTheBook.Chapter02.chapter02_bertrand (n : ℕ) (hn : n ≠ 0) :
∃ p, Prime p ∧ n < p ∧ p ≤ 2 * n := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 2, “Bertrand’s postulate”, pp. 9–14 (https://doi.org/10.1007/978-3-662-57265-8_2). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter02.lean#L133. The book citation identifies the topic; the selected declaration has only the scope stated above.