Skip to main content
โšก Calmops

Model Theory Basics

Introduction

Model theory studies the relationship between formal languages (syntax) and their interpretations (semantics). It answers questions like:

  • What does a formula mean?
  • When is a formula true?
  • What structures satisfy a formula?
  • How are different models related?

Model theory is fundamental to:

  • Logic and proof theory
  • Database theory
  • Formal verification
  • Artificial intelligence
  • Philosophy of mathematics

In this article, we’ll explore the basics of model theory.

Models and Interpretations

Definition of Model

A model is a mathematical structure that assigns meaning to the symbols of a formal language.

Components:

  1. Domain (Universe): Set of objects the language talks about
  2. Interpretation: Assignment of meaning to symbols

Formal Definition:

M = (D, I)
D = domain (non-empty set)
I = interpretation function

Interpretation Function

The interpretation function assigns meaning to:

  • Constants: Elements of the domain
  • Functions: Operations on the domain
  • Relations: Subsets of the domain

Examples:

Constant a: I(a) = 5 (element of domain)
Function f: I(f) = addition (operation on domain)
Relation R: I(R) = {(1,2), (2,3)} (subset of domainยฒ)

Example: Model for Arithmetic

Language: {0, 1, +, ร—, <}

Model Mโ‚ (Natural Numbers):

Domain: โ„• = {0, 1, 2, 3, ...}
I(0) = 0
I(1) = 1
I(+) = addition
I(ร—) = multiplication
I(<) = less than

Model Mโ‚‚ (Integers mod 5):

Domain: โ„คโ‚… = {0, 1, 2, 3, 4}
I(0) = 0
I(1) = 1
I(+) = addition mod 5
I(ร—) = multiplication mod 5
I(<) = less than mod 5

Satisfiability

Definition

A formula ฯ† is satisfied by a model M (written M โŠจ ฯ†) if ฯ† is true in M.

Formal Definition:

M โŠจ ฯ† means: ฯ† is true under interpretation I in domain D

Satisfaction Rules

Atomic Formulas:

M โŠจ R(tโ‚, ..., tโ‚™) iff (I(tโ‚), ..., I(tโ‚™)) โˆˆ I(R)

Negation:

M โŠจ ยฌฯ† iff M โŠญ ฯ†

Conjunction:

M โŠจ ฯ† โˆง ฯˆ iff M โŠจ ฯ† and M โŠจ ฯˆ

Disjunction:

M โŠจ ฯ† โˆจ ฯˆ iff M โŠจ ฯ† or M โŠจ ฯˆ

Implication:

M โŠจ ฯ† โ†’ ฯˆ iff M โŠญ ฯ† or M โŠจ ฯˆ

Universal Quantification:

M โŠจ โˆ€x ฯ†(x) iff for all d โˆˆ D: M โŠจ ฯ†(d)

Existential Quantification:

M โŠจ โˆƒx ฯ†(x) iff there exists d โˆˆ D: M โŠจ ฯ†(d)

Example: Checking Satisfaction

Formula: โˆ€x (x + 0 = x)

Model M (Natural Numbers):

Domain: โ„•
I(+) = addition
I(0) = 0

Check: For all n โˆˆ โ„•, n + 0 = n?
Yes, this is true.
Therefore, M โŠจ โˆ€x (x + 0 = x)

Validity and Satisfiability

Definition of Valid Formula

A formula is valid (or a tautology) if it is satisfied by all models.

Notation:

โŠจ ฯ† (ฯ† is valid)

Formal Definition:

โŠจ ฯ† iff for all models M: M โŠจ ฯ†

Definition of Satisfiable Formula

A formula is satisfiable if it is satisfied by at least one model.

Formal Definition:

ฯ† is satisfiable iff there exists a model M: M โŠจ ฯ†

Definition of Unsatisfiable Formula

A formula is unsatisfiable if it is not satisfied by any model.

Formal Definition:

ฯ† is unsatisfiable iff for all models M: M โŠญ ฯ†

Examples

Valid Formula:

ฯ† = P(x) โˆจ ยฌP(x)
True in all models (law of excluded middle)

Satisfiable but Not Valid:

ฯ† = P(x)
True in some models, false in others

Unsatisfiable Formula:

ฯ† = P(x) โˆง ยฌP(x)
False in all models (contradiction)

Logical Consequence

Definition

A formula ฯˆ is a logical consequence of ฯ† (written ฯ† โŠจ ฯˆ) if every model that satisfies ฯ† also satisfies ฯˆ.

Formal Definition:

ฯ† โŠจ ฯˆ iff for all models M: if M โŠจ ฯ† then M โŠจ ฯˆ

Examples

Example 1:

ฯ† = โˆ€x P(x)
ฯˆ = P(a)
ฯ† โŠจ ฯˆ (if all x satisfy P, then a satisfies P)

Example 2:

ฯ† = P(a) โˆง Q(a)
ฯˆ = P(a)
ฯ† โŠจ ฯˆ (if both P and Q hold, then P holds)

Example 3:

ฯ† = P(a) โ†’ Q(a)
ฯˆ = ยฌP(a) โˆจ Q(a)
ฯ† โŠจ ฯˆ (implication is equivalent to disjunction)

Completeness and Soundness

Soundness

A proof system is sound if every provable formula is valid.

Formal Definition:

If โŠข ฯ† then โŠจ ฯ†
(provable implies valid)

Completeness

A proof system is complete if every valid formula is provable.

Formal Definition:

If โŠจ ฯ† then โŠข ฯ†
(valid implies provable)

Gรถdel’s Completeness Theorem

Theorem: First-order logic is complete.

Significance:

  • Proof theory and model theory are equivalent
  • Every valid formula has a proof
  • Syntax and semantics align

Elementary Equivalence

Definition

Two models are elementarily equivalent if they satisfy the same formulas.

Notation:

M โ‰ก N (M and N are elementarily equivalent)

Formal Definition:

M โ‰ก N iff for all formulas ฯ†: M โŠจ ฯ† iff N โŠจ ฯ†

Example

Models:

Mโ‚ = (โ„•, +, ร—, <)
Mโ‚‚ = (โ„š, +, ร—, <)

Are they elementarily equivalent?

No. The formula โˆƒx (x ร— x = 2) is true in Mโ‚‚ but false in Mโ‚.

Glossary

  • Model: Mathematical structure interpreting a language
  • Domain: Set of objects in a model
  • Interpretation: Assignment of meaning to symbols
  • Satisfiability: Formula is true in a model
  • Validity: Formula is true in all models
  • Logical consequence: Formula follows from another
  • Soundness: Provable implies valid
  • Completeness: Valid implies provable
  • Elementary equivalence: Models satisfy same formulas
  • Tautology: Valid formula

Practice Problems

Problem 1: Satisfaction

Given model M with domain {1, 2, 3} and I(P) = {1, 2}:

Is M โŠจ โˆƒx P(x)?

Solution:

Yes. There exists x (e.g., x = 1) such that P(x) is true.

Problem 2: Validity

Is the formula โˆ€x P(x) โ†’ โˆƒx P(x) valid?

Solution:

Yes. If all x satisfy P, then at least one x satisfies P.
This is true in all models.

Problem 3: Logical Consequence

Does โˆ€x (P(x) โ†’ Q(x)) and P(a) logically imply Q(a)?

Solution:

Yes. If all x satisfy P โ†’ Q, and P(a) is true,
then Q(a) must be true.

Problem 4: Elementary Equivalence

Are the models (โ„•, +) and (โ„ค, +) elementarily equivalent?

Solution:

No. The formula โˆƒx (x + x = 1) is false in (โ„•, +)
but true in (โ„ค, +).

Online Platforms

Interactive Tools

  • “Model Theory” by Chang & Keisler - Comprehensive reference
  • “Introduction to Model Theory” by Marker - Accessible introduction
  • “A Shorter Model Theory” by Hodges - Concise overview
  • “Model Theory: An Introduction” by Rothmaler - Modern approach
  • “Logic for Mathematicians” by Hamilton - Mathematical logic

Academic Journals

Software Tools

Conclusion

Model theory bridges syntax and semantics:

  • Models give meaning to formal languages
  • Satisfiability determines truth in models
  • Validity holds in all models
  • Logical consequence relates formulas
  • Completeness connects proof and semantics

Understanding model theory is essential for logic, formal verification, and artificial intelligence.

In the next article, we’ll explore satisfiability and validity in more depth.


Next Article: Satisfiability and Validity

Comments