+ All Categories
Home > Documents > propositional logic - University of Alberta

propositional logic - University of Alberta

Date post: 25-Feb-2022
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
7
of 38 lecture 13: propositional logic – part II of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as PROP_H it has , , as standard operators, and a much larger set of inference rules for introducing and eliminating the operators ece 627, winter ‘13 2 ¬ of 38 propositional logic Gentzen system PROP_G a different name – a natural deduction system ece 627, winter ‘13 3 of 38 propositional logic Gentzen system a special symbol (or ) that defines a sequent sequent is interpreted as a statement: when all formulae on the left side of the are true then at least one of those on the right is true ece 627, winter ‘13 4 of 38 propositional logic Gentzen system Γ Δ if all formulae of a set Γ is true then one of formulae of a set Δ is true ece 627, winter ‘13 5 of 38 propositional logic Gentzen system Γ1, Γ2 Δ1, Δ2 either Δ1 or Δ2 can be derived from Γ1 and Γ2 ece 627, winter ‘13 6
Transcript

of#38#

lecture 13: propositional logic – part II

of#38#

propositional logic Gentzen system

PROP_G design to be simple syntax and vocabulary the same as PROP_H it has , , as standard operators, and a much larger set of inference rules for

introducing and eliminating the operators

ece#627,#winter#‘13# 2#

¬

of#38#

propositional logic Gentzen system

PROP_G a different name

– a natural deduction system

ece#627,#winter#‘13# 3# of#38#

propositional logic Gentzen system

a special symbol (or ) that defines a sequent sequent is interpreted as a statement: when all

formulae on the left side of the are true then at least one of those on the right is true

ece#627,#winter#‘13# 4#

of#38#

propositional logic Gentzen system

Γ Δ#

if all formulae of a set Γ is true then one of formulae of a set Δ is true

ece#627,#winter#‘13# 5#

of#38#

propositional logic Gentzen system

Γ1, Γ2 Δ1, Δ2#

either Δ1 or Δ2 can be derived from Γ1 and Γ2

ece#627,#winter#‘13# 6#

of#38#

propositional logic Gentzen system

a symbol is used for making statements about what hypotheses a chain of inference is based on, and for couching inference rules so that the steps in a chain of inference can actually be performed

ece#627,#winter#‘13# 7#

of#38#

propositional logic Gentzen system

a sequent rule is written as a collection of sequents above a

horizontal line, and a single sequent below it (if you have a collection of sequents that matches

what is above the line, you can replace them by the single sequent below)

ece#627,#winter#‘13# 8#

of#38#

propositional logic Gentzen system

there are two groups of inference rules

!  for introducing logical operators !  for rearranging sequent

ece#627,#winter#‘13# 9# of#38#

propositional logic Gentzen system – introduction rules

ece#627,#winter#‘13# 10#

Γ, A⇒ΔΓ, A∧B⇒Δ

(L ∧)

Γ1⇒ A,Δ1 Γ2⇒ B,Δ2Γ1,Γ2⇒ A∧B,Δ1,Δ2

(R∧)

of#38#

propositional logic Gentzen system – introduction rules

ece#627,#winter#‘13# 11#

Γ1, A⇒Δ1 Γ2,B⇒Δ2Γ1,Γ2, A∨B⇒Δ1,Δ2

(L ∨)

Γ⇒ A,ΔΓ⇒ A∨B,Δ

(R∨)

of#38#

propositional logic Gentzen system – introduction rules

ece#627,#winter#‘13# 12#

Γ1⇒ A,Δ1 Γ2,B⇒Δ2Γ1,Γ2, A→ B⇒Δ1,Δ2

(L→)

Γ, A⇒ B,ΔΓ⇒ A→ B,Δ

(R→)

of#38#

propositional logic Gentzen system – introduction rules

ece#627,#winter#‘13# 13#

Γ⇒ A,ΔΓ,¬A⇒Δ

(L¬)

Γ, A⇒ΔΓ⇒¬A,Δ

(R¬)

of#38#

propositional logic Gentzen system – structural rules

ece#627,#winter#‘13# 14#

Γ, A,B⇒ΔΓ,B, A⇒Δ

(L R)

Γ⇒ A,B,ΔΓ⇒ B, A,Δ

(R R)

reordering

of#38#

propositional logic Gentzen system – structural rules

ece#627,#winter#‘13# 15#

Γ⇒ΔΓ, A⇒Δ

(L W )

Γ⇒ΔΓ⇒ A,Δ

(RW )

weakening

of#38#

propositional logic Gentzen system – structural rules

ece#627,#winter#‘13# 16#

Γ, A, A⇒ΔΓ, A⇒Δ

(L C)

Γ⇒ A, A,ΔΓ⇒ A,Δ

(R C)

contraction

Γ1⇒ A,Δ1 Γ2, A⇒Δ2Γ1,Γ2⇒Δ1,Δ2

(CUT )

of#38#

propositional logic Gentzen system

proofs are constructed by working from sequents of the form A A, via the rules (just shown), to a sequent consisting of just the desired formula on the right

ece#627,#winter#‘13# 17#

of#38#

propositional logic Gentzen system – proof of PH1

ece#627,#winter#‘13# 18#€

A⇒ AA,B⇒ A

(L W )

A⇒ (B→ A)(R→)

⇒ A→ (B→ A)(R→)

A (B A)

of#38#

Gentzen system – proof of PH2

ece#627,#winter#‘13# 19#€

B⇒ B C⇒ CB, B→C⇒ C

A⇒ A B⇒ BA, A→ B⇒ B

A⇒ AA, B, [A→ (B→C)]⇒ C

A, A→ B, [A→ (B→C)]⇒ C

A→ B, [A→ (B→C)]⇒ A→C

[A→ (B→C)]⇒ (A→ B)→ (A→C)

⇒ [A→ (B→C)]→ [(A→ B)→ (A→C)]

of#38#

propositional logic Gentzen system – proof of PH3

ece#627,#winter#‘13# 20#

A⇒ A

A A

¬

¬

of#38#

propositional logic Gentzen system – …

ece#627,#winter#‘13# 21#

A⇒ A B⇒ BA, A→ B⇒ B

(L→)

Modus Ponens

of#38#

propositional logic Gentzen system

anything which can be proven in PROP_H can also be proven in PROP_G what leads to a theorem: anything which is valid is provable in PROP_G

ece#627,#winter#‘13# 22#

of#38#

propositional logic Gentzen system

there are also theorems for soundness, consistency, decidability – both systems are equivalent additional: cut elimination theorem any theorem which can be proved in PROP_G has a proof which does not contain a use of the CUT rule

ece#627,#winter#‘13# 23# of#38#

propositional logic tableau system

designed to support proofs by contradiction idea: since every proposition is either true or false, if we show that something cannot be false then it must be true

ece#627,#winter#‘13# 24#

of#38#

propositional logic tableau system

PROP_B has the same syntax and vocabulary as PROP_G

ece#627,#winter#‘13# 25# of#38#

propositional logic tableau system

proofs are constructed in terms of an object called a semantic tableau – this is an attempt to enumerate the ways the world could be, given the hypotheses of the proof, and to show that in all of them the negation of the desired conclusion must be false, so the conclusion itself must be true

ece#627,#winter#‘13# 26#

of#38#

propositional logic tableau system

a tableau is a tree of formulae, built up according to the following five rules:

ece#627,#winter#‘13# 27# of#38#

propositional logic tableau system

(rule i) if A1, A2, … An are the premises of a proof, then A1 A2 … An

is a tableau

ece#627,#winter#‘13# 28#

of#38#

propositional logic tableau system

(rule ii) if some branch contains a formula Ai which is of the form Bi Ci then the tree formed by adding Bi and Ci on the end is a tableau

p p q r q r q r

ece#627,#winter#‘13# 29#

of#38#

propositional logic tableau system

(rule iii) if some branch contains a formula Ai which is of the form Bi Ci then the tree formed by adding Bi and Ci on the end is a tableau

p p p q p q p q

ece#627,#winter#‘13# 30#

of#38#

propositional logic tableau system

(rule iv) if Ai is Bi Ci then the tree is extended by adding new branches Bi and Ci so that

r r p q p q p q

ece#627,#winter#‘13# 31#

¬

→€

¬

of#38#

propositional logic tableau system

(rule v) if Ai is Bi for some non-atomic Bi, then the tree is extended by adding

Ci Di when Bi is Ci Di Ci Di when Bi is Ci Di Ci Di when Bi is Ci Di Ci when Bi is Ci

ece#627,#winter#‘13# 32#

¬

¬

¬

¬

¬

¬

¬

of#38#

propositional logic tableau system

each branch represents a partial description of the world which is consistent with the original set of premises if any branch contains both A and A for some A then it is clearly not feasible description of the world – we say the branch is CLOSED

ece#627,#winter#‘13# 33#

¬

of#38#

propositional logic tableau system

if all branch is CLOSED – then there is no feasible descriptions of the world which are consistent with the premises on which it is based so, proof – adding negation of the goal to the premises and showing that the tableau based on that collection is CLOSED (every branch is CLOSED)

ece#627,#winter#‘13# 34#

of#38#

propositional logic tableau system – proof 1

to show that r follows from p, q, (p [q r])

ece#627,#winter#‘13# 35#

1 ¬r2 p3 q4 p→ (q→ r))

5 ¬pCLOSED

7 ¬qCLOSED

8 rCLOSED

6 q→ r

of#38#

propositional logic tableau system – proof 2 (PH2)

ece#627,#winter#‘13# 36#

1 ¬([A→ (B→C)]→ [(A→ B)→ (A→C)]

2 [A→ (B→C)]∧¬[(A→ B)→ (A→C)]

3 [A→ (B→C)]4 ¬[(A→ B)→ (A→C)]

5 (A→ B)∧¬(A→C)]

6 A→ B7 ¬(A→C)

8 A∧¬C

9 A10 ¬C

of#38#

propositional logic tableau system – proof 2 (PH2) cont.

ece#627,#winter#‘13# 37#

12 B→C

11 ¬ACLOSED

15 ¬ACLOSED

14 CCLOSED

13 ¬B

16 BCLOSED

of#38#

propositional logic tableau system – proof 3

ece#627,#winter#‘13# 38#

1 ¬(A→¬¬A)


Recommended