The Nambu–Goto action is invariant under worldsheet diffeomorphisms. Its canonical Nambu–Goto phase-space constraints are
In conformal gauge, , so these become . Their smeared generators implement the residual conformal transformations rather than independent propagating degrees of freedom. Classically their Fourier modes form the classical Virasoro constraint algebra. Quantization promotes them to the Virasoro algebra, and its constraints select the physical string states from the indefinite covariant Fock space.
For clarity, start with a Neumann boundary condition at both ends of an open string, . Its open-string mode expansion is
Canonical quantization gives the string oscillator relations
With , the worldsheet stress-energy tensor obeys
Substituting the open-string mode expansion into this quadratic expression derives the Virasoro generators:
The colons mean normal ordering, placing the negative-mode creation operators to the left. The string level operator increases by when an oscillator is added.
Using the commutator once gives
Applying this to the quadratic expression for produces , together with the double-contraction Virasoro central extension. To determine its coefficient, take and evaluate on a zero-momentum oscillator vacuum. Only the creation pairs with contribute, giving
Here is the target spacetime dimension; the timelike free boson also contributes one to the central charge, since a double contraction contains two metric factors. Thus
This derives both the Virasoro generators and their quantum anomaly.
In old covariant string quantization, the physical-state Virasoro conditions for an open string are
where is the normal-ordering constant of a string. Requiring all positive and negative modes to annihilate a state would contradict the nonzero Virasoro central extension; the positive-mode prescription is the appropriate covariant subsidiary condition. The zero-mode equation gives the open bosonic string mass spectrum,
For a closed string, there are two commuting Virasoro algebras. With uncompactified zero modes, and . Imposing both positive-mode conditions and both zero-mode conditions gives the closed-string level matching and .
Covariance initially retains the timelike string oscillators. For example, has negative norm because . Its existence in the unconstrained space is not an inconsistency if it is absent from the physical quotient. The no-ghost theorem for the critical bosonic string states that, at and , the inner product on physical string states at ordinary nonzero momentum is positive semidefinite. After quotienting physical null string states, this physical space is represented by the 24 positive-norm transverse string oscillators.
A spurious string state has the form . Its inner product with every physical string state vanishes, by and . Whenever such a state is itself physical, it is a null string state and represents a gauge redundancy, not an extra polarization. Consequently the physical quotient has no negative-norm propagating states, and agrees with light-cone gauge in string theory. This is the significance of the theorem; a proof is not needed here. It does not eliminate the bosonic tachyon, whose negative mass squared is distinct from negative norm, nor does it remove the auxiliary worldsheet ghost fields used in gauge fixing.
The trace of the electromagnetic stress-energy tensor in four spacetime dimensions is
For its covariant divergence, the source-free Maxwell equations eliminate the derivative of the first factor. Contracting the Bianchi identity with gives
which cancels the derivative of the trace term. Hence
For , stress-energy conservation and symmetry of now imply