The spectrum of theories