Download 1. Axioms and rules of inference for propositional logic. Suppose T

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Peano axioms wikipedia , lookup

Model theory wikipedia , lookup

Turing's proof wikipedia , lookup

Intuitionistic logic wikipedia , lookup

Laws of Form wikipedia , lookup

Mathematical logic wikipedia , lookup

Quantum logic wikipedia , lookup

Bayesian inference wikipedia , lookup

Law of thought wikipedia , lookup

Georg Cantor's first set theory article wikipedia , lookup

Curry–Howard correspondence wikipedia , lookup

Gödel's incompleteness theorems wikipedia , lookup

Sequent calculus wikipedia , lookup

Inquiry wikipedia , lookup

Arrow's impossibility theorem wikipedia , lookup

Propositional calculus wikipedia , lookup

Natural deduction wikipedia , lookup

Statistical inference wikipedia , lookup

Mathematical proof wikipedia , lookup

Theorem wikipedia , lookup

Transcript
1. Axioms and rules of inference for propositional logic.
Suppose T = (L, A, R) is a formal theory. Whenever H is a finite subset of L
and C ∈ L it is evident that
(H, C) ∈ R ⇒ H ` C.
Fix a set X of propositional variables. We work with the language
p(X).
1.1. The standard setup (or so I think). This is, essentially, what you see in
the coursepack on page 78.
We axiomatize propositional logic by using following rules of inference.
Suppose A, B, C are statements. Then
³
´
EM
∅, ∼ A ∨ A
³
Ass
´
{(A ∨ (B ∨ C))}, ((A ∨ B) ∨ C)
³
Ex
´
{A}, (B ∨ A)
³
Contr
³
Cut
´
{(A ∨ A)}, A
´
{(A ∨ B), (∼ A ∨ C))}, (B ∨ C)
are rules of inference.
EM stands for “excluded middle”; Ass stands for “associative”; Ex stands for
“expansion”; Contr stands for “contraction”; and Cut stands for “cut”.
An axiom is a rule of inference where the set of hypotheses is empty; thus EM
is an axiom.
In addition,
And1
(∅, (∼ (A ∧ B)∨ ∼ (∼ A∨ ∼ B)))
And2
(∅, (∼∼ (∼ A∨ ∼ B) ∨ (A ∧ B)))
Imp1
(∅, (∼ (A → B) ∨ (∼ A ∨ B)))
Imp2
(∅, (∼ (∼ A ∨ B) ∨ (A → B)))
Iff1
(∅, (∼ (A ↔ B) ∨ ((A → B) ∧ (B → A))))
Iff2
(∅, (∼ ((A → B) ∧ (B → A)) ∨ (A ↔ B)))
are rules of inference.
Note that all of the words appearing above are statements.
Proposition 1.1. Suppose
H`C
is one of the rules of inference for propositional logic. Then
H |= C.
1
2
Proof. We need to show that if
T ⊂ X and tH (T ) = 1
for H ∈ H ⇒ tC (T ) = 1.
We leave this as an exercise for the reader.
¤
Remark 1.1. Note that if A is a statement there is a canonical way using the
parse tree of A to construct a statement B which contains only the connectives ∼
and ∨ such that
tA = tB .
Note that another way of doing this is to let B be the disjunctive normal form of
A.
Lemma 1.1. Suppose Γ is a set of statements and S1 , . . . , Sn is a proof using Γ.
Then Γ |= Sn .
Proof. Either (i) Sn ∈ Γ or (ii) (H, Sn ) is a rule of inference for some H ⊂ {Sj :
j < n}. If (i) holds it is trivial that Γ |= Sn so suppose (ii) holds. We may suppose
inductively that Γ |= H for H ∈ H. The preceding Lemma implies that Γ |= Sn . ¤
Theorem 1.1. (The soundness theorem.) Suppose Γ is a set of statements
and A is a statement. Then
Γ ` A ⇒ Γ |= A.
Remark 1.2. We will prove that the converse statement holds if Γ is consistent.
Proof. This follows directly from the preceding Lemma.
¤
1.2. So called “derived rules of inference”. These are just plain theorems.
Theorem 1.2. Suppose A, B, C are statements. Then
Com
NewAss
{(A ∨ B)} ` (B ∨ A);
{((A ∨ B) ∨ C)} ` (A ∨ (B ∨ C));
Proof. See pp. 80-81 in the coursepack.
¤
Theorem 1.3. Suppose A, B, C, D are statements. Then
GenAss
{(A ∨ (B ∨ (C ∨ D)))} ` (A ∨ ((B ∨ C) ∨ D));
GenExp
{(A ∨ B)} ` (A ∨ (C ∨ B));
GenContr
{(A ∨ (B ∨ B))} ` (A ∨ B);
GenCut
{(A ∨ (B ∨ C)), (A ∨ (∼ B ∨ D))} ` A ∨ (C ∨ D);
Proof. See pp. 91-93 in the coursepack.
Definition 1.1. Suppose A is a statement and Γ is a set of statements. Let
A ∨ Γ = {(A ∨ S) : S ∈ Γ}.
Lemma 1.2. Suppose (H, C) is a rule of inference and A is a statement. Then
A ∨ H ` A ∨ C.
¤
3
Proof. We have {B} ` A ∨ B from Ex. This implies that the assertion to be proved
holds for EM, And1, And2, Imp1, Imp2, Iff1 and Imp2.
For Ass, Ex, Contr and Cut this amounts to the so called “generalized rules
of inference” on stated and proved on pp. 91-93 of the coursepack. The rest are a
straightforward exercise for the reader making use of associativity.
¤
Theorem 1.4. Suppose Γ is a set of statements, A is a statement, (H, C) is a rule
of inference and
Γ ` (A ∨ H) for H ∈ H.
Then
Γ ` (A ∨ C).
Proof. This follows directly from the preceding Lemma.
¤
Theorem 1.5. Suppose A, B are statements and Γ is a set of statements. Then
Γ ` B ⇒ A ∨ Γ ` A ∨ B.
Proof. Indeed, if S1 , . . . , Sn is a proof of B using Γ it follows directly from the
preceding Lemma that A ∨ S1 , . . . , A ∨ Sn is a proof of A ∨ B using A ∨ Γ.
¤
Theorem 1.6. (The deduction theorem.) Suppose Γ is a set of statements ,
A and B are statements and
Γ ∪ {A} ` B.
Then
Γ ` (A → B).
Proof. It will suffice to show Γ ` (∼ A ∨ B). By virtue of the preceding Theorem,
∼ A ∨ (Γ ∪ {A}) `∼ A ∨ B
so there is a proof S1 , . . . , Sn of ∼ A ∨ B using ∼ A ∨ (Γ ∪ {A}).
Let J be the set of j ∈ {1, . . . , n} such that, for some H, (H, Sj ) is a rule
of inference and H ⊂ {i : i < j}. Let I = {1, . . . , n} ∼ J. Observe that if
Sj = (∼ A ∨ A) for some j ∈ {1, . . . , n} then j ∈ J since (∅, Sj ) is a rule of
inference. So i ∈ I there is Ci ∈ Γ such that Si = (∼ A ∨ Ci ). λ : I → {1, . . . , n}
be increasing with range I. Then
Cλ(1) , . . . , Cλ(m) , S1 , . . . , Sn
is a proof of (∼ A ∨ B) using Γ. Indeed, if i ∈ I then {Ci } ` (∼ A ∨ Ci ) = Si .
¤
2. The adequacy Theorem, first version.
Proposition 2.1. Suppose A is a statement. Then
{A} `∼∼ A
and {∼∼ A} ` A.
Proof. See page 81 of the coursepack for the proof of the first one. We leave the
proof of the second one as an exercise for the reader.
¤
Definition 2.1. Whenever A is a statement and I ⊂ X we let
(
A
if tA (I) = 1,
AI =
∼ A if tA (I) = 0.
4
Lemma 2.1. Suppose I ⊂ X. Then
(1)
I ` AI .
Proof. We induct on the depth d of a parse tree of A; note that d ≥ 2. If d = 2
then A is a propositional variable p so AI = A is p ∈ I and AI =∼ p if p 6∈ I so the
statement holds trivially.
So suppose e ∈ N; e ≥ 2; the statement holds when d ≤= e; and the depth of a
parse tree for A is e + 1.
Suppose A =∼ B. We have I ` BI by the inductive hypothesis. If BI =∼ B
then AI = A = BI and if BI = B then BI `∼∼ B =∼ A = AI . In either case we
find that I ` AI .
If A 6=∼ B then A is one of the following:
(B ∨ C),
(B ∧ C),
(B → C),
(B ↔ C).
If A = (B ∨ C) we have
BI
∼B
∼B
B
B
CI
∼C
C
∼C
C
AI
∼ (B ∨ C)
(B ∨ C)
(B ∨ C)
(B ∨ C).
If A = (B ∧ C) we have
BI
∼B
∼B
B
B
CI
∼C
C
∼C
C
AI
∼ (B ∧ C)
∼ (B ∧ C)
∼ (B ∧ C)
(B ∧ C).
If A = (B → C) we have
BI
∼B
∼B
B
B
CI
∼C
C
∼C
C
AI
(B → C)
(B → C)
∼ (B → C)
(B → C).
If A = (B ↔ C) we have
BI
∼B
∼B
B
B
CI
∼C
C
∼C
C
AI
(B ↔ C)
∼ (B ↔ C)
∼ (B ↔ C)
(B ↔ C).
In all these case we may assume inductively that I ` BI and I ` CI .
To complete the proof it will suffice to show that if
D
E
F
5
occurs in the second to fifth line of one of these tables then
{D, E} ` F.
We leave the proof of this fact to the reader; it will be necessary to use the “derived
rules of inference”.
¤
Theorem 2.1. Suppose A is a tautology. Then ` A.
Proof. Let V = {x1 , . . . , xn } be the statement letters in A. For any subset I of V
we infer from the preceding Lemma that
I`A
since, as A is a tautology, AI = A. In particular,
{x1 , . . . , xn−1 } ∪ {xn } ` A
and
{x1 , . . . , xn−1 } ∪ {∼ xn } ` A.
By the Deduction Theorem we infer that
{x1 , . . . , xn−1 } ` (xn → A) and
{x1 , . . . , xn−1 } ` (∼ xn → A).
By {∼∼ xn } ` xn and Cut we infer that
{x1 , . . . , xn−1 } ` A.
Continuing in this way we obtain ` A.
¤
Corollary 2.1. Suppose A1 , . . . , An and B are statements. Then
{A1 , . . . , An } ` B ⇔ |= (A1 ∧ · · · ∧ An ) → B.
Proof. We have only to observe that
{A1 , . . . , An } |= B ⇔ |= ((A1 ∧ · · · ∧ An ) → B).
¤
Remark 2.1. What does (A1 ∧ . . . ∧ An ) mean? Does is matter?
Remark 2.2. So we can dispense with a lot of the proofs using the rules of inference. Hooray!
3. The adequacy Theorem, second version.
We suppose throughout this section that the set of propositional variables is
countable. For the proofs see Section 3.4 of the coursepack.
Theorem 3.1. Model existence theorem. If Γ is a consistent set of statements
then Γ is satisfiable.
Theorem 3.2. Suppose Γ is a set of statements and A is a statement. Then
Γ |= A ⇒ Γ ` A.
Here is a weaker version that easily follows from our previous work.
Theorem 3.3. Suppose Γ is a finite set of statements and A is a statement. Then
Γ |= A ⇒ Γ ` A.
Proof. Suppose Γ = {B1 , . . . , Bn } and Γ |= A. Then {B1 , . . . , Bn−1 } |= (∼ Bn ∨A).
Arguing inductively we infer that {B1 , . . . , Bn−1 } ` (∼ Bn ∨ A). Since {Bn , (∼
Bn ∨ A)} ` A we conclude that Γ = {B1 , . . . , Bn } ` A.
¤