The Dedekind eta function ,
DefinitionTongString_dedekind_etaFor in the upper half-plane put . The Dedekind eta function is
where means . Its inverse is the oscillator contribution to the partition function of a free scalar field on a torus of modular parameter (eq. (6.20)).
Formalization Note The infinite product is Mathlib's unconditional product tprod; for it converges, while for other the definition returns an unspecified junk value, so all theorems about assume .
import Mathlib
namespace TongString
open Complex
/-- Tong's Dedekind eta function `η(τ) = q^(1/24) ∏_{n ≥ 1} (1 - q^n)` with `q = exp(2πiτ)`
and `q^(1/24) = exp(2πiτ/24)`. The product index `n : ℕ` stands for `n + 1 ≥ 1`. -/
noncomputable def dedekindEta (τ : ℂ) : ℂ :=
Complex.exp (2 * Real.pi * I * τ / 24) *
∏' n : ℕ, (1 - Complex.exp (2 * Real.pi * I * ((n : ℂ) + 1) * τ))
end TongString
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic), non-blind: same agent that drafted the statement
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not independent testimony and must not be treated as a blind audit; a reviewer should compare the Lean code against the source directly.
The declaration defines a function by
i.e. the product runs over of . The infinite product is an unconditional product: if the family of factors is not unconditionally multipliable in , the product is defined to be . The definition is made for every complex , with no restriction to the upper half-plane; for the value is whatever these conventions give.