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.
Definition
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
* The spectrum of the first-order formula
:
:
:
is
, the set of powers of a
prime number. Indeed, with
for
and
for
, this sentence describes the set of
fields; the
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
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
In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other s ...
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.
Properties
''
Fagin's theorem'' is a result in
descriptive complexity theory that states that the set of all properties expressible in existential
second-order logic is precisely the
complexity class NP. It is remarkable since it is a characterization of the class NP that does not invoke a model of computation such as a
Turing machine. The theorem was proven by
Ronald Fagin in 1974 (strictly, in 1973 in his doctoral thesis).
Equivalence to Turing machines
As a corollary, Jones and
Selman showed that a set is a spectrum if and only if it is in the complexity class
NEXP.
[* ]
One direction of the proof is to show that, for every first-order formula
, the problem of determining whether there is a model of the formula of
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
''n'' is equivalent to the
problem of satisfying a formula of size polynomial in ''n'', which is in NP(n) and thus in NEXP of the input to the problem (the number ''n'' in binary form, which is a string of size log(''n'')).
This is done by replacing every
existential quantifier in
with
disjunction over all the elements in the model and replacing every
universal quantifier
In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any" or "for all". It expresses that a predicate can be satisfied by every member of a domain of discourse. In other w ...
with
conjunction over all the elements in the model. Now every predicate is on elements in the model, and finally every appearance of a predicate on specific elements is replaced by a new propositional variable. Equalities are replaced by their truth values according to their assignments.
For example:
For a model of cardinality 2 (i.e. ''n''= 2) is replaced by
Which is then replaced by
where
is truth,
is falsity, and
,
are propositional variables.
In this particular case, the last formula is equivalent to
, which is satisfiable.
The other direction of the proof is to show that, for every set of binary strings accepted by a non-deterministic Turing machine running in exponential time (
for input length x), there is a first-order formula
such that the set of numbers represented by these binary strings are the spectrum of
.
Jones and Selman mention that the spectrum of first-order formulas without equality is just the set of all natural numbers not smaller than some minimal cardinality.
Other properties
The set of spectra of a theory is closed under
union,
intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their i ...
, addition, and multiplication. In full generality, it is not known if the set of spectra of a theory is closed by complementation; this is the so-called Asser's Problem.
See also
*
Spectrum of a theory
References
*
*
*
*
{{Mathematical logic
Finite model theory