Classical Propositional Logic (Quick Review) : Episode 4
Classical Propositional Logic (Quick Review) : Episode 4
0
4.1
What logic is or should be
Below are a few theses about what your lecturer believes logic is or
should be:
1. Logic is the most basic, general-purpose, universal-utility tool for reasoning and
acting rationally.
2. All intellectual activities (sciences, engineering, politics, everyday life) are or should
be based on logic, while logic, in turn, is self-sufficient and needs none of those.
4. All other sciences can be seen as applications of logic to some particular domains. For
this very reason, such sciences are special- rater than general-purpose tools, applicable
only to limited parts of the world.
If you find this strange or confusing, remember that, from the point
of view of set theory, we similarly have
Note that:
p p p q pq pq pq
p = p
⊥ ⊤ ⊥ ⊥ ⊥ ⊥ ⊤
pq = pq
⊤ ⊥ ⊥ ⊤ ⊥ ⊤ ⊤
⊤ ⊥ ⊥ ⊤ ⊥ (pq) = pq
⊤ ⊤ ⊤ ⊤ ⊤ (pq) = pq
4.4
The language of classical propositional logic
From now on we will consider the version of the language of classical propositional
logic where formulas are not allowed to contain logical atoms or implication. This
does not mean diminishing the expressive power of the language, as ⊤ can be
considered an abbreviation of pp, ⊥ considered an abbreviation of pp, and
EF an abbreviation of EF.
E = E
(EF) = EF
(EF) = EF
4.8
A sequent calculus system for classical propositional logic
A sequent is any finite sequence of formulas (in the sense of Slide 4.7). Here
are the rules of one of several equivalent sequent calculus systems for classical
propositional logic. Let us call it G1.
In the following rules, E,F stand for any formulas, and G,H stand for any sequents.
Above the horizontal line is (are) the premise(s), and below the line is the conclusion.
A proof in such a system is a tree of sequents, where each node is the conclusion
of some rule, and the children of the node are the premises of that rule. Such a tree
is a proof of the sequent at its root. A formula F is considered provable if the sequent
F is provable (of course, “provable” means “has a proof”).
-Introduction -Introduction
G, E, F G, E H, F
G, EF G, H, EF
4.9
An example of a proof in sequent calculus
Example. Find a proof of (pq)(r s) (pr)(qs).
I I
r, r s, s
I I W W
p, p q, q r, r, p s, s, q
W W E E
p, p, r q, q, s r, p, r s, q, s
p, pr q, qs r, pr s, qs
p, q, (pr)(qs) r, s, (pr)(qs)
E (twice) E (twice)
(pr)(qs), p, q (pr)(qs), r, s
(pr)(qs), pq (pr)(qs), rs
(pr)(qs), (pr)(qs), (pq)(r s)
E (twice)
(pq)(r s), (pr)(qs), (pr)(qs)
C
(pq)(r s), (pr)(qs)
[(pq)(r s)][(pr)(qs)]
4.10
Soundness and completeness
Soundness: Completeness:
“Good” Provable
formulas formulas
Provable “Good”
formulas formulas
Below comes a simpler system --- let us call it G2 --- that has no structural rules
at all. A significant change, however, is that in G2 sequents are seen as sets rather
than sequences of formulas. G2 only has the following three rules, where E,F are
any formulas and G is any “sequent”, i.e. any set of formulas.
In view of Theorems 4.2 and 4.4, system G2 is equivalent, in its deductive power, to
our old friend G1.
4.12
Another example
Example. Find a proof of [(pq)(r s)][(pr)(qs)] in G2.
We use a standard proof search method, which can be applied to any formula.
The method is to start with the target formula, and keep applying, in the bottom-up
sense, the two logical rules (in whatever order you like) as long as there are
conjunctions or disjunctions in the sequent:
A A A A
p, q, p, r p, q, q, s r, s, p, r r, s, q, s
p, q, pr p, q, qs r, s, pr r, s, qs
p, q, (pr)(qs) r, s, (pr)(qs)
pq, (pr)(qs) rs, (pr)(qs)
(pq)(r s), (pr)(qs)
[(pq)(r s)][(pr)(qs)]
You will end up with a tree where all leaves are sequents containing only atoms
and negated atoms. Such a tree is a G2-proof if (and only if) every leaf contains
some atom together with the negation of the same atom.
One can show (see next slide) that the target formula is provable iff this method
generates a proof tree.
4.13
Soundness and completeness proof
We extend the concepts of truth and validity (tautologicity) from formulas to sequents
by understanding each sequent F1,...,Fn as the formula F1...Fn.
Lemma 4.3.
(a) Every sequent which is (the conclusion of) an axiom of G2 is valid.
(b) The two logical rules of G2 preserve validity in both top-down and
bottom-up directions. That is, the premise(s) is (are) valid iff so is the conclusion.
Proof: Obvious.