Fourier coefficients of Jacobi's
DefinitionGelbart_theta_coeffThe coefficient sequence for which the general construction reproduces Jacobi's theta function:
i.e. counts the integers with . This is the sequence used in Riemann's derivation of the functional equation of recalled by Gelbart on p. 187.
import Mathlib
namespace Gelbart
/-- The coefficient sequence of Jacobi's theta function
`θ (z) = ∑_{m ∈ ℤ} exp (πim²z) = ∑_{n ≥ 0} thetaCoeff n * exp (2πinz/2)`:
`thetaCoeff n = 1` for `n = 0`, `= 2` if `n ≥ 1` is a perfect square, `= 0` otherwise. -/
def thetaCoeff (n : ℕ) : ℂ :=
if Nat.sqrt n * Nat.sqrt n = n then (if n = 0 then 1 else 2) else 0
end GelbartRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements (non-blind)
⚠️ NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statements in this proposal, on the explicit instruction of the proposal owner. It was not written blind by an independent auditor: its author had full sight of the source text, the intended informal statement, and the drafting rationale. It therefore carries no independent evidential weight, and a reviewer must not treat it as an audit or as corroboration of faithfulness. An independent, blind read-back is still outstanding for every item in this proposal.
A function from natural numbers to complex numbers is defined by cases. For a natural number , write for the integer square root. The value is:
- if , i.e. if is not a perfect square;
- if ;
- if is a nonzero perfect square.
No other data enters; the function is total and computable.
Confirmed by the mission captain (proposal self-audit).