Modular Invariance and the Cardy Formula
The previous page explained minimal models as exact Virasoro CFTs with finitely many primary fields. This page moves from the plane to the torus. That move is much more than a change of background geometry. On the plane, conformal symmetry constrains local correlators. On the torus, the same theory must also be consistent under large diffeomorphisms of the surface. This extra consistency condition is modular invariance.
For AdS/CFT preparation, modular invariance matters for three reasons.
First, the torus partition function is a thermal trace. It encodes the spectrum of the CFT on a circle:
Second, modular invariance relates low temperature to high temperature. In two-dimensional CFT, this turns the vacuum contribution at low temperature into universal high-energy information. That is the origin of the Cardy formula.
Third, in AdS/CFT, the Cardy formula is the CFT mechanism behind the entropy of BTZ black holes. On the gravity side, different bulk fillings of the same boundary torus are related by modular transformations. On the CFT side, the same modular transformations reorganize the thermal trace.
The main chain of ideas is therefore
The torus and its modular parameter
Section titled “The torus and its modular parameter”A complex torus is obtained by quotienting the complex plane by a lattice:
The coordinate is identified as
The two lattice vectors and define two independent cycles. A choice of cycles is a choice of basis for the lattice, not an intrinsic physical datum. A different primitive basis of the same lattice is
After rescaling the new first basis vector to , the same torus is described by
The two standard generators are
The transformation shifts one cycle by the other. The transformation exchanges the two cycles, up to orientation. In thermal language, exchanges the Euclidean time circle and the spatial circle. This is the deep reason that modular invariance knows about high-temperature physics.
The modular group acts on the upper half-plane by . The shaded region is a standard fundamental domain, bounded by and . The generators and identify equivalent descriptions of the same torus.
A convenient fundamental domain is
with the usual boundary identifications. Integrating over tori in string theory means integrating over this fundamental domain, not over the whole upper half-plane. Otherwise one overcounts the same geometry infinitely many times.
Torus partition function as a thermal trace
Section titled “Torus partition function as a thermal trace”Quantize the CFT on a spatial circle of circumference . Let be the spatial coordinate and Euclidean time. A rectangular thermal torus has
More generally, one may include an angular potential so that the thermal identification is accompanied by a spatial translation:
The corresponding modular parameter is
The cylinder Hamiltonian and momentum are
For a non-anomalous theory with , this reduces to
The torus partition function is therefore
In terms of
this becomes
The shifts by and are not decoration. They are the Casimir-energy shifts caused by the conformal map from the plane to the cylinder. Equivalently, they are the vacuum energies on the circle:
For a CFT with on a circle of circumference , this is
This vacuum energy is the seed of the Cardy formula. The high-energy density of states is controlled by the low-temperature vacuum because modular invariance exchanges the two regimes.
What modular invariance says
Section titled “What modular invariance says”For a bosonic, non-anomalous, compact CFT, the torus partition function is invariant under the modular group:
Equivalently, it is enough to impose invariance under the two generators:
and
There are important refinements.
For fermionic theories, one must specify spin structures on the torus. Individual spin-structure partition functions usually transform into one another under . A modular-invariant object is obtained only after choosing a consistent sum or projection.
For chiral theories, or theories with , the partition function can transform with phases. This is a gravitational anomaly. In such cases one should speak of modular covariance rather than ordinary modular invariance.
For noncompact CFTs, the spectrum may include continuous components and the partition function may require infrared regularization. Modular invariance remains meaningful, but the trace formula must be handled carefully.
For the rest of this page, unless stated otherwise, assume a compact non-anomalous CFT with a discrete spectrum and a unique vacuum.
Characters and rational CFT
Section titled “Characters and rational CFT”The torus trace organizes the Hilbert space by representations of the left and right chiral algebras. If the chiral algebra is just Virasoro, a representation is a Virasoro module. If the theory has an affine Lie algebra, a superconformal algebra, or a larger rational chiral algebra, one uses representations of that larger algebra.
For a chiral representation , define the character
If the theory is rational, only finitely many irreducible chiral representations occur. The Hilbert space decomposes as
Then
The characters form a finite-dimensional representation of the modular group:
and
For many rational theories, is diagonal:
Modular invariance of becomes an arithmetic constraint on the nonnegative integer matrix :
This is an unexpectedly strong condition. It says that a CFT spectrum is not an arbitrary list of left and right representations. The left and right sectors must be paired so that the full torus path integral is invariant under large diffeomorphisms.
The simplest modular invariant is the diagonal invariant
when the representation labels can be paired with their conjugates in the obvious way. Minimal models, WZW models, and coset models provide many nontrivial examples in which the modular-invariant matrix is not simply the identity.
A famous bonus is the Verlinde formula. In rational CFT, the same modular matrix diagonalizes fusion:
Here are the fusion coefficients in
This is one of the cleanest places where geometry, representation theory, and operator algebra meet. Modular transformations of the torus know the fusion rules on the sphere.
Example: the Ising modular invariant
Section titled “Example: the Ising modular invariant”The critical Ising CFT is the smallest useful example. It has
and three Virasoro primaries:
The diagonal modular invariant is
The modular matrix in the ordered basis is
Because this matrix is real and unitary, the diagonal sum of absolute squares is invariant under . The transformation is diagonal in the character basis, and the diagonal pairing of each left representation with the same right representation gives integer spin:
So the Ising torus partition function is modular invariant. This example is small enough that one can see the whole logic explicitly: the Kac table gives the allowed Virasoro representations, the characters package descendants, and modular invariance tells us how left and right sectors may be glued into a consistent local CFT.
Modular : spin integrality
Section titled “Modular TTT: spin integrality”The transformation is the easiest modular constraint to interpret. Under ,
If , modular invariance requires
for all states appearing in the bosonic torus partition function. This is just integer spin. It is the torus version of locality: taking one operator around another should not produce an arbitrary phase in a purely bosonic local CFT.
If , there is an additional phase. A purely chiral CFT can still be mathematically consistent, but its partition function is not an ordinary modular-invariant scalar. In physical terms, it carries a gravitational anomaly.
Modular : low temperature becomes high temperature
Section titled “Modular SSS: low temperature becomes high temperature”The transformation is where the physics becomes dramatic. Consider the rectangular torus
Then
The transformed torus is again rectangular, with inverse temperature
Thus modular invariance implies
This is high-temperature/low-temperature duality. If , then . The high-temperature partition function is determined by the low-temperature theory.
At low temperature, a compact unitary CFT with a unique vacuum is dominated by the vacuum state. The vacuum has
on the plane, and hence cylinder energy
Therefore, for large ,
Using modular , the small- behavior is
For , this is
This is universal. It does not require a Lagrangian, weak coupling, free fields, or a large- limit. It only requires the assumptions stated above.
Cardy formula: density of states
Section titled “Cardy formula: density of states”The partition function is a Laplace transform of the density of states. The high-temperature asymptotic form of therefore determines the asymptotic growth of the spectrum.
It is cleanest to keep left and right movers separate. Define shifted cylinder energies
The vacuum has
Introduce left and right inverse temperatures and by writing
At high temperature, modular invariance gives
The inverse Laplace transform is controlled by a saddle point:
The saddle equations are
Thus
Substituting back gives the Cardy entropy
In terms of plane conformal weights, this is
Many books and papers write the formula as
That form uses a slightly different convention for the energy variable, or assumes so the shifts are negligible. For holography, it is safest to remember the cylinder-energy form: the Cardy formula counts states with large positive and .
For fixed scaling dimension and spin,
and for , the formula becomes
For spinless states, , this reduces to
Again, in the strict high-energy regime , this is often written as
The Cardy regime and the holographic regime
Section titled “The Cardy regime and the holographic regime”The Cardy formula is universal in the asymptotic high-energy regime. The most conservative statement is
In that regime the saddle is reliable and subleading details of the spectrum are washed out.
Holographic CFTs introduce an additional question. In AdS/CFT, semiclassical gravity corresponds to large central charge,
BTZ black holes appear at energies of order , not necessarily energies much larger than . To use Cardy growth already at that scale, one needs stronger assumptions, usually stated as a sparse light spectrum condition. Roughly, the low-energy spectrum below the black-hole threshold must not grow too quickly. Under such conditions, modular invariance makes the vacuum dominate the appropriate transformed channel and the Cardy formula extends into the semiclassical black-hole regime.
This distinction is important:
The first is a theorem-like consequence of modular invariance in the asymptotic regime. The second is a stronger statement about a special class of CFTs with a gravitational dual.
Modular invariance and AdS black holes
Section titled “Modular invariance and AdS3_33 black holes”The Euclidean boundary of thermal AdS is a torus. A bulk saddle is not just a boundary torus; it is a choice of which boundary cycle becomes contractible in the bulk.
Thermal AdS and the Euclidean BTZ black hole have the same kind of boundary torus but different contractible cycles. The modular transformation exchanges the temporal and spatial cycles, so it naturally exchanges the two dominant descriptions:
On the CFT side, the same statement is
This is one of the cleanest examples of the general AdS/CFT philosophy. Geometry in the bulk becomes a statement about reorganizing the boundary Hilbert-space trace.
The Brown-Henneaux central charge of pure AdS gravity is
Inserting this into the Cardy formula reproduces the Bekenstein-Hawking entropy of the BTZ black hole, after matching and to the left- and right-moving combinations of the black-hole mass and angular momentum. We will revisit this in the AdS/CFT part of the course. For now, the lesson is simple: the black-hole entropy is already latent in modular invariance of the boundary CFT.
It is worth seeing the algebra once. For a BTZ black hole with outer and inner horizon radii and ,
The left- and right-moving CFT energies are
Substituting the BTZ charges gives
Since
Cardy’s formula gives
The dependence cancels:
This is exactly the Bekenstein-Hawking entropy,
A useful dictionary
Section titled “A useful dictionary”| CFT object | Torus/modular meaning | AdS meaning |
|---|---|---|
| complex structure of the boundary torus | boundary thermal/angular potentials | |
| exchange of cycles | exchange of thermal AdS and BTZ channels | |
| cylinder Casimir shift | global AdS vacuum energy | |
| thermal trace over CFT states | gravitational path integral with torus boundary | |
| Cardy growth | universal high-energy density of states | Bekenstein-Hawking entropy of BTZ black holes |
| sparse light spectrum | vacuum dominance after modular transform | semiclassical gravity regime |
Common pitfalls
Section titled “Common pitfalls”The first pitfall is forgetting the shift. The trace is not . The cylinder vacuum energy is essential.
The second pitfall is confusing local conformal transformations with modular transformations. Virasoro symmetry acts locally on the worldsheet. Modular transformations are large diffeomorphisms of the torus. Both are crucial in 2D CFT, but they are conceptually different.
The third pitfall is treating every modular-covariant object as modular invariant. Characters transform among themselves. Individual spin-structure partition functions transform among themselves. The full physical partition function is invariant only after the correct pairing or summation.
The fourth pitfall is applying the Cardy formula outside its regime. At fixed small , it is an asymptotic high-energy statement. At large , using it near the black-hole threshold requires additional spectral assumptions.
Exercises
Section titled “Exercises”Exercise 1: The rectangular torus and the transform
Section titled “Exercise 1: The rectangular torus and the SSS transform”For a rectangular thermal torus with , show that the modular transformation sends to .
Solution
Start with
Then
If the transformed torus is written as
then
Thus
Exercise 2: Modular and spin integrality
Section titled “Exercise 2: Modular TTT and spin integrality”Assume . Show that invariance of the bosonic torus partition function requires for every state appearing in the spectrum.
Solution
A state with weights contributes
Under ,
Therefore the state contribution is multiplied by
For the full bosonic partition function to be invariant term by term, or at least not to mix phases among states with unequal phases, we need
Thus
This is integer spin.
Exercise 3: High-temperature partition function
Section titled “Exercise 3: High-temperature partition function”Assume a compact unitary CFT with a unique vacuum and . Use modular invariance to show that, as ,
Solution
At low temperature, , the vacuum dominates. Since , the vacuum cylinder energy is
Thus
Modular invariance gives
For , the transformed inverse temperature is large, so the vacuum approximation applies:
Therefore
Exercise 4: Saddle derivation of the chiral Cardy formula
Section titled “Exercise 4: Saddle derivation of the chiral Cardy formula”Let a chiral partition function behave at high temperature as
Assume
where is the chiral cylinder energy. Derive
Solution
The inverse Laplace transform is schematically
At large , evaluate by saddle point. The exponent is
The saddle equation is
Thus
At the saddle,
Therefore
The nonchiral formula is the sum of the left and right saddle entropies.
Exercise 5: Why a diagonal RCFT partition function is modular invariant
Section titled “Exercise 5: Why a diagonal RCFT partition function is modular invariant”Suppose the characters transform as
where is unitary. Show that
is invariant under .
Solution
Under ,
Expanding,
Since is unitary,
Therefore
This proves invariance. Full modular invariance also requires invariance under , which imposes compatible spin phases.
Further reading
Section titled “Further reading”For the classic 2D CFT treatment, see Di Francesco, Mathieu, and Sénéchal, especially the chapters on the operator formalism, modular invariance, minimal models, and WZW models. For the original physical argument behind the asymptotic density of states, see Cardy’s work on operator content and modular invariance. For the AdS connection, the essential later references are Brown-Henneaux for the central charge and the BTZ/Cardy entropy matching.
The next page turns from Virasoro modular technology to current algebras and WZW models, where modular transformations, affine characters, fusion rules, and the Verlinde formula become fully concrete.