CS719 Mid-Semester Exam: Max Marks: 50 Time: 2 Hours
CS719 Mid-Semester Exam: Max Marks: 50 Time: 2 Hours
• Be brief, complete and stick to what has been asked. Unnecessarily lengthy solutions may be penalized.
• If you need to make any reasonable assumptions, state them clearly. Unreasonable assumptions run
the risk of attracting penalty.
• If you need to use/cite results covered in class, you may simply cite the result, without going into a
formal proof.
1. [5 + 5 marks] Let ϕ be a first-order logic sentence on the vocabulary Σ, and let M be a Σ-structure.
Denote by 2M the Σ-structure defined as follows:
• The universe of 2M is the powerset of the universe of M sans the empty set. In other words,
M M
D2 = 2(D ) \ ∅.
M M
• For every predicate P of arity k > 0 in Σ and for every tuple (S1 , . . . Sk ) ∈ (D2 )k , P 2 (S1 , S2 , . . . Sk ) =
true iff P M (a1 , a2 , . . . ak ) = true for every (a1 , a2 , . . . ak ) ∈ S1 × S2 × · · · Sk .
M
• For every predicate P of arity 0 in Σ, P 2 () = P M ().
M M
• For every function f of arity k > 0 in Σ and for every tuple (S1 , . . . Sk ) ∈ (D2 )k , f 2 (S1 , . . . Sk ) =
{f M (a1 , . . . ak ) | a1 ∈ S1 , . . . ak ∈ Sk }.
M
• For every function f of arity 0 in Σ, f 2 () = f M ().
Either prove or disprove the following statements, assuming Σ does not contain the equality predicate.
2. [10 marks] A student has come up with a controversial proof claiming that there exists a largest
natural number. The sketch of the proof proceeds as follows:
Begin proof sketch
Consider a vocabulary Σ consisting of the constants {1, 2, . . .}. In addition, let Σ also contain = and
<. Now consider the following sets of first-order sentences:
• Γ1 = {¬(1 = 2), ¬(1 = 3), . . .}. In other words, all the constants are asserted to be distinct.
1
• Γ2 = {1 < 2, 2 < 3, . . .}. In other words, the successive constants are ordered.
• Γ3 = {∀x ¬(x < x), ∀x∀y∀z ((x < y) ∧ (y < z) → (x < z)), ∀x∀y ((x < y) → ¬(y < x))} In
other words, the < relation is irreflexive, transitive and vacuously anti-symmetric.
• Γ4 = {∃x∀y ((x = y) ∨ (y < x))}. In other words, there exists a largest element in the universe.
3. [5 + 5 + 5 marks] The spectrum of a first-order logic sentence is the set of cardinalities of all finite
models of the sentence. Thus, if ϕ ≡ ∃x∃y¬(x = y) and ψ ≡ ∃x∀y(x = y), then the spectrum of ϕ
is the set of all natural numbers greater than or equal to 2, while the spectrum of ψ is the singleton
set {1}.
Let P(n) be a predicate on natural numbers that evaluates to true on infinitely many natural numbers.
An example of such a predicate is GreaterThanOrEqualTo2 (n), which evaluates to true iff n ≥ 2.
Now consider a first-order logic sentence ϕ such that its spectrum is exactly the set of natural numbers
n satisfying P(n).
(a) Show that if the signature of ϕ doesn’t contain =, the spectrum of ϕ is co-finite, i.e. there are
only finitely many natural numbers not in the spectrum.
(b) Show that ϕ necessarily has a model with an infinite universe.
(c) Show that if there are infinitely many natural numbers satisfying ¬P(n) as well, then the
signature of ϕ necessarily contains relations/functions other than =.
4. [5 + 5 + 5 marks] Let (P ; ≤) be a partially ordered set. In each subquestion below, either give an
example of (P ; ≤) satisfying the stated property, or indicate why such a partial order cannot exist.
(a) O(P ) and P have the same cardinality, and P has at least two incomparable elements.
(b) For every element p ∈ P , both ↓ p and ↑ p have infinitely many incomparable elements.
(c) Every chain in P is of finite size, every anti-chain in P is of finite size, but P has infinitely many
elements.