Introduction to set theory (part 1)

📚 8862889374624325376_147019423214801.pdf

Brief overview

This document provides a foundational exploration of mathematical logic and number systems. It covers the axiomatic underpinnings of set theory, logic, and various number structures, essential for advanced mathematical reasoning.

Key points

  • Overview of foundational set theory concepts and operations.
  • Exploration of number systems including natural, integer, rational, real, and complex numbers.
  • Introduction to propositional logic, its syntax, semantics, and truth values.
  • Detailed study of first-order logic syntax, semantics, and truth.
  • Examination of proof theory and its relation to logic and its applications.

1. Introduction to set theory (part 1)

1.1 Sets and basic operations

  • Set: A collection or group of objects or elements.
  • Membership: The concept of an element belonging to a set. Denoted as a∈Aa \in A.
  • Sets can be defined by listing elements within curly braces, e.g., A={a,b,c}A = \{a, b, c\}.
  • Sets can also be defined by a property, e.g., N={x∣P(x)}N = \{x \mid P(x)\} where P(x)P(x) is a property that xx must satisfy.

🔑 Important: The concepts of "set" and "membership" are fundamental building blocks of set theory.

  • Subset: Set AA is a subset of set BB (A⊆BA \subseteq B) if every element of AA is also an element of BB.
  • Empty set: The set containing no elements, denoted by ∅\emptyset 6.

Basic set operations

  • Union (A∪BA \cup B): The set of elements in either AA or BB (or both).
  • Intersection (A∩BA \cap B): The set of elements common to both AA and BB.
  • Difference (A−BA - B): The set of elements in AA but not in BB.
  • Symmetric difference (A△BA \triangle B): Elements in either AA or BB, but not both. Defined as (A−B)∪(B−A)(A - B) \cup (B - A) 7.

🔑 Important: These operations allow us to combine and compare sets systematically.

Properties of set operations

PropertyUnionIntersection
CommutativeA∪B=B∪AA \cup B = B \cup AA∩B=B∩AA \cap B = B \cap A
AssociativeA∪(B∪C)=(A∪B)∪CA \cup (B \cup C) = (A \cup B) \cup CA∩(B∩C)=(A∩B)∩CA \cap (B \cap C) = (A \cap B) \cap C
DistributiveA∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)
De Morgan's Laws(A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c(A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c
IdentityA∪∅=AA \cup \emptyset = AA∩U=AA \cap U = A
Complement lawsA∪Ac=UA \cup A^c = UA∩Ac=∅A \cap A^c = \emptyset
8

🔑 Important: These laws are crucial for simplifying set expressions and proofs.

Indexed set operations

  • For an arbitrary collection of sets {Ai∣i∈I}\{A_i \mid i \in I\}:
  • Union: ⋃i∈IAi={x∣∃i∈I;x∈Ai}\bigcup_{i \in I} A_i = \{x \mid \exists i \in I; x \in A_i\}.
  • Intersection: ⋂i∈IAi={x∣∀i∈I;x∈Ai}\bigcap_{i \in I} A_i = \{x \mid \forall i \in I; x \in A_i\}.
  • If I={1,2,…,n}I = \{1, 2, \dots, n\}, these become ⋃i=1nAi\bigcup_{i=1}^{n} A_i and ⋂i=1nAi\bigcap_{i=1}^{n} A_i.

Generalized De Morgan's and Distributive Laws

  • De Morgan's:
  • (⋃i∈IAi)c=⋂i∈IAic(\bigcup_{i \in I} A_i)^c = \bigcap_{i \in I} A_i^c
  • (⋂i∈IAi)c=⋃i∈IAic(\bigcap_{i \in I} A_i)^c = \bigcup_{i \in I} A_i^c.
  • Distributive:
  • A∩(⋃i∈IBi)=⋃i∈I(A∩Bi)A \cap (\bigcup_{i \in I} B_i) = \bigcup_{i \in I} (A \cap B_i)
  • A∪(⋂i∈IBi)=⋂i∈I(A∪Bi)A \cup (\bigcap_{i \in I} B_i) = \bigcap_{i \in I} (A \cup B_i) 9.

Common sets of numbers

Set NameSymbolDefinition
Natural numbersNN{0,1,2,3,...}\{0, 1, 2, 3,...\}
IntegersZZ{…,−3,−2,−1,0,1,2,3,… }\{\dots, -3, -2, -1, 0, 1, 2, 3, \dots\}
Rational numbersQQ{m/n∣m,n∈Z,n≠0}\{m/n \mid m, n \in Z, n \neq 0\}
  • Ordered pair: Defined as (a,b)={{a},{a,b}}(a, b) = \{\{a\}, \{a, b\}\}.
  • An ordered nn-tuple is a generalization of an ordered pair.
  • Cartesian product (A×BA \times B): The set of all ordered pairs (a,b)(a, b) where a∈Aa \in A and b∈Bb \in B. A×B={(a,b)∣(b∈B) and (a∈A)}A \times B = \{(a,b) \mid (b \in B) \text{ and } (a \in A)\} 10.
  • The order matters: A×B≠B×AA \times B \neq B \times A unless A=BA = B.
  • Generalization for nn sets: A1×⋯×An={(a1,…,an)∣ai∈Ai for all i}A_1 \times \dots \times A_n = \{(a_1, \dots, a_n) \mid a_i \in A_i \text{ for all } i\}.

📝 Example: If A={1,2}A = \{1, 2\} and B={a,b}B = \{a, b\}, then A×B={(1,a),(1,b),(2,a),(2,b)}A \times B = \{(1, a), (1, b), (2, a), (2, b)\}.

1.3 Relations

  • A relation RR from set AA to set BB is any subset of A×BA \times B 11.
  • If R⊆A×AR \subseteq A \times A, it's a relation on AA.

Properties of relations on a set AA

PropertyDefinition
Reflexive(a,a)∈R(a, a) \in R for all a∈Aa \in A.
SymmetricIf (a,b)∈R(a, b) \in R, then (b,a)∈R(b, a) \in R for all a,b∈Aa, b \in A.
TransitiveIf (a,b)∈R(a, b) \in R and (b,c)∈R(b, c) \in R, then (a,c)∈R(a, c) \in R for all a,b,c∈Aa, b, c \in A.
  • Partial order: A relation that is reflexive, antisymmetric, and transitive 12.
  • Antisymmetric: If (a,b)∈R(a, b) \in R and (b,a)∈R(b, a) \in R, then a=ba = b.
  • Strict partial order: A relation that is irreflexive and transitive.
  • Irreflexive: (a,a)∉R(a, a) \notin R for all a∈Aa \in A.
  • A relation where for any two elements a,b∈Aa, b \in A, either a≼ba \preccurlyeq b or b≼ab \preccurlyeq a (where ≼\preccurlyeq denotes the relation) is a relation of total order.
  • Equivalence relation: A relation that is reflexive, symmetric, and transitive.

🔑 Important: Equivalence relations partition a set into disjoint subsets called equivalence classes.

Partitions and Equivalence Classes

  • A partition of a set XX is a collection of non-empty, disjoint subsets of XX whose union is XX 13.
  • For an equivalence relation RR on XX, the equivalence class of xx, denoted [x]R[x]_R, is the set {y∈X∣(y,x)∈R}\{y \in X \mid (y, x) \in R\}.
  • The set of all equivalence classes is denoted X/RX/R.

🔑 Important: Every equivalence relation corresponds to a unique partition of the set, and vice-versa.

Ordered sets and lattices

  • A partially ordered set ⟨A,≼⟩\langle A, \preccurlyeq \rangle is a set AA with a partial order relation ≼\preccurlyeq 14.
  • Minimal/Maximal elements: An element that is not greater than any other (minimal) or not less than any other (maximal).
  • Minimum/Maximum elements: An element smaller than or equal to all others (minimum) or larger than or equal to all others (maximum).
  • Upper/Lower bounds: Elements greater than or equal to all elements in a subset (upper bound) or less than or equal to all (lower bound).
  • Supremum/Infimum: The least upper bound (supremum, Sup) or greatest lower bound (infimum, Inf).
  • A totally ordered set is a partially ordered set where every pair of elements is comparable.
  • A well-ordered set is a totally ordered set where every non-empty subset has a minimum element. The set of natural numbers (N,≤)(\mathbb{N}, \le) is a prime example.

🔑 Important: Well-ordered sets are foundational for proofs by induction.

1.4 Functions

  • A function ff from set AA to set BB is a relation f⊆A×Bf \subseteq A \times B such that 15:
  1. The domain of ff is AA (Dom(f)=ADom(f) = A).
  2. For every x∈Ax \in A, there is exactly one y∈By \in B such that (x,y)∈f(x, y) \in f.

🔑 Important: Functions map each element of the domain to precisely one element in the codomain.

  • Identity function (IdAId_A): IdA:A→AId_A: A \to A defined by x↦xx \mapsto x.
  • Two functions ff and gg are equal if they have the same domain and f(x)=g(x)f(x) = g(x) for all xx in their domain.

Types of functions

PropertyDefinition
Injective (one-to-one)If f(x1)=f(x2)f(x_1) = f(x_2), then x1=x2x_1 = x_2.
Surjective (onto)For every y∈Yy \in Y, there exists an x∈Xx \in X such that f(x)=yf(x) = y. The range of ff is equal to the codomain YY.
BijectiveA function that is both injective and surjective.
16
  • The composition of functions g:Y→Zg: Y \to Z and f:X→Yf: X \to Y, denoted g∘fg \circ f, is (g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x)) for all x∈Xx \in X.
  • Function composition is associative: (h∘g)∘f=h∘(g∘f)(h \circ g) \circ f = h \circ (g \circ f).

Inverse functions

  • A function f:X→Yf: X \to Y has a left inverse g:Y→Xg: Y \to X if g∘f=IdXg \circ f = Id_X 17.
  • A function f:X→Yf: X \to Y has a right inverse g:Y→Xg: Y \to X if f∘g=IdYf \circ g = Id_Y.
  • A function ff is invertible if it has both a left and a right inverse, which are then equal.
  • A function f:X→Yf: X \to Y has a left inverse if and only if ff is injective.
  • A function f:X→Yf: X \to Y has a right inverse if and only if ff is surjective.
  • A function ff is invertible if and only if it is bijective 18.

Image of sets under functions

  • Image of a set (f(A)f(A)): For a subset A⊆XA \subseteq X, f(A)={y∈Y∣∃x∈A;f(x)=y}f(A) = \{y \in Y \mid \exists x \in A; f(x) = y\} 19.
  • Preimage of a set (f−1(B)f^{-1}(B)): For a subset B⊆YB \subseteq Y, f−1(B)={x∈X∣∃y∈B;f(x)=y}f^{-1}(B) = \{x \in X \mid \exists y \in B; f(x) = y\}.

🔑 Important: Understanding image and preimage helps relate subsets of the domain to subsets of the codomain.

Properties of images under functions

  • For a function f:X→Yf: X \to Y and indexed subsets {Ai∣i∈I}\{A_i \mid i \in I\} of XX:
  • f(⋃i∈IAi)=⋃i∈If(Ai)f\left(\bigcup_{i \in I} A_i\right) = \bigcup_{i \in I} f(A_i).
  • f(⋂i∈IAi)⊆⋂i∈If(Ai)f\left(\bigcap_{i \in I} A_i\right) \subseteq \bigcap_{i \in I} f(A_i) 20.

🔑 Important: The image of a union is the union of images, but the image of an intersection is a subset of the intersection of images.

🔑 Important: Set theory provides the fundamental language and tools for advanced mathematics, logic, and computer science. Mastering these basic operations and concepts is crucial for further study.

2. Introduction to set theory (part 2)

2.1 Infinite sets

  • A set AA is infinite if there exists a function f:A→Af: A \to A which is a bijection. This means we can map elements of the set to themselves in a way that covers all elements without repetition.
  • A set AA is finite if it is not infinite.

2.1.1 Properties of finite and infinite sets

  • If A⊆BA \subseteq B and BB is infinite, then AA is also infinite.
  • If A⊆BA \subseteq B and AA is infinite, BB must also be infinite.
  • The union of two infinite sets AA and BB is infinite 22.

Key relationship: Infinite sets can be mapped bijectively onto proper subsets of themselves 21.

  • The sets N\mathbb{N} (natural numbers), Z\mathbb{Z} (integers), Q\mathbb{Q} (rational numbers), and R\mathbb{R} (real numbers) are all infinite.

2.2 Cardinality and comparing cardinalities

  • Two sets AA and BB are called equinumerous if there exists a bijection f:A→Bf: A \to B.
  • The cardinality of a set AA, denoted as ∣A∣|A| or card(A)\text{card}(A), represents its size relative to equinumerosity.

2.2.1 Countable and uncountable sets

  • A set AA is countable if it is finite or equinumerous to the set of natural numbers N\mathbb{N}.
  • An infinite set is uncountable if it is not countable 23.

Key fact: Every infinite subset of a countable set is countable.

2.2.2 Comparing cardinalities

  • For any two sets AA and BB, ∣A∣≤∣B∣|A| \le |B| if there exists an injective function f:A→Bf: A \to B.
  • ∣A∣<∣B∣|A| < |B| if ∣A∣≤∣B∣|A| \le |B| and ∣A∣≠∣B∣|A| \neq |B|. This means BB is strictly "larger" than AA.

Key relationship: ∣A∣≤∣B∣|A| \le |B| and ∣B∣≤∣A∣|B| \le |A| implies ∣A∣=∣B∣|A| = |B| 24.

  • The cardinality of the natural numbers is denoted by ℵ0\aleph_0.
  • The cardinality of the real numbers is denoted by cc.

2.2.2.1 Cantor-Schroeder-Bernstein theorem

  • The Cantor-Schroeder-Bernstein theorem states that if there are injections f:A→Bf: A \to B and g:B→Ag: B \to A, then AA and BB are equinumerous (∣A∣=∣B∣|A| = |B|).

Example: ∣N∣=∣Z∣=∣Q∣=∣N×N∣=ℵ0|\mathbb{N}| = |\mathbb{Z}| = |\mathbb{Q}| = |\mathbb{N} \times \mathbb{N}| = \aleph_0 25.

2.2.2.2 Cantor's theorem

  • Cantor's theorem states that for any set XX, ∣X∣<∣P(X)∣|X| < |P(X)|, where P(X)P(X) is the power set of XX (the set of all subsets of XX).

Important: This theorem shows there's always a larger infinity 26.

  • The power set of natural numbers, P(N)P(\mathbb{N}), is uncountable.
  • This implies ℵ0<∣P(N)∣\aleph_0 < |P(\mathbb{N})|.

Example: c=∣P(N)∣c = |P(\mathbb{N})| 27.

2.3 Arithmetic of cardinal numbers

  • Given two disjoint sets AA and BB with cardinalities ∣A∣=κ|A| = \kappa and ∣B∣=λ|B| = \lambda, their sum is defined as κ+λ=∣A∪B∣\kappa + \lambda = |A \cup B|.

2.3.1 Properties of cardinal addition

  • Commutativity: κ+λ=λ+κ\kappa + \lambda = \lambda + \kappa.
  • Associativity: (κ+λ)+μ=κ+(λ+μ)(\kappa + \lambda) + \mu = \kappa + (\lambda + \mu).
  • Monotonicity: If λ≤κ\lambda \le \kappa, then μ+λ≤μ+κ\mu + \lambda \le \mu + \kappa.

2.3.2 Cardinal multiplication

  • The product of two cardinalities κ\kappa and λ\lambda is defined as κ×λ=∣A×B∣\kappa \times \lambda = |A \times B|, where ∣A∣=κ|A| = \kappa and ∣B∣=λ|B| = \lambda 28.

2.3.3 Properties of cardinal multiplication

  • Commutativity: κλ=λκ\kappa \lambda = \lambda \kappa.

  • Associativity: (κλ)μ=κ(λμ)(\kappa \lambda) \mu = \kappa (\lambda \mu).

  • Distributivity: κ(λ+μ)=κλ+κμ\kappa (\lambda + \mu) = \kappa \lambda + \kappa \mu.

  • Monotonicity: If λ≤κ\lambda \le \kappa, then μλ≤μκ\mu \lambda \le \mu \kappa.

  • For a cardinal number κ\kappa and a natural number n>0n > 0, κn\kappa^n is defined as κ×⋯×κ\kappa \times \dots \times \kappa (n times).

Examples:

  • ℵ02=ℵ0\aleph_0^2 = \aleph_0.
  • c2=cc^2 = c.
  • R×R\mathbb{R} \times \mathbb{R} is equinumerous to R\mathbb{R}.

2.3.4 Cardinal exponentiation

  • If ∣A∣=κ|A| = \kappa and ∣B∣=λ|B| = \lambda, then the cardinality of the set of all functions from AA to BB is ∣B∣∣A∣=λκ|B|^{|A|} = \lambda^\kappa 29.

Example: ∣P(A)∣=2∣A∣|P(A)| = 2^{|A|}.

Important: For ∣N∣=ℵ0|\mathbb{N}| = \aleph_0, we have ∣P(N)∣=2ℵ0=c|P(\mathbb{N})| = 2^{\aleph_0} = c 30.

2.4 Axiomatic set theory

  • Naive set theory, based on intuition, can lead to paradoxes like Russell's paradox.
  • Axiomatic set theory provides a rigorous foundation to avoid such contradictions.

2.4.1 Basic components of axiomatic set theory

  • Variables: Symbols representing sets (e.g., x,y,X,Yx, y, X, Y).
  • Relations: Membership (∈\in) and equality (==).
  • Logical operators: Connectives (∧,∨,→,¬\land, \lor, \to, \neg) and quantifiers (∀,∃\forall, \exists).
  • Punctuation: Parentheses.

2.4.1.1 Formulas

  • Atomic formulas are simple statements like x=yx = y or x∈yx \in y 32.
  • Complex formulas are built from atomic formulas using logical operators and quantifiers.

2.4.2 Axioms

Key Axiom Type: Axioms are fundamental statements assumed to be true without proof, forming the basis of the theory.

2.4.2.1 Axiom of Extension

  • Two sets are equal if and only if they have the same elements.
  • Formal statement: ∀x∀y(x=y↔∀z(z∈x↔z∈y))\forall x \forall y (x = y \leftrightarrow \forall z (z \in x \leftrightarrow z \in y)).
  • This axiom allows us to define the subset relation: x⊆y↔∀z(z∈x→z∈y)x \subseteq y \leftrightarrow \forall z (z \in x \to z \in y) 33.

2.4.2.2 Axiom of the Empty Set

  • There exists a set with no elements.
  • This set is called the empty set and is denoted by ∅\emptyset.

2.4.2.3 Axiom of Union

  • For any set AA, there exists a set that is the union of all sets in AA.
  • Formal statement: ∀A∃B∀x(x∈B↔∃z(z∈A∧x∈z))\forall A \exists B \forall x (x \in B \leftrightarrow \exists z (z \in A \land x \in z)).
  • This axiom guarantees the existence of ⋃A\bigcup A.

2.4.2.4 Axiom of Pairing

  • For any two sets aa and bb, there exists a set containing exactly aa and bb 34.
  • This allows for the formation of sets like {a,b}\{a, b\}, {a}\{a\}, and ordered pairs.

2.4.2.5 Axiom of Power Set

  • For any set AA, there exists a set containing all subsets of AA.
  • This set is called the power set of AA, denoted by P(A)P(A) 35.

2.4.2.6 Axiom of Separation

  • This axiom allows for the creation of subsets based on a property. For a set AA and a formula φ(x)\varphi(x), there exists a set BB containing exactly the elements xx from AA for which φ(x)\varphi(x) is true.
  • Formal statement: ∀A∃B∀t(t∈B↔(t∈A∧φ(t)))\forall A \exists B \forall t (t \in B \leftrightarrow (t \in A \land \varphi(t))).
  • This axiom is crucial for resolving paradoxes like Russell's paradox. It implies that the set of all sets does not exist.

Important: Russell's paradox arises from the idea of a set containing all sets that do not contain themselves. The axiom of separation prevents such paradoxical sets from being formed 36.

2.4.2.7 Axiom of Infinity

  • This axiom guarantees the existence of at least one infinite set, specifically the natural numbers.
  • It is based on a successor function s(x)=x∪{x}s(x) = x \cup \{x\} 37.
  • The set of natural numbers N\mathbb{N} can be constructed using this axiom.

Important: The principle of mathematical induction is directly derived from the properties of the natural numbers guaranteed by this axiom 39.

2.4.2.8 Axiom of Choice

  • The axiom of choice states that for any collection of non-empty sets, there exists a function that chooses exactly one element from each set.
  • It is particularly useful when dealing with infinite collections of sets.

Key takeaway: Axiomatic set theory provides a robust framework for defining and manipulating sets, avoiding contradictions and building a consistent mathematical system 31 40.

3. Introduction to set theory (part 3)

3.1 Axiomatic set theory

Axiomatic set theory uses axioms to define sets rigorously. The selection axiom is fundamental.

It states that for any set AA, there exists a function f:A→∪Af: A \to \cup A. This function assigns an element f(x)∈xf(x) \in x for every x∈Ax \in A.

The principle of the excluded middle is also important in this context. For a set AA, if AA has an element with a maximum value, then (A,⪯)(A, \preceq) has a maximal element.

This is related to the Zermelo-Fraenkel set theory 41.

3.2 Operations on sets

An operation on a set XX is a function. For nn variables, this function takes nn elements from XX and returns one element in XX.

For example, addition, subtraction, and multiplication on real numbers are operations.

A set A⊆XA \subseteq X is closed under an operation f:Xn→Xf: X^n \to X. This means that for any elements a1,…,an∈Aa_1, \dots, a_n \in A, the result f(a1,…,an)f(a_1, \dots, a_n) must also be in AA.

Consider a collection of operations PP. A set A⊆XA \subseteq X is closed under PP.

This requires that for every operation g∈Pg \in P, if gg has kk variables, then for any elements a1,…,ak∈Aa_1, \dots, a_k \in A, the result g(a1,…,ak)g(a_1, \dots, a_k) must also be in AA.

OperationDomain & CodomainExample
Addition (+)R×R→RR \times R \to R(x,y)↦x+y(x, y) \mapsto x + y
Subtraction (-)R×R→RR \times R \to R(x,y)↦x−y(x, y) \mapsto x - y
Multiplication (×)R×R→RR \times R \to R(x,y)↦x×y(x, y) \mapsto x \times y
Inverse of addition (In)R→RR \to Rx↦−xx \mapsto -x

42

3.2.1 Closed sets

A set AA is closed under operations PP. This means for any operation g:Xk→Xg: X^k \to X in PP, if inputs a1,…,aka_1, \dots, a_k are in AA, then g(a1,…,ak)g(a_1, \dots, a_k) must also be in AA.

The set of integers (Z\mathbb{Z}) is closed under addition (+), multiplication (×), and the inverse of addition (In). This is because combining integers using these operations always results in another integer.

Consider the set A={2n∣n>1}A = \{2^n | n > 1\}. This set is not closed under the operation of inverse addition (In).

For instance, 22=42^2 = 4 is in AA, but In=−4In = -4 is not in AA 4.

A proposition concerns the existence of the smallest closed superset. For a set A⊆XA \subseteq X and a set of operations PP, there exists a smallest set B⊆XB \subseteq X.

This set BB must contain AA (A⊆BA \subseteq B) and be closed under all operations in PP.

🔑 Important: Sets that are closed under a collection of operations have unique properties, especially concerning the existence of the smallest closed superset containing a given set.

📝 Example: The set of even numbers is closed under addition because the sum of any two even numbers is always another even number. However, it is not closed under multiplication by an arbitrary integer, as an even number multiplied by an odd number can be odd.

🔑 Important: The smallest closed superset B(A,P)B(A, P) for a set AA and operations PP is the intersection of all supersets of AA that are closed under PP 43.

4. Number systems and structures

4.1 Natural numbers

  • The set of natural numbers, denoted by NN, can be defined axiomatically using the Peano axioms. These axioms establish the existence of a base element (zero) and a successor function.
  • The successor function s:N→Ns: N \to N maps each natural number to its unique successor. It is injective, meaning s(x)=s(y)s(x) = s(y) implies x=yx = y. The image of ss is all natural numbers except zero (Im(s)=N∖{0}Im(s) = N \setminus \{0\}).
  • The principle of mathematical induction states that if a subset AA of NN contains 0 and the successor of any element in AA is also in AA, then AA must be the entire set NN. This principle is fundamental for proving properties of natural numbers.
  • A key property is that for any natural number nn, s(n)≠ns(n) \ne n. This is proven by induction, showing that the successor of a number is never equal to the number itself 48 49.

4.1.1 Recursive definitions

  • Recursive definitions allow for the definition of functions based on previous values. The simplest form involves a base case (e.g., for 0) and a recursive step defining the function for the successor of an element.
  • For a function f:N→Af: N \to A, with a base case f=αf = \alpha and a recursive step f(s(n))=T(f(n))f(s(n)) = T(f(n)), where TT is an auxiliary function.
  • Examples of functions defined recursively include:
  • Doubling: 2x2x defined as 2⋅0=02 \cdot 0 = 0 and 2(n+1)=2n+22(n+1) = 2n + 2.
  • Factorial: n!n! defined as 0!=10! = 1 and (n+1)!=n!×(n+1)(n+1)! = n! \times (n+1).
  • Fibonacci sequence: a0=a1=1a_0 = a_1 = 1 and an+2=an+an+1a_{n+2} = a_n + a_{n+1} 50 54.

4.1.2 Algebraic structure of natural numbers

  • The natural numbers, along with operations like addition and multiplication, form an algebraic structure. This structure is typically denoted as N=⟨N,s,+,×,≤,0,1⟩N = \langle N, s, +, \times, \le, 0, 1 \rangle.
  • Key properties of this algebraic structure include:
  • Associativity of addition: (x+y)+z=x+(y+z)(x+y)+z = x+(y+z).
  • Commutativity of addition: x+y=y+xx+y = y+x.
  • Associativity of multiplication: (x×y)×z=x×(y×z)(x \times y) \times z = x \times (y \times z).
  • Commutativity of multiplication: x×y=y×xx \times y = y \times x.
  • Identity element for addition: x+0=xx+0 = x.
  • Identity element for multiplication: x×1=xx \times 1 = x.
  • Zero property for multiplication: x×0=0x \times 0 = 0.
  • Distributivity of multiplication over addition: x×(y+z)=(x×y)+(x×z)x \times (y+z) = (x \times y) + (x \times z).
  • Cancellation for addition: If x+y=x+zx+y = x+z, then y=zy=z.
  • Cancellation for multiplication: If x≠0x \ne 0 and x×y=x×zx \times y = x \times z, then y=zy=z 59 60 61 62 63.

4.1.3 Order relation on natural numbers

  • The order relation ≤\le on natural numbers is defined as m≤nm \le n if there exists a natural number kk such that n=m+kn = m+k.
  • Properties of the order relation:
  • Reflexivity: a≤aa \le a.
  • Transitivity: If a≤ba \le b and b≤cb \le c, then a≤ca \le c.
  • Antisymmetry: If a≤ba \le b and b≤ab \le a, then a=ba=b.
  • Totality: For any a,b∈Na, b \in N, either a≤ba \le b or b≤ab \le a.
  • The natural numbers with the order relation ≤\le form a well-ordered set. This means every non-empty subset has a least element 64 65.
  • Strong induction: A variation of induction states that if for a subset A⊆NA \subseteq N, for every k∈Nk \in N, if all numbers xx less than kk are in AA, then kk is also in AA, then A=NA=N 66.

4.2 Isomorphism of natural numbers

  • Any two well-structured systems of natural numbers, defined by Peano axioms, are isomorphic. This means there exists a structure-preserving bijection between them.
  • If ⟨N′,s′,0′⟩\langle N', s', 0' \rangle is another system satisfying Peano axioms, there exists an isomorphism I:N→N′I: N \to N' such that:
  • I=0′I = 0' .
  • I=s′(0′)=1′I = s'(0') = 1' 1.
  • I(s(n))=s′(I(n))I(s(n)) = s'(I(n)) for all n∈Nn \in N.
  • This isomorphism preserves addition, multiplication, and the order relation:
  • I(n+m)=I(n)+′I(m)I(n+m) = I(n) +' I(m)
  • I(n×m)=I(n)×′I(m)I(n \times m) = I(n) \times' I(m)
  • m≤n  ⟺  I(m)≤′I(n)m \le n \iff I(m) \le' I(n) 67 68 69.

5. Propositional logic (part 1)

5.1 Propositional logic basics

  • Propositional logic provides a formal language for mathematical reasoning. It aims to model thought by defining simple statements and how they combine.
  • Simple statements are called atomic propositions or formulas. These are the basic building blocks.

📝 Example:

  • "2 is an even number" is an atomic proposition.
  • "The set of real numbers" is an atomic proposition.
  • Combining atomic propositions creates more complex statements. These are formed using logical connectives.

5.2 Syntax of propositional logic

  • The syntax defines the valid structure of statements in propositional logic. It is similar to the grammar of natural languages.

5.2.1 The alphabet

  • The alphabet consists of logical symbols, grouping symbols, and propositional variables.
Symbol TypeSymbolsDescription
Logical connectives∧, ∨, →→, ¬AND, OR, IMPLIES, NOT
Grouping symbols(, )Parentheses
Propositional variablesp₀, p₁, p₂,...Basic atomic propositions
  • The set of all symbols forms the alphabet: A=∧,∨,→,¬,(,)∪ATOMA = {∧, ∨, →, ¬, (, )} ∪ ATOM 72.

5.2.2 Formulas (expressions)

  • Formulas are finite sequences of symbols from the alphabet A.
  • The set of all formulas is denoted by Exp, which is A*, meaning all possible finite strings of symbols from A.

🔑 Important:

  • ATOM is the set of propositional variables (e.g., p₀, p₁).
  • Exp is the set of all strings formed from the alphabet A.

📝 Example: If ATOM = {p₀, p₁, p₂}, then the following are expressions:

  • p₀
  • (p₀ ∧ p₁)
  • ((p0∨p1)→p2)((p₀ ∨ p₁) → p₂).

5.2.3 Logical connectives as operations

  • Logical connectives act as operations on expressions.
OperationSymbolTypeResult
Conjunction∧Exp×Exp→ExpExp × Exp → Exp(α ∧ β)
Disjunction∨Exp×Exp→ExpExp × Exp → Exp(α ∨ β)
Implication→→Exp×Exp→ExpExp × Exp → Exp(α→β)(α → β)
Negation¬Exp→ExpExp → Exp(¬α)
  • These connectives are used to build complex formulas from simpler ones 73.

5.2.4 Well-formed formulas (propositions)

  • The set of well-formed formulas (WFFs), also called propositions, is a subset of Exp.
  • It is defined recursively:
  1. Atomic propositions (variables from ATOM) are WFFs.
  2. If α and β are WFFs, then (α ∧ β), (α ∨ β), (α→β)(α → β), and (¬α) are also WFFs.
  3. Only expressions formed by these rules are WFFs.

🔑 Important:

  • Prop denotes the set of well-formed formulas.
  • This recursive definition ensures that formulas have a clear, unambiguous structure.

📝 Example:

  • (p₀ ∧ p₁) is a WFF.
  • ((p0∧p1)→p2)((p₀ ∧ p₁) → p₂) is a WFF 75.
  • Recursive definition of Prop:
  • P₀ = ATOM
  • P<SUB>n+1</SUB>=P<SUB>n</SUB>∪(α∧β),(α∨β),(α→β),(¬α)∣α,β∈P<SUB>n</SUB>P<SUB>n+1</SUB> = P<SUB>n</SUB> ∪ {(α ∧ β), (α ∨ β), (α → β), (¬α) | α, β ∈ P<SUB>n</SUB>}
  • Prop=∪<SUB>n=0</SUB><sup>∞</sup>P<SUB>n</SUB>Prop = ∪<SUB>n=0</SUB><sup>∞</sup> P<SUB>n</SUB>.

5.2.5 Unique readability

  • A key property is that each WFF has a unique structure. This means it can be parsed in only one way.
  • For example, (p₀ ∧ p₁) is distinct from (p₁ ∧ p₀) syntactically 76.

🔑 Important: The unique structure prevents ambiguity in interpreting logical formulas, crucial for formal reasoning.

  • Theorem: For any WFF α, the number of opening parentheses ( equals the number of closing parentheses ) 77.
  • Theorem: For any WFF α, the count of left parentheses equals the count of right parentheses (L[α = R[α]) 78.
  • Theorem: If α is a WFF, then it cannot be uniquely decomposed into (α₁ ∧ β₁) or (α2→β2)(α₂ → β₂) in multiple ways unless the components are identical. This ensures a unique parse tree for every WFF 81 82 83.

🔑 Important: The unique parse tree structure is essential for defining truth values and logical consequences consistently.

5.3 Recursion theorem for propositional logic

  • The recursion theorem allows defining functions on the set of WFFs (Prop) based on their structure.
  • It states that if you can define functions for the basic components (atomic propositions and connectives), you can extend them to all WFFs.

Theorem (Recursion Theorem): Given a set A and functions for connectives:

  • T∧:A×A→AT∧: A×A→A
  • T∨:A×A→AT∨: A×A→A
  • T−→:A×A→AT− →: A×A→A
  • T¬:A→AT¬: A→A Then, for any function f:ATOM→Af: ATOM → A, there exists a unique extension ¯f:Prop→A¯f: Prop → A such that:
  • ¯f[(α ∧ β)] = T∧[¯f(α), ¯f(β)]
  • ¯f[(α ∨ β)] = T∨[¯f(α), ¯f(β)]
  • ¯f[(α→β)]=T−→[¯f(α),¯f(β)]¯f[(α → β)] = T− →[¯f(α), ¯f(β)]
  • ¯f[(¬α)] = T¬[¯f(α)] 84.

🔑 Important: This theorem is fundamental for proving properties about all WFFs by induction. It guarantees that functions defined on atomic propositions can be consistently extended to all complex formulas.

6. Propositional logic (part 2)

6.1 Semantics of propositional logic

  • Truth values: These are the two possible values a proposition can have: true or false. The set of truth values is {0,1}\{0, 1\} 1.
  • Valuation function: A function vv that assigns a truth value to each atomic proposition. It maps from atomic propositions (ATOM) to truth values {0,1}\{0, 1\}.
  • v(p)=1v(p) = 1 means proposition pp is true.
  • v(p)=0v(p) = 0 means proposition pp is false.

📝 Example:

  • v1v_1: assigns 1 to every atomic proposition.
  • v2v_2: assigns 0 to every atomic proposition 88.
  • v3v_3: assigns 1 to p0p_0 and p1p_1, and 0 to all other atomic propositions.
  • Evaluation function: A function vˉ\bar{v} that extends a valuation function vv from atomic propositions to all propositional formulas. It calculates the truth value of complex formulas based on the truth values of their components and the logical connectives.
  • vˉ[(α∧β)]=min⁡{vˉ[α,vˉ[β]}\bar{v}[(\alpha \land \beta)] = \min\{\bar{v}[\alpha, \bar{v}[\beta]\} 89.
  • vˉ[(α∨β)]=max⁡{vˉ[α,vˉ[β]}\bar{v}[(\alpha \lor \beta)] = \max\{\bar{v}[\alpha, \bar{v}[\beta]\}.
  • vˉ[(α→β)]=0\bar{v}[(\alpha \to \beta)] = 0 if and only if vˉ[α=1\bar{v}[\alpha = 1 and vˉ[β=0\bar{v}[\beta = 0.
  • vˉ[(¬α)]=1−vˉ[α]\bar{v}[(\neg \alpha)] = 1 - \bar{v}[\alpha].

🔑 Important: The evaluation function vˉ\bar{v} is uniquely determined by the valuation function vv on atomic propositions 90.

  • Truth tables: A method to systematically determine the truth value of a propositional formula for all possible combinations of truth values of its atomic propositions.

📝 Example: Truth table for (p1∧p2)→p3(p_1 \land p_2) \to p_3 93.

p1p_1p2p_2p3p_3(p1∧p2)(p_1 \land p_2)(p1∧p2)→p3(p_1 \land p_2) \to p_3
11111
11010
10101
10001
01101
01001
00101
00001

6.2 Logical Equivalence and Consequence

  • Tautology: A propositional formula that is always true, regardless of the truth values of its atomic propositions. Its evaluation function always returns 1.
  • Notation: ∣⊨α|\models \alpha.

📝 Example: (p∨¬p)(p \lor \neg p) is a tautology.

  • Contradiction: A propositional formula that is always false. Its evaluation function always returns 0.

  • Logical consequence: Proposition β\beta is a logical consequence of propositions α1,…,αn\alpha_1, \dots, \alpha_n if β\beta is true whenever all αi\alpha_i are true.

  • Notation: α1,…,αn⊨β\alpha_1, \dots, \alpha_n \models \beta.

  • Logical equivalence: Two propositional formulas α\alpha and β\beta are logically equivalent if they have the same truth value for all possible assignments of truth values to their atomic propositions.

  • Notation: α≡β\alpha \equiv \beta.

  • This means vˉ(α)=vˉ(β)\bar{v}(\alpha) = \bar{v}(\beta) for all valuation functions vv.

  • Equivalently, α→β\alpha \to \beta and β→α\beta \to \alpha are tautologies.

🔑 Important: Logical equivalence means that one formula can be substituted for another in any context without changing the truth value of the overall expression.

  • Properties of logical equivalence:
  • Commutativity:
  • (α∨β)≡(β∨α)(\alpha \lor \beta) \equiv (\beta \lor \alpha).
  • (α∧β)≡(β∨α)(\alpha \land \beta) \equiv (\beta \lor \alpha).
  • Associativity:
  • α∨(β∨γ)≡(α∨β)∨γ\alpha \lor (\beta \lor \gamma) \equiv (\alpha \lor \beta) \lor \gamma.
  • α∧(β∧γ)≡(α∧β)∧γ\alpha \land (\beta \land \gamma) \equiv (\alpha \land \beta) \land \gamma.
  • Distributivity:
  • α∨(β∧γ)≡(α∨β)∧(α∨γ)\alpha \lor (\beta \land \gamma) \equiv (\alpha \lor \beta) \land (\alpha \lor \gamma).
  • α∧(β∨γ)≡(α∨β)∧(α∨γ)\alpha \land (\beta \lor \gamma) \equiv (\alpha \lor \beta) \land (\alpha \lor \gamma).
  • De Morgan's Laws:
  • ¬(α∧β)≡(¬α∨¬β)\neg(\alpha \land \beta) \equiv (\neg \alpha \lor \neg \beta).
  • ¬(α∨β)≡(¬α∧¬β)\neg(\alpha \lor \beta) \equiv (\neg \alpha \land \neg \beta).
  • Double negation: ¬¬α≡α\neg \neg \alpha \equiv \alpha 96.
  • Implication relation: (α→β)≡(¬α∨β)(\alpha \to \beta) \equiv (\neg \alpha \lor \beta) 97.

6.3 Normal Forms

  • Disjunctive Normal Form (DNF): A propositional formula is in DNF if it is a disjunction of conjunctions of literals (atomic propositions or their negations).

  • General form: ⋁j=1m⋀i=1nψij\bigvee_{j=1}^{m} \bigwedge_{i=1}^{n} \psi_{ij}, where ψij\psi_{ij} are literals 103.

  • Conjunctive Normal Form (CNF): A propositional formula is in CNF if it is a conjunction of disjunctions of literals.

  • General form: ⋀j=1m⋁i=1nθij\bigwedge_{j=1}^{m} \bigvee_{i=1}^{n} \theta_{ij}, where θij\theta_{ij} are literals.

🔑 Important: Every propositional formula can be converted into an equivalent DNF and an equivalent CNF.

📝 Example:

  • pp: is both DNF and CNF.
  • (p1∧¬p2)(p_1 \land \neg p_2): is both DNF and CNF.
  • (p1∧p2)∨(p3∧p4)(p_1 \land p_2) \lor (p_3 \land p_4): is DNF, but not CNF.
  • (p3∨p4)∧(p5∨p6)(p_3 \lor p_4) \land (p_5 \lor p_6): is CNF, but not DNF 105.

🔑 Important: Every Boolean function (from {0,1}n\{0,1\}^n to {0,1}\{0,1\}) can be represented by a DNF formula 104.

🔑 Important: The most exam-relevant insight for this topic is understanding how truth values and logical connectives combine to define the meaning of propositions, leading to concepts like tautologies, logical consequence, and equivalence 95.

7. First-order logic (part 1)

7.1 Introduction to propositional logic

First-order logic extends propositional logic. Propositional logic deals with simple statements and their logical connections.

  • Propositional formulas: These are built from atomic propositions and logical connectives.
  • Examples: p1p_1, (p1∧p2)(p_1 \land p_2), ((p1∧p2)→p3)((p_1 \land p_2) \rightarrow p_3) 94.
  • Logical connectives: Symbols representing logical operations.
  • := defines a connective based on others.
  • ↔ (biconditional): Defined as (α→β)∧(β→α)(\alpha \rightarrow \beta) \land (\beta \rightarrow \alpha).
  • ↔ (exclusive OR, XOR): Defined as (α∨β)∧¬(α∧β)(\alpha \vee \beta) \land \neg(\alpha \land \beta).

7.1.1 Truth values and models

A truth value assignment assigns a value (0 or 1) to each atomic proposition. This assignment forms a model.

  • v(α) = 1: Atomic proposition αα is true in model vv.
  • v(α) = 0: Atomic proposition αα is false in model vv.
  • |= α: Proposition αα is a tautology (always true).
  • Example: ((p1∧p2)→p3)→(p1→(p2→p3))((p_1 \land p_2) \rightarrow p_3) \rightarrow (p_1 \rightarrow (p_2 \rightarrow p_3)) is a tautology.

7.1.2 Logical consequence and equivalence

Two propositions are related by semantic consequence if the truth of one guarantees the truth of the other.

  • Semantic consequence: α⊨β\alpha \models \beta means if v(α)=1v(\alpha)=1 in a model vv, then v(β)=1v(\beta)=1 must also hold.
  • Logical equivalence: α≡β\alpha \equiv \beta means α⊨β\alpha \models \beta and β⊨α\beta \models \alpha.
  • This implies v(α)=v(β)v(\alpha) = v(\beta) for all models vv 95.

Key logical equivalences

PropertyFormula
Associativity (∨)α∨(β∨γ)≡(α∨β)∨γ\alpha \vee (\beta \vee \gamma) \equiv (\alpha \vee \beta) \vee \gamma
Associativity (∧)α∧(β∧γ)≡(α∧β)∧γ\alpha \wedge (\beta \wedge \gamma) \equiv (\alpha \wedge \beta) \wedge \gamma
Distributivity (∨ over ∧)α∨(β∧γ)≡(α∧β)∨(α∧γ)\alpha \vee (\beta \wedge \gamma) \equiv (\alpha \wedge \beta) \vee (\alpha \wedge \gamma)
Distributivity (∧ over ∨)α∧(β∨γ)≡(α∨β)∧(α∨γ)\alpha \wedge (\beta \vee \gamma) \equiv (\alpha \vee \beta) \wedge (\alpha \vee \gamma)
Commutativity (∨)(α∨β)≡(β∨α)(\alpha \vee \beta) \equiv (\beta \vee \alpha)
Commutativity (∧)(α∧β)≡(β∧α)(\alpha \wedge \beta) \equiv (\beta \wedge \alpha)
De Morgan's Laws¬(α∧β)≡(¬α∨¬β)\neg(\alpha \wedge \beta) \equiv (\neg \alpha \vee \neg \beta)
¬(α∨β)≡(¬α∧¬β)\neg(\alpha \vee \beta) \equiv (\neg \alpha \wedge \neg \beta)
Double Negation¬¬α≡α\neg \neg \alpha \equiv \alpha
Implication(α→β)≡(¬α∨β)(\alpha \rightarrow \beta) \equiv (\neg \alpha \vee \beta)

Substitution replaces all occurrences of a specific atomic proposition with another proposition.

  • α[ψ/p]\alpha[\psi/p]: Proposition αα with pp replaced by ψ\psi.

  • Example: (p∧q)[ψ/p=(ψ∧q)(p \land q)[\psi/p = (\psi \land q) 97.

  • Substitution property: If αα is a tautology, then α[ψ/p]α[\psi/p] is also a tautology 98.

  • Equivalence preservation: If α≡βα \equiv \beta, then α[ψ/p≡β[ψ/p]α[\psi/p \equiv \beta[\psi/p].

  • If φ≡ψφ \equiv ψ, then α[φ/p≡α[ψ/p]α[φ/p \equiv α[ψ/p] 101.

7.1.4 Completeness of logical connectives

Certain sets of connectives are functionally complete, meaning all propositional formulas can be expressed using only those connectives.

  • Complete sets:

  • {∧,∨,¬}\{\land, \lor, \neg\}.

  • {∧,¬}\{\land, \neg\}.

  • {∨,¬}\{\lor, \neg\} 108.

  • {↓}\{\downarrow\} (NAND).

  • {↑}\{\uparrow\} (NOR).

  • Incomplete sets:

  • {∧,∨,→}\{\land, \lor, \rightarrow\}.

  • {→,∧}\{\rightarrow, \land\}, {→,∨}\{\rightarrow, \lor\} 109.

  • {↔}\{\leftrightarrow\} 110.

Example: Proving completeness of {∧,∨,¬}\{\land, \lor, \neg\}

To show a set is complete, demonstrate that all other connectives can be formed from it.

  • ¬p can be formed as p ↓ p (NAND) or p | p (NOR).
  • p ∨ q can be formed as (p ↓ q) ↓ (p ↓ q).
  • p ∧ q can be formed as (p | q) | (p | q) 111.

7.1.5 Normal forms

Normal forms provide standardized ways to represent propositional formulas.

  • Disjunctive Normal Form (DNF): A disjunction of conjunctions of literals (atomic propositions or their negations).

  • General form: ⋁j=1m⋀i=1nψij\bigvee_{j=1}^m \bigwedge_{i=1}^n \psi_{ij} 103.

  • Example: (p1∧p2)∨(p3∧p4)(p_1 \land p_2) \lor (p_3 \land p_4).

  • Conjunctive Normal Form (CNF): A conjunction of disjunctions of literals.

  • General form: ⋀j=1m⋁i=1nθij\bigwedge_{j=1}^m \bigvee_{i=1}^n \theta_{ij}.

  • Example: (p3∨p4)∧(p5∨p6)(p_3 \lor p_4) \land (p_5 \lor p_6).

  • Theorem: Every Boolean function can be represented in DNF 104.

Transformation to normal forms

  • p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) (distributivity).
  • ¬(p ∧ q) ≡ ¬p ∨ ¬q (De Morgan's law) 96.

7.1.6 Satisfiability and consequence

These concepts extend the notion of truth from individual propositions to sets of propositions.

  • Satisfiability: A set of propositions ΣΣ is satisfiable if there exists at least one model where all propositions in ΣΣ are true.
  • If no such model exists, ΣΣ is unsatisfiable.
  • Model: A truth value assignment vv for ΣΣ.
  • Logical consequence: Σ⊨αΣ \models α if every model of ΣΣ is also a model of αα.
  • Equivalently, if v(σ)=1v(σ) = 1 for all σ∈Σσ \in Σ, then v(α)=1v(α) = 1.

Key relationships

Σ⊨αΣ \models α if and only if Σ∪{¬α}Σ \cup \{\neg α\} is unsatisfiable.

  • Examples of satisfiable sets:

  • {p1,p2,… }\{p_1, p_2, \dots\} (all propositions true).

  • {¬p1,¬p2,… }\{\neg p_1, \neg p_2, \dots\} (all propositions false).

  • {p1→p2,p2→p3,…,pn→pn+1}\{p_1 \rightarrow p_2, p_2 \rightarrow p_3, \dots, p_n \rightarrow p_{n+1}\} 112.

  • Consequence relation: {α1,…,αn}⊨β\{α_1, \dots, α_n\} \models β if and only if (α1∧⋯∧αn)⊨β(α_1 \land \dots \land α_n) \models β 113.


🔑 Important: Understanding tautologies, logical equivalence, normal forms (DNF and CNF), and the concepts of satisfiability and logical consequence are crucial for analyzing and manipulating logical statements in propositional logic.

8. Propositional logic (part 3)

8.1 Normal forms and complete sets

  • A formula is in Disjunctive Normal Form (DNF) if it is a disjunction of conjunctions of literals.
  • A formula is in Conjunctive Normal Form (CNF) if it is a conjunction of disjunctions of literals.

8.1.1 Expressing formulas in DNF

  • To convert a propositional formula to DNF:
  • Replace implications (  ⟹  \implies) and equivalences (  ⟺  \iff) using their definitions.
  • Push negations inwards using De Morgan's laws and negation rules.
  • Distribute conjunctions over disjunctions to achieve DNF 107.

📝 Example: For the formula ϕ(p1,p2,p3)\phi(p_1, p_2, p_3), if its truth table shows it's true in rows 2, 5, and 8, the DNF is: ϕ:=(p1∧p2∧p3)∨(¬p1∧p2∧p3)∨(¬p1∧¬p2∧¬p3)\phi:= ( p_1 \land p_2 \land p_3) \lor (\neg p_1 \land p_2 \land p_3) \lor (\neg p_1 \land \neg p_2 \land \neg p_3) .

8.1.2 Complete sets of logical connectives

  • A set of logical connectives is complete if any propositional formula can be expressed using only those connectives.
  • Completeness is essential for building any logical expression.
Complete SetConnectivesDescription
Set (a){∧,∨,¬}\{\land, \lor, \neg\}Standard set for expressing all formulas.
Set (b){∧,∨,¬,  ⟹  }\{\land, \lor, \neg, \implies\}Includes implication.
Set (c){∨,¬}\{\lor, \neg\}Minimal complete set.
Set (d){∧,¬}\{\land, \neg\}Another minimal complete set.
108

8.1.3 Incomplete sets of connectives

  • Some sets of connectives cannot express all possible propositional formulas.
  • Examples of incomplete sets include {∧,∨}\{\land, \lor\} and {  ⟹  ,∧}\{\implies, \land\} 109.

🔑 Important: If a set of connectives can only form "positive" formulas (where negations only apply to atomic propositions), it is incomplete.

8.1.4 The set {  ⟹  \implies} is incomplete

  • The connective   ⟹  \implies alone cannot form all propositional formulas.
  • Any combination using only   ⟹  \implies will always result in a formula that evaluates to true if the first variable is false.

8.1.5 The set {  ⟺  \iff} is incomplete

  • The biconditional connective (  ⟺  \iff) is also insufficient on its own.
  • Formulas constructed solely with   ⟺  \iff do not cover all truth assignments.

8.1.6 Sheffer stroke (NAND) and NOR

  • The NOR operator (↓\downarrow) is defined as p↓q:=¬(p∨q)p \downarrow q:= \neg (p \lor q).
  • The NAND operator (∣\mid) is defined as p∣q:=¬(p∧q)p \mid q:= \neg (p \land q).
OperatorEquivalenceConstruction
NORp↓qp \downarrow q¬(p∨q)\neg(p \lor q)
NANDp∣qp \mid q¬(p∧q)\neg(p \land q)
111
  • Both {↓}\{\downarrow\} and {∣}\{\mid\} are complete sets of connectives.
  • This means any logical formula can be built using only NOR gates or only NAND gates.

8.2 Satisfiability and entailment

8.2.1 Definitions

  • A valuation is a function vv that assigns truth values (0 or 1) to atomic propositions.
  • A set of formulas Σ\Sigma is satisfiable if there exists a valuation vˉ\bar{v} such that vˉ(σ)=1\bar{v}(\sigma) = 1 for every σ∈Σ\sigma \in \Sigma.
  • A set of formulas Σ\Sigma is unsatisfiable if no such valuation exists.

8.2.2 Entailment

  • A formula α\alpha is entailed by a set of formulas Σ\Sigma (denoted Σ⊨α\Sigma \models \alpha) if for every valuation vˉ\bar{v}, if vˉ(σ)=1\bar{v}(\sigma) = 1 for all σ∈Σ\sigma \in \Sigma, then vˉ(α)=1\bar{v}(\alpha) = 1.
  • Σ⊨α\Sigma \models \alpha means α\alpha logically follows from Σ\Sigma.

📝 Example:

  1. Σ1={p1,…,pn}\Sigma_1 = \{p_1, \dots, p_n\} is satisfiable. A valuation assigning 1 to all pip_i satisfies it.
  2. Σ3={p1  ⟹  p2,p2  ⟹  p3,…,pn  ⟹  pn+1}\Sigma_3 = \{p_1 \implies p_2, p_2 \implies p_3, \dots, p_n \implies p_{n+1}\} is satisfiable. A valuation where p1=⋯=pn=0p_1=\dots=p_n=0 and pn+1=1p_{n+1}=1 works 112.
  3. Σ5={p1  ⟹  p2,p2  ⟹  p3,… }\Sigma_5 = \{p_1 \implies p_2, p_2 \implies p_3, \dots\} is satisfiable by infinitely many valuations.

8.2.3 Relationship between entailment and satisfiability

  • A set of formulas Σ\Sigma entails α\alpha (Σ⊨α\Sigma \models \alpha) if and only if the set Σ∪{¬α}\Sigma \cup \{\neg \alpha\} is unsatisfiable.
  • This means if α\alpha is true in all models of Σ\Sigma, then adding ¬α\neg \alpha to Σ\Sigma creates a contradiction 113.

8.2.4 Properties of entailment

  • Reflexivity: If Σ⊆Γ\Sigma \subseteq \Gamma and Σ⊨α\Sigma \models \alpha, then Γ⊨α\Gamma \models \alpha.
  • Transitivity: If Σ⊨α\Sigma \models \alpha and Σ⊨α  ⟹  β\Sigma \models \alpha \implies \beta, then Σ⊨β\Sigma \models \beta (Modus Ponens).
  • Deduction Theorem: Σ⊨α  ⟹  β\Sigma \models \alpha \implies \beta if and only if Σ∪{α}⊨β\Sigma \cup \{\alpha\} \models \beta.

8.2.5 Independent sets

  • A formula α\alpha is independent of a set Σ\Sigma if Σ⊭α\Sigma \not\models \alpha and Σ⊭¬α\Sigma \not\models \neg \alpha.
  • This means there are models where α\alpha is true and models where α\alpha is false, relative to Σ\Sigma 114.

🔑 Important: If Σ\Sigma is unsatisfiable, then Σ⊨α\Sigma \models \alpha for any formula α\alpha.

8.3 Compactness

8.3.1 Definitions

  • A set of formulas Σ\Sigma is finitely satisfiable if every finite subset of Σ\Sigma is satisfiable.
  • A set of formulas Σ\Sigma is finitely complete if for any formula θ\theta, there exists a finite subset Γ0⊆Γ\Gamma_0 \subseteq \Gamma such that Γ0⊨θ\Gamma_0 \models \theta or Γ0⊨¬θ\Gamma_0 \models \neg \theta.

8.3.2 The Compactness Theorem

  • A set of formulas Σ\Sigma is satisfiable if and only if it is finitely satisfiable.
  • This is a fundamental theorem in propositional logic. It means that if an infinite set of formulas is "locally" consistent (every finite part is consistent), then the entire infinite set is consistent 116.

🔑 Important: The Compactness Theorem allows us to infer global consistency from local consistency, which is crucial for many proofs in logic and computer science.

9. First-order logic (part 2)

9.1 Logical entailment and independence

  • Entailment (Σ⊨α\Sigma \models \alpha): A set of formulas Σ\Sigma entails α\alpha if α\alpha is true in every model where all formulas in Σ\Sigma are true.
  • Independence: A formula α\alpha is independent of Σ\Sigma if Σ∪{α}\Sigma \cup \{\alpha\} and Σ∪{¬α}\Sigma \cup \{\neg \alpha\} are both satisfiable.

Properties of entailment

  • If Σ⊨α\Sigma \models \alpha and Σ⊆Γ\Sigma \subseteq \Gamma, then Γ⊨α\Gamma \models \alpha.
  • If Σ⊨α→β\Sigma \models \alpha \to \beta and Σ⊨α\Sigma \models \alpha, then Σ⊨β\Sigma \models \beta (Modus Ponens).
  • Σ⊨α→β\Sigma \models \alpha \to \beta if and only if Σ∪{α}⊨β\Sigma \cup \{\alpha\} \models \beta.
  • If Σ⊨α\Sigma \models \alpha, then Σ∪{β}⊨α\Sigma \cup \{\beta\} \models \alpha (Chain Rule) 114.

Σ⊨α\Sigma \models \alpha implies α\alpha is true in all models of Σ\Sigma.

Consistency and completeness of a set of formulas

  • A set Σ\Sigma is consistent if there is a model where all formulas in Σ\Sigma are true.
  • A set Σ\Sigma is complete if for every formula α\alpha, either Σ⊨α\Sigma \models \alpha or Σ⊨¬α\Sigma \models \neg \alpha.
  • If a set Σ\Sigma is complete, then for any formula α\alpha, Σ⊨α\Sigma \models \alpha or Σ⊨¬α\Sigma \models \neg \alpha 115.

9.2 Compactness theorem

  • A set of formulas Σ\Sigma is finitely satisfiable if every finite subset of Σ\Sigma is satisfiable.
  • A set of formulas Σ\Sigma is finitely complete if for every formula θ\theta, there exists a finite subset Δ⊆Σ\Delta \subseteq \Sigma such that Δ⊨θ\Delta \models \theta or Δ⊨¬θ\Delta \models \neg \theta.

The compactness theorem connects satisfiability with finite satisfiability.

Compactness theorem for first-order logic

Theorem: A set of formulas Σ\Sigma is satisfiable if and only if it is finitely satisfiable.

Proof outline:

  1. If Σ\Sigma is satisfiable, then Σ\Sigma is finitely satisfiable: If Σ\Sigma has a model, that model satisfies all formulas in Σ\Sigma, thus any finite subset is also satisfied 116.
  2. If Σ\Sigma is finitely satisfiable, then Σ\Sigma is satisfiable: This direction involves constructing a model.
  • An infinite set of formulas can be "built up" using a constructive process, ensuring finite satisfiability at each step.
  • This involves creating a sequence of sets Σ0⊆Σ1⊆…\Sigma_0 \subseteq \Sigma_1 \subseteq \dots, where each Σn\Sigma_n is finitely satisfiable 117.
  • The union of this sequence, Σ′=⋃n=0∞Σn\Sigma' = \bigcup_{n=0}^\infty \Sigma_n, is then shown to be satisfiable.
  • This proof can also use Zorn's Lemma, showing that the set of finitely satisfiable supersets of Σ\Sigma has a maximal element, which is itself satisfiable 119.

The theorem implies that if a property holds for all finite subsets of formulas, it holds for the entire set.

Consequences of the compactness theorem

  • If Σ⊨α\Sigma \models \alpha, then there exists a finite Σ0⊆Σ\Sigma_0 \subseteq \Sigma such that Σ0⊨α\Sigma_0 \models \alpha.
  • This is crucial for proving properties about entailment, as we only need to consider finite subsets of premises 122.

9.3 Proofs and theorems

Concept of a proof

  • A proof establishes the validity of a conclusion from a set of premises using logical rules.
  • It is independent of the specific meaning of the formulas, focusing only on their form and logical structure 129.

Example:

  • If today is Thursday, then the logic class is held. Today is Thursday. Therefore, the logic class is held.
  • Form: (p→q),p⊢q(p \to q), p \vdash q.
  • If today is Thursday, then the logic class is held. The logic class is not held. Therefore, today is not Thursday.
  • Form: (p→q),¬q⊢¬p(p \to q), \neg q \vdash \neg p 130.

Logical axioms and inference rules

  • Logical axioms are fundamental truths assumed to be valid.

  • L1:φ→(ψ→φ)L1: \varphi \to (\psi \to \varphi).

  • L2:(φ→(ψ→θ))→((φ→ψ)→(φ→θ))L2: (\varphi \to (\psi \to \theta)) \to ((\varphi \to \psi) \to (\varphi \to \theta)).

  • L3:(¬φ→¬ψ)→(ψ→φ)L3: (\neg \varphi \to \neg \psi) \to (\psi \to \varphi).

  • L4:φ∧ψ→¬(φ→¬ψ)L4: \varphi \land \psi \to \neg(\varphi \to \neg \psi).

  • L5:¬(φ→¬ψ)→φ∧ψL5: \neg(\varphi \to \neg \psi) \to \varphi \land \psi.

  • L6:φ∨ψ→(¬φ→ψ)L6: \varphi \lor \psi \to (\neg \varphi \to \psi).

  • L7:(¬φ→ψ)→φ∨ψL7: (\neg \varphi \to \psi) \to \varphi \lor \psi.

  • Modus Ponens (MP) is the primary rule of inference.

  • From φ→ψ\varphi \to \psi and φ\varphi, we can infer ψ\psi.

Σ⊢α\Sigma \vdash \alpha means α\alpha can be derived from Σ\Sigma using logical axioms and MP.

Proof definition

A sequence of formulas (θ1,…,θn)(\theta_1, \dots, \theta_n) is a proof of α\alpha from Σ\Sigma if:

  • Each θi∈Σ\theta_i \in \Sigma.
  • Each θi\theta_i is a logical axiom.
  • Or, θi\theta_i is derived from earlier formulas θj,θk\theta_j, \theta_k (where j,k<ij, k < i) by Modus Ponens, such that θk=θj→θi\theta_k = \theta_j \to \theta_i.
  • Finally, θn=α\theta_n = \alpha 131.

Σ⊢α\Sigma \vdash \alpha if α\alpha is the last formula in a valid proof sequence from Σ\Sigma.

Example proof

  • To prove ⊢φ→φ\vdash \varphi \to \varphi:
  1. φ→((φ→φ)→φ)\varphi \to ((\varphi \to \varphi) \to \varphi) (L1)
  2. (φ→((φ→φ)→φ))→((φ→(φ→φ))→(φ→φ))(\varphi \to ((\varphi \to \varphi) \to \varphi)) \to ((\varphi \to (\varphi \to \varphi)) \to (\varphi \to \varphi)) (L2)
  3. (φ→(φ→φ))→(φ→φ)(\varphi \to (\varphi \to \varphi)) \to (\varphi \to \varphi) (from 1, 2, MP)
  4. φ→(φ→φ)\varphi \to (\varphi \to \varphi) (L1)
  5. φ→φ\varphi \to \varphi (from 3, 4, MP) 132.
  • To prove ¬¬φ⊢φ\neg \neg \varphi \vdash \varphi:
  1. ¬¬φ→(¬¬¬¬φ→¬¬φ)\neg \neg \varphi \to (\neg \neg \neg \neg \varphi \to \neg \neg \varphi) (L1)
  2. ¬¬φ\neg \neg \varphi (Assumption)
  3. ¬¬¬¬φ→¬¬φ\neg \neg \neg \neg \varphi \to \neg \neg \varphi (from 1, 2, MP)
  4. (¬¬¬¬φ→¬¬φ)→(¬φ→¬¬¬φ)(\neg \neg \neg \neg \varphi \to \neg \neg \varphi) \to (\neg \varphi \to \neg \neg \neg \varphi) (L3)
  5. ¬φ→¬¬¬φ\neg \varphi \to \neg \neg \neg \varphi (from 3, 4, MP)
  6. (¬φ→¬¬¬φ)→(¬¬φ→φ)(\neg \varphi \to \neg \neg \neg \varphi) \to (\neg \neg \varphi \to \varphi) (L3)
  7. ¬¬φ→φ\neg \neg \varphi \to \varphi (from 5, 6, MP)
  8. φ\varphi (from 2, 7, MP).

Properties of proofs

  • If Σ⊢φ\Sigma \vdash \varphi and φ∈Σ\varphi \in \Sigma, then the proof is trivial.
  • If Σ⊢φ\Sigma \vdash \varphi, then Σ⊢ψ\Sigma \vdash \psi if φ\varphi is a tautology. This statement is incorrect as written in the source. A corrected version would be: If Σ⊢φ\Sigma \vdash \varphi and φ\varphi is a tautology, then Σ⊢ψ\Sigma \vdash \psi is not generally true unless φ\varphi is part of the derivation.
  • If Σ⊢φ\Sigma \vdash \varphi and Σ⊢φ→ψ\Sigma \vdash \varphi \to \psi, then Σ⊢ψ\Sigma \vdash \psi (Modus Ponens applied to derived formulas).
  • If Σ⊢φ\Sigma \vdash \varphi, then there exists a finite subset Σ0⊆Σ\Sigma_0 \subseteq \Sigma such that Σ0⊢φ\Sigma_0 \vdash \varphi (Proof is finite).
  • If Σ1⊆Σ2\Sigma_1 \subseteq \Sigma_2 and Σ1⊢φ\Sigma_1 \vdash \varphi, then Σ2⊢φ\Sigma_2 \vdash \varphi 133.

Proofs provide a syntactic way to establish logical consequence.

9.4 Applications of the compactness theorem

Graph coloring

  • A graph (V,E)(V, E) is k-vertex-colorable if its vertices can be colored with kk colors such that no two adjacent vertices share the same color.
  • The problem asks if a graph is k-colorable.

Theorem: A graph G=(V,E)G = (V, E) is k-vertex-colorable if and only if every finite induced subgraph of GG is k-colorable 124.

Proof using compactness:

  1. Define atomic propositions: For each vertex v∈Vv \in V and color i∈{1,…,k}i \in \{1, \dots, k\}, define an atomic proposition pivp_i^v. This proposition means "vertex vv has color ii".
  2. Construct formulas:
  • For each vertex vv: σv=⋁i=1kpiv\sigma_v = \bigvee_{i=1}^k p_i^v (Vertex vv has at least one color).
  • For each vertex vv: ψv(j)=pjv→⋀i≠j,1≤i≤k¬piv\psi_v^{(j)} = p_j^v \to \bigwedge_{i \neq j, 1 \le i \le k} \neg p_i^v (If vv has color jj, it has no other color) 125.
  • For each edge (v,w)∈E(v, w) \in E: θ(v,w)(i)=piv→¬piw\theta_{(v,w)}^{(i)} = p_i^v \to \neg p_i^w (Adjacent vertices v,wv, w cannot both have color ii).
  1. Define the set of formulas ΣA\Sigma_A: ΣA={σv∣v∈V}∪{ψv∣v∈V}∪{θ(v,w)∣(v,w)∈E}\Sigma_A = \{\sigma_v \mid v \in V\} \cup \{\psi_v \mid v \in V\} \cup \{\theta_{(v,w)} \mid (v,w) \in E\}.
  2. Claim: The graph (V,E)(V, E) is k-colorable if and only if ΣA\Sigma_A is satisfiable 126.

Proof of claim:

  • If (V,E)(V, E) is k-colorable: Construct a model λˉ\bar{\lambda} where λ(piv)=1\lambda(p_i^v) = 1 iff vv has color ii. This model satisfies σv\sigma_v, ψv\psi_v, and θ(v,w)\theta_{(v,w)} for all v,wv, w and ii, thus ΣA\Sigma_A is satisfiable 127.
  • If ΣA\Sigma_A is satisfiable: Let λˉ\bar{\lambda} be a model satisfying ΣA\Sigma_A. Define Ai={v∈V∣λ(piv)=1}A_i = \{v \in V \mid \lambda(p_i^v) = 1\}. These sets form a valid k-coloring for the graph (V,E)(V, E).
  • V=⋃i=1kAiV = \bigcup_{i=1}^k A_i (from σv\sigma_v).
  • AiA_i are pairwise disjoint (from ψv\psi_v).
  • No adjacent vertices share a color (from θ(v,w)\theta_{(v,w)}) 128.

Using compactness, we can prove properties about infinite structures by examining their finite parts.

Other applications

The compactness theorem has applications in various fields, including:

  • Model theory: Establishing existence of models with certain properties 118.
  • Proof theory: Relating syntactic derivability to semantic entailment.

The compactness theorem is a fundamental bridge between syntax and semantics in logic.

10. Proof theory and its applications

10.1 Axiomatic systems and proofs

  • Logical axioms: These are fundamental tautologies used in axiomatic systems. Examples include:
  • ϕ→(ψ→ϕ)\phi \rightarrow (\psi \rightarrow \phi).
  • (ϕ→(ψ→θ))→((ϕ→ψ)→(ϕ→θ))(\phi \rightarrow (\psi \rightarrow \theta)) \rightarrow ((\phi \rightarrow \psi) \rightarrow (\phi \rightarrow \theta)).
  • (¬ϕ→¬ψ)→(ψ→ϕ)(\neg \phi \rightarrow \neg \psi) \rightarrow (\psi \rightarrow \phi).
  • Modus Ponens (MP): This is a fundamental inference rule.
  • Given ϕ→ψ\phi \rightarrow \psi and ϕ\phi, we can infer ψ\psi.
  • A proof for a formula α\alpha from a set of formulas Σ\Sigma, denoted Σ⊢α\Sigma \vdash \alpha, is a finite sequence of formulas (θ1,…,θn)(\theta_1, \dots, \theta_n) where:
  • Each θi\theta_i is either in Σ\Sigma or a logical axiom.
  • Or θi\theta_i is derived from previous formulas θj,θk\theta_j, \theta_k using Modus Ponens, such that θk=θj→θi\theta_k = \theta_j \rightarrow \theta_i.
  • The last formula θn\theta_n is α\alpha 131.
  • If Σ\Sigma is empty, we write ⊢α\vdash \alpha.

📝 Example: Proving ⊢ϕ→ϕ\vdash \phi \rightarrow \phi using logical axioms and Modus Ponens 132.

  1. ϕ→((ϕ→ϕ)→ϕ)\phi \rightarrow ((\phi \rightarrow \phi) \rightarrow \phi) (L1)
  2. (ϕ→((ϕ→ϕ)→ϕ))→((ϕ→(ϕ→ϕ))→(ϕ→ϕ))(\phi \rightarrow ((\phi \rightarrow \phi) \rightarrow \phi)) \rightarrow ((\phi \rightarrow (\phi \rightarrow \phi)) \rightarrow (\phi \rightarrow \phi)) (L2)
  3. (ϕ→(ϕ→ϕ))→(ϕ→ϕ)(\phi \rightarrow (\phi \rightarrow \phi)) \rightarrow (\phi \rightarrow \phi) (from 1, 2, MP)
  4. ϕ→(ϕ→ϕ)\phi \rightarrow (\phi \rightarrow \phi) (L1)
  5. ϕ→ϕ\phi \rightarrow \phi (from 3, 4, MP)

📝 Example: Proving ¬¬ϕ⊢ϕ\neg \neg \phi \vdash \phi.

  1. ¬¬ϕ→(¬¬¬¬ϕ→¬¬ϕ)\neg \neg \phi \rightarrow (\neg \neg \neg \neg \phi \rightarrow \neg \neg \phi) (L1)
  2. Assume ¬¬ϕ\neg \neg \phi
  3. ¬¬¬¬ϕ→¬¬ϕ\neg \neg \neg \neg \phi \rightarrow \neg \neg \phi (from 1, 2, MP)
  4. (¬¬¬¬ϕ→¬¬ϕ)→(¬ϕ→¬¬¬ϕ)(\neg \neg \neg \neg \phi \rightarrow \neg \neg \phi) \rightarrow (\neg \phi \rightarrow \neg \neg \neg \phi) (L3)
  5. ¬ϕ→¬¬¬ϕ\neg \phi \rightarrow \neg \neg \neg \phi (from 3, 4, MP)
  6. (¬ϕ→¬¬¬ϕ)→(¬¬ϕ→ϕ)(\neg \phi \rightarrow \neg \neg \neg \phi) \rightarrow (\neg \neg \phi \rightarrow \phi) (L3)
  7. ¬¬ϕ→ϕ\neg \neg \phi \rightarrow \phi (from 5, 6, MP)
  8. ϕ\phi (from 2, 7, MP)

10.2 Properties of proofs

  • Properties of provability Σ⊢ϕ\Sigma \vdash \phi:
  • If Σ⊢ϕ\Sigma \vdash \phi, then ϕ∈Σ\phi \in \Sigma (Reflexivity).
  • If Σ⊢ϕ\Sigma \vdash \phi, then ϕ\phi is either in Σ\Sigma or derivable.
  • If Σ⊢ϕ\Sigma \vdash \phi and Σ⊢ϕ→ψ\Sigma \vdash \phi \rightarrow \psi, then Σ⊢ψ\Sigma \vdash \psi (Transitivity via MP).
  • If Σ⊢ϕ\Sigma \vdash \phi, there exists a finite subset Σ0⊆Σ\Sigma_0 \subseteq \Sigma such that Σ0⊢ϕ\Sigma_0 \vdash \phi (Compactness property).
  • If Σ1⊢ϕ\Sigma_1 \vdash \phi and Σ1⊆Σ2\Sigma_1 \subseteq \Sigma_2, then Σ2⊢ϕ\Sigma_2 \vdash \phi (Monotonicity).
  • Chain Rule: If Σ⊢ϕ\Sigma \vdash \phi and Σ∪{ϕ}⊢ψ\Sigma \cup \{ \phi \} \vdash \psi, then Σ⊢ψ\Sigma \vdash \psi 133.

10.3 The deduction theorem

  • Deduction Theorem: For formulas ϕ\phi and ψ\psi, and a set of formulas Σ\Sigma, Σ∪{ϕ}⊢ψ\Sigma \cup \{ \phi \} \vdash \psi if and only if Σ⊢ϕ→ψ\Sigma \vdash \phi \rightarrow \psi 136.

🔑 Important: The Deduction Theorem is crucial for simplifying proofs. It allows transforming a conditional derivation (assuming ϕ\phi) into a proof of an implication (ϕ→ψ\phi \rightarrow \psi).

10.4 The Completeness Theorem

  • The Soundness Theorem states that if Σ⊢ϕ\Sigma \vdash \phi, then Σ⊨ϕ\Sigma \models \phi. This means that if a formula can be proven from a set of assumptions, it is also true in all models that satisfy those assumptions 142.
  • The Completeness Theorem states that if Σ⊨ϕ\Sigma \models \phi, then Σ⊢ϕ\Sigma \vdash \phi. This means that if a formula is true in all models satisfying a set of assumptions, then it can be proven from those assumptions.

10.4.1 Consistency and satisfiability

  • A set of formulas Σ\Sigma is consistent if Σ⊬⊥\Sigma \not\vdash \perp (where ⊥\perp represents a contradiction).
  • A set Σ\Sigma is consistent if and only if:
  • For every formula ψ\psi, either ψ∈Σ\psi \in \Sigma or ¬ψ∈Σ\neg \psi \in \Sigma.
  • Σ\Sigma is not inconsistent (meaning Σ⊬⊥\Sigma \not\vdash \perp).
  • There exist ϕ\phi such that Σ⊢ϕ\Sigma \vdash \phi and Σ⊢¬ϕ\Sigma \vdash \neg \phi (inconsistency).
  • A set Σ\Sigma is consistent if and only if Σ∪{¬ϕ}\Sigma \cup \{ \neg \phi \} is consistent 143.

10.4.2 The Henkin construction

  • The Completeness Theorem can be proven using a construction method, often attributed to Henkin. This involves extending a consistent set of formulas to a "maximally consistent" set.
  • A set Σ\Sigma is maximally consistent if it is consistent and for any formula ϕ\phi, either ϕ∈Σ\phi \in \Sigma or ¬ϕ∈Σ\neg \phi \in \Sigma 145.
  • Every consistent set of formulas has a maximally consistent extension. This extension is built by systematically adding formulas and their negations to ensure completeness.
  • A maximally consistent set Σ∞\Sigma^\infty is satisfiability-preserving, meaning if Σ⊢ϕ\Sigma \vdash \phi, then ϕ∈Σ∞\phi \in \Sigma^\infty 146.
  • For any formula ϕ\phi, either ϕ∈Σ∞\phi \in \Sigma^\infty or ¬ϕ∈Σ∞\neg \phi \in \Sigma^\infty because Σ∞\Sigma^\infty is maximally consistent 147.

🔑 Important: The Henkin construction demonstrates that any consistent set of first-order logic formulas can be satisfied by some model. This is the core of the Completeness Theorem.

🔑 Important: Soundness ensures proofs are valid; Completeness ensures that all truths (semantic entailment) can be captured by proofs (syntactic provability). Together, they establish a deep connection between meaning and proof.

11. First-order logic (part 3)

11.1 Soundness and completeness theorems

The Soundness Theorem states that if a set of sentences Σ\Sigma proves a sentence ϕ\phi, then Σ\Sigma semantically entails ϕ\phi. Conversely, the Completeness Theorem states that if Σ\Sigma semantically entails ϕ\phi, then Σ\Sigma proves ϕ\phi.

These theorems link the proof system (provability, ⊢\vdash) with the model theory (entailment, ⊨\models).

A set of sentences Σ\Sigma is called consistent if it does not prove a contradiction (⊥\bot). If Σ\Sigma proves ⊥\bot, it is inconsistent.

A set of sentences Σ\Sigma is consistent if and only if there exists a sentence ϕ\phi such that Σ\Sigma does not prove ¬ϕ\neg \phi.

If Σ∪{¬ϕ}\Sigma \cup \{\neg \phi\} is consistent, then Σ\Sigma is consistent.

The Compactness Theorem states that if a set of sentences Σ\Sigma has an inconsistent finite subset, then Σ\Sigma itself is inconsistent.

11.1.1 Proof of the completeness theorem

The Completeness Theorem for first-order logic shows that if a sentence ϕ\phi is semantically entailed by a set of sentences Σ\Sigma (Σ⊨ϕ\Sigma \models \phi), then there is a formal proof of ϕ\phi from Σ\Sigma (Σ⊢ϕ\Sigma \vdash \phi). This is a fundamental result connecting syntax and semantics.

Key ideas in proving completeness:

  • Induction on proof length: The proof often uses induction on the length of a proof for Σ⊢ϕ\Sigma \vdash \phi.
  • Construction of a model: If Σ⊨ϕ\Sigma \models \phi, a consistent set Σ′\Sigma' is constructed. This set is then extended to a maximal consistent set, which can be shown to be satisfiable.

A set Σ\Sigma is maximally consistent if it is consistent and for any sentence ϕ\phi, either ϕ∈Σ\phi \in \Sigma or ¬ϕ∈Σ\neg \phi \in \Sigma.

🔑 Important: Maximally consistent sets are crucial because they allow for a direct mapping to a model. For any sentence ϕ\phi, either ϕ\phi or ¬ϕ\neg \phi must be in the set, ensuring every statement has a clear truth value within that context.

11.1.1.1 The Henkin Construction

The proof involves constructing a consistent extension Σ∞\Sigma_\infty of the original set Σ\Sigma that contains witnesses for all existential quantifiers. This extended set can then be used to build a model.

  • The construction typically involves an iterative process, building larger and larger consistent sets 145.
  • The final set Σ∞\Sigma_\infty is guaranteed to be consistent and maximally consistent 146.

11.1.2 Key theorems and definitions

  • Deduction Theorem: For any sets of sentences Σ\Sigma, ϕ\phi, and ψ\psi, Σ∪{ϕ}⊢ψ\Sigma \cup \{\phi\} \vdash \psi if and only if Σ⊢ϕ→ψ\Sigma \vdash \phi \to \psi.

📝 Example: If adding ϕ\phi to Σ\Sigma allows you to prove ψ\psi, it means ϕ\phi implies ψ\psi within the context of Σ\Sigma. This theorem is essential for proving many other results in logic 136.

  • Theorem: For any sentences ϕ\phi and ψ\psi:

  • ⊢(ϕ→ψ)→((ψ→θ)→(ϕ→θ))\vdash (\phi \to \psi) \to ((\psi \to \theta) \to (\phi \to \theta)) 139.

  • ⊢¬ϕ→(ϕ→ψ)\vdash \neg \phi \to (\phi \to \psi).

  • ⊢¬¬ϕ→ϕ\vdash \neg \neg \phi \to \phi 140.

  • ⊢(ϕ→¬ϕ)→¬ϕ\vdash (\phi \to \neg \phi) \to \neg \phi 141.

  • Definition of Consistent Set: A set Σ\Sigma is consistent if it does not prove ⊥\bot.

  • Equivalence of Consistency Conditions: For a set Σ\Sigma:

  • Σ\Sigma is consistent.

  • For every sentence ϕ\phi, there is a proof of ψ\psi from Σ\Sigma.

  • There exists ϕ\phi such that Σ⊢ϕ\Sigma \vdash \phi and Σ⊢¬ϕ\Sigma \vdash \neg \phi.

🔑 Important: These conditions are equivalent, meaning proving one helps establish the others. For instance, if Σ\Sigma is inconsistent, it proves everything.

11.1.3 Model theory connection

The link between proofs and models is central to first-order logic.

PropertyStatementCorresponding Formalism
SoundnessIf Σ\Sigma proves ϕ\phi, then Σ\Sigma entails ϕ\phi.Σ⊢ϕ  ⟹  Σ⊨ϕ\Sigma \vdash \phi \implies \Sigma \models \phi
CompletenessIf Σ\Sigma entails ϕ\phi, then Σ\Sigma proves ϕ\phi.Σ⊨ϕ  ⟹  Σ⊢ϕ\Sigma \models \phi \implies \Sigma \vdash \phi
ConsistencyIf Σ\Sigma is consistent, it is satisfiable.Consistent Σ  ⟹  \Sigma \implies Model exists for Σ\Sigma
CompactnessIf Σ\Sigma is inconsistent, some finite subset is.Inconsistent Σ  ⟹  ∃Δ⊆Σ,Δ finite, inconsistent\Sigma \implies \exists \Delta \subseteq \Sigma, \Delta \text{ finite, inconsistent}

11.2 Introduction to first-order logic

First-order logic (FOL) extends propositional logic by introducing quantifiers and variables. This allows for reasoning about objects, their properties, and relationships between them.

11.2.1 Motivation for first-order logic

Propositional logic can only handle statements about propositions themselves. It cannot express concepts like "all humans are mortal" or "there exists a number between x and y." First-order logic is needed to formalize such statements.

  • Example 1: "All humans are mortal."

  • Let H(x)H(x) mean "xx is human."

  • Let M(x)M(x) mean "xx is mortal."

  • In FOL: ∀x(H(x)→M(x))\forall x (H(x) \to M(x)) 151.

  • Example 2: "There is a rational number between any two rational numbers."

  • Let QQ be the set of rational numbers.

  • In FOL: ∀x,y∈Q(x<y→∃z∈Q(x<z∧z<y))\forall x, y \in Q (x < y \to \exists z \in Q (x < z \land z < y)).

11.2.2 Syllogisms and limitations of propositional logic

Consider the classic syllogism:

  1. All humans are mortal.
  2. Socrates is human.
  3. Therefore, Socrates is mortal.

In propositional logic, if we assign pp to "All humans are mortal" and qq to "Socrates is human," and rr to "Socrates is mortal," we cannot formally derive rr from pp and qq. This is because pp is a statement about all humans, not just Socrates.

🔑 Important: First-order logic's ability to quantify over variables and refer to specific objects overcomes these limitations, enabling formalization of mathematical and general reasoning 152.

11.2.3 Syntax of first-order logic

A first-order language L\mathcal{L} consists of sets of:

  • Constant symbols (C): Represent specific objects (e.g., 'socrates').
  • Function symbols (F): Represent functions (e.g., 'father_of').
  • Relation symbols (R): Represent relations (e.g., 'human', 'mortal', '<').

These symbols are used to construct terms and formulas 153.

12. First-order logic (part 4)

12.1 Language and syntax

  • Language (L): A set of symbols, including function symbols, relation symbols, constants, logical connectives, quantifiers, variables, and parentheses.
  • Function symbols (F): Symbols representing functions, each with an arity (number of arguments).
  • Relation symbols (R): Symbols representing relations, each with an arity.
  • Constants (C): Symbols representing specific objects in the domain 154.
  • Logical symbols: Includes connectives (∧,∨,→,¬\land, \lor, \rightarrow, \neg), quantifiers (∀,∃\forall, \exists), equality (==), and parentheses.
  • Variables (Var): Symbols representing objects that can vary 155.

The language L is the union of F, R, C, and logical symbols.

  • Terms (L-Term):

  • Constants are terms.

  • Variables are terms.

  • If f∈Ff \in F is an n-ary function symbol and t1,…,tnt_1, \dots, t_n are terms, then f(t1,…,tn)f(t_1, \dots, t_n) is a term 156.

  • Atomic formulas (L-Atom):

  • An equality statement between two terms: t1=t2t_1 = t_2.

  • A relation symbol applied to its arity of terms: R(t1,…,tn)R(t_1, \dots, t_n) 157.

  • Formulas (L-Formula):

  • Atomic formulas are formulas.

  • If ϕ1\phi_1 and ϕ2\phi_2 are formulas, then (ϕ1∧ϕ2)(\phi_1 \land \phi_2), (ϕ1∨ϕ2)(\phi_1 \lor \phi_2), and (ϕ1→ϕ2)(\phi_1 \rightarrow \phi_2) are formulas.

  • If ϕ1\phi_1 is a formula, then ¬ϕ1\neg \phi_1 is a formula.

  • If ϕ\phi is a formula and xx is a variable, then (∀xϕ)(\forall x \phi) and (∃xϕ)(\exists x \phi) are formulas 157-158.

12.1.1 Formulas and terms

The structure of terms and formulas can be understood recursively.

  • Recursive definition of terms:

  • Base cases: Constants and variables are terms.

  • Recursive step: An n-ary function applied to n terms results in a term.

  • Recursive definition of formulas:

  • Base cases: Atomic formulas are formulas.

  • Recursive steps: Logical connectives and quantifiers applied to existing formulas create new formulas.

Understanding these recursive definitions is key to parsing complex formulas.

12.1.2 Substitution and free variables

  • Substitution (subf(ϕ)subf(\phi)): The set of all subformulas of a given formula ϕ\phi 161.

  • Occurrences of variables:

  • A variable occurrence in a formula is bound if it is within the scope of a quantifier (∀\forall or ∃\exists) applied to that variable.

  • A variable occurrence is free if it is not bound.

  • Free variables (Free(ϕ\phi)): The set of variables that occur freely in a formula ϕ\phi 163.

Formulas with no free variables are often called sentences.

  • Notation ϕ(x1…xn)\phi(x_1 \dots x_n): Used when the free variables in formula ϕ\phi are a subset of {x1,…,xn}\{x_1, \dots, x_n\} 164.

12.2 Semantics

Semantics in first-order logic assigns meaning to formulas within a given structure.

12.2.1 Structures

A structure (M) is a mathematical object that provides interpretations for the symbols in a language.

  • Components of a structure:
  • Domain (D): The set of objects the language talks about.
  • Function interpretations (fMf^M): For each function symbol ff, a function from DnD^n to DD, where nn is the arity of ff.
  • Relation interpretations (RMR^M): For each relation symbol RR, a subset of DnD^n, where nn is the arity of RR.
  • Constant interpretations (cMc^M): For each constant symbol cc, an element of DD 165-166.

Structures are analogous to models in propositional logic but are richer.

12.2.2 Truth theory

Truth in first-order logic is defined relative to a structure and an interpretation of variables.

  • Variable assignment (σ\sigma): A function that maps variables to elements in the domain of the structure (σ:Var→M\sigma: Var \rightarrow M) 170.

  • Term interpretation (tM[σ]t^M[\sigma]): The value of a term tt in structure MM under assignment σ\sigma.

  • Constants: cM[σ=cMc^M[\sigma = c^M.

  • Variables: xM[σ=σ(x)x^M[\sigma = \sigma(x).

  • Functions: (f(t1,…,tn))M[σ=fM(t1M[σ,…,tnM[σ])(f(t_1, \dots, t_n))^M[\sigma = f^M(t_1^M[\sigma, \dots, t_n^M[\sigma]) 170-171.

  • Truth of a formula (M⊨σϕM \models_{\sigma} \phi): A formula ϕ\phi is true in structure MM under assignment σ\sigma.

  • Atomic formulas:

  • M⊨σR(t1,…,tn)M \models_{\sigma} R(t_1, \dots, t_n) if (t1M[σ,…,tnM[σ])∈RM(t_1^M[\sigma, \dots, t_n^M[\sigma]) \in R^M.

  • M⊨σ(t1=t2)M \models_{\sigma} (t_1 = t_2) if t1M[σ=t2M[σ]t_1^M[\sigma = t_2^M[\sigma].

  • Connectives:

  • M⊨σ(ϕ1∧ϕ2)M \models_{\sigma} (\phi_1 \land \phi_2) iff M⊨σϕ1M \models_{\sigma} \phi_1 and M⊨σϕ2M \models_{\sigma} \phi_2.

  • M⊨σ(ϕ1∨ϕ2)M \models_{\sigma} (\phi_1 \lor \phi_2) iff M⊨σϕ1M \models_{\sigma} \phi_1 or M⊨σϕ2M \models_{\sigma} \phi_2.

  • M⊨σ(ϕ1→ϕ2)M \models_{\sigma} (\phi_1 \rightarrow \phi_2) iff if M⊨σϕ1M \models_{\sigma} \phi_1, then M⊨σϕ2M \models_{\sigma} \phi_2.

  • M⊨σ¬ϕ1M \models_{\sigma} \neg \phi_1 iff M̸⊨σϕ1M \not\models_{\sigma} \phi_1.

  • Quantifiers:

  • M⊨σ∃xϕ1M \models_{\sigma} \exists x \phi_1 iff there exists an element aa in the domain MM such that M⊨σ[x/a]ϕ1M \models_{\sigma[x/a]} \phi_1.

  • M⊨σ∀xϕ1M \models_{\sigma} \forall x \phi_1 iff for all elements aa in the domain MM, M⊨σ[x/a]ϕ1M \models_{\sigma[x/a]} \phi_1 172-173.

A formula is true in a structure (independent of variable assignment) if it is true for all assignments, especially when the formula is a sentence (no free variables).

13. First-order logic (part 5)

13.1 Assignments and truth in structures

  • An assignment (or valuation) σ\sigma maps variables to elements in a structure's domain. For example, σ[x1↦a1,x2↦a2]\sigma[x_1 \mapsto a_1, x_2 \mapsto a_2] updates an assignment 174.

  • The truth of a formula ϕ\phi in a structure M\mathcal{M} with assignment σ\sigma, denoted M⊨σϕ\mathcal{M} \models_\sigma \phi, is determined by recursively evaluating terms and subformulas 175.

📝 Example: For ϕ=(f(g(x1,x1),f(c,x2))=x5)\phi = (f(g(x_1, x_1), f(c, x_2)) = x_5) and σ(xi)=2i+3\sigma(x_i) = 2i+3, evaluating this in M1\mathcal{M}_1 requires computing term values step-by-step.

  • A formula is true in a structure if it is true for some assignment that satisfies its free variables 176.

13.2 Independence of assignments

  • The truth of a term tt (e.g., t(x1,…,xn)t(x_1, \dots, x_n)) in a structure M\mathcal{M} depends only on the assignments to the variables x1,…,xnx_1, \dots, x_n. If two assignments σ1,σ2\sigma_1, \sigma_2 agree on these variables, then tM[σ1=tM[σ2]t^{\mathcal{M}}[\sigma_1 = t^{\mathcal{M}}[\sigma_2] 177.

  • A formula ϕ(x1,…,xn)\phi(x_1, \dots, x_n) is true under assignment σ1\sigma_1 if and only if it is true under σ2\sigma_2, provided σ1\sigma_1 and σ2\sigma_2 agree on all free variables of ϕ\phi 178.

🔑 Important: This means the truth of a formula depends only on how it's interpreted for its free variables.

13.3 Truth of formulas in structures

  • A formula ϕ\phi is true in a structure M\mathcal{M} (denoted M⊨ϕ\mathcal{M} \models \phi) if it is true for all assignments σ\sigma to M\mathcal{M}'s variables.

  • This is equivalent to stating that there exists at least one assignment σ\sigma for which M⊨σϕ\mathcal{M} \models_\sigma \phi, if ϕ\phi is a sentence (has no free variables) 182.

  • The truth of quantified formulas relates to the existence of elements in the structure's domain.

  • M⊨∃xψ\mathcal{M} \models \exists x \psi iff there exists a∈∣M∣a \in |\mathcal{M}| such that M⊨σ[x/aψ\mathcal{M} \models_\sigma[x/a \psi.
  • M⊨∀xψ\mathcal{M} \models \forall x \psi iff for all a∈∣M∣a \in |\mathcal{M}|, M⊨σ[x/aψ\mathcal{M} \models_\sigma[x/a \psi.
  • Truth in a structure M\mathcal{M} satisfies specific properties for atomic formulas and those built with logical connectives.
Formula TypeCondition for M⊨ϕ\mathcal{M} \models \phi
ϕ:=R(t1,…,tk)\phi:= R(t_1, \dots, t_k)(t1M,…,tkM)∈RM(t_1^{\mathcal{M}}, \dots, t_k^{\mathcal{M}}) \in R^{\mathcal{M}}
ϕ:=t1=t2\phi:= t_1 = t_2t1M=t2Mt_1^{\mathcal{M}} = t_2^{\mathcal{M}}
ϕ:=ψ1∧ψ2\phi:= \psi_1 \land \psi_2M⊨ψ1\mathcal{M} \models \psi_1 and M⊨ψ2\mathcal{M} \models \psi_2
ϕ:=ψ1∨ψ2\phi:= \psi_1 \lor \psi_2M⊨ψ1\mathcal{M} \models \psi_1 or M⊨ψ2\mathcal{M} \models \psi_2
ϕ:=ψ1→ψ2\phi:= \psi_1 \to \psi_2If M⊨ψ1\mathcal{M} \models \psi_1, then M⊨ψ2\mathcal{M} \models \psi_2
ϕ:=¬ψ\phi:= \neg \psiM⊭ψ\mathcal{M} \not\models \psi
ϕ:=∃xψ\phi:= \exists x \psiThere exists $a \in
ϕ:=∀xψ\phi:= \forall x \psiFor all $a \in

183

13.4 Theories and satisfiability

  • A theory TT is a set of sentences in a language L\mathcal{L}.

  • A structure M\mathcal{M} is a model of a theory TT if M⊨ϕ\mathcal{M} \models \phi for all ϕ∈T\phi \in T.

  • A theory TT is satisfiable if it has at least one model 184.

📝 Example: The theory T∞={λ1,λ2,… }T_\infty = \{\lambda_1, \lambda_2, \dots\} representing "infinite domains" is satisfiable. A model M\mathcal{M} satisfies T∞T_\infty iff ∣M∣≥ℵ0|\mathcal{M}| \geq \aleph_0 188.

  • A sentence α\alpha is logically implied by a theory TT (denoted T⊨αT \models \alpha) if α\alpha is true in every model of TT.

13.5 Properties of logical implication

  • Logical implication in first-order logic shares many properties with propositional logic.

🔑 Important: These properties are crucial for reasoning about logical consequences.

  • Key properties of implication Σ⊨ϕ\Sigma \models \phi (where Σ\Sigma is a set of formulas and ϕ\phi is a formula):
PropertyCondition
FactoringIf Σ⊨ϕ\Sigma \models \phi, then ϕ∈Σ\phi \in \Sigma.
MonotonicityIf Σ1⊆Σ2\Sigma_1 \subseteq \Sigma_2 and Σ1⊨ϕ\Sigma_1 \models \phi, then Σ2⊨ϕ\Sigma_2 \models \phi.
Modus Ponens (MP)If Σ⊨ϕ\Sigma \models \phi and Σ⊨ϕ→ψ\Sigma \models \phi \to \psi, then Σ⊨ψ\Sigma \models \psi.
TransitivityIf Σ∪{ϕ}⊨ψ\Sigma \cup \{\phi\} \models \psi, then Σ⊨ϕ→ψ\Sigma \models \phi \to \psi.
ReiterationIf Σ⊨ϕ\Sigma \models \phi, then Σ⊨ϕ\Sigma \models \phi.
StrengtheningIf Σ⊨ϕ\Sigma \models \phi, then Σ∪{ϕ}⊨ϕ\Sigma \cup \{\phi\} \models \phi.
  • Various theories capture essential mathematical structures 187.

🔑 Important: Understanding these theories helps connect logical concepts to mathematical ones.

  • Theory of Groups: Characterizes structures with an associative binary operation, an identity element, and inverses 185189.
  • A group ⟨G,⋆G,eG⟩\langle G, \star_G, e_G \rangle satisfies the group theory axioms.
  • The axiom ∀x∀y(x⋆y=y⋆x)\forall x \forall y (x \star y = y \star x) asserts commutativity, not required for basic group theory 186.
  • Theory of Rings: Describes structures with two binary operations (addition and multiplication), an additive identity (zero), and a multiplicative identity (one), satisfying distributivity laws 190.
  • TRingT_{Ring} defines general ring properties.
  • TCRingT_{CRing} adds commutativity of multiplication.
  • TINTDT_{INTD} includes the property that if x×y=0x \times y = 0, then x=0x=0 or y=0y=0.
  • TFieldT_{Field} requires that non-zero elements have multiplicative inverses 191.
  • Theory of Ordered Groups: Combines group axioms with axioms for a total order relation that is compatible with the group operation.

13.7 Satisfiability of sets of formulas

  • A set of formulas Σ\Sigma is satisfiable in a language L\mathcal{L} if there exists a structure M\mathcal{M} and an assignment σ\sigma such that M⊨σϕ\mathcal{M} \models_\sigma \phi for all ϕ∈Σ\phi \in \Sigma.

📝 Example: In the structure ⟨N,≤⟩\langle \mathbb{N}, \le \rangle, the set Σ={x≤y}\Sigma = \{x \le y\} is satisfiable with assignment σ(x)=2,σ(y)=3\sigma(x)=2, \sigma(y)=3 192.

🔑 Important: The core concept is finding a structure and assignment that makes all formulas in a given set simultaneously true.

14. First-order logic (part 6)

14.1 Axioms and inference rules

  • Axioms of first-order logic are fundamental formulas that are always true. They form the basis for logical deduction.

14.1.1 Logical Axioms

These axioms capture the basic logical relationships between connectives and quantifiers.

  • Implication Axioms:
  • $\varphi \rightarrow (\psi \rightarrow \varphi)$.
  • $(\varphi \rightarrow (\psi \rightarrow \theta)) \rightarrow ((\varphi \rightarrow \psi) \rightarrow (\varphi \rightarrow \theta))$.
  • Negation and Implication Axioms:
  • $(\neg \varphi \rightarrow \neg \psi) \rightarrow (\psi \rightarrow \varphi)$.
  • Conjunction Axioms:
  • $(\varphi \wedge \psi) \rightarrow \neg (\varphi \rightarrow \neg \psi)$.
  • $\neg (\varphi \rightarrow \neg \psi) \rightarrow (\varphi \wedge \psi)$.
  • Disjunction Axioms:
  • $(\varphi \vee \psi) \rightarrow (\neg \varphi \rightarrow \psi)$.
  • $(\neg \varphi \rightarrow \psi) \rightarrow (\varphi \vee \psi)$.

14.1.2 Quantifier Axioms

These axioms relate quantifiers (like ∀\forall and ∃\exists) to formulas.

  • Universal Instantiation:
  • $\forall x \varphi(x) \rightarrow \varphi(x/t)$ if t is a term and the substitution is "safe" (no variable capture).
  • Universal Generalization:
  • $\forall x (\theta \rightarrow \psi(x)) \rightarrow (\theta \rightarrow \forall x \psi(x))$ if x does not appear free in θ\theta.
  • Equivalence of Quantifiers:
  • $(\exists y \psi \rightarrow \neg \forall y \neg \psi) \wedge (\neg \forall y \neg \psi \rightarrow \exists y \psi)$.

14.1.3 Equality Axioms

These axioms define the properties of equality.

  • Reflexivity:
  • $x = x$ 195.
  • Leibniz's Law:
  • $x = y \rightarrow (\varphi(z/x,...) \rightarrow \varphi(z/y,...))$ 196.

14.1.4 Inference Rules

Inference rules allow us to derive new formulas from existing ones.

  • Modus Ponens (MP):
  • From φ\varphi and φ→ψ\varphi \rightarrow \psi, infer ψ\psi.
  • Generalization (Gen):
  • From φ\varphi, infer ∀xφ\forall x \varphi.

14.2 Proofs and Derivations

A proof is a sequence of formulas derived from premises using axioms and inference rules.

  • A derivation of a formula φ\varphi from a set of formulas Σ\Sigma is a sequence of formulas ⟨φ1,…,φn⟩\langle \varphi_1, \dots, \varphi_n \rangle where φn=φ\varphi_n = \varphi, and each φi\varphi_i is either in Σ\Sigma, an axiom, or derived from previous formulas using inference rules 198.

14.2.1 Soundness and Completeness

  • Soundness: If a formula can be proven from a set of premises (Σ⊢φ\Sigma \vdash \varphi), then it is true in all models of those premises (Σ∣=φ\Sigma |= \varphi).
  • Completeness: If a formula is true in all models of a set of premises (Σ∣=φ\Sigma |= \varphi), then it can be proven from those premises (Σ⊢φ\Sigma \vdash \varphi).

14.2.1.1 Soundness Proof Sketch

  • The proof uses induction on the length of the derivation 207.
  • Base cases: formulas in Σ\Sigma or axioms are true in all models.
  • Inductive step: If premises for MP or Gen are true, the conclusion is also true 208.

14.2.1.2 Completeness Proof Sketch

  • The proof often involves constructing a model from a consistent set of formulas. [209-210]
  • It relies on the concept of Henkin theories and maximal consistent theories. [210-211]

14.2.2 Consistency and Contradiction

  • A set of formulas Γ\Gamma is consistent if it does not lead to a contradiction.
  • A contradiction is represented by $\bot$, which can be defined as $\exists x (x = x) \wedge \neg \exists x (x = x)$.
  • A set Γ\Gamma is consistent if and only if Γ⊬⊥\Gamma \not\vdash \bot.

Key relationships:

Γ⊢φ\Gamma \vdash \varphi if and only if Γ∪{¬φ}\Gamma \cup \{\neg \varphi\} is inconsistent.

14.3 Theories and Models

  • A theory is a set of formulas that is closed under logical consequence 209.
  • A consistent theory can be extended to a maximally consistent theory.
  • A complete theory is a consistent theory where for every sentence σ\sigma, either σ\sigma or ¬σ\neg \sigma is in the theory 210.

14.3.1 Henkin Theories

  • A theory TT in a language LL has the witness property if for every formula ∃xθ(x)\exists x \theta(x) in LL, there is a constant cθc_\theta such that T⊢∃xθ(x)→θ(cθ)T \vdash \exists x \theta(x) \rightarrow \theta(c_\theta).
  • A theory with the witness property allows us to demonstrate the existence of elements satisfying formulas 211.

Process for constructing a Henkin theory:

  1. Start with an initial theory T0T_0 and language L0L_0.
  2. For each formula φn\varphi_n in the language, create a new constant cnc_n and a new language Ln+1=Ln∪{cn}L_{n+1} = L_n \cup \{c_n\}.
  3. Construct theory Tn+1=Tn∪{∃xφn(x)→φn(cn)}T_{n+1} = T_n \cup \{\exists x \varphi_n(x) \rightarrow \varphi_n(c_n)\} 212.
  4. The union of all LnL_n and TnT_n forms a language L⋆L^\star and a theory T⋆T^\star with the witness property 213.

🔑 Important: First-order logic proofs rely on axioms for logical structure and inference rules to build derivations, ultimately proving or disproving statements within a given theory.

15. First-order logic (part 7)

15.1 Model construction for consistent theories

The process of constructing a model for a consistent theory involves several key steps. This construction ensures that there exists a structure satisfying all the axioms of the theory.

The method relies on defining an equivalence relation among constants and building the model's domain and interpretation of relations and functions based on this relation.

  • A consistent theory TT in language LL is satisfiable if and only if every finite subset of its axioms is satisfiable. This is a crucial result for model theory 215.
  • The model construction aims to find a structure MM such that M∣=TM |= T.

15.1.1 Defining the model's domain

The first step in model construction is to define the set of constants and establish an equivalence relation among them. This relation helps group constants that are considered "equal" within the theory.

  • Equivalence relation: For constants c,dc, d in a language LL, c∼Tdc \sim_T d if and only if T⊢c=dT \vdash c = d.
  • This relation is reflexive (c∼Tcc \sim_T c), symmetric (c∼Td  ⟹  d∼Tcc \sim_T d \implies d \sim_T c), and transitive ((c∼Td∧d∼Te)  ⟹  c∼Te(c \sim_T d \land d \sim_T e) \implies c \sim_T e).
  • The domain of the model MM is formed by the equivalence classes of constants under ∼T\sim_T. M=C/∼T={[c∣c∈C}M = C / \sim_T = \{[c \mid c \in C \} where CC is the set of all constants in LL 216.

15.1.2 Interpreting relations

Relation symbols in the language are interpreted based on the established equivalence classes of constants. A relation RR holds between equivalence classes if and only if the relation holds for the representative constants in the theory TT.

  • For a relation symbol R∈RnR \in R^n (n-ary relation), its interpretation RMR^M in the model MM is defined as: ⟨[c1,…,[cn⟩∈RM  ⟺  T⊢R(c1,…,cn)\langle [c_1, \dots, [c_n \rangle \in R^M \iff T \vdash R(c_1, \dots, c_n) This interpretation is well-defined because if ci∼Tci′c_i \sim_T c'_i for all ii, then T⊢R(c1,…,cn)T \vdash R(c_1, \dots, c_n) if and only if T⊢R(c1′,…,cn′)T \vdash R(c'_1, \dots, c'_n) 217.

15.1.3 Interpreting functions

Function symbols are interpreted similarly to relation symbols, mapping equivalence classes of constants to other equivalence classes.

  • For a function symbol f∈Fmf \in F^m (m-ary function), its interpretation fMf^M is: fM([c1,…,[cm])=[cf^M([c_1, \dots, [c_m]) = [c where cc is a constant such that T⊢f(c1,…,cm)=cT \vdash f(c_1, \dots, c_m) = c. This is guaranteed to exist by the downward Löwenheim-Skolem theorem and the proof construction.
  • The interpretation fMf^M is well-defined, meaning that if f(c1,…,cm)=cf(c_1, \dots, c_m) = c and f(c1′,…,cm′)=c′f(c'_1, \dots, c'_m) = c' with ci∼Tci′c_i \sim_T c'_i, then [c=[c′][c = [c'] 218.

15.1.4 Interpreting constants

Finally, the constants themselves are interpreted as the equivalence classes they represent.

  • For each constant symbol c∈Cc \in C, its interpretation cMc^M is simply the equivalence class [c][c].

15.1.5 The constructed model

Combining all these interpretations, we obtain the model MM.

  • The constructed model is M=⟨M,RM,fM,cM⟩M = \langle M, R^M, f^M, c^M \rangle for all relation symbols RR, function symbols ff, and constant symbols cc.
  • It can be proven that M∣=TM |= T. This means the constructed structure satisfies all sentences in the theory TT.

15.2 The Compactness Theorem

The Compactness Theorem is a fundamental result in first-order logic. It states that a theory is satisfiable if and only if all of its finite subsets are satisfiable.

This has significant implications for model theory and proofs in mathematics.

  • Compactness Theorem: For a theory TT in language LL, TT is satisfiable if and only if every finite subset of TT is satisfiable.
  • Proof direction (⇒\Rightarrow): If TT is satisfiable, then any subset of TT is also satisfiable by its model.
  • Proof direction (⇐\Leftarrow): If every finite subset of TT is satisfiable, then TT is satisfiable. This direction typically uses model construction techniques.

15.2.1 Applications of the Compactness Theorem

The Compactness Theorem has broad applications, including proving the existence of models with specific properties and in areas like Ramsey Theory.

  • Countable Models: If a theory TT in a countable language LL has a model, then it has a countable model. This is a consequence of the downward Löwenheim-Skolem theorem, which can be proven using compactness 224.
  • Infinite Models: If TT is a theory in a countable language LL and TT has a model, then for any infinite cardinal κ\kappa such that ∣L∣≤κ|L| \le \kappa, TT has a model of cardinality κ\kappa. This can be shown by adding new constants for each element of an infinite set and using compactness 225.

15.3 Ramsey Theory

Ramsey Theory deals with the appearance of order in large structures. The Compactness Theorem plays a crucial role in proving its combinatorial versions.

15.3.1 Definitions for Ramsey Theory

Several definitions are needed to state Ramsey's Theorem.

  • n-subsets: For a set AA, [A]n[A]^n denotes the set of all subsets of AA with exactly nn elements. [A]n={B⊆A∣∣B∣=n}[A]^n = \{B \subseteq A \mid |B| = n\}
  • k-coloring of n-subsets: A function f:[A]n→{0,1,…,k−1}f: [A]^n \to \{0, 1, \dots, k-1\} is a kk-coloring of nn-subsets of AA. It assigns one of kk colors to each nn-subset of AA 226.

15.3.2 The Infinite Ramsey Theorem

This theorem guarantees the existence of monochromatic subsets of infinite size.

  • Infinite Ramsey Theorem: For any natural numbers n,k>1n, k > 1, if AA is an infinite set and f:[A]n→{0,1,…,k−1}f: [A]^n \to \{0, 1, \dots, k-1\} is any kk-coloring, then there exists an infinite subset B⊆AB \subseteq A such that all nn-subsets of BB have the same color under ff. That is, ff restricted to [B]n[B]^n is constant.

15.3.3 The Finite Ramsey Theorem

The finite version provides a bound on the size of the set needed to guarantee a monochromatic subset of a specific size.

  • Finite Ramsey Theorem: For any natural numbers n,k,m>1n, k, m > 1, there exists a natural number R(n,k,m)R(n, k, m) such that for any set AA with ∣A∣>R(n,k,m)|A| > R(n, k, m) and any kk-coloring f:[A]n→{0,1,…,k−1}f: [A]^n \to \{0, 1, \dots, k-1\}, there exists a subset B⊆AB \subseteq A with ∣B∣>m|B| > m such that all nn-subsets of BB have the same color under ff.

🔑 Important: Ramsey theory guarantees order within large structures; large enough sets must contain some substructure with a uniform property 227.

15.4 Proof of the Compactness Theorem

The proof of the Compactness Theorem for first-order logic is a constructive process. It involves building a model for a theory if all its finite subsets are satisfiable.

This proof often utilizes the construction method described earlier and the properties of countable languages.

  • The proof constructs a model MM for a theory TT by using the equivalence classes of constants defined by TT. 216-220
  • The model MM is shown to satisfy all sentences in TT, thus demonstrating satisfiability 220.

15.4.1 Chain unions

To prove the Compactness Theorem, a concept called "chain union" is used. This involves a sequence of structures that are nested within each other.

  • A sequence of LL-structures ⟨Mi∣i∈I⟩\langle M_i \mid i \in I \rangle with a linear ordering << on II is a chain if for every i<ji < j, MiM_i is a substructure of MjM_j.
  • The chain union ⋃i∈IMi\bigcup_{i \in I} M_i is an LL-structure where the domain is the union of the domains of the individual structures 230.
  • The interpretations of relations, functions, and constants in the chain union are defined component-wise from the interpretations in the individual structures. 231-232

🔑 Important: Chain unions provide a way to construct a larger structure from a collection of smaller, nested structures, preserving properties across the union. 230-231

16. First-order logic (part 8)

16.1 Properties of formulas and satisfiability

  • A formula is inductive if it can be constructed using logical connectives (∧,∨,¬,→\land, \lor, \neg, \rightarrow) and quantifiers (∀,∃\forall, \exists).
  • Formulas of the form ∀x⃗∃y⃗ψ(x⃗,y⃗)\forall \vec{x} \exists \vec{y} \psi(\vec{x}, \vec{y}) are inductive.
  • A set of structures ⟨Mi∣i∈I⟩\langle M_i \mid i \in I \rangle satisfies a formula ϕ\phi if each MiM_i satisfies ϕ\phi.
  • If each structure MiM_i in a collection satisfies ϕ\phi, then their union also satisfies ϕ\phi 235.

For any collection of structures ⟨Mi∣i∈I⟩\langle M_i \mid i \in I \rangle, if each MiM_i satisfies ϕ\phi, then ⋃i∈IMi\bigcup_{i \in I} M_i also satisfies ϕ\phi.

16.2 Ultraproducts and their structure

  • An ultrafilter FF on an index set II is a collection of subsets of II satisfying three conditions:
  • Non-empty intersection: If A,B∈FA, B \in F, then A∩B∈FA \cap B \in F.
  • Downward closed under supersets: If A∈FA \in F and A⊆BA \subseteq B, then B∈FB \in F.
  • Non-empty and includes II: ∅∉F\emptyset \notin F and I∈FI \in F.
  • A filter GG is similar to an ultrafilter but with ∅∈G\emptyset \in G and I∉GI \notin G 237.
  • A filter FF on II is ultrafine if for any A⊆IA \subseteq I, either A∈FA \in F or its complement Ac∈FA^c \in F.

Ultrafilters are essential for constructing ultraproducts, which represent "generic" structures from a collection.

  • Filters and finite intersections: If X⊆P(I)X \subseteq \mathcal{P}(I) is non-empty and finite, and XX is contained in a filter FF, then the intersection of elements in XX is non-empty 239.
  • The concept of a filter is used to define equivalence relations between elements of product structures.

16.3 Construction of ultraproduct structures

  • The ultraproduct ∏FMi\prod_{F} M_i of structures ⟨Mi∣i∈I⟩\langle M_i \mid i \in I \rangle over an ultrafilter FF is constructed by taking the product of the domains and then quotienting by an equivalence relation defined by FF.
  • The equivalence relation (ai)i∈I∼F(bi)i∈I(a_i)_{i \in I} \sim_F (b_i)_{i \in I} holds if {i∈I∣ai=bi}∈F\{i \in I \mid a_i = b_i\} \in F 242.
  • This relation is reflexive, symmetric, and transitive, forming an equivalence relation. [243-244]
  • The domain of the ultraproduct structure ∏FMi\prod_{F} M_i is the set of equivalence classes under ∼F\sim_F 244.

The ultraproduct captures the "average" behavior across the structures in the index set.

  • Relations and functions in the ultraproduct are defined component-wise and are well-defined due to the properties of the ultrafilter. [244-246]
  • For a relation RR and functions ff, constant symbols cc, the corresponding elements in the ultraproduct structure ∏FMi\prod_{F} M_i are defined based on their behavior within the individual structures MiM_i and the filter FF. [244-247]

16.4 The Łos's Theorem

  • Łos's Theorem states that for an ultraproduct ∏FMi\prod_{F} M_i and a formula ϕ(x⃗)\phi(\vec{x}), the ultraproduct satisfies ϕ\phi with given tuples of elements if and only if the set of indices ii for which MiM_i satisfies ϕ\phi with the corresponding elements belongs to the ultrafilter FF.
  • This theorem is proven by induction on the complexity of the formula ϕ\phi 249.

Łos's Theorem is a cornerstone connecting the properties of individual structures to the properties of their ultraproduct.

  • The base cases for the induction include atomic formulas (equality of terms) and logical connectives (¬,∨\neg, \lor). [250-251]
  • The inductive step handles quantified formulas like ∃xψ(x,x⃗)\exists x \psi(x, \vec{x}) 252.

🔑 Important: Łos's Theorem is crucial for transferring properties from a collection of structures to their ultraproduct, simplifying proofs in model theory.

17. First-order logic (part 9)

17.1 The concept of an ultrafilter and its applications

  • An ultrafilter is a specific type of filter used in logic and model theory.
  • It is a collection of subsets of a set NN, denoted by FF.
  • FF must be non-empty and closed under finite intersections.
  • If A∈FA \in F and A⊆BA \subseteq B, then B∈FB \in F.
  • For any A,B∈FA, B \in F, A∩B∈FA \cap B \in F.

17.1.1 Building structures with ultraproducts

  • Ultraproducts are constructed using an ultrafilter FF and a sequence of structures (Mn)n∈N(M_n)_{n \in N}.
  • The ultraproduct M∞=∏FMnM_\infty = \prod_{F} M_n is formed by taking the Cartesian product ∏n∈NMn\prod_{n \in N} M_n and identifying elements that agree on sets within the ultrafilter FF.
  • Two elements (an)n∈N(a_n)_{n \in N} and (bn)n∈N(b_n)_{n \in N} are equivalent if {n∈N∣an=bn}∈F\{n \in N | a_n = b_n\} \in F.
  • The ultraproduct M∞M_\infty inherits properties from the individual structures MnM_n based on the ultrafilter.

The core idea is that if a property holds for "most" MnM_n (defined by the ultrafilter), it holds for the ultraproduct.

17.1.2 Key properties of ultraproducts

  • Ultraproducts preserve first-order properties. This means if a formula σ\sigma is true in all MnM_n, then σ\sigma is true in M∞M_\infty.
  • The truth of a formula σ\sigma in the ultraproduct M∞M_\infty is determined by the set of indices {n∈N∣Mn⊨σ}∈F\{n \in N | M_n \models \sigma\} \in F.

Ultraproduct construction summary:

ConceptDescription
Set NNThe index set for the sequence of structures.
Ultrafilter FFA collection of subsets of NN that defines "most" or "almost all".
Sequence (Mn)(M_n)A list of structures, e.g., models of a theory.
Ultraproduct M∞M_\infty∏FMn\prod_{F} M_n, formed by identifying elements that agree on sets in FF.
  • If Mn⊨σM_n \models \sigma for all nn in some set A∈FA \in F, then M∞⊨σM_\infty \models \sigma.
  • This allows proving the existence of structures with certain properties.

17.1.3 The Compactness Theorem via ultraproducts

  • The Compactness Theorem states that if a set of sentences Γ\Gamma is finitely satisfiable, then it is satisfiable.
  • This can be proven using ultraproducts.
  • Consider an infinite set of formulas Δ={σ0,σ1,σ2,… }\Delta = \{\sigma_0, \sigma_1, \sigma_2, \dots\}. If Δ\Delta is finitely satisfiable, then for each kk, the set {σ0,…,σk}\{\sigma_0, \dots, \sigma_k\} is satisfiable by some structure MkM_k.
  • An ultrafilter can be used to construct a single model M∞M_\infty that satisfies all sentences in Δ\Delta.

Ultrafilters provide a powerful tool to move from finite satisfaction to infinite satisfaction.

🔑 Important: The Compactness Theorem, proven via ultraproducts, is fundamental for showing that certain logical theories have models.

17.2 Exercises and further exploration

The provided text includes several exercises that encourage deeper understanding of the concepts discussed. These exercises focus on:

  • Defining terms related to formal languages and theories.
  • Proving properties of formulas and recursive definitions.
  • Analyzing the satisfiability of formula sets.
  • Investigating properties of functions and logical consequence.
  • Exploring axiomatic systems and group structures.
  • Characterizing formulas with specific quantificational structures 254.

📝 Example: Exercise 4.5.4 asks to consider a language with a single binary function symbol ff. It then requires proving satisfiability of certain sets of formulas and demonstrating logical independence between formulas.

🔑 Important: Working through these exercises is crucial for solidifying understanding of first-order logic syntax, semantics, and proof theory.

🔑 Important: This topic marks the end of the first-order logic sequence, likely leading into model theory or advanced proof techniques in subsequent sections. The concepts of ultraproducts and the Compactness Theorem are core to these areas.

18. Structures of real and complex numbers

18.1 Real numbers

The real numbers (R\mathbb{R}) are constructed using Dedekind cuts. These are specific subsets of rational numbers (Q\mathbb{Q}) with unique properties.

🔑 Important: Real numbers are defined not by listing them, but by how they divide the rational numbers.

18.1.1 Dedekind cuts

A Dedekind cut is a non-empty proper subset of Q\mathbb{Q} that is bounded below and has no greatest element.

  • Dedekind cut properties:

  • Non-empty and proper subset of Q\mathbb{Q}.

  • No maximum element within the subset.

  • Bounded below: if a≤xa \le x for any xx in the cut, then aa is also in the cut.

  • Examples of Dedekind cuts:

  • Ca={x∈Q∣x<a}C_a = \{x \in \mathbb{Q} \mid x < a\} for any a∈Qa \in \mathbb{Q}.

  • I={x∈Q∣(x<0)∨(x2<2)}I = \{x \in \mathbb{Q} \mid (x < 0) \lor (x^2 < 2)\} represents 2\sqrt{2}.

  • The set of real numbers R\mathbb{R} is the set of all Dedekind cuts.

18.1.2 Algebraic structure of real numbers

The set of real numbers R\mathbb{R} forms a field with operations of addition (+R+_\mathbb{R}), subtraction (−R-_\mathbb{R}), multiplication (×R\times_\mathbb{R}), and an ordering relation (≤R\le_\mathbb{R}).

  • Addition (+R+_\mathbb{R}):

  • Defined as x+Ry={v+u∣v∈x,u∈y}x +_\mathbb{R} y = \{v + u \mid v \in x, u \in y\}.

  • This operation is well-defined and associative, commutative, and has an identity element (0R0_\mathbb{R}).

  • The ordering is compatible with addition: x≤Ry  ⟺  x+Rz≤Ry+Rzx \le_\mathbb{R} y \iff x +_\mathbb{R} z \le_\mathbb{R} y +_\mathbb{R} z.

  • Additive Inverse (−R-_\mathbb{R}):

  • Defined as −x={v∈Q∣∃u(u>v∧−u∉x)}-x = \{v \in \mathbb{Q} \mid \exists u (u > v \land -u \notin x)\}.

  • Satisfies x+R(−x)=0Rx +_\mathbb{R} (-x) = 0_\mathbb{R}, making ⟨R,+R,0R⟩\langle \mathbb{R}, +_\mathbb{R}, 0_\mathbb{R} \rangle an additive group.

  • Multiplication (×R\times_\mathbb{R}):

  • Defined based on the signs of the real numbers (cuts).

  • If x,yx, y are both negative: x×Ry=∣x∣×R∣y∣x \times_\mathbb{R} y = |x| \times_\mathbb{R} |y|.

  • If x,yx, y are both positive: x×Ry={uv∣u∈x,v∈y,u,v≥0}x \times_\mathbb{R} y = \{uv \mid u \in x, v \in y, u, v \ge 0\}.

  • If one is positive and one is negative: x×Ry=−(∣x∣×R∣y∣)x \times_\mathbb{R} y = -(|x| \times_\mathbb{R} |y|).

  • Properties of R\mathbb{R}:

  • ⟨R,+R,×R,−R,≤R,0R,1R⟩\langle \mathbb{R}, +_\mathbb{R}, \times_\mathbb{R}, -_\mathbb{R}, \le_\mathbb{R}, 0_\mathbb{R}, 1_\mathbb{R} \rangle forms an ordered field.

  • Every non-zero element has a multiplicative inverse.

  • Multiplication preserves order when multiplying by a positive number: if z>0z > 0, then x≤Ry  ⟺  x×Rz≤Ry×Rzx \le_\mathbb{R} y \iff x \times_\mathbb{R} z \le_\mathbb{R} y \times_\mathbb{R} z.

18.1.3 Completeness of real numbers

The completeness of real numbers is a crucial property, analogous to induction for natural numbers.

  • Completeness axiom: Any non-empty subset of R\mathbb{R} that is bounded above has a least upper bound (supremum) in R\mathbb{R}. This ensures R\mathbb{R} has no "holes".

  • Archimedean property: For any real numbers xx and yy with y>0y > 0, there exists a natural number nn such that nx>ynx > y. This means real numbers are "larger" than any multiple of 1.

18.1.4 Embeddings and properties

  • Embedding of rationals: A function ιQ:Q→R\iota_\mathbb{Q}: \mathbb{Q} \to \mathbb{R} maps rational numbers to Dedekind cuts (q↦Cqq \mapsto C_q). This mapping preserves addition, subtraction, and multiplication.
  • Intermediate Value Theorem: If f:R→Rf: \mathbb{R} \to \mathbb{R} is a polynomial and f(a)f(b)<0f(a)f(b) < 0 for a<ba < b, then there exists xx between aa and bb such that f(x)=0f(x) = 0.

18.2 Complex numbers

Complex numbers (C\mathbb{C}) extend the real numbers by introducing an imaginary unit, ii, to solve equations like x2+1=0x^2 + 1 = 0.

18.2.1 Structure of complex numbers

The set of complex numbers C\mathbb{C} is defined as the set of ordered pairs of real numbers, R2\mathbb{R}^2.

  • Set definition: C=R2={(a,b)∣a,b∈R}\mathbb{C} = \mathbb{R}^2 = \{(a, b) \mid a, b \in \mathbb{R}\}.
  • Operations:
  • Addition: (a,b)+C(a′,b′)=(a+a′,b+b′)(a, b) +_\mathbb{C} (a', b') = (a + a', b + b').
  • Multiplication: (a,b)×C(a′,b′)=(aa′−bb′,ab′+ba′)(a, b) \times_\mathbb{C} (a', b') = (aa' - bb', ab' + ba').
  • Key elements:
  • 0C=(0,0)0_\mathbb{C} = (0, 0) (additive identity).
  • 1C=(1,0)1_\mathbb{C} = (1, 0) (multiplicative identity).
  • i=(0,1)i = (0, 1) (imaginary unit, where i2=−1i^2 = -1).
  • Representation: A complex number (a,b)(a, b) can be written as a+bia + bi, where aa is the real part and bb is the imaginary part.
  • Field structure: ⟨C,+C,×C,0C,1C⟩\langle \mathbb{C}, +_\mathbb{C}, \times_\mathbb{C}, 0_\mathbb{C}, 1_\mathbb{C} \rangle forms a field.

🔑 Important: The fundamental theorem of algebra states that every non-constant polynomial with complex coefficients has at least one complex root 284.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also