A Chebyshev–entropy gap below the square threshold
ProvedProofsInTheBook.Chapter03.below_square_far_theta_gap_of_120_lebook-chapter-3lean4number-theoryproofs-from-the-book
Let satisfy , , and . Put and , and assume . Define
Then
Logarithms are natural; r and M are integers before conversion to real numbers.
Preamble
import Mathlib import Definitions.Def_ProofsInTheBook_Chapter03 open Nat open ProofsInTheBook.Chapter03
Formal statement
theorem ProofsInTheBook.Chapter03.below_square_far_theta_gap_of_120_le
{n k : ℕ} (hk120 : 120 ≤ k) (hn2k : 2 * k ≤ n)
(_hnsq : n < k * k) (hfar : 2 * sqrt n < min k (n / 3)) :
((sqrt n : ℕ) : ℝ) / 3 * Real.log n
+ ((min k (n / 3) : ℕ) : ℝ) * Real.log 4
- Chebyshev.theta ((sqrt n : ℕ) : ℝ) <
entropyTerm n k
+ Real.log n / 2 - Real.log k / 2 - Real.log (n - k) / 2
+ Real.log (2 * Real.pi) / 2 - 2 := by sorrySource
Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter03.lean#L1869. This is a selected result in the local development concerning binomial coefficients and their prime factors. The specific technical formulation is cited to the repository, without claiming that it appears verbatim in the textbook.