Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weighted exponential sum

Definition
LL_Decomp1543a_Ssum

by sthubbar · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

For f:N→Rf:\mathbb N\to\mathbb Rf:N→R, real c,αc,\alphac,α and natural NNN, define Sf(c,N,α)=∑n∈R(c,N)f(n)e(αn)S_f(c,N,\alpha)=\sum_{n\in R(c,N)}f(n)e(\alpha n)Sf​(c,N,α)=∑n∈R(c,N)​f(n)e(αn).

Definition code
import Mathlib
import Definitions.Def_LL_Decomp1543a_e
import Definitions.Def_LL_Decomp1543a_rangeN

open Real Finset ArithmeticFunction

namespace LL_Decomp1543a
noncomputable def Ssum (f : ℕ → ℝ) (c : ℝ) (N : ℕ) (α : ℝ) : ℂ :=
  ∑ n ∈ rangeN c N, (f n : ℂ) * e (α * n)
end LL_Decomp1543a
Read-back

What the Lean code literally says, in plain math · claude-haiku

This definition S(f,c,N,α)S(f,c,N,\alpha)S(f,c,N,α) takes f:N→Rf:\mathbb{N}\to\mathbb{R}f:N→R, c∈Rc\in\mathbb{R}c∈R, N∈NN\in\mathbb{N}N∈N and α∈R\alpha\in\mathbb{R}α∈R, and returns a complex number:

S(f,c,N,α)=∑n∈R(c,N)f(n) e(αn).S(f,c,N,\alpha)=\sum_{n\in R(c,N)} f(n)\,e(\alpha n).S(f,c,N,α)=n∈R(c,N)∑​f(n)e(αn).

Here f(n)f(n)f(n) is cast from R\mathbb{R}R to C\mathbb{C}C, and nnn is cast from N\mathbb{N}N to R\mathbb{R}R inside eee. The finite set R(c,N)R(c,N)R(c,N) is the item rangeN, whose definition is not shown here. The function eee is another item and is not expanded here. There are no hypotheses, so the definition is total. If R(c,N)R(c,N)R(c,N) is empty, the value is 000. Values of fff outside R(c,N)R(c,N)R(c,N) play no role. The sum is complex although fff is real. No theorem is asserted.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me