ArticleslgStudy

science

Spectrum of a sentence

Spectrum of a sentence is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Spectrum of a sentence rather than just read about it. In short: 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 "weak" exponential time (2O(n)), which is a subclass of NEXP.

Key takeaways

  • Spectrum of a sentence belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Spectrum of a sentence to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Spectrum of a sentence from memory before moving on to harder problems.

Reference excerpt

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 "weak" exponential time (2O(n)), which is a subclass of NEXP.

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 an ESOL sentence.

Examples The spectrum of the first-order formula ∃z,o ∀a,b,c ∃d,e

a+z=a=z+a ∧ a⋅z=z=z⋅a ∧ a+d=z ∧ a+b=b+a ∧ a⋅(b+c)=a⋅b+a⋅c ∧ (a+b)+c=a+(b+c) ∧ a⋅o=a=o⋅a ∧ a⋅e=o ∧ (a⋅b)⋅c=a⋅(b⋅c) is {pn∣p prime,n∈ℕ}, the set of powers of a prime number. Indeed, with z for 0 and o for 1, 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 ∃S,T ∀x {x∈S⟺x∉T∧ f(f(x))=x∧ x∈S⟺f(x)∈T} is the set of even numbers. Indeed, f is a bijection between S and T, and S and T 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 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). As a corollary, Jones and Selman showed that a set is in the complexity class NE if it is a spectrum. 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 n is equivalent to the problem of satisfying a formula of size polynomial in n, which is in NP(n) and thus in NE 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 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: ∀x∀y(P(x)∧P(y))→(x=y) For a model of cardinality 2 (i.e. n= 2) is replaced by ((P(a1)∧P(a1))→(a1=a1))∧((P(a1)∧P(a2))→(a1=a2))∧((P(a2)∧P(a1))→(a2=a1))∧((P(a2)∧P(a2))→(a2=a2)) Which is then replaced by ((p1∧p1)→⊤)∧((p1∧p2)→⊥)∧((p2∧p1)→⊥)∧((p2∧p2)→⊤) where ⊤ is truth, ⊥ is falsity, and p1, p2 are propositional variables. In this particular case, the last formula is equivalent to ¬(p1∧p2), 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 (2cx 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, 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. By the result of Jones and Selman, it is equivalent to the problem of whether NE = co-NE; that is, whether NE is closed under complementation. By Fagin's theorem, this is also equivalent to determining if unary NP and unary Co-NP are the same. To show that the set of first-order spectra is not closed under complementation thus entails showing that P is not equal to NP.

See also Spectrum of a theory Counting quantification

References

Fagin, Ronald (1974). "Generalized First-Order Spectra and Polynomial-Time Recognizable Sets" (PDF). In Karp, Richard M. (ed.). Complexity of Computation. Proc. Syp. App. Math. SIAM-AMS Proceedings. Vol. 7. pp. 27–41. Zbl 0303.68035. Grädel, Erich; Kolaitis, Phokion G.; Libkin, Leonid; Maarten, Marx; Spencer, Joel; Vardi, Moshe Y.; Venema, Yde; Weinstein, Scott (2007). Finite model theory and its applications. Texts in Theoretical Computer Science. An EATCS Series. Berlin: Springer-Verlag. doi:10.1007/3-540-68804-8. ISBN 978-3-540-00428-8. Zbl 1133.03001. Immerman, Neil (1999). Descriptive Complexity. Graduate Texts in Computer Science. New York: Springer-Verlag. pp. 113–119. ISBN 0-387-98600-6. Zbl 0918.68031. Durand, Arnaud; Jones, Neil; Markowsky, Johann; More, Malika (2012). "Fifty Years of the Spectrum Problem: Survey and New Results". Bulletin of Symbolic Logic. 18 (4): 505–553. arXiv:0907.5495. Bibcode:2009arXiv0907.5495D. doi:10.2178/bsl.1804020. S2CID 9507429.

Worked examples

Example 1 — a first encounter with Spectrum of a sentence

Start with the simplest possible case. Write down what Spectrum of a sentence claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Spectrum of a sentence before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Spectrum of a sentence ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Spectrum of a sentence

In research
Spectrum of a sentence appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Spectrum of a sentence in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Spectrum of a sentence is common in secondary-school and first-year university syllabi. It links to neighbouring topics Descriptive complexity, Finite model theory, so understanding it makes those chapters shorter.
In everyday life
Look for Spectrum of a sentence outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Spectrum of a sentence” →

How to study Spectrum of a sentence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Spectrum of a sentence means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Spectrum of a sentence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Spectrum of a sentence in simple terms?

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 "weak" ex…

Why does Spectrum of a sentence matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Spectrum of a sentence?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Spectrum of a sentence.

Tags

  • Descriptive complexity
  • Finite model theory

Keep exploring