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∈A.
- Sets can be defined by listing elements within curly braces, e.g., A={a,b,c}.
- Sets can also be defined by a property, e.g., N={x∣P(x)} where P(x) is a property that x must satisfy.
🔑 Important: The concepts of "set" and "membership" are fundamental building blocks of set theory.
- Subset: Set A is a subset of set B (A⊆B) if every element of A is also an element of B.
- Empty set: The set containing no elements, denoted by ∅ 6.
Basic set operations
- Union (A∪B): The set of elements in either A or B (or both).
- Intersection (A∩B): The set of elements common to both A and B.
- Difference (A−B): The set of elements in A but not in B.
- Symmetric difference (A△B): Elements in either A or B, but not both. Defined as (A−B)∪(B−A) 7.
🔑 Important: These operations allow us to combine and compare sets systematically.
Properties of set operations
| Property | Union | Intersection |
|---|---|---|
| Commutative | A∪B=B∪A | A∩B=B∩A |
| Associative | A∪(B∪C)=(A∪B)∪C | A∩(B∩C)=(A∩B)∩C |
| Distributive | A∩(B∪C)=(A∩B)∪(A∩C) | A∪(B∩C)=(A∪B)∩(A∪C) |
| De Morgan's Laws | (A∪B)c=Ac∩Bc | (A∩B)c=Ac∪Bc |
| Identity | A∪∅=A | A∩U=A |
| Complement laws | A∪Ac=U | A∩Ac=∅ |
| 8 |
🔑 Important: These laws are crucial for simplifying set expressions and proofs.
Indexed set operations
- For an arbitrary collection of sets {Ai∣i∈I}:
- Union: ⋃i∈IAi={x∣∃i∈I;x∈Ai}.
- Intersection: ⋂i∈IAi={x∣∀i∈I;x∈Ai}.
- If I={1,2,…,n}, these become ⋃i=1nAi and ⋂i=1nAi.
Generalized De Morgan's and Distributive Laws
- De Morgan's:
- (⋃i∈IAi)c=⋂i∈IAic
- (⋂i∈IAi)c=⋃i∈IAic.
- Distributive:
- A∩(⋃i∈IBi)=⋃i∈I(A∩Bi)
- A∪(⋂i∈IBi)=⋂i∈I(A∪Bi) 9.
Common sets of numbers
| Set Name | Symbol | Definition |
|---|---|---|
| Natural numbers | N | {0,1,2,3,...} |
| Integers | Z | {…,−3,−2,−1,0,1,2,3,…} |
| Rational numbers | Q | {m/n∣m,n∈Z,n=0} |
- Ordered pair: Defined as (a,b)={{a},{a,b}}.
- An ordered n-tuple is a generalization of an ordered pair.
- Cartesian product (A×B): The set of all ordered pairs (a,b) where a∈A and b∈B. A×B={(a,b)∣(b∈B) and (a∈A)} 10.
- The order matters: A×B=B×A unless A=B.
- Generalization for n sets: A1×⋯×An={(a1,…,an)∣ai∈Ai for all i}.
📝 Example: If A={1,2} and B={a,b}, then A×B={(1,a),(1,b),(2,a),(2,b)}.
1.3 Relations
- A relation R from set A to set B is any subset of A×B 11.
- If R⊆A×A, it's a relation on A.
Properties of relations on a set A
| Property | Definition |
|---|---|
| Reflexive | (a,a)∈R for all a∈A. |
| Symmetric | If (a,b)∈R, then (b,a)∈R for all a,b∈A. |
| Transitive | If (a,b)∈R and (b,c)∈R, then (a,c)∈R for all a,b,c∈A. |
- Partial order: A relation that is reflexive, antisymmetric, and transitive 12.
- Antisymmetric: If (a,b)∈R and (b,a)∈R, then a=b.
- Strict partial order: A relation that is irreflexive and transitive.
- Irreflexive: (a,a)∈/R for all a∈A.
- A relation where for any two elements a,b∈A, either a≼b or b≼a (where ≼ 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 X is a collection of non-empty, disjoint subsets of X whose union is X 13.
- For an equivalence relation R on X, the equivalence class of x, denoted [x]R, is the set {y∈X∣(y,x)∈R}.
- The set of all equivalence classes is denoted X/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,≼⟩ is a set A with a partial order relation ≼ 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,≤) is a prime example.
🔑 Important: Well-ordered sets are foundational for proofs by induction.
1.4 Functions
- A function f from set A to set B is a relation f⊆A×B such that 15:
- The domain of f is A (Dom(f)=A).
- For every x∈A, there is exactly one y∈B such that (x,y)∈f.
🔑 Important: Functions map each element of the domain to precisely one element in the codomain.
- Identity function (IdA): IdA:A→A defined by x↦x.
- Two functions f and g are equal if they have the same domain and f(x)=g(x) for all x in their domain.
Types of functions
| Property | Definition |
|---|---|
| Injective (one-to-one) | If f(x1)=f(x2), then x1=x2. |
| Surjective (onto) | For every y∈Y, there exists an x∈X such that f(x)=y. The range of f is equal to the codomain Y. |
| Bijective | A function that is both injective and surjective. |
| 16 |
- The composition of functions g:Y→Z and f:X→Y, denoted g∘f, is (g∘f)(x)=g(f(x)) for all x∈X.
- Function composition is associative: (h∘g)∘f=h∘(g∘f).
Inverse functions
- A function f:X→Y has a left inverse g:Y→X if g∘f=IdX 17.
- A function f:X→Y has a right inverse g:Y→X if f∘g=IdY.
- A function f is invertible if it has both a left and a right inverse, which are then equal.
- A function f:X→Y has a left inverse if and only if f is injective.
- A function f:X→Y has a right inverse if and only if f is surjective.
- A function f is invertible if and only if it is bijective 18.
Image of sets under functions
- Image of a set (f(A)): For a subset A⊆X, f(A)={y∈Y∣∃x∈A;f(x)=y} 19.
- Preimage of a set (f−1(B)): For a subset B⊆Y, f−1(B)={x∈X∣∃y∈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→Y and indexed subsets {Ai∣i∈I} of X:
- f(⋃i∈IAi)=⋃i∈If(Ai).
- f(⋂i∈IAi)⊆⋂i∈If(Ai) 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 A is infinite if there exists a function f:A→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 A is finite if it is not infinite.
2.1.1 Properties of finite and infinite sets
- If A⊆B and B is infinite, then A is also infinite.
- If A⊆B and A is infinite, B must also be infinite.
- The union of two infinite sets A and B is infinite 22.
Key relationship: Infinite sets can be mapped bijectively onto proper subsets of themselves 21.
- The sets N (natural numbers), Z (integers), Q (rational numbers), and R (real numbers) are all infinite.
2.2 Cardinality and comparing cardinalities
- Two sets A and B are called equinumerous if there exists a bijection f:A→B.
- The cardinality of a set A, denoted as ∣A∣ or card(A), represents its size relative to equinumerosity.
2.2.1 Countable and uncountable sets
- A set A is countable if it is finite or equinumerous to the set of natural numbers 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 A and B, ∣A∣≤∣B∣ if there exists an injective function f:A→B.
- ∣A∣<∣B∣ if ∣A∣≤∣B∣ and ∣A∣=∣B∣. This means B is strictly "larger" than A.
Key relationship: ∣A∣≤∣B∣ and ∣B∣≤∣A∣ implies ∣A∣=∣B∣ 24.
- The cardinality of the natural numbers is denoted by ℵ0.
- The cardinality of the real numbers is denoted by c.
2.2.2.1 Cantor-Schroeder-Bernstein theorem
- The Cantor-Schroeder-Bernstein theorem states that if there are injections f:A→B and g:B→A, then A and B are equinumerous (∣A∣=∣B∣).
Example: ∣N∣=∣Z∣=∣Q∣=∣N×N∣=ℵ0 25.
2.2.2.2 Cantor's theorem
- Cantor's theorem states that for any set X, ∣X∣<∣P(X)∣, where P(X) is the power set of X (the set of all subsets of X).
Important: This theorem shows there's always a larger infinity 26.
- The power set of natural numbers, P(N), is uncountable.
- This implies ℵ0<∣P(N)∣.
Example: c=∣P(N)∣ 27.
2.3 Arithmetic of cardinal numbers
- Given two disjoint sets A and B with cardinalities ∣A∣=κ and ∣B∣=λ, their sum is defined as κ+λ=∣A∪B∣.
2.3.1 Properties of cardinal addition
- Commutativity: κ+λ=λ+κ.
- Associativity: (κ+λ)+μ=κ+(λ+μ).
- Monotonicity: If λ≤κ, then μ+λ≤μ+κ.
2.3.2 Cardinal multiplication
- The product of two cardinalities κ and λ is defined as κ×λ=∣A×B∣, where ∣A∣=κ and ∣B∣=λ 28.
2.3.3 Properties of cardinal multiplication
-
Commutativity: κλ=λκ.
-
Associativity: (κλ)μ=κ(λμ).
-
Distributivity: κ(λ+μ)=κλ+κμ.
-
Monotonicity: If λ≤κ, then μλ≤μκ.
-
For a cardinal number κ and a natural number n>0, κn is defined as κ×⋯×κ (n times).
Examples:
- ℵ02=ℵ0.
- c2=c.
- R×R is equinumerous to R.
2.3.4 Cardinal exponentiation
- If ∣A∣=κ and ∣B∣=λ, then the cardinality of the set of all functions from A to B is ∣B∣∣A∣=λκ 29.
Example: ∣P(A)∣=2∣A∣.
Important: For ∣N∣=ℵ0, we have ∣P(N)∣=2ℵ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,Y).
- Relations: Membership (∈) and equality (=).
- Logical operators: Connectives (∧,∨,→,¬) and quantifiers (∀,∃).
- Punctuation: Parentheses.
2.4.1.1 Formulas
- Atomic formulas are simple statements like x=y or x∈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)).
- This axiom allows us to define the subset relation: x⊆y↔∀z(z∈x→z∈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 ∅.
2.4.2.3 Axiom of Union
- For any set A, there exists a set that is the union of all sets in A.
- Formal statement: ∀A∃B∀x(x∈B↔∃z(z∈A∧x∈z)).
- This axiom guarantees the existence of ⋃A.
2.4.2.4 Axiom of Pairing
- For any two sets a and b, there exists a set containing exactly a and b 34.
- This allows for the formation of sets like {a,b}, {a}, and ordered pairs.
2.4.2.5 Axiom of Power Set
- For any set A, there exists a set containing all subsets of A.
- This set is called the power set of A, denoted by 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 A and a formula φ(x), there exists a set B containing exactly the elements x from A for which φ(x) is true.
- Formal statement: ∀A∃B∀t(t∈B↔(t∈A∧φ(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} 37.
- The set of natural numbers 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 A, there exists a function f:A→∪A. This function assigns an element f(x)∈x for every x∈A.
The principle of the excluded middle is also important in this context. For a set A, if A has an element with a maximum value, then (A,⪯) has a maximal element.
This is related to the Zermelo-Fraenkel set theory 41.
3.2 Operations on sets
An operation on a set X is a function. For n variables, this function takes n elements from X and returns one element in X.
For example, addition, subtraction, and multiplication on real numbers are operations.
A set A⊆X is closed under an operation f:Xn→X. This means that for any elements a1,…,an∈A, the result f(a1,…,an) must also be in A.
Consider a collection of operations P. A set A⊆X is closed under P.
This requires that for every operation g∈P, if g has k variables, then for any elements a1,…,ak∈A, the result g(a1,…,ak) must also be in A.
| Operation | Domain & Codomain | Example |
|---|---|---|
| Addition (+) | R×R→R | (x,y)↦x+y |
| Subtraction (-) | R×R→R | (x,y)↦x−y |
| Multiplication (×) | R×R→R | (x,y)↦x×y |
| Inverse of addition (In) | R→R | x↦−x |
3.2.1 Closed sets
A set A is closed under operations P. This means for any operation g:Xk→X in P, if inputs a1,…,ak are in A, then g(a1,…,ak) must also be in A.
The set of integers (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}. This set is not closed under the operation of inverse addition (In).
For instance, 22=4 is in A, but In=−4 is not in A 4.
A proposition concerns the existence of the smallest closed superset. For a set A⊆X and a set of operations P, there exists a smallest set B⊆X.
This set B must contain A (A⊆B) and be closed under all operations in P.
🔑 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) for a set A and operations P is the intersection of all supersets of A that are closed under P 43.
4. Number systems and structures
4.1 Natural numbers
- The set of natural numbers, denoted by N, 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→N maps each natural number to its unique successor. It is injective, meaning s(x)=s(y) implies x=y. The image of s is all natural numbers except zero (Im(s)=N∖{0}).
- The principle of mathematical induction states that if a subset A of N contains 0 and the successor of any element in A is also in A, then A must be the entire set N. This principle is fundamental for proving properties of natural numbers.
- A key property is that for any natural number n, s(n)=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→A, with a base case f=α and a recursive step f(s(n))=T(f(n)), where T is an auxiliary function.
- Examples of functions defined recursively include:
- Doubling: 2x defined as 2⋅0=0 and 2(n+1)=2n+2.
- Factorial: n! defined as 0!=1 and (n+1)!=n!×(n+1).
- Fibonacci sequence: a0=a1=1 and an+2=an+an+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⟩.
- Key properties of this algebraic structure include:
- Associativity of addition: (x+y)+z=x+(y+z).
- Commutativity of addition: x+y=y+x.
- Associativity of multiplication: (x×y)×z=x×(y×z).
- Commutativity of multiplication: x×y=y×x.
- Identity element for addition: x+0=x.
- Identity element for multiplication: x×1=x.
- Zero property for multiplication: x×0=0.
- Distributivity of multiplication over addition: x×(y+z)=(x×y)+(x×z).
- Cancellation for addition: If x+y=x+z, then y=z.
- Cancellation for multiplication: If x=0 and x×y=x×z, then y=z 59 60 61 62 63.
4.1.3 Order relation on natural numbers
- The order relation ≤ on natural numbers is defined as m≤n if there exists a natural number k such that n=m+k.
- Properties of the order relation:
- Reflexivity: a≤a.
- Transitivity: If a≤b and b≤c, then a≤c.
- Antisymmetry: If a≤b and b≤a, then a=b.
- Totality: For any a,b∈N, either a≤b or b≤a.
- The natural numbers with the order relation ≤ 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⊆N, for every k∈N, if all numbers x less than k are in A, then k is also in A, then A=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′⟩ is another system satisfying Peano axioms, there exists an isomorphism I:N→N′ such that:
- I=0′ .
- I=s′(0′)=1′ 1.
- I(s(n))=s′(I(n)) for all n∈N.
- This isomorphism preserves addition, multiplication, and the order relation:
- I(n+m)=I(n)+′I(m)
- I(n×m)=I(n)×′I(m)
- m≤n⟺I(m)≤′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 Type | Symbols | Description |
|---|---|---|
| Logical connectives | ∧, ∨, →, ¬ | AND, OR, IMPLIES, NOT |
| Grouping symbols | (, ) | Parentheses |
| Propositional variables | p₀, p₁, p₂,... | Basic atomic propositions |
- The set of all symbols forms the alphabet: A=∧,∨,→,¬,(,)∪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 isA*, meaning all possible finite strings of symbols fromA.
🔑 Important:
ATOMis the set of propositional variables (e.g.,p₀,p₁).Expis the set of all strings formed from the alphabetA.
📝 Example: If
ATOM = {p₀, p₁, p₂}, then the following are expressions:
p₀(p₀ ∧ p₁)- ((p0∨p1)→p2).
5.2.3 Logical connectives as operations
- Logical connectives act as operations on expressions.
| Operation | Symbol | Type | Result |
|---|---|---|---|
| Conjunction | ∧ | Exp×Exp→Exp | (α ∧ β) |
| Disjunction | ∨ | Exp×Exp→Exp | (α ∨ β) |
| Implication | → | Exp×Exp→Exp | (α→β) |
| Negation | ¬ | Exp→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:
- Atomic propositions (variables from
ATOM) are WFFs. - If
αandβare WFFs, then(α ∧ β),(α ∨ β), (α→β), and(¬α)are also WFFs. - Only expressions formed by these rules are WFFs.
🔑 Important:
Propdenotes 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) is a WFF 75.
- Recursive definition of
Prop: P₀ = ATOM- P<SUB>n+1</SUB>=P<SUB>n</SUB>∪(α∧β),(α∨β),(α→β),(¬α)∣α,β∈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
Aand functions for connectives:
- T∧:A×A→A
- T∨:A×A→A
- T−→:A×A→A
- T¬:A→A Then, for any function f:ATOM→A, there exists a unique extension ¯f:Prop→A such that:
¯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} 1.
- Valuation function: A function v that assigns a truth value to each atomic proposition. It maps from atomic propositions (ATOM) to truth values {0,1}.
- v(p)=1 means proposition p is true.
- v(p)=0 means proposition p is false.
📝 Example:
- v1: assigns 1 to every atomic proposition.
- v2: assigns 0 to every atomic proposition 88.
- v3: assigns 1 to p0 and p1, and 0 to all other atomic propositions.
- Evaluation function: A function vˉ that extends a valuation function v 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ˉ[β]} 89.
- vˉ[(α∨β)]=max{vˉ[α,vˉ[β]}.
- vˉ[(α→β)]=0 if and only if vˉ[α=1 and vˉ[β=0.
- vˉ[(¬α)]=1−vˉ[α].
🔑 Important: The evaluation function vˉ is uniquely determined by the valuation function v 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 93.
p1 p2 p3 (p1∧p2) (p1∧p2)→p3 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 0 1
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: ∣⊨α.
📝 Example: (p∨¬p) is a tautology.
-
Contradiction: A propositional formula that is always false. Its evaluation function always returns 0.
-
Logical consequence: Proposition β is a logical consequence of propositions α1,…,αn if β is true whenever all αi are true.
-
Notation: α1,…,αn⊨β.
-
Logical equivalence: Two propositional formulas α and β are logically equivalent if they have the same truth value for all possible assignments of truth values to their atomic propositions.
-
Notation: α≡β.
-
This means vˉ(α)=vˉ(β) for all valuation functions v.
-
Equivalently, α→β and β→α 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:
- (α∨β)≡(β∨α).
- (α∧β)≡(β∨α).
- Associativity:
- α∨(β∨γ)≡(α∨β)∨γ.
- α∧(β∧γ)≡(α∧β)∧γ.
- Distributivity:
- α∨(β∧γ)≡(α∨β)∧(α∨γ).
- α∧(β∨γ)≡(α∨β)∧(α∨γ).
- De Morgan's Laws:
- ¬(α∧β)≡(¬α∨¬β).
- ¬(α∨β)≡(¬α∧¬β).
- Double negation: ¬¬α≡α 96.
- Implication relation: (α→β)≡(¬α∨β) 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, where ψ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, where θij are literals.
🔑 Important: Every propositional formula can be converted into an equivalent DNF and an equivalent CNF.
📝 Example:
- p: is both DNF and CNF.
- (p1∧¬p2): is both DNF and CNF.
- (p1∧p2)∨(p3∧p4): is DNF, but not CNF.
- (p3∨p4)∧(p5∨p6): is CNF, but not DNF 105.
🔑 Important: Every Boolean function (from {0,1}n to {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: p1, (p1∧p2), ((p1∧p2)→p3) 94.
- Logical connectives: Symbols representing logical operations.
:=defines a connective based on others.↔(biconditional): Defined as (α→β)∧(β→α).↔(exclusive OR, XOR): Defined as (α∨β)∧¬(α∧β).
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 v.v(α) = 0: Atomic proposition α is false in model v.|= α: Proposition α is a tautology (always true).- Example: ((p1∧p2)→p3)→(p1→(p2→p3)) 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: α⊨β means if v(α)=1 in a model v, then v(β)=1 must also hold.
- Logical equivalence: α≡β means α⊨β and β⊨α.
- This implies v(α)=v(β) for all models v 95.
Key logical equivalences
| Property | Formula |
|---|---|
| Associativity (∨) | α∨(β∨γ)≡(α∨β)∨γ |
| Associativity (∧) | α∧(β∧γ)≡(α∧β)∧γ |
| Distributivity (∨ over ∧) | α∨(β∧γ)≡(α∧β)∨(α∧γ) |
| Distributivity (∧ over ∨) | α∧(β∨γ)≡(α∨β)∧(α∨γ) |
| Commutativity (∨) | (α∨β)≡(β∨α) |
| Commutativity (∧) | (α∧β)≡(β∧α) |
| De Morgan's Laws | ¬(α∧β)≡(¬α∨¬β) ¬(α∨β)≡(¬α∧¬β) |
| Double Negation | ¬¬α≡α |
| Implication | (α→β)≡(¬α∨β) |
Substitution replaces all occurrences of a specific atomic proposition with another proposition.
-
α[ψ/p]: Proposition α with p replaced by ψ.
-
Example: (p∧q)[ψ/p=(ψ∧q) 97.
-
Substitution property: If α is a tautology, then α[ψ/p] is also a tautology 98.
-
Equivalence preservation: If α≡β, then α[ψ/p≡β[ψ/p].
-
If φ≡ψ, then α[φ/p≡α[ψ/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:
-
{∧,∨,¬}.
-
{∧,¬}.
-
{∨,¬} 108.
-
{↓} (NAND).
-
{↑} (NOR).
-
Incomplete sets:
-
{∧,∨,→}.
-
{→,∧}, {→,∨} 109.
-
{↔} 110.
Example: Proving completeness of {∧,∨,¬}
To show a set is complete, demonstrate that all other connectives can be formed from it.
¬pcan be formed asp ↓ p(NAND) orp | p(NOR).p ∨ qcan be formed as(p ↓ q) ↓ (p ↓ q).p ∧ qcan 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 103.
-
Example: (p1∧p2)∨(p3∧p4).
-
Conjunctive Normal Form (CNF): A conjunction of disjunctions of literals.
-
General form: ⋀j=1m⋁i=1nθij.
-
Example: (p3∨p4)∧(p5∨p6).
-
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 v for Σ.
- Logical consequence: Σ⊨α if every model of Σ is also a model of α.
- Equivalently, if v(σ)=1 for all σ∈Σ, then v(α)=1.
Key relationships
Σ⊨α if and only if Σ∪{¬α} is unsatisfiable.
-
Examples of satisfiable sets:
-
{p1,p2,…} (all propositions true).
-
{¬p1,¬p2,…} (all propositions false).
-
{p1→p2,p2→p3,…,pn→pn+1} 112.
-
Consequence relation: {α1,…,αn}⊨β if and only if (α1∧⋯∧αn)⊨β 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 (⟹) and equivalences (⟺) 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), 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) .
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 Set | Connectives | Description |
|---|---|---|
| Set (a) | {∧,∨,¬} | Standard set for expressing all formulas. |
| Set (b) | {∧,∨,¬,⟹} | Includes implication. |
| Set (c) | {∨,¬} | Minimal complete set. |
| Set (d) | {∧,¬} | 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 {∧,∨} and {⟹,∧} 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 {⟹} is incomplete
- The connective ⟹ alone cannot form all propositional formulas.
- Any combination using only ⟹ will always result in a formula that evaluates to true if the first variable is false.
8.1.5 The set {⟺} is incomplete
- The biconditional connective (⟺) is also insufficient on its own.
- Formulas constructed solely with ⟺ do not cover all truth assignments.
8.1.6 Sheffer stroke (NAND) and NOR
- The NOR operator (↓) is defined as p↓q:=¬(p∨q).
- The NAND operator (∣) is defined as p∣q:=¬(p∧q).
| Operator | Equivalence | Construction |
|---|---|---|
| NOR | p↓q | ¬(p∨q) |
| NAND | p∣q | ¬(p∧q) |
| 111 |
- Both {↓} and {∣} 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 v that assigns truth values (0 or 1) to atomic propositions.
- A set of formulas Σ is satisfiable if there exists a valuation vˉ such that vˉ(σ)=1 for every σ∈Σ.
- A set of formulas Σ is unsatisfiable if no such valuation exists.
8.2.2 Entailment
- A formula α is entailed by a set of formulas Σ (denoted Σ⊨α) if for every valuation vˉ, if vˉ(σ)=1 for all σ∈Σ, then vˉ(α)=1.
- Σ⊨α means α logically follows from Σ.
📝 Example:
- Σ1={p1,…,pn} is satisfiable. A valuation assigning 1 to all pi satisfies it.
- Σ3={p1⟹p2,p2⟹p3,…,pn⟹pn+1} is satisfiable. A valuation where p1=⋯=pn=0 and pn+1=1 works 112.
- Σ5={p1⟹p2,p2⟹p3,…} is satisfiable by infinitely many valuations.
8.2.3 Relationship between entailment and satisfiability
- A set of formulas Σ entails α (Σ⊨α) if and only if the set Σ∪{¬α} is unsatisfiable.
- This means if α is true in all models of Σ, then adding ¬α to Σ creates a contradiction 113.
8.2.4 Properties of entailment
- Reflexivity: If Σ⊆Γ and Σ⊨α, then Γ⊨α.
- Transitivity: If Σ⊨α and Σ⊨α⟹β, then Σ⊨β (Modus Ponens).
- Deduction Theorem: Σ⊨α⟹β if and only if Σ∪{α}⊨β.
8.2.5 Independent sets
- A formula α is independent of a set Σ if Σ⊨α and Σ⊨¬α.
- This means there are models where α is true and models where α is false, relative to Σ 114.
🔑 Important: If Σ is unsatisfiable, then Σ⊨α for any formula α.
8.3 Compactness
8.3.1 Definitions
- A set of formulas Σ is finitely satisfiable if every finite subset of Σ is satisfiable.
- A set of formulas Σ is finitely complete if for any formula θ, there exists a finite subset Γ0⊆Γ such that Γ0⊨θ or Γ0⊨¬θ.
8.3.2 The Compactness Theorem
- A set of formulas Σ 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 (Σ⊨α): A set of formulas Σ entails α if α is true in every model where all formulas in Σ are true.
- Independence: A formula α is independent of Σ if Σ∪{α} and Σ∪{¬α} are both satisfiable.
Properties of entailment
- If Σ⊨α and Σ⊆Γ, then Γ⊨α.
- If Σ⊨α→β and Σ⊨α, then Σ⊨β (Modus Ponens).
- Σ⊨α→β if and only if Σ∪{α}⊨β.
- If Σ⊨α, then Σ∪{β}⊨α (Chain Rule) 114.
Σ⊨α implies α is true in all models of Σ.
Consistency and completeness of a set of formulas
- A set Σ is consistent if there is a model where all formulas in Σ are true.
- A set Σ is complete if for every formula α, either Σ⊨α or Σ⊨¬α.
- If a set Σ is complete, then for any formula α, Σ⊨α or Σ⊨¬α 115.
9.2 Compactness theorem
- A set of formulas Σ is finitely satisfiable if every finite subset of Σ is satisfiable.
- A set of formulas Σ is finitely complete if for every formula θ, there exists a finite subset Δ⊆Σ such that Δ⊨θ or Δ⊨¬θ.
The compactness theorem connects satisfiability with finite satisfiability.
Compactness theorem for first-order logic
Theorem: A set of formulas Σ is satisfiable if and only if it is finitely satisfiable.
Proof outline:
- If Σ is satisfiable, then Σ is finitely satisfiable: If Σ has a model, that model satisfies all formulas in Σ, thus any finite subset is also satisfied 116.
- If Σ is finitely satisfiable, then Σ 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⊆…, where each Σn is finitely satisfiable 117.
- The union of this sequence, Σ′=⋃n=0∞Σn, is then shown to be satisfiable.
- This proof can also use Zorn's Lemma, showing that the set of finitely satisfiable supersets of Σ 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 Σ⊨α, then there exists a finite Σ0⊆Σ such that Σ0⊨α.
- 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.
- 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 130.
Logical axioms and inference rules
-
Logical axioms are fundamental truths assumed to be valid.
-
L1:φ→(ψ→φ).
-
L2:(φ→(ψ→θ))→((φ→ψ)→(φ→θ)).
-
L3:(¬φ→¬ψ)→(ψ→φ).
-
L4:φ∧ψ→¬(φ→¬ψ).
-
L5:¬(φ→¬ψ)→φ∧ψ.
-
L6:φ∨ψ→(¬φ→ψ).
-
L7:(¬φ→ψ)→φ∨ψ.
-
Modus Ponens (MP) is the primary rule of inference.
-
From φ→ψ and φ, we can infer ψ.
Σ⊢α means α can be derived from Σ using logical axioms and MP.
Proof definition
A sequence of formulas (θ1,…,θn) is a proof of α from Σ if:
- Each θi∈Σ.
- Each θi is a logical axiom.
- Or, θi is derived from earlier formulas θj,θk (where j,k<i) by Modus Ponens, such that θk=θj→θi.
- Finally, θn=α 131.
Σ⊢α if α is the last formula in a valid proof sequence from Σ.
Example proof
- To prove ⊢φ→φ:
- φ→((φ→φ)→φ) (L1)
- (φ→((φ→φ)→φ))→((φ→(φ→φ))→(φ→φ)) (L2)
- (φ→(φ→φ))→(φ→φ) (from 1, 2, MP)
- φ→(φ→φ) (L1)
- φ→φ (from 3, 4, MP) 132.
- To prove ¬¬φ⊢φ:
- ¬¬φ→(¬¬¬¬φ→¬¬φ) (L1)
- ¬¬φ (Assumption)
- ¬¬¬¬φ→¬¬φ (from 1, 2, MP)
- (¬¬¬¬φ→¬¬φ)→(¬φ→¬¬¬φ) (L3)
- ¬φ→¬¬¬φ (from 3, 4, MP)
- (¬φ→¬¬¬φ)→(¬¬φ→φ) (L3)
- ¬¬φ→φ (from 5, 6, MP)
- φ (from 2, 7, MP).
Properties of proofs
- If Σ⊢φ and φ∈Σ, then the proof is trivial.
- If Σ⊢φ, then Σ⊢ψ if φ is a tautology. This statement is incorrect as written in the source. A corrected version would be: If Σ⊢φ and φ is a tautology, then Σ⊢ψ is not generally true unless φ is part of the derivation.
- If Σ⊢φ and Σ⊢φ→ψ, then Σ⊢ψ (Modus Ponens applied to derived formulas).
- If Σ⊢φ, then there exists a finite subset Σ0⊆Σ such that Σ0⊢φ (Proof is finite).
- If Σ1⊆Σ2 and Σ1⊢φ, then Σ2⊢φ 133.
Proofs provide a syntactic way to establish logical consequence.
9.4 Applications of the compactness theorem
Graph coloring
- A graph (V,E) is k-vertex-colorable if its vertices can be colored with k 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) is k-vertex-colorable if and only if every finite induced subgraph of G is k-colorable 124.
Proof using compactness:
- Define atomic propositions: For each vertex v∈V and color i∈{1,…,k}, define an atomic proposition piv. This proposition means "vertex v has color i".
- Construct formulas:
- For each vertex v: σv=⋁i=1kpiv (Vertex v has at least one color).
- For each vertex v: ψv(j)=pjv→⋀i=j,1≤i≤k¬piv (If v has color j, it has no other color) 125.
- For each edge (v,w)∈E: θ(v,w)(i)=piv→¬piw (Adjacent vertices v,w cannot both have color i).
- Define the set of formulas ΣA: ΣA={σv∣v∈V}∪{ψv∣v∈V}∪{θ(v,w)∣(v,w)∈E}.
- Claim: The graph (V,E) is k-colorable if and only if ΣA is satisfiable 126.
Proof of claim:
- If (V,E) is k-colorable: Construct a model λˉ where λ(piv)=1 iff v has color i. This model satisfies σv, ψv, and θ(v,w) for all v,w and i, thus ΣA is satisfiable 127.
- If ΣA is satisfiable: Let λˉ be a model satisfying ΣA. Define Ai={v∈V∣λ(piv)=1}. These sets form a valid k-coloring for the graph (V,E).
- V=⋃i=1kAi (from σv).
- Ai are pairwise disjoint (from ψv).
- No adjacent vertices share a color (from θ(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:
- ϕ→(ψ→ϕ).
- (ϕ→(ψ→θ))→((ϕ→ψ)→(ϕ→θ)).
- (¬ϕ→¬ψ)→(ψ→ϕ).
- Modus Ponens (MP): This is a fundamental inference rule.
- Given ϕ→ψ and ϕ, we can infer ψ.
- A proof for a formula α from a set of formulas Σ, denoted Σ⊢α, is a finite sequence of formulas (θ1,…,θn) where:
- Each θi is either in Σ or a logical axiom.
- Or θi is derived from previous formulas θj,θk using Modus Ponens, such that θk=θj→θi.
- The last formula θn is α 131.
- If Σ is empty, we write ⊢α.
📝 Example: Proving ⊢ϕ→ϕ using logical axioms and Modus Ponens 132.
- ϕ→((ϕ→ϕ)→ϕ) (L1)
- (ϕ→((ϕ→ϕ)→ϕ))→((ϕ→(ϕ→ϕ))→(ϕ→ϕ)) (L2)
- (ϕ→(ϕ→ϕ))→(ϕ→ϕ) (from 1, 2, MP)
- ϕ→(ϕ→ϕ) (L1)
- ϕ→ϕ (from 3, 4, MP)
📝 Example: Proving ¬¬ϕ⊢ϕ.
- ¬¬ϕ→(¬¬¬¬ϕ→¬¬ϕ) (L1)
- Assume ¬¬ϕ
- ¬¬¬¬ϕ→¬¬ϕ (from 1, 2, MP)
- (¬¬¬¬ϕ→¬¬ϕ)→(¬ϕ→¬¬¬ϕ) (L3)
- ¬ϕ→¬¬¬ϕ (from 3, 4, MP)
- (¬ϕ→¬¬¬ϕ)→(¬¬ϕ→ϕ) (L3)
- ¬¬ϕ→ϕ (from 5, 6, MP)
- ϕ (from 2, 7, MP)
10.2 Properties of proofs
- Properties of provability Σ⊢ϕ:
- If Σ⊢ϕ, then ϕ∈Σ (Reflexivity).
- If Σ⊢ϕ, then ϕ is either in Σ or derivable.
- If Σ⊢ϕ and Σ⊢ϕ→ψ, then Σ⊢ψ (Transitivity via MP).
- If Σ⊢ϕ, there exists a finite subset Σ0⊆Σ such that Σ0⊢ϕ (Compactness property).
- If Σ1⊢ϕ and Σ1⊆Σ2, then Σ2⊢ϕ (Monotonicity).
- Chain Rule: If Σ⊢ϕ and Σ∪{ϕ}⊢ψ, then Σ⊢ψ 133.
10.3 The deduction theorem
- Deduction Theorem: For formulas ϕ and ψ, and a set of formulas Σ, Σ∪{ϕ}⊢ψ if and only if Σ⊢ϕ→ψ 136.
🔑 Important: The Deduction Theorem is crucial for simplifying proofs. It allows transforming a conditional derivation (assuming ϕ) into a proof of an implication (ϕ→ψ).
10.4 The Completeness Theorem
- The Soundness Theorem states that if Σ⊢ϕ, then Σ⊨ϕ. 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 Σ⊨ϕ, then Σ⊢ϕ. 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 Σ is consistent if Σ⊢⊥ (where ⊥ represents a contradiction).
- A set Σ is consistent if and only if:
- For every formula ψ, either ψ∈Σ or ¬ψ∈Σ.
- Σ is not inconsistent (meaning Σ⊢⊥).
- There exist ϕ such that Σ⊢ϕ and Σ⊢¬ϕ (inconsistency).
- A set Σ is consistent if and only if Σ∪{¬ϕ} 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 Σ is maximally consistent if it is consistent and for any formula ϕ, either ϕ∈Σ or ¬ϕ∈Σ 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 Σ∞ is satisfiability-preserving, meaning if Σ⊢ϕ, then ϕ∈Σ∞ 146.
- For any formula ϕ, either ϕ∈Σ∞ or ¬ϕ∈Σ∞ because Σ∞ 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 Σ proves a sentence ϕ, then Σ semantically entails ϕ. Conversely, the Completeness Theorem states that if Σ semantically entails ϕ, then Σ proves ϕ.
These theorems link the proof system (provability, ⊢) with the model theory (entailment, ⊨).
A set of sentences Σ is called consistent if it does not prove a contradiction (⊥). If Σ proves ⊥, it is inconsistent.
A set of sentences Σ is consistent if and only if there exists a sentence ϕ such that Σ does not prove ¬ϕ.
If Σ∪{¬ϕ} is consistent, then Σ is consistent.
The Compactness Theorem states that if a set of sentences Σ has an inconsistent finite subset, then Σ itself is inconsistent.
11.1.1 Proof of the completeness theorem
The Completeness Theorem for first-order logic shows that if a sentence ϕ is semantically entailed by a set of sentences Σ (Σ⊨ϕ), then there is a formal proof of ϕ from Σ (Σ⊢ϕ). 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 Σ⊢ϕ.
- Construction of a model: If Σ⊨ϕ, a consistent set Σ′ is constructed. This set is then extended to a maximal consistent set, which can be shown to be satisfiable.
A set Σ is maximally consistent if it is consistent and for any sentence ϕ, either ϕ∈Σ or ¬ϕ∈Σ.
🔑 Important: Maximally consistent sets are crucial because they allow for a direct mapping to a model. For any sentence ϕ, either ϕ or ¬ϕ 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 Σ∞ of the original set Σ 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 Σ∞ is guaranteed to be consistent and maximally consistent 146.
11.1.2 Key theorems and definitions
- Deduction Theorem: For any sets of sentences Σ, ϕ, and ψ, Σ∪{ϕ}⊢ψ if and only if Σ⊢ϕ→ψ.
📝 Example: If adding ϕ to Σ allows you to prove ψ, it means ϕ implies ψ within the context of Σ. This theorem is essential for proving many other results in logic 136.
-
Theorem: For any sentences ϕ and ψ:
-
⊢(ϕ→ψ)→((ψ→θ)→(ϕ→θ)) 139.
-
⊢¬ϕ→(ϕ→ψ).
-
⊢¬¬ϕ→ϕ 140.
-
⊢(ϕ→¬ϕ)→¬ϕ 141.
-
Definition of Consistent Set: A set Σ is consistent if it does not prove ⊥.
-
Equivalence of Consistency Conditions: For a set Σ:
-
Σ is consistent.
-
For every sentence ϕ, there is a proof of ψ from Σ.
-
There exists ϕ such that Σ⊢ϕ and Σ⊢¬ϕ.
🔑 Important: These conditions are equivalent, meaning proving one helps establish the others. For instance, if Σ is inconsistent, it proves everything.
11.1.3 Model theory connection
The link between proofs and models is central to first-order logic.
| Property | Statement | Corresponding Formalism |
|---|---|---|
| Soundness | If Σ proves ϕ, then Σ entails ϕ. | Σ⊢ϕ⟹Σ⊨ϕ |
| Completeness | If Σ entails ϕ, then Σ proves ϕ. | Σ⊨ϕ⟹Σ⊢ϕ |
| Consistency | If Σ is consistent, it is satisfiable. | Consistent Σ⟹ Model exists for Σ |
| Compactness | If Σ is inconsistent, some finite subset is. | Inconsistent Σ⟹∃Δ⊆Σ,Δ 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) mean "x is human."
-
Let M(x) mean "x is mortal."
-
In FOL: ∀x(H(x)→M(x)) 151.
-
Example 2: "There is a rational number between any two rational numbers."
-
Let Q be the set of rational numbers.
-
In FOL: ∀x,y∈Q(x<y→∃z∈Q(x<z∧z<y)).
11.2.2 Syllogisms and limitations of propositional logic
Consider the classic syllogism:
- All humans are mortal.
- Socrates is human.
- Therefore, Socrates is mortal.
In propositional logic, if we assign p to "All humans are mortal" and q to "Socrates is human," and r to "Socrates is mortal," we cannot formally derive r from p and q. This is because p 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 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 (∧,∨,→,¬), quantifiers (∀,∃), 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∈F is an n-ary function symbol and t1,…,tn are terms, then f(t1,…,tn) is a term 156.
-
Atomic formulas (L-Atom):
-
An equality statement between two terms: t1=t2.
-
A relation symbol applied to its arity of terms: R(t1,…,tn) 157.
-
Formulas (L-Formula):
-
Atomic formulas are formulas.
-
If ϕ1 and ϕ2 are formulas, then (ϕ1∧ϕ2), (ϕ1∨ϕ2), and (ϕ1→ϕ2) are formulas.
-
If ϕ1 is a formula, then ¬ϕ1 is a formula.
-
If ϕ is a formula and x is a variable, then (∀xϕ) and (∃xϕ) 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(ϕ)): The set of all subformulas of a given formula ϕ 161.
-
Occurrences of variables:
-
A variable occurrence in a formula is bound if it is within the scope of a quantifier (∀ or ∃) applied to that variable.
-
A variable occurrence is free if it is not bound.
-
Free variables (Free(ϕ)): The set of variables that occur freely in a formula ϕ 163.
Formulas with no free variables are often called sentences.
- Notation ϕ(x1…xn): Used when the free variables in formula ϕ are a subset of {x1,…,xn} 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 (fM): For each function symbol f, a function from Dn to D, where n is the arity of f.
- Relation interpretations (RM): For each relation symbol R, a subset of Dn, where n is the arity of R.
- Constant interpretations (cM): For each constant symbol c, an element of D 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 (σ): A function that maps variables to elements in the domain of the structure (σ:Var→M) 170.
-
Term interpretation (tM[σ]): The value of a term t in structure M under assignment σ.
-
Constants: cM[σ=cM.
-
Variables: xM[σ=σ(x).
-
Functions: (f(t1,…,tn))M[σ=fM(t1M[σ,…,tnM[σ]) 170-171.
-
Truth of a formula (M⊨σϕ): A formula ϕ is true in structure M under assignment σ.
-
Atomic formulas:
-
M⊨σR(t1,…,tn) if (t1M[σ,…,tnM[σ])∈RM.
-
M⊨σ(t1=t2) if t1M[σ=t2M[σ].
-
Connectives:
-
M⊨σ(ϕ1∧ϕ2) iff M⊨σϕ1 and M⊨σϕ2.
-
M⊨σ(ϕ1∨ϕ2) iff M⊨σϕ1 or M⊨σϕ2.
-
M⊨σ(ϕ1→ϕ2) iff if M⊨σϕ1, then M⊨σϕ2.
-
M⊨σ¬ϕ1 iff M⊨σϕ1.
-
Quantifiers:
-
M⊨σ∃xϕ1 iff there exists an element a in the domain M such that M⊨σ[x/a]ϕ1.
-
M⊨σ∀xϕ1 iff for all elements a in the domain M, M⊨σ[x/a]ϕ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) σ maps variables to elements in a structure's domain. For example, σ[x1↦a1,x2↦a2] updates an assignment 174.
-
The truth of a formula ϕ in a structure M with assignment σ, denoted M⊨σϕ, is determined by recursively evaluating terms and subformulas 175.
📝 Example: For ϕ=(f(g(x1,x1),f(c,x2))=x5) and σ(xi)=2i+3, evaluating this in M1 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 t (e.g., t(x1,…,xn)) in a structure M depends only on the assignments to the variables x1,…,xn. If two assignments σ1,σ2 agree on these variables, then tM[σ1=tM[σ2] 177.
-
A formula ϕ(x1,…,xn) is true under assignment σ1 if and only if it is true under σ2, provided σ1 and σ2 agree on all free variables of ϕ 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 ϕ is true in a structure M (denoted M⊨ϕ) if it is true for all assignments σ to M's variables.
-
This is equivalent to stating that there exists at least one assignment σ for which M⊨σϕ, if ϕ 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ψ iff there exists a∈∣M∣ such that M⊨σ[x/aψ.
- M⊨∀xψ iff for all a∈∣M∣, M⊨σ[x/aψ.
- Truth in a structure M satisfies specific properties for atomic formulas and those built with logical connectives.
| Formula Type | Condition for M⊨ϕ |
|---|---|
| ϕ:=R(t1,…,tk) | (t1M,…,tkM)∈RM |
| ϕ:=t1=t2 | t1M=t2M |
| ϕ:=ψ1∧ψ2 | M⊨ψ1 and M⊨ψ2 |
| ϕ:=ψ1∨ψ2 | M⊨ψ1 or M⊨ψ2 |
| ϕ:=ψ1→ψ2 | If M⊨ψ1, then M⊨ψ2 |
| ϕ:=¬ψ | M⊨ψ |
| ϕ:=∃xψ | There exists $a \in |
| ϕ:=∀xψ | For all $a \in |
13.4 Theories and satisfiability
-
A theory T is a set of sentences in a language L.
-
A structure M is a model of a theory T if M⊨ϕ for all ϕ∈T.
-
A theory T is satisfiable if it has at least one model 184.
📝 Example: The theory T∞={λ1,λ2,…} representing "infinite domains" is satisfiable. A model M satisfies T∞ iff ∣M∣≥ℵ0 188.
- A sentence α is logically implied by a theory T (denoted T⊨α) if α is true in every model of T.
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 Σ⊨ϕ (where Σ is a set of formulas and ϕ is a formula):
| Property | Condition |
|---|---|
| Factoring | If Σ⊨ϕ, then ϕ∈Σ. |
| Monotonicity | If Σ1⊆Σ2 and Σ1⊨ϕ, then Σ2⊨ϕ. |
| Modus Ponens (MP) | If Σ⊨ϕ and Σ⊨ϕ→ψ, then Σ⊨ψ. |
| Transitivity | If Σ∪{ϕ}⊨ψ, then Σ⊨ϕ→ψ. |
| Reiteration | If Σ⊨ϕ, then Σ⊨ϕ. |
| Strengthening | If Σ⊨ϕ, then Σ∪{ϕ}⊨ϕ. |
- 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⟩ satisfies the group theory axioms.
- The axiom ∀x∀y(x⋆y=y⋆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.
- TRing defines general ring properties.
- TCRing adds commutativity of multiplication.
- TINTD includes the property that if x×y=0, then x=0 or y=0.
- TField 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 Σ is satisfiable in a language L if there exists a structure M and an assignment σ such that M⊨σϕ for all ϕ∈Σ.
📝 Example: In the structure ⟨N,≤⟩, the set Σ={x≤y} is satisfiable with assignment σ(x)=2,σ(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 ∀ and ∃) to formulas.
- Universal Instantiation:
$\forall x \varphi(x) \rightarrow \varphi(x/t)$iftis 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))$ifxdoes not appear free in θ.- 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 φ and φ→ψ, infer ψ.
- Generalization (Gen):
- From φ, infer ∀xφ.
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 φ from a set of formulas Σ is a sequence of formulas ⟨φ1,…,φn⟩ where φn=φ, and each φi is either in Σ, 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 (Σ⊢φ), then it is true in all models of those premises (Σ∣=φ).
- Completeness: If a formula is true in all models of a set of premises (Σ∣=φ), then it can be proven from those premises (Σ⊢φ).
14.2.1.1 Soundness Proof Sketch
- The proof uses induction on the length of the derivation 207.
- Base cases: formulas in Σ 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 Γ 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 Γ is consistent if and only if Γ⊢⊥.
Key relationships:
Γ⊢φ if and only if Γ∪{¬φ} 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 σ, either σ or ¬σ is in the theory 210.
14.3.1 Henkin Theories
- A theory T in a language L has the witness property if for every formula ∃xθ(x) in L, there is a constant cθ such that T⊢∃xθ(x)→θ(cθ).
- A theory with the witness property allows us to demonstrate the existence of elements satisfying formulas 211.
Process for constructing a Henkin theory:
- Start with an initial theory T0 and language L0.
- For each formula φn in the language, create a new constant cn and a new language Ln+1=Ln∪{cn}.
- Construct theory Tn+1=Tn∪{∃xφn(x)→φn(cn)} 212.
- The union of all Ln and Tn forms a language L⋆ and a theory T⋆ 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 T in language L 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 M such that M∣=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,d in a language L, c∼Td if and only if T⊢c=d.
- This relation is reflexive (c∼Tc), symmetric (c∼Td⟹d∼Tc), and transitive ((c∼Td∧d∼Te)⟹c∼Te).
- The domain of the model M is formed by the equivalence classes of constants under ∼T. M=C/∼T={[c∣c∈C} where C is the set of all constants in L 216.
15.1.2 Interpreting relations
Relation symbols in the language are interpreted based on the established equivalence classes of constants. A relation R holds between equivalence classes if and only if the relation holds for the representative constants in the theory T.
- For a relation symbol R∈Rn (n-ary relation), its interpretation RM in the model M is defined as: ⟨[c1,…,[cn⟩∈RM⟺T⊢R(c1,…,cn) This interpretation is well-defined because if ci∼Tci′ for all i, then T⊢R(c1,…,cn) if and only if T⊢R(c1′,…,cn′) 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∈Fm (m-ary function), its interpretation fM is: fM([c1,…,[cm])=[c where c is a constant such that T⊢f(c1,…,cm)=c. This is guaranteed to exist by the downward Löwenheim-Skolem theorem and the proof construction.
- The interpretation fM is well-defined, meaning that if f(c1,…,cm)=c and f(c1′,…,cm′)=c′ with ci∼Tci′, then [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∈C, its interpretation cM is simply the equivalence class [c].
15.1.5 The constructed model
Combining all these interpretations, we obtain the model M.
- The constructed model is M=⟨M,RM,fM,cM⟩ for all relation symbols R, function symbols f, and constant symbols c.
- It can be proven that M∣=T. This means the constructed structure satisfies all sentences in the theory T.
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 T in language L, T is satisfiable if and only if every finite subset of T is satisfiable.
- Proof direction (⇒): If T is satisfiable, then any subset of T is also satisfiable by its model.
- Proof direction (⇐): If every finite subset of T is satisfiable, then T 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 T in a countable language L 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 T is a theory in a countable language L and T has a model, then for any infinite cardinal κ such that ∣L∣≤κ, T has a model of cardinality κ. 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 A, [A]n denotes the set of all subsets of A with exactly n elements. [A]n={B⊆A∣∣B∣=n}
- k-coloring of n-subsets: A function f:[A]n→{0,1,…,k−1} is a k-coloring of n-subsets of A. It assigns one of k colors to each n-subset of A 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>1, if A is an infinite set and f:[A]n→{0,1,…,k−1} is any k-coloring, then there exists an infinite subset B⊆A such that all n-subsets of B have the same color under f. That is, f restricted to [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>1, there exists a natural number R(n,k,m) such that for any set A with ∣A∣>R(n,k,m) and any k-coloring f:[A]n→{0,1,…,k−1}, there exists a subset B⊆A with ∣B∣>m such that all n-subsets of B have the same color under f.
🔑 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 M for a theory T by using the equivalence classes of constants defined by T. 216-220
- The model M is shown to satisfy all sentences in T, 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 L-structures ⟨Mi∣i∈I⟩ with a linear ordering < on I is a chain if for every i<j, Mi is a substructure of Mj.
- The chain union ⋃i∈IMi is an L-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 (∧,∨,¬,→) and quantifiers (∀,∃).
- Formulas of the form ∀x∃yψ(x,y) are inductive.
- A set of structures ⟨Mi∣i∈I⟩ satisfies a formula ϕ if each Mi satisfies ϕ.
- If each structure Mi in a collection satisfies ϕ, then their union also satisfies ϕ 235.
For any collection of structures ⟨Mi∣i∈I⟩, if each Mi satisfies ϕ, then ⋃i∈IMi also satisfies ϕ.
16.2 Ultraproducts and their structure
- An ultrafilter F on an index set I is a collection of subsets of I satisfying three conditions:
- Non-empty intersection: If A,B∈F, then A∩B∈F.
- Downward closed under supersets: If A∈F and A⊆B, then B∈F.
- Non-empty and includes I: ∅∈/F and I∈F.
- A filter G is similar to an ultrafilter but with ∅∈G and I∈/G 237.
- A filter F on I is ultrafine if for any A⊆I, either A∈F or its complement Ac∈F.
Ultrafilters are essential for constructing ultraproducts, which represent "generic" structures from a collection.
- Filters and finite intersections: If X⊆P(I) is non-empty and finite, and X is contained in a filter F, then the intersection of elements in X 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 of structures ⟨Mi∣i∈I⟩ over an ultrafilter F is constructed by taking the product of the domains and then quotienting by an equivalence relation defined by F.
- The equivalence relation (ai)i∈I∼F(bi)i∈I holds if {i∈I∣ai=bi}∈F 242.
- This relation is reflexive, symmetric, and transitive, forming an equivalence relation. [243-244]
- The domain of the ultraproduct structure ∏FMi is the set of equivalence classes under ∼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 R and functions f, constant symbols c, the corresponding elements in the ultraproduct structure ∏FMi are defined based on their behavior within the individual structures Mi and the filter F. [244-247]
16.4 The Łos's Theorem
- Łos's Theorem states that for an ultraproduct ∏FMi and a formula ϕ(x), the ultraproduct satisfies ϕ with given tuples of elements if and only if the set of indices i for which Mi satisfies ϕ with the corresponding elements belongs to the ultrafilter F.
- This theorem is proven by induction on the complexity of the formula ϕ 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 (¬,∨). [250-251]
- The inductive step handles quantified formulas like ∃xψ(x,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 N, denoted by F.
- F must be non-empty and closed under finite intersections.
- If A∈F and A⊆B, then B∈F.
- For any A,B∈F, A∩B∈F.
17.1.1 Building structures with ultraproducts
- Ultraproducts are constructed using an ultrafilter F and a sequence of structures (Mn)n∈N.
- The ultraproduct M∞=∏FMn is formed by taking the Cartesian product ∏n∈NMn and identifying elements that agree on sets within the ultrafilter F.
- Two elements (an)n∈N and (bn)n∈N are equivalent if {n∈N∣an=bn}∈F.
- The ultraproduct M∞ inherits properties from the individual structures Mn based on the ultrafilter.
The core idea is that if a property holds for "most" Mn (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 σ is true in all Mn, then σ is true in M∞.
- The truth of a formula σ in the ultraproduct M∞ is determined by the set of indices {n∈N∣Mn⊨σ}∈F.
Ultraproduct construction summary:
| Concept | Description |
|---|---|
| Set N | The index set for the sequence of structures. |
| Ultrafilter F | A collection of subsets of N that defines "most" or "almost all". |
| Sequence (Mn) | A list of structures, e.g., models of a theory. |
| Ultraproduct M∞ | ∏FMn, formed by identifying elements that agree on sets in F. |
- If Mn⊨σ for all n in some set A∈F, then M∞⊨σ.
- 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 Γ is finitely satisfiable, then it is satisfiable.
- This can be proven using ultraproducts.
- Consider an infinite set of formulas Δ={σ0,σ1,σ2,…}. If Δ is finitely satisfiable, then for each k, the set {σ0,…,σk} is satisfiable by some structure Mk.
- An ultrafilter can be used to construct a single model M∞ that satisfies all sentences in Δ.
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 f. 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) are constructed using Dedekind cuts. These are specific subsets of rational numbers (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 that is bounded below and has no greatest element.
-
Dedekind cut properties:
-
Non-empty and proper subset of Q.
-
No maximum element within the subset.
-
Bounded below: if a≤x for any x in the cut, then a is also in the cut.
-
Examples of Dedekind cuts:
-
Ca={x∈Q∣x<a} for any a∈Q.
-
I={x∈Q∣(x<0)∨(x2<2)} represents 2.
-
The set of real numbers R is the set of all Dedekind cuts.
18.1.2 Algebraic structure of real numbers
The set of real numbers R forms a field with operations of addition (+R), subtraction (−R), multiplication (×R), and an ordering relation (≤R).
-
Addition (+R):
-
Defined as x+Ry={v+u∣v∈x,u∈y}.
-
This operation is well-defined and associative, commutative, and has an identity element (0R).
-
The ordering is compatible with addition: x≤Ry⟺x+Rz≤Ry+Rz.
-
Additive Inverse (−R):
-
Defined as −x={v∈Q∣∃u(u>v∧−u∈/x)}.
-
Satisfies x+R(−x)=0R, making ⟨R,+R,0R⟩ an additive group.
-
Multiplication (×R):
-
Defined based on the signs of the real numbers (cuts).
-
If x,y are both negative: x×Ry=∣x∣×R∣y∣.
-
If x,y are both positive: x×Ry={uv∣u∈x,v∈y,u,v≥0}.
-
If one is positive and one is negative: x×Ry=−(∣x∣×R∣y∣).
-
Properties of R:
-
⟨R,+R,×R,−R,≤R,0R,1R⟩ forms an ordered field.
-
Every non-zero element has a multiplicative inverse.
-
Multiplication preserves order when multiplying by a positive number: if z>0, then x≤Ry⟺x×Rz≤Ry×Rz.
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 that is bounded above has a least upper bound (supremum) in R. This ensures R has no "holes".
-
Archimedean property: For any real numbers x and y with y>0, there exists a natural number n such that nx>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 maps rational numbers to Dedekind cuts (q↦Cq). This mapping preserves addition, subtraction, and multiplication.
- Intermediate Value Theorem: If f:R→R is a polynomial and f(a)f(b)<0 for a<b, then there exists x between a and b such that f(x)=0.
18.2 Complex numbers
Complex numbers (C) extend the real numbers by introducing an imaginary unit, i, to solve equations like x2+1=0.
18.2.1 Structure of complex numbers
The set of complex numbers C is defined as the set of ordered pairs of real numbers, R2.
- Set definition: C=R2={(a,b)∣a,b∈R}.
- Operations:
- Addition: (a,b)+C(a′,b′)=(a+a′,b+b′).
- Multiplication: (a,b)×C(a′,b′)=(aa′−bb′,ab′+ba′).
- Key elements:
- 0C=(0,0) (additive identity).
- 1C=(1,0) (multiplicative identity).
- i=(0,1) (imaginary unit, where i2=−1).
- Representation: A complex number (a,b) can be written as a+bi, where a is the real part and b is the imaginary part.
- Field structure: ⟨C,+C,×C,0C,1C⟩ 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.