Prime exponential sum
DefinitionLL_Decomp1535a_SFor a natural number and real , , a complex number.
Definition code
import Mathlib
namespace LL_Decomp1535a
noncomputable section
open MeasureTheory
noncomputable def S (N : ℕ) (α : ℝ) : ℂ :=
∑ p ∈ (Finset.range (N + 1)).filter Nat.Prime,
(Real.log p : ℂ) * Complex.exp (2 * Real.pi * Complex.I * α * p)
end
end LL_Decomp1535aRead-back
What the Lean code literally says, in plain math · claude-haiku
Read-back: LL_Decomp1535a.S
This declaration defines a function of two inputs: a natural number and a real number . Its value is a complex number, given by the following finite sum.
Here:
- runs over the prime numbers with . The index set is filtered to keep only primes.
- is the real natural logarithm of , regarded as a complex number.
- is the circle constant, and is the imaginary unit.
- is the complex exponential of . Since and are real, this term has modulus .
Edge cases:
- If , there are no primes , so the sum is empty and . This includes .
- and give , since neither nor is prime.
- gives every exponential the value , so equals .
The definition takes no hypotheses beyond the types of and . It is not a theorem, so no proof obligation is attached.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.