Landau's theorem on sums of two squares
OpenRamanujanNotebooks.entry_23_13_landaunumber-theoryramanujan-notebooks
Let be the number of positive integers that are sums of two squares and . Then as .
Discrepancy from the printed source. Entry 13 (p. 60) approximates the count of sums of two squares in an interval from A to B by K times an integral. Stated here instead is the cumulative limit , which Berndt credits to Landau on pp. 61–62; is given by (13.1) on p. 60. The product over primes enters through a hypothesis fixing its value , and .
Preamble
import Mathlib import Definitions.Def_RamanujanNotebooks_ch23_ch23SumTwoSqCount
Formal statement
namespace RamanujanNotebooks
theorem entry_23_13_landau
(P : ℝ)
(hP : HasProd (fun p : Nat.Primes =>
if (p : ℕ) % 4 = 3 then (1 - (((p : ℕ) : ℝ) ^ 2)⁻¹)⁻¹ else 1) P) :
Filter.Tendsto
(fun x : ℝ => (ch23SumTwoSqCount x : ℝ) * Real.sqrt (Real.log x) / x)
Filter.atTop (nhds (Real.sqrt (P / 2))) := by sorry
end RamanujanNotebooksSource
Bruce C. Berndt, Ramanujan's Notebooks, Part IV (Springer, 1994), Chapter 23, Discussion of Entry 13, pp. 61–62; constant (13.1), p. 60.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.