Lefebvre's variations, No. 14 — on a theme by Riemann: the squarefree parity surplus equals the Mertens function
ProvedLefebvreVariations.squarefree_parity_eq_mertensThis is the squarefree-parity form of the Mertens function.
For , let and count the squarefree integers with an even, respectively odd, number of prime factors. Then
This identity turns the Mertens-function criterion for the Riemann Hypothesis () into a statement about the balance between squarefree integers with an even and an odd number of prime factors. It is unconditional.
Why this is a variation. This varies the open problem BroughanRH.squarefreeParity, the squarefree-parity equivalent of the Riemann Hypothesis in Broughan's list. It is a key lemma of the parent: the surplus of squarefree integers up to with an even number of prime factors over those with an odd number equals the Mertens function , unconditionally. It lets the Mertens function criterion for RH be read as a statement about the balance of even and odd squarefree integers.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib
namespace LefebvreVariations
/-- Identity behind `BroughanRH.squarefreeParity`: the surplus of squarefree integers with an even
number of prime factors over those with an odd number is exactly `M(N)`. -/
theorem squarefree_parity_eq_mertens (N : ℕ) :
let pos (N : ℕ) := (Finset.Icc 1 N).filter fun n => Squarefree n ∧ Even n.primeFactors.card
let neg (N : ℕ) := (Finset.Icc 1 N).filter fun n => Squarefree n ∧ Odd n.primeFactors.card
((pos N).card : ℝ) - ((neg N).card : ℝ) =
∑ n ∈ Finset.Icc 1 N, (ArithmeticFunction.moebius n : ℝ) := by
sorry
end LefebvreVariations