Академический Документы
Профессиональный Документы
Культура Документы
Yannick Limmer
Mathematics Department, University of Toronto
October 1, 2019
2
Contents
2 Deductions 15
2.1 Logical Axioms and Rules of Inference . . . . . . . . . . . . . . . 16
2.2 Properties of the deductive system . . . . . . . . . . . . . . . . . 21
2.3 Language of number theory . . . . . . . . . . . . . . . . . . . . . 26
3
4 CONTENTS
Chapter 1
5
6 CHAPTER 1. STRUCTURE AND LANGUAGES OF FO LOGIC
2. t is a constant symbol
• t1 6= t2 :≡ ¬(t1 = t2 )
• α ∧ β :≡ ¬((¬α) ∨ (¬β))
• (∃x)(α) :≡ ¬((∀x)(¬α))
• α → β :≡ (¬α) ∨ β
• α ↔ β :≡ (α → β) ∧ (β → α)
• α ∨ β ∨ γ :≡ (α ∨ β) ∨ γ
1.2. FREE AND BOUNDED VARIABLES 7
1.3 Structures
1.3.1 Definition. An L-structure A consists of a non-empty set A which is
called the "universe" of A, together with "interpretations" for the constant,
function and relation symbols in L:
Example. Let LNT = {0; S (1) , +(2) , ·(2) ; <(2) }. The natural numbers N has the
universe {0, 1, 2, ...}, S N (n) = n + 1, +(m, n) = m + n, <N = {(m, n) ∈ N2 : m <
n} and 0N = 0. The LNT -structure Z has the universe {..., −2, −1, 0, 1, 2, ...}, so
the symbols have an other interpretation.
Example. LLO = {<(2) }.
1.3.2 Remark. A linear order is an LLO -structure A = (A, <A ) satisfying
axioms:
8 CHAPTER 1. STRUCTURE AND LANGUAGES OF FO LOGIC
1. (∀x)¬(x < x)
Example. A = {1, 2, 3}, <A = {(2, 3), (3, 1), (2, 1)} is a linear order.
◦ ◦ ◦
2 3 1
Example. Heightbook.
Axioms of Heightbook:
• (∀x)(¬Friend(x, x)).
def
3. s̄A (f t1 ...tn ) = f A (s̄A (t1 ), ..., s̄A (tn )
Example. Let s : Vars −→ {1, 2, 3, ...} any var. assignment function into N.
Then,
s̄( 0 )= 0
|{z} |{z}
const. symbol the number[=0N ]
(addition)
s̄(S0) = S N (s(0)) = S N (0) = 0 + 1 = 1
N N
s̄(+S0S0) = + (s̄(S0), s̄(S0)) = + (1, 1) = 1 + 1 = 2
A |= φ[s]
("A satisfies φ under s" or " φ is true in A under s") in the following cases
(inductive definition):
Example.
(3)
N |= ¬(= 0S0)[s] ⇔ N 2 (= 0S0)[s]
(1)
⇔ 0N 6= (S0)N
⇔ 0 6= 1
Proof.
(3)
A |= (α ∨ β)[s] ⇔A 2 ((¬α) ∨ (¬β))[s]
(4)
⇔ not A |= (¬α)[s] or A |= (¬β)[s]
(?)
⇔ not A 2 (¬α)[s] and A 2 (¬β)[s]
(3)
⇔A |= α[s] and A |= β[s]
We observe that the satisfaction relation A |= φ[s] only depends on the free
variables of φ.
1.5 Substitution
For terms u and t and a variable x, let uxt be the term from u replacing each
occurrence of x with the term t. This is provided in a more formal way in the
subsequent definition.
1.5.1 Definition (Substitution for terms). Using the notation from above:
uxt :≡ t if u is x
uxt :≡ u if u is a constant or variable other than x
uxt :≡ f (u1 )xt ...(un )xt if u is f u1 ...un
3. (¬α)xt ≡ ¬αtx
5. ((∀x)(α))xt ≡ (∀x)(α)
6. ((∀y)(α))xt ≡ (∀y)(αtx )
1.6.2 Definition. If α has free variables x1 , ..., xk , then the sentence (∀x1 )(∀x2 )...(∀xk )(α)
is called the universal closure of α.
1.6.4 Remark. Read on your own: Language L has a binary relation symbol P .
• Example 1.9.3 Detailed proof of |= (∃x∀yP (x, y)) → (∀x∃yP (x, y)).
• Exercise 4:
Deductions
Each λ ∈ Γ is valid.
Example. (x = x) ∈ Γ. For each ({γ1 , ..., γk }, θ) ∈ I, (γ1 ∧ ... ∧ γk ) is valid.
This is called Soundness.
Let Σ be an arbitrary set of formulas (assumptions, for example the axioms for
linear orders).
2. δi ∈ Σ (δi is an assumption) or
15
16 CHAPTER 2. DEDUCTIONS
δ1 P (u, v)
δ2 P (u, v) → P (v, u)
δ3 P (v, u)
δ4 P (v, u) → P (u, u)
δ5 P (u, u)
• (E1), (E2), (E3), (Q1), (Q2) of logical axioms, each a family of valid L-
formulas.
• δi ∈ Σ
• δi is a logical axiom
(E2) for each n-ary function symbol f in L and all variables x1 , ...xn , y1 , ..., yn ∈
Vars (not necessarily distinct), we have the axiom (x1 = y1 ∧ ... ∧ xn =
yn ) → (f (x1 , ..., xn ) = f (y1 , ..., yn )).
2.1. LOGICAL AXIOMS AND RULES OF INFERENCE 17
(E3) for each n-ary relation symbol R in L we have the axiom (x1 = y1 ∧ ... ∧
xn = yn ) → (Rx1 ...xn → Ry1 ...yn ).
Also, (x1 = y1 ∧ x2 = y2 ) → (x1 = x2 → y1 = y2 ) is an (E3) axiom.
1. a proposition variable or
γ2 :≡ ∃xQ(x) → P (x)
| {z } | {z }
B C
γ3 :≡ ¬ P (x) ↔ (y = z)}.
| {z } | {z }
C D
Let
φ :≡ ∀xP (x) → ¬ (y = z) .
| {z } | {z }
A D
Now:
where the right side is a tautology. Therefore (Γ, φ) is a (PC) rule of inference.
• Rxx
• Rxy → Ryx
• `x=x
• x=y→y=x
• (x = y ∧ y = z) → (x = z)
Deduction of x = x:
δ1 :≡ x = x (E1) axiom.
Deduction of x = y → y = x:
δ1 :≡ (x = y ∧ x = x) → (x = x → y = x) (E3) with x1 = x2 = y3 = x, y1 = y
δ2 :≡ x = x (E1) axiom.
δ3 :≡ x = y → y = x (PC)
[(δ1 ∧ δ2 ) → δ3 ]Prop is a tautology.
Deduction of (x = y ∧ y = z) → (x = z):
δ1 :≡ (x = x ∧ y = z) → (x = y → x = z) (E3) with x1 = x, y1 = x, x2 = y,
y2 = z
δ2 :≡ x = x (E1) axiom.
δ3 :≡ (x = y ∧ y = z) → (x = z) (PC) rule
[(δ1 ∧δ2 ) → δ3 ]Prop is a tautology, but [δ1 → δ3 ]Prop is not a tautology. Therefore,
define A :≡ [x = x]prop , A :≡ [y = z]prop , A :≡ [x = y]prop , A :≡ [x = z]prop .
With that:
A B C D
.
F T T F
A |= α ⇔ A |= (∀x)(α).
Σ |= α ⇔ Σ |= (∀x)(α).
20 CHAPTER 2. DEDUCTIONS
• Logical Axioms:
(E1) x = x
(E2) (x1 = y1 ∧ ... ∧ xn = yn ) → (f x1 ...xn = f y1 ...yn )
(E3) (x1 = y1 ∧ ... ∧ xn = yn ) → (Rx1 ...xn = Ry1 ...yn )
(Q1) ∀xφ → φxt
(Q2) φxt → ∃φ
whereby (Q1) and (Q2) only hold if t is substitutable in φ.
2.2. PROPERTIES OF THE DEDUCTIVE SYSTEM 21
• Rules of Inference:
(QR1) ({β → α}, β → ∀xα)
(QR2) ({α → β}, ∃xα → β)
whenever x is not free in β.
• Last time:
` (x = y) → (y = x)
` (x = y ∧ y = z) → (x = z)
• Deduction ∀xα ` α:
δ1 ∀xα ≡ α
δ2 ∀xα → αxx (QR)
δ3 α (P C)
3. The sets of logical axioms and rules of inference are algorithmically decidable:
Proof.
Proof assuming (1) and (2). Suppose Σ ` φ. Then exists a deduction {δ1 , ..., δn }
of φ from Σ. We argue by induction on i = 1, ..., n, that Σ |= δi .
Recall that we have to show ∀A if A |= Σ, then A |= δi . Now, for each i,
consider the cases:
• If δi ∈ Σ, then clearly Σ |= δi .
β → α |= β → ∀xα
So fix an arbitrary s : Vars −→ A and assume that A |= β[s]. (If not, we are
done.) We now only have to show: A |= ∀xα[s]. By definition of |=, for all
a ∈ A, thus we must show
A |= α[s[x|a]].
Fix any a ∈ A. Note that s and s[a|x] both agree on all free variables of β (since
x is not free in β). Therefore, by Definition 1.4.2:
A |= (β → α)[s[x|a]].
2.2. PROPERTIES OF THE DEDUCTIVE SYSTEM 23
Obviously, s and s[x|a] agree on the free variables of β (since x is not free in β).
Since A |= β[s], by Proposition 1.4.5, A |= β[s[s|a]]. Therefore,
A |= α[s[x|a]]
is required.
α → β =| |= ¬β → ¬α
|= ¬β → ∀x(¬α)
|= ¬(∀x)(¬α) → ¬¬β
|= (∃x)(α) → β
T if A |= αi [s]
Vi 7−→
F if A 2 αi [s]
Proof. By induction on P .
2.2.6 Proposition ((PC) rule perceives truth). Let ({γ1 , .., γn }, β) is an instance
of (PC) rule. Then, γ1 , ..., γn models β.
24 CHAPTER 2. DEDUCTIONS
Proof. Let
φ :≡ (γ1 ∧ ...γm ) → β.
A |= {φ1 , ...φn }.
s[x|s̄(t)][y|b] = s[y|b][x|s̄(t)]
Σ ` (θ → φ) iff Σ ∪ {θ} ` φ
Case 3 Suppose ∃Γ ⊆ {δ1 , ..., δi−1 } s.t. (Γ, δi ) is a (PC) rule. Say Γ = {γ1 , ..., γk }.
So [(γ1 ∧ ... ∧ γk ) → δi ]prop is a tautology. It follows that [((θ → γ1 ) ∧ ... ∧
(θ → γk )) → (θ → gammai )]prop is a tautology.
Suppose P1 ∧ ... ∧ P2 ) → Q is a tautology and V is a prop. variable. Then
((V → P1 ) ∧ ... ∧ (V → Pk )) → (V → Q) is a tautology.
A |= (P x → ∀xP x)[s]
N3 (∀x)(x + 0 = x)
SS · · · S} 0.
| {z
a times
∀xφ ` φ:
δ1 ∀xφ
δ2 ∀xφ → φ (Q1)
δ3 φ (PC)
5. By induction on b ∈ N.
– Base case (b = 0). We want to show that N1−11 ` (a+0 = (ā+0 = a).
We have:
N1−11 ` x + 0 = x (N3 )
N1−11 ` ā + 0 = ā (Sub Lemma)
N1−11 ` (a + b + 1 = a + b + 1) .
| {z }
≡(a+Sb=Sa+b
28 CHAPTER 2. DEDUCTIONS
A = (A, 0A , S A , +A )
such that
def
• 0A = 0.
Now for a, b ∈ N:
• a +A b = a + b
• a∗ +A b∗ = (a + b)∗
• a + A b∗ = a + b
• a∗ +A b = (a + b)∗
• a∗ + 0 = a∗
• a+0=a