Spectrum of a sentence

From Wikipedia, the free encyclopedia

In mathematical logic, the spectrum of a sentence is the set of natural numbers occurring as the size of a finite model in which a given sentence is true. By a result in descriptive complexity, a set of natural numbers is a spectrum if and only if it can be recognized in non-deterministic exponential time.

Let ψ be a sentence in first-order logic. The spectrum of ψ is the set of natural numbers n such that there is a finite model for ψ with n elements.

If the vocabulary for ψ consists only of relational symbols, then ψ can be regarded as a sentence in existential second-order logic (ESOL) quantified over the relations, over the empty vocabulary. A generalised spectrum is the set of models of a general ESOL sentence.

Examples

is , the set of powers of a prime number. Indeed, with for and for , this sentence describes the set of fields; the cardinality of a finite field is the power of a prime number.

  • The spectrum of the monadic second-order logic formula is the set of even numbers. Indeed, is a bijection between and , and and are a partition of the universe. Hence the cardinality of the universe is even.
  • The set of finite and co-finite sets is the set of spectra of first-order logic with the successor relation.
  • The set of ultimately periodic sets is the set of spectra of monadic second-order logic with a unary function. It is also the set of spectra of monadic second-order logic with the successor function.

Descriptive complexity

See also

References

Related Articles

Wikiwand AI