Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The scalar partition function Zscalar=(Im⁡τ)−1/2∣η∣−2Z_{\rm scalar}=(\operatorname{Im}\tau)^{-1/2}|\eta|^{-2}Zscalar​=(Imτ)−1/2∣η∣−2 is modular invariant

Proved
TongString.scalarPartitionFunction_modular_invariant

by LG · Sep 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

modular-formspartition-functionstring-theory

Let Zscalar(τ)=1Im⁡τ1∣η(τ)∣2Z_{\text{scalar}}(\tau)=\dfrac{1}{\sqrt{\operatorname{Im}\tau}}\dfrac{1}{|\eta(\tau)|^2}Zscalar​(τ)=Imτ​1​∣η(τ)∣21​ be the partition function (6.20) of a free scalar field on the torus (constant factors dropped). Then for all a,b,c,d∈Za,b,c,d\in\mathbb Za,b,c,d∈Z with ad−bc=1ad-bc=1ad−bc=1 and every τ\tauτ with Im⁡τ>0\operatorname{Im}\tau>0Imτ>0,

Zscalar ⁣(aτ+bcτ+d)=Zscalar(τ).Z_{\text{scalar}}\!\left(\frac{a\tau+b}{c\tau+d}\right)=Z_{\text{scalar}}(\tau).Zscalar​(cτ+daτ+b​)=Zscalar​(τ).

Tong notes that the two eta identities "ensure that the scalar partition function (6.20) is a modular invariant function".

Preamble
import Mathlib
import Definitions.Def_TongString_modular_action
import Definitions.Def_TongString_partition_functions
Formal statement
namespace TongString

theorem scalarPartitionFunction_modular_invariant (a b c d : ℤ) (h : a * d - b * c = 1) (τ : ℂ)
    (hτ : 0 < τ.im) :
    scalarPartitionFunction (modularAction a b c d τ) = scalarPartitionFunction τ := by sorry

end TongString
Source
D. Tong, *String Theory*, University of Cambridge Part III Mathematical Tripos lecture notes (January 2009), http://www.damtp.cam.ac.uk/user/tong/string.html, Section 6.4.2, p. 151 ('These two statements ensure that the scalar partition function (6.20) is a modular invariant function.')
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.

For all integers a,b,c,da,b,c,da,b,c,d with ad−bc=1ad-bc=1ad−bc=1 and every complex number τ\tauτ with Im⁡τ>0\operatorname{Im}\tau>0Imτ>0, writing τ′=aτ+bcτ+d\tau'=\dfrac{a\tau+b}{c\tau+d}τ′=cτ+daτ+b​, the statement asserts Z(τ′)=Z(τ)Z(\tau')=Z(\tau)Z(τ′)=Z(τ), where

Z(σ)=1Im⁡σ⋅1∣η(σ)∣2Z(\sigma)=\frac{1}{\sqrt{\operatorname{Im}\sigma}}\cdot\frac{1}{|\eta(\sigma)|^{2}}Z(σ)=Imσ​1​⋅∣η(σ)∣21​

with the real square root, the complex modulus, real division (with x/0=0x/0=0x/0=0), and η(σ)=e2πiσ/24∏m≥1(1−e2πimσ)\eta(\sigma)=e^{2\pi i\sigma/24}\prod_{m\ge1}(1-e^{2\pi i m\sigma})η(σ)=e2πiσ/24∏m≥1​(1−e2πimσ) as an unconditional infinite product. It is an equality of real numbers.

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

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 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