Model theory

Basics of Model Theory

Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

Source file content/model-theory/basics/basics.tex

documentclass[../../../include/open-logic-chapter]subfiles

Document

Basics of Model Theory

olimportreducts-and-expansions

olimportsubstructures

olimportoverspill

olimportisomorphism

olimporttheory-of-m

olimportpartial-iso

olimportdlo

Source file content/model-theory/basics/reducts-and-expansions.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbasred

Reducts and Expansions

Often it is useful or necessary to compare languages which have symbols in common, as well as structures for these languages. The most common case is when all the symbols in a language Lsource are also part of a language L′source, i.e., L⊆L′source. An Lsource-structure Msource can then always be expanded to an L′source-structure by adding interpretations of the additional symbols while leaving the interpretations of the common symbols the same. On the other hand, from an L′source-structure M′source we can obtain an Lsource-structure simply by “forgetting” the interpretations of the symbols that do not occur in Lsource.

Definition of reduct and expansion

Suppose L⊆L′source, Msource is an Lsource-structure and M′source is an L′source-structure. Msource is the reduct of M′source to Lsource, and M′source is an expansion of Msource to L′source iff

  1. |M|=|M′|source

  2. For every constant symbol c∈Lsource, cM=cM′source.

  3. For every function symbol f∈Lsource, fM=fM′source.

  4. For every predicate symbol P∈Lsource, PM=PM′source.

Reducts preserve smaller-language sentences

If an Lsource-structure Msource is a reduct of an L′source-structure M′source, then for all Lsource-sentences Asource,

M⊨A iff M′⊨A.source

Proof

Exercise.

Exercise proving preservation under reduct

Prove reference prop:reduct.

Expansion by one predicate relation

When we have an Lsource-structure Msource, and L′=L∪{P}source is the expansion of Lsource obtained by adding a single nsource-place predicate symbol Psource, and R⊆|M|nsource is an nsource-place relation, then we write M[R]source for the expansion M′source of Msource with PM′=Rsource.

Source file content/model-theory/basics/substructures.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbassub

Substructure

The domain of a structure Msource may be a subset of another M′source. But we should obviously only consider Msource a “part” of M′source if not only |M|⊆|M′|source, but Msource and M′source “agree” in how they interpret the symbols of the language at least on the shared part |M|source.

Definition of substructure and extension

Given structures Msource and M′source for the same language Lsource, we say that Msource is a substructure of M′source, and M′source an extension of Msource, written M⊆M′source, iff

  1. |M|⊆|M′|source,

  2. For each constant c∈Lsource, cM=cM′source;

  3. For each nsource-place function symbol f∈Lsource fM(a1,…,an)=fM′(a1,…,an)source for all a1source, dots, an∈|M|source.

  4. For each nsource-place predicate symbol R∈Lsource, ⟨a1,…,an⟩∈RMsource iff ⟨a1,…,an⟩∈RM′source for all a1source, dots, an∈|M|source.

Source file content/model-theory/basics/overspill.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbasove

Overspill

Overspill theorem for finite models

If a set Γsource of sentences has arbitrarily large finite models, then it has an infinite model.

Proof

Expand the language of Γsource by adding countably many new constants c0source, c1source, dots and consider the set Γ∪{ci≠cj:i≠j}source. To say that Γsource has arbitrarily large finite models means that for every m>0source there is n≥msource such that Γsource has a model of cardinality nsource. This implies that Γ∪{ci≠cj:i≠j}source is finitely satisfiable. By compactness, Γ∪{ci≠cj:i≠j}source has a model Msource whose domain must be infinite, since it satisfies all inequalities ci≠cjsource.

Finiteness is not first-order definable

There is no sentence Asource of any first-order language that is true in a structure Msource if and only if the domain |M|source of the structure is infinite.

Proof

If there were such a Asource, its negation ¬Asource would be true in all and only the finite structures, and it would therefore have arbitrarily large finite models but it would lack an infinite model, contradicting reference overspill.

Source file content/model-theory/basics/isomorphism.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbasiso

Isomorphic Structures

First-order structures can be alike in one of two ways. One way in which they can be alike is that they make the same sentences true. We call such structures elementarily equivalent. But structures can be very different and still make the same sentences true---for instance, one can be enumerable and the other not. This is because there are lots of features of a structure that cannot be expressed in first-order languages, either because the language is not rich enough, or because of fundamental limitations of first-order logic such as the L\"owenheim--Skolem theorem. So another, stricter, aspect in which structures can be alike is if they are fundamentally the same, in the sense that they only differ in the objects that make them up, but not in their structural features. A way of making this precise is by the notion of an isomorphism.

Definition of elementary equivalence

Given two structures Msource and M′source for the same language Lsource, we say that Msource is elementarily equivalent to M′source, written M≡M′source, if and only if for every sentence Asource of Lsource, M⊨Asource iff M′⊨Asource.

Definition of isomorphism

Given two structures Msource and M′source for the same language Lsource, we say that Msource is isomorphic to M′source, written M≃M′source, if and only if there is a function h:|M|→|M′|source such that:

  1. hsource is injective: if h(x)=h(y)source then x=ysource;

  2. hsource is surjective: for every y∈|M′|source there is x∈|M|source such that h(x)=ysource;

  3. for every constant symbol csource: h(cM)=cM′source;

  4. for every nsource-place predicate symbol Psource:

    ⟨a1,…,an⟩∈PMiff⟨h(a1),…,h(an)⟩∈PM′;source
  5. for every nsource-place function symbol fsource:

    h(fM(a1,…,an))=fM′(h(a1),…,h(an)).source

Isomorphic structures are elementarily equivalent

If M≅M′source then M≡M′source.

Proof

Let hsource be an isomorphism of Msource onto M′source. For any assignment ssource, h∘ssource is the composition of hsource and ssource, i.e., the assignment in M′source such that (h∘s)(x)=h(s(x))source. By induction on tsource and Asource one can prove the stronger claims:

  1. h(⟦t⟧M[s])=⟦t⟧M′[h∘s]source.

  2. M,s⊨Asource iff M′,h∘s⊨Asource.

The first is proved by induction on the complexity of tsource.

  1. If t≡csource, then ⟦c⟧M[s]=cMsource and ⟦c⟧M′[h∘s]=cM′source. Thus, h(⟦t⟧M[s])=h(cM)=cM′source (by reference defn:iso-const of reference defn:isomorphism) =⟦t⟧M′[h∘s]source.

  2. If t≡xsource, then ⟦x⟧M[s]=s(x)source and ⟦x⟧M′[h∘s]=h(s(x))source. Thus, h(⟦x⟧M[s])=h(s(x))=⟦x⟧M′[h∘s]source.

  3. If t≡f(t1,…,tn)source, then

    ⟦t⟧M[s]=fM(⟦t1⟧M[s],…,⟦tn⟧M[s])and⟦t⟧M′[h∘s]=fM′(⟦t1⟧M′[h∘s],…,⟦tn⟧M′[h∘s]).source

    The induction hypothesis is that for each isource, h(⟦ti⟧M[s])=⟦ti⟧M′[h∘s]source. So,

    h(⟦t⟧M[s])=h(fM(⟦t1⟧M[s],…,⟦tn⟧M[s]))=fM′(h(⟦t1⟧M[s]),…,h(⟦tn⟧M[s]))=fM′(⟦t1⟧M′[h∘s],…,⟦tn⟧M′[h∘s])=⟦t⟧M′[h∘s]source

    Here, reference iso-1 follows by reference defn:iso-func of reference defn:isomorphism and reference iso-2 by induction hypothesis.

Part (b) is left as an exercise.

If Asource is a sentence, the assignments ssource and h∘ssource are irrelevant, and we have M⊨Asource iff M′⊨Asource.

Exercise completing isomorphism invariance

Carry out the proof of (b) of reference thm:isom in detail. Make sure to note where each of the five properties characterizing isomorphisms of reference defn:isomorphism is used.

Definition of automorphism

An automorphism of a structure Msource is an isomorphism of Msource onto itself.

Exercise on automorphism-invariant definable sets

Show that for any structure Msource, if Xsource is a definable subset of Msource, and hsource is an automorphism of Msource, then X={h(x):x∈X}source (i.e., Xsource is fixed under hsource).

Source file content/model-theory/basics/theory-of-m.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbasthm

The Theory of a structure

Every structure Msource makes some sentences true, and some false. The set of all the sentences it makes true is called its theory. That set is in fact a theory, since anything it entails must be true in all its models, including Msource.

Definition of the theory of a structure

Given a structure Msource, the theory of Msource is the set Th(M)source of sentences that are true in Msource, i.e., Th(M)={A:M⊨A}source.

We also use the term “theory” informally to refer to sets of sentences having an intended interpretation, whether deductively closed or not.

The theory of a structure is complete

For any Msource, Th(M)source is complete.

Proof

For any sentence Asource either M⊨Asource or M⊨¬Asource, so either A∈Th(M)source or ¬A∈Th(M)source.

Models of a complete structural theory are elementarily equivalent

If N⊨Asource for every A∈Th(M)source, then M≡Nsource.

Proof

Since N⊨Asource for all A∈Th(M)source, Th(M)⊆Th(N)source. If N⊨Asource, then N⊭¬Asource, so ¬A∉Th(M)source. Since Th(M)source is complete, A∈Th(M)source. So, Th(N)⊆Th(M)source, and we have M≡Nsource.

Source file content/model-theory/basics/partial-iso.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbaspis

Partial Isomorphisms

Definition of partial isomorphism

Given two structures Msource and Nsource, a partial isomorphism from Msource to Nsource is a finite partial function psource taking arguments in |M|source and returning values in |N|source, which satisfies the isomorphism conditions from reference defn:isomorphism on its domain:

  1. psource is injective;

  2. for every constant symbol csource: if p(cM)source is defined, then p(cM)=cNsource;

  3. for every nsource-place predicate symbol Psource: if a1source, dots, ansource are in the domain of psource, then ⟨a1,…,an⟩∈PMsource if and only if ⟨p(a1),…,p(an)⟩∈PNsource;

  4. for every nsource-place function symbol fsource: if a1source, dots, ansource are in the domain of psource, then p(fM(a1,…,an))=fN(p(a1),…,p(an))source.

That psource is finite means that dom(p)source is finite.

Notice that the empty function ∅source is always a partial isomorphism between any two structures.

Definition of partial isomorphism between structures

Two structures Msource and Nsource, are partially isomorphic, written M≅pNsource, if and only if there is a non-empty set Isource of partial isomorphisms between Msource and Nsource satisfying the back-and-forth property:

  1. (Forth) For every p∈Isource and a∈|M|source there is q∈Isource such that p⊆qsource and asource is in the domain of qsource;

  2. (Back) For every p∈Isource and b∈|N|source there is q∈Isource such that p⊆qsource and bsource is in the range of qsource.

Enumerable partially isomorphic structures are isomorphic

If M≅pNsource and Msource and Nsource are enumerable, then M≅Nsource.

Proof

Since Msource and Nsource are enumerable, let |M|={a0,a1,…}source and |N|={b0,b1,…}source. Starting with an arbitrary p0∈Isource, we define an increasing sequence of partial isomorphisms p0⊆p1⊆p2⊆⋯source as follows:

  1. if n+1source is odd, say n=2rsource, then using the Forth property find a pn+1∈Isource such that pn⊆pn+1source and arsource is in the domain of pn+1source;

  2. if n+1source is even, say n+1=2rsource, then using the Back property find a pn+1∈Isource such that pn⊆pn+1source and brsource is in the range of pn+1source.

If we now put:

p=⋃n≥0pn,source

we have that psource is a an isomorphism between Msource and Nsource.

Exercise checking the back-and-forth union map

Show in detail that psource as defined in reference thm:p-isom1 is in fact an isomorphism.

Partial isomorphism implies elementary equivalence in relational languages

Suppose Msource and Nsource are structures for a purely relational language (a language containing only predicate symbols, and no function symbols or constants). Then if M≅pNsource, also M≡Nsource.

Proof

By induction on formulas, one shows that if a1source, dots, ansource and b1source, dots, bnsource are such that there is a partial isomorphism psource mapping each aisource to bisource and s1(xi)=aisource and s2(xi)=bisource (for i=1source, dots, nsource), then M,s1⊨Asource if and only if N,s2⊨Asource. The case for n=0source gives M≡Nsource.

The previous result can be “broken down” into stages by establishing a connection between the number of nested quantifiers in a formula and how many times the relevant partial isomorphisms can be extended.

Quantifier rank and n equivalence

For any formula Asource, the quantifier rank of Asource, denoted by qr(A)∈ℕsource, is recursively defined as the highest number of nested quantifiers in Asource. Two structures Msource and Nsource are nsource-equivalent, written M≡nNsource, if they agree on all sentences of quantifier rank less than or equal to nsource.

Finitely many bounded-rank sentences

Let Lsource be a finite purely relational language, i.e., a language containing finitely many predicate symbols and constant symbols, and no function symbols. Then for each n∈ℕsource there are only finitely many first-order sentences in the language Lsource that have quantifier rank no greater than nsource, up to logical equivalence.

Proof

By induction on nsource.

Finite sequences over a structure domain

Given a structure Msource, let |M|<ωsource be the set of all finite sequences over |M|source. We use a,b,c,…source to range over finite sequences of elements. If a∈|M|<ωsource and a∈|M|source, then aasource represents the concatenation of asource with asource.

Recursive back-and-forth relations on finite sequences

Given structures Msource and Nsource, we define relations In⊆|M|<ω×|N|<ωsource between sequences of equal length, by recursion on nsource as follows:

  1. I0(a,b)source if and only if asource and bsource satisfy the same atomic formulas in Msource and Nsource; i.e., if s1(xi)=aisource and s2(xi)=bisource and Asource is atomic with all variables among x1source, dots, xnsource, then M,s1⊨Asource if and only if N,s2⊨Asource.

  2. In+1(a,b)source if and only if for every a∈|M|source there is a b∈|N|source such that In(aa,bb)source, and vice-versa.

Definition of back-and-forth equivalence at level n

Write M≈nNsource if In(⟨⟩,⟨⟩)source holds of Msource and Nsource (where ⟨⟩source is the empty sequence).

Back-and-forth agreement preserves bounded-rank formulas

Let Lsource be a purely relational language. Then In(a,b)source implies that for every Asource such that qr(A)≤nsource, we have M,a⊨Asource if and only if N,b⊨Asource (where again asource satisfies Asource if any ssource such that s(xi)=aisource satisfies Asource). Moreover, if Lsource is finite, the converse also holds.

Proof

The proof that In(a,b)source implies that asource and bsource satisfy the same formulas of quantifier rank no greater than nsource is by an easy induction on Asource. For the converse we proceed by induction on nsource, using reference prop:qr-finite, which ensures that for each nsource there are at most finitely many non-equivalent formulas of that quantifier rank.

For n=0source the hypothesis that asource and bsource satisfy the same quantifier-free formulas gives that they satisfy the same atomic ones, so that I0(a,b)source.

For the n+1source case, suppose that asource and bsource satisfy the same formulas of quantifier rank no greater than n+1source; in order to show that In+1(a,b)source suffices to show that for each a∈|M|source there is a b∈|N|source such that In(aa,bb)source, and by the inductive hypothesis again suffices to show that for each a∈|M|source there is a b∈|N|source such that aasource and bbsource satisfy the same formulas of quantifier rank no greater than nsource.

Given a∈|M|source, let Tansource be set of formulas B(x,y)source of rank no greater than nsource satisfied by aasource in Msource; Tansource is finite, so we can assume it is a single first-order formula. It follows that asource satisfies ∃xTan(x,y)source, which has quantifier rank no greater than n+1source. By hypothesis bsource satisfies the same formula in Nsource, so that there is a b∈|N|source such that bbsource satisfies Tansource; in particular, bbsource satisfies the same formulas of quantifier rank no greater than nsource as aasource. Similarly one shows that for every b∈|N|source there is a∈|M|source such that aasource and bbsource satisfy the same formulas of quantifier rank no greater than nsource, which completes the proof.

Finite back-and-forth equivalence matches bounded elementary equivalence

If Msource and Nsource are purely relational structures in a finite language, then M≈nNsource if and only if M≡nNsource. In particular M≡Nsource if and only if for each nsource, M≈nNsource .

Source file content/model-theory/basics/dlo.tex

documentclass[../../../include/open-logic-section]subfiles

Document

olfileidmodbasdlo

Dense Linear Orders

Definition of dense linear ordering without endpoints

A dense linear ordering without endpoints is a structure Msource for the language containing a single 2-place predicate symbol <source satisfying the following sentences:

  1. ∀x¬x<xsource;

  2. ∀x∀y∀z(x<y→(y<z→x<z))source;

  3. ∀x∀y(x<y∨x=y∨y<x)source;

  4. ∀x∃yx<ysource;

  5. ∀x∃yy<xsource;

  6. ∀x∀y(x<y→∃z(x<z∧z<y))source.

Cantor isomorphism theorem for countable dense orders

Any two enumerable dense linear orderings without endpoints are isomorphic.

Proof

Let M1source and M2source be enumerable dense linear orderings without endpoints, with <1=<M1source and <2=<M2source, and let Isource be the set of all partial isomorphisms between them. Isource is not empty since at least ∅∈Isource. We show that Isource satisfies the Back-and-Forth property. Then M1≅pM2source, and the theorem follows by reference thm:p-isom1.

To show Isource satisfies the Forth property, let p∈Isource and let p(ai)=bisource for i=1source, dots, nsource, and without loss of generality suppose a1<1a2<1⋯<1ansource. Given a∈|M1|source, find b∈|M2|source as follows:

  1. if a<1a1source let b∈|M2|source be such that b<2b1source;

  2. if an<1asource let b∈|M2|source be such that bn<2bsource;

  3. if ai<1a<1ai+1source for some isource, then let b∈|M2|source be such that bi<2b<2bi+1source.

It is always possible to find a bsource with the desired property since M2source is a dense linear ordering without endpoints. Define q=p∪{⟨a,b⟩}source so that q∈Isource is the desired extension of psource. This establishes the Forth property. The Back property is similar. So M1≅pM2source; by reference thm:p-isom1, M1≅M2source.

Exercise verifying the back property for dense orders

Complete the proof of reference thm:cantorQ by verifying that Isource satisfies the Back property.

Source disclosures