Logic as a Tool Chapter 2: Deductive Reasoning in Propositional - - PowerPoint PPT Presentation

logic as a tool chapter 2 deductive reasoning in
SMART_READER_LITE
LIVE PREVIEW

Logic as a Tool Chapter 2: Deductive Reasoning in Propositional - - PowerPoint PPT Presentation

Logic as a Tool Chapter 2: Deductive Reasoning in Propositional Logic 2.2 Axiomatic systems for propositional logics Valentin Goranko Stockholm University November 2020 Goranko Hilbert-style axiomatic systems Goranko Hilbert-style axiomatic


slide-1
SLIDE 1

Goranko

Logic as a Tool Chapter 2: Deductive Reasoning in Propositional Logic 2.2 Axiomatic systems for propositional logics

Valentin Goranko Stockholm University November 2020

slide-2
SLIDE 2

Goranko

Hilbert-style axiomatic systems

slide-3
SLIDE 3

Goranko

Hilbert-style axiomatic systems

  • Based on axioms (or, axiom schemes), and only one or two simple

rules of inference.

slide-4
SLIDE 4

Goranko

Hilbert-style axiomatic systems

  • Based on axioms (or, axiom schemes), and only one or two simple

rules of inference.

  • Relatively easy to extract from the semantics and reason about.

In particular, suitable to do induction on derivations.

slide-5
SLIDE 5

Goranko

Hilbert-style axiomatic systems

  • Based on axioms (or, axiom schemes), and only one or two simple

rules of inference.

  • Relatively easy to extract from the semantics and reason about.

In particular, suitable to do induction on derivations.

  • Practically not very convenient and useful, because the derivations

are not well-structured.

slide-6
SLIDE 6

Goranko

Hilbert-style axiomatic systems

  • Based on axioms (or, axiom schemes), and only one or two simple

rules of inference.

  • Relatively easy to extract from the semantics and reason about.

In particular, suitable to do induction on derivations.

  • Practically not very convenient and useful, because the derivations

are not well-structured.

  • In particular, not suitable for automated reasoning.
slide-7
SLIDE 7

Goranko

The axiomatic system H for the classical propositional logic

slide-8
SLIDE 8

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →:

slide-9
SLIDE 9

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A);

slide-10
SLIDE 10

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A); (→ 2) (A → (B → C)) → ((A → B) → (A → C));

slide-11
SLIDE 11

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A); (→ 2) (A → (B → C)) → ((A → B) → (A → C)); (→ 3) (¬B → ¬A) → ((¬B → A) → B).

slide-12
SLIDE 12

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A); (→ 2) (A → (B → C)) → ((A → B) → (A → C)); (→ 3) (¬B → ¬A) → ((¬B → A) → B). The only rule of inference: Modus ponens: A, A → B B

slide-13
SLIDE 13

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A); (→ 2) (A → (B → C)) → ((A → B) → (A → C)); (→ 3) (¬B → ¬A) → ((¬B → A) → B). The only rule of inference: Modus ponens: A, A → B B If we assume that the only propositional connectives in the language are ¬ and → while others are defined in terms of them, then the defining equivalences plus the axioms above provide a sound and complete axiomatization for classical propositional logic.

slide-14
SLIDE 14

Goranko

The axiomatic system H for the classical propositional logic

Axiom schemes for ¬ and →: (→ 1) A → (B → A); (→ 2) (A → (B → C)) → ((A → B) → (A → C)); (→ 3) (¬B → ¬A) → ((¬B → A) → B). The only rule of inference: Modus ponens: A, A → B B If we assume that the only propositional connectives in the language are ¬ and → while others are defined in terms of them, then the defining equivalences plus the axioms above provide a sound and complete axiomatization for classical propositional logic. However, it is not convenient to treat ∧ and ∨ as definable connectives.

slide-15
SLIDE 15

Goranko

Adding axioms for ∧ and ∨ to H

slide-16
SLIDE 16

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧:

slide-17
SLIDE 17

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A;

slide-18
SLIDE 18

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B;

slide-19
SLIDE 19

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B; (∧3) (A → B) → ((A → C) → (A → (B ∧ C))).

slide-20
SLIDE 20

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B; (∧3) (A → B) → ((A → C) → (A → (B ∧ C))). Axioms schemes for ∨:

slide-21
SLIDE 21

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B; (∧3) (A → B) → ((A → C) → (A → (B ∧ C))). Axioms schemes for ∨: (∨1) A → A ∨ B;

slide-22
SLIDE 22

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B; (∧3) (A → B) → ((A → C) → (A → (B ∧ C))). Axioms schemes for ∨: (∨1) A → A ∨ B; (∨2) B → A ∨ B;

slide-23
SLIDE 23

Goranko

Adding axioms for ∧ and ∨ to H

Axiom schemes for ∧: (∧1) (A ∧ B) → A; (∧2) (A ∧ B) → B; (∧3) (A → B) → ((A → C) → (A → (B ∧ C))). Axioms schemes for ∨: (∨1) A → A ∨ B; (∨2) B → A ∨ B; (∨3) (A → C) → ((B → C) → ((A ∨ B) → C)).

slide-24
SLIDE 24

Goranko

Derivations and deductive consequence in H

slide-25
SLIDE 25

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A,

slide-26
SLIDE 26

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n:

slide-27
SLIDE 27

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H,

slide-28
SLIDE 28

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H, or a formula from Γ,

slide-29
SLIDE 29

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H, or a formula from Γ,

  • r is obtained from some Aj, Ak for j, k < i, by applying Modus Ponens.
slide-30
SLIDE 30

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H, or a formula from Γ,

  • r is obtained from some Aj, Ak for j, k < i, by applying Modus Ponens.

A is a theorem of H if ∅ ⊢H A, also denoted ⊢H A.

slide-31
SLIDE 31

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H, or a formula from Γ,

  • r is obtained from some Aj, Ak for j, k < i, by applying Modus Ponens.

A is a theorem of H if ∅ ⊢H A, also denoted ⊢H A. An important observation: ⊢H has the following Monotonicity Property: if Γ ⊢H A and Γ ⊆ Γ′ then Γ′ ⊢H A.

slide-32
SLIDE 32

Goranko

Derivations and deductive consequence in H

A formula A is derivable in H from a set of assumptions: Γ, denoted Γ ⊢H A, if there is a finite sequence of formulae A1, ..., An, such that An = A and for each i ≤ n: Ai is either an instance of an axiom of H, or a formula from Γ,

  • r is obtained from some Aj, Ak for j, k < i, by applying Modus Ponens.

A is a theorem of H if ∅ ⊢H A, also denoted ⊢H A. An important observation: ⊢H has the following Monotonicity Property: if Γ ⊢H A and Γ ⊆ Γ′ then Γ′ ⊢H A.

Theorem

Adequacy of H: The axiomatic system H is sound and complete for the classical propositional logic: Γ ⊢H A iff Γ | = A.

slide-33
SLIDE 33

Goranko

Inductive definition of derivations in H

slide-34
SLIDE 34

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability claims.

slide-35
SLIDE 35

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
slide-36
SLIDE 36

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
  • 1. If A is an axiom then Γ ⊢H A is a derivation in H.
slide-37
SLIDE 37

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
  • 1. If A is an axiom then Γ ⊢H A is a derivation in H.
  • 2. If A ∈ Γ then Γ ⊢H A is a derivation in H.
slide-38
SLIDE 38

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
  • 1. If A is an axiom then Γ ⊢H A is a derivation in H.
  • 2. If A ∈ Γ then Γ ⊢H A is a derivation in H.
  • 3. If Γ ⊢H A is a derivation in H and Γ ⊢H A → B is a derivation in H

then Γ ⊢H B is a derivation in H.

slide-39
SLIDE 39

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
  • 1. If A is an axiom then Γ ⊢H A is a derivation in H.
  • 2. If A ∈ Γ then Γ ⊢H A is a derivation in H.
  • 3. If Γ ⊢H A is a derivation in H and Γ ⊢H A → B is a derivation in H

then Γ ⊢H B is a derivation in H.

  • Exercise. Prove that for every Γ, A if Γ ⊢H A holds by the original

explicit definition of Γ ⊢H A, then Γ ⊢H A also belongs to the set of derivation in H inductively defined above.

slide-40
SLIDE 40

Goranko

Inductive definition of derivations in H

Consider derivations as objects of the type Γ ⊢H A, not as derivability

  • claims. Here is an inductive definition of (the set of) derivations in H.
  • 1. If A is an axiom then Γ ⊢H A is a derivation in H.
  • 2. If A ∈ Γ then Γ ⊢H A is a derivation in H.
  • 3. If Γ ⊢H A is a derivation in H and Γ ⊢H A → B is a derivation in H

then Γ ⊢H B is a derivation in H.

  • Exercise. Prove that for every Γ, A if Γ ⊢H A holds by the original

explicit definition of Γ ⊢H A, then Γ ⊢H A also belongs to the set of derivation in H inductively defined above. (Hint: use induction on the length n of the sequence A1, ..., An, claimed to exist in the explicit definition of Γ ⊢H A.)

slide-41
SLIDE 41

Goranko

Proofs by structural induction on derivations in H

slide-42
SLIDE 42

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

slide-43
SLIDE 43

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
slide-44
SLIDE 44

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
slide-45
SLIDE 45

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
  • 3. If the derivation Γ ⊢H A has the property P

and the derivation Γ ⊢H A → B has the property P then the derivation Γ ⊢H B has the property P.

slide-46
SLIDE 46

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
  • 3. If the derivation Γ ⊢H A has the property P

and the derivation Γ ⊢H A → B has the property P then the derivation Γ ⊢H B has the property P. Then every derivation in H has the property P.

slide-47
SLIDE 47

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
  • 3. If the derivation Γ ⊢H A has the property P

and the derivation Γ ⊢H A → B has the property P then the derivation Γ ⊢H B has the property P. Then every derivation in H has the property P.

  • Exercise. Prove by structural induction on the inductive definition of

derivations in H that every such derivation satisfies the original explicit definition of Γ ⊢H A.

slide-48
SLIDE 48

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
  • 3. If the derivation Γ ⊢H A has the property P

and the derivation Γ ⊢H A → B has the property P then the derivation Γ ⊢H B has the property P. Then every derivation in H has the property P.

  • Exercise. Prove by structural induction on the inductive definition of

derivations in H that every such derivation satisfies the original explicit definition of Γ ⊢H A.

  • Exercise. Prove by structural induction the soundness of H,

i.e. every derivation Γ ⊢H A has the property that Γ A.

slide-49
SLIDE 49

Goranko

Proofs by structural induction on derivations in H

Here is the corresponding scheme for proofs by induction on derivations. Given a property of derivations P, suppose that:

  • 1. If A is an axiom then the derivation Γ ⊢H A has the property P.
  • 2. If A ∈ Γ then the derivation Γ ⊢H A has the property P.
  • 3. If the derivation Γ ⊢H A has the property P

and the derivation Γ ⊢H A → B has the property P then the derivation Γ ⊢H B has the property P. Then every derivation in H has the property P.

  • Exercise. Prove by structural induction on the inductive definition of

derivations in H that every such derivation satisfies the original explicit definition of Γ ⊢H A.

  • Exercise. Prove by structural induction the soundness of H,

i.e. every derivation Γ ⊢H A has the property that Γ A. (Hint: for the first clause, show that every axiom is a tautology.)

slide-50
SLIDE 50

Goranko

Derivations in H: example

slide-51
SLIDE 51

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

slide-52
SLIDE 52

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,
slide-53
SLIDE 53

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

slide-54
SLIDE 54

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),
slide-55
SLIDE 55

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

slide-56
SLIDE 56

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)),

slide-57
SLIDE 57

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

slide-58
SLIDE 58

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

  • 4. ⊢H (p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q),
slide-59
SLIDE 59

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

  • 4. ⊢H (p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q),

by 2,3 and Modus Ponens;

slide-60
SLIDE 60

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

  • 4. ⊢H (p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q),

by 2,3 and Modus Ponens;

  • 5. ⊢H (p ∧ (p → q)) → q,
slide-61
SLIDE 61

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

  • 4. ⊢H (p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q),

by 2,3 and Modus Ponens;

  • 5. ⊢H (p ∧ (p → q)) → q,

by 1,4 and Modus Ponens.

slide-62
SLIDE 62

Goranko

Derivations in H: example

Example: ⊢H (p ∧ (p → q)) → q :

  • 1. ⊢H (p ∧ (p → q)) → p,

by Axiom (∧1);

  • 2. ⊢H (p ∧ (p → q)) → (p → q),

by Axiom (∧2);

  • 3. ⊢H ((p ∧ (p → q)) → (p → q)) →

(((p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q)), by Axiom (→ 2);

  • 4. ⊢H (p ∧ (p → q)) → p) → ((p ∧ (p → q)) → q),

by 2,3 and Modus Ponens;

  • 5. ⊢H (p ∧ (p → q)) → q,

by 1,4 and Modus Ponens. Challenge: Derive ⊢H p → p.

slide-63
SLIDE 63

Goranko

The Deduction Theorem

slide-64
SLIDE 64

Goranko

The Deduction Theorem

Deduction Theorem: For any set of formulae Γ and formulae A and B: Γ ∪ {A} ⊢H B iff Γ ⊢H A → B.

slide-65
SLIDE 65

Goranko

The Deduction Theorem

Deduction Theorem: For any set of formulae Γ and formulae A and B: Γ ∪ {A} ⊢H B iff Γ ⊢H A → B. Proof:

slide-66
SLIDE 66

Goranko

The Deduction Theorem

Deduction Theorem: For any set of formulae Γ and formulae A and B: Γ ∪ {A} ⊢H B iff Γ ⊢H A → B. Proof: Right-to-left: Straightforward, by Modus Ponens, because if Γ ⊢H A → B then, moreover, Γ ∪ {A} ⊢H A → B.

slide-67
SLIDE 67

Goranko

The Deduction Theorem

Deduction Theorem: For any set of formulae Γ and formulae A and B: Γ ∪ {A} ⊢H B iff Γ ⊢H A → B. Proof: Right-to-left: Straightforward, by Modus Ponens, because if Γ ⊢H A → B then, moreover, Γ ∪ {A} ⊢H A → B. Left-to-right: Induction on the derivation Γ ∪ {A} ⊢H B, using the axioms for →.

slide-68
SLIDE 68

Goranko

The Deduction Theorem

Deduction Theorem: For any set of formulae Γ and formulae A and B: Γ ∪ {A} ⊢H B iff Γ ⊢H A → B. Proof: Right-to-left: Straightforward, by Modus Ponens, because if Γ ⊢H A → B then, moreover, Γ ∪ {A} ⊢H A → B. Left-to-right: Induction on the derivation Γ ∪ {A} ⊢H B, using the axioms for →. Exercise: complete the details.

slide-69
SLIDE 69

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

slide-70
SLIDE 70

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p
slide-71
SLIDE 71

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

slide-72
SLIDE 72

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,
slide-73
SLIDE 73

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

slide-74
SLIDE 74

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)
slide-75
SLIDE 75

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

slide-76
SLIDE 76

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q
slide-77
SLIDE 77

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q

by (3) and the Deduction Theorem;

slide-78
SLIDE 78

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q

by (3) and the Deduction Theorem;

  • 5. p ∧ (p → q) ⊢H q
slide-79
SLIDE 79

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q

by (3) and the Deduction Theorem;

  • 5. p ∧ (p → q) ⊢H q

by (2),(4), and Modus Ponens;

slide-80
SLIDE 80

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q

by (3) and the Deduction Theorem;

  • 5. p ∧ (p → q) ⊢H q

by (2),(4), and Modus Ponens;

  • 6. ⊢H (p ∧ (p → q)) → q
slide-81
SLIDE 81

Goranko

Using the Deduction Theorem: example 1

The derivation of ⊢H (p ∧ (p → q)) → q revisited:

  • 1. ⊢H (p ∧ (p → q)) → p

instance of Axiom (∧1);

  • 2. p ∧ (p → q) ⊢H p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (p ∧ (p → q)) → (p → q)

instance of Axiom (∧2);

  • 4. p ∧ (p → q) ⊢H p → q

by (3) and the Deduction Theorem;

  • 5. p ∧ (p → q) ⊢H q

by (2),(4), and Modus Ponens;

  • 6. ⊢H (p ∧ (p → q)) → q

by (5) and the Deduction Theorem.

slide-82
SLIDE 82

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

slide-83
SLIDE 83

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),
slide-84
SLIDE 84

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

slide-85
SLIDE 85

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,
slide-86
SLIDE 86

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

slide-87
SLIDE 87

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),
slide-88
SLIDE 88

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

slide-89
SLIDE 89

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,
slide-90
SLIDE 90

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

slide-91
SLIDE 91

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),
slide-92
SLIDE 92

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

slide-93
SLIDE 93

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

  • 6. p ⊢H ¬q → p,
slide-94
SLIDE 94

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

  • 6. p ⊢H ¬q → p,

by (5) and the Deduction Theorem;

slide-95
SLIDE 95

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

  • 6. p ⊢H ¬q → p,

by (5) and the Deduction Theorem;

  • 7. p, ¬p ⊢H q,
slide-96
SLIDE 96

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

  • 6. p ⊢H ¬q → p,

by (5) and the Deduction Theorem;

  • 7. p, ¬p ⊢H q,

by (4),(6), and Modus Ponens.

slide-97
SLIDE 97

Goranko

Using the Deduction Theorem: example 2

Derivation of p, ¬p ⊢H q:

  • 1. ⊢H ¬p → (¬q → ¬p),

instance of Axiom (→ 1);

  • 2. ¬p ⊢H ¬q → ¬p,

by (1) and the Deduction Theorem;

  • 3. ⊢H (¬q → ¬p) → ((¬q → p) → q),

instance of Axiom (→ 3),

  • 4. ¬p ⊢H (¬q → p) → q,

by (2),(3), and Modus Ponens;

  • 5. ⊢H p → (¬q → p),

instance of Axiom (→ 1);

  • 6. p ⊢H ¬q → p,

by (5) and the Deduction Theorem;

  • 7. p, ¬p ⊢H q,

by (4),(6), and Modus Ponens.

(In step (7) we use the Monotonicity Property of ⊢H, applied to (4) and (6).)