/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import Mathlib.Algebra.BigOperators.Finprod
public import Mathlib.Analysis.Analytic.Order
public import Mathlib.NumberTheory.LSeries.ZetaZerosCounting Analytic Zeros with Multiplicity
This file defines Complex.zeroCountOn, counting zeros of f : ℂ → ℂ in a subset S : Set ℂ
weighted by analyticOrderNatAt, together with basic vanishing and finiteness lemmas for
riemannZeta.
@[expose] public sectionnamespace Complex
The multiplicity-weighted count of zeros of f : ℂ → ℂ in S : Set ℂ, summing
analyticOrderNatAt f s over s ∈ S. Points where f s ≠ 0 or f is not analytic contribute
0.
noncomputable def zeroCountOn (f : ℂ → ℂ) (S : Set ℂ) : ℕ :=
∑ᶠ s ∈ S, analyticOrderNatAt f s@[simp]
theorem zeroCountOn_empty (f : ℂ → ℂ) : zeroCountOn f ∅ = 0 :=
finsum_mem_empty@[simp]
theorem zeroCountOn_singleton (f : ℂ → ℂ) (s : ℂ) :
zeroCountOn f {s} = analyticOrderNatAt f s :=
finsum_mem_singletontheorem analyticOrderNatAt_eq_zero_of_ne_zero {f : ℂ → ℂ} {s : ℂ} (h : f s ≠ 0) :
analyticOrderNatAt f s = 0 := f:ℂ → ℂs:ℂh:f s ≠ 0⊢ analyticOrderNatAt f s = 0
All goals completed! 🐙theorem zeroCountOn_eq_zero_of_forall_ne_zero {f : ℂ → ℂ} {S : Set ℂ}
(h : ∀ s ∈ S, f s ≠ 0) : zeroCountOn f S = 0 :=
finsum_mem_eq_zero_of_forall_eq_zero fun _ hs =>
analyticOrderNatAt_eq_zero_of_ne_zero (h _ hs)theorem zeroCountOn_sep_eq_zero (f : ℂ → ℂ) (S : Set ℂ) :
zeroCountOn f {s ∈ S | f s = 0} = zeroCountOn f S := f:ℂ → ℂS:Set ℂ⊢ zeroCountOn f {s | s ∈ S ∧ f s = 0} = zeroCountOn f S
f:ℂ → ℂS:Set ℂs:ℂhs:s ∈ Function.support (analyticOrderNatAt f)hsS:s ∈ S⊢ f s = 0
f:ℂ → ℂS:Set ℂs:ℂhs:s ∈ Function.support (analyticOrderNatAt f)hsS:s ∈ Shnz:¬f s = 0⊢ False
All goals completed! 🐙end Complextheorem Bornology.IsBounded.finite_riemannZeta_zeros {S : Set ℂ} (hS : Bornology.IsBounded S) :
{s ∈ S | riemannZeta s = 0}.Finite :=
hS.isCompact_closure.inter_riemannZetaZeros_finite.subset fun _ hs =>
⟨subset_closure hs.1, hs.2⟩