The scalar and string one-loop partition functions and
DefinitionTongString_partition_functionsFor in the upper half-plane let be the Dedekind eta function.
- The (oscillator plus zero-mode) partition function of a single free scalar field on the torus, with constant factors dropped as in eq. (6.20), is
- The integrand of the bosonic string partition function, , is
Formalization Note Both are real-valued. The factors and the other constant prefactors that Tong explicitly neglects are omitted. Real division by returns in Lean, which is irrelevant on the upper half-plane where and .
import Mathlib import Definitions.Def_TongString_dedekind_eta namespace TongString /-- The free-scalar partition function (6.20), up to constant factors: `Z_scalar(τ) = 1 / (√(Im τ) |η(τ)|²)`. -/ noncomputable def scalarPartitionFunction (τ : ℂ) : ℝ := 1 / Real.sqrt τ.im * (1 / ‖dedekindEta τ‖) ^ 2 /-- The integrand of the bosonic string partition function (after (6.21)), up to constant factors: `(1/√(Im τ) · 1/(η η̄))^24 = (Im τ)^(-12) |η(τ)|^(-48)`. -/ noncomputable def stringPartitionIntegrand (τ : ℂ) : ℝ := (1 / τ.im) ^ 12 * (1 / ‖dedekindEta τ‖) ^ 48 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 two real-valued functions of a complex number , in terms of the imported function (defined by as an unconditional infinite product).
- , where is the real square root (which returns on negative inputs) and is the complex modulus.
- .
Real division by yields , so both functions are wherever (for : wherever ) or . No restriction to the upper half-plane is built into the definitions.