Truth, deduction, computation lecture 9

20
Truth, Deduction, Computation Lecture 9 The Logic of Conditionals, and more Vlad Patryshev SCU 2013

description

My logic lectures at SCU The logic of conditionals

Transcript of Truth, deduction, computation lecture 9

Page 1: Truth, deduction, computation   lecture 9

Truth, Deduction, ComputationLecture 9The Logic of Conditionals, and more

Vlad PatryshevSCU2013

Page 2: Truth, deduction, computation   lecture 9

Why do we need →

● they make proofs more meaningful● e.g.

Page 3: Truth, deduction, computation   lecture 9

New Rules

● Modus Ponens (conditional elimination)● Biconditional Elimination● Contraposition

Page 4: Truth, deduction, computation   lecture 9

Modus Ponens

P

P → Q

Q

Page 5: Truth, deduction, computation   lecture 9

Biconditional Elimination

P

P ↔ Q

Q

Page 6: Truth, deduction, computation   lecture 9

Contraposition

P → Q

¬Q → ¬P

Page 7: Truth, deduction, computation   lecture 9

These are Tautologies

● P→Q ⇔ ¬Q→¬P● P→Q ⇔ ¬P∨Q ● ¬(P→Q) ⇔ P∧¬Q● P↔Q ⇔ (P→Q)∧(Q→P) ● P↔Q ⇔ (P∧Q)∨(¬P∧¬Q)

Page 8: Truth, deduction, computation   lecture 9

Conditional Proof

To prove P → Q, assume P and prove Q.

E.g., prove transitivity of →: ((P → Q)∧(Q → R)) → (P → R)

P

P → Q

Q

Q

Q → R

R

Page 9: Truth, deduction, computation   lecture 9

Conditional Proof

Or use contraposition (prove by contradiction): To prove P → Q, assume ¬Q and prove ¬P.E.g., prove that Even(n2) → Even(n):

1. Suppose n=2*m+1 2. then n2=4*...+1 - it is odd.3. We got ¬Even(n2) → ¬Even(n)4. Apply contraposition

Page 10: Truth, deduction, computation   lecture 9

Biconditional Proof

To prove P↔Q, prove P → Q and Q → P, then use ∧-Intro, since P↔Q ⇔ (P→Q)∧(Q→P).

More, since → is transitive, and you have Q1→Q

2, Q

2→Q

3,..., Q

n→Q

1, you can prove

Qi→Qj for each i and j, and so have Qi↔Q

j.

Page 11: Truth, deduction, computation   lecture 9

Examples (8.1) (not all are good)

● Affirming the Consequent From A → B and B, infer A.

● Modus Tollens From A → B and ¬B, infer ¬A.

● Strengthening the Antecedent From B → C, infer (A ∧ B) → C.

● Weakening the Antecedent From B → C, infer (A ∨ B) → C.

● Strengthening the Consequent From A → B, infer A → (B ∧ C).

● Weakening the Consequent From A → B, infer A → (B ∨ C).

● Constructive Dilemma From A∨B, A→C,and B→D,infer C∨D.

● Transitivity of the Biconditional From A ↔ B and B ↔ C, infer A ↔ C.

Page 12: Truth, deduction, computation   lecture 9

And now… Formal rules for → and ↔

● → Elim● → Intro● ↔ Elim● ↔ Intro

Page 13: Truth, deduction, computation   lecture 9

Conditional Rules

P→QP

Q

→ Elim → Intro P

Q

P→Q

Page 14: Truth, deduction, computation   lecture 9

Biconditional Rules

P↔QP

Q

↔ Elim ↔ Intro P

Q

Q

P

P→Q

Page 15: Truth, deduction, computation   lecture 9

Soundness and Completeness

● Logical system is sound if any sentence that can be deduced in this system, using sound arguments, is true (in the world’s semantics)

● Logical system is complete if any sentence that is true (in the world’s semantics) can be deduced

Page 16: Truth, deduction, computation   lecture 9

Two More Symbols

● P1..P

n ⊢ Q - a proof exists for Q from premises P

1..P

n● P

1..P

n ⊨ Q - P

1..P

n, taken together, semantically entail Q

Examples

A → B ⊢ ¬B → ¬A⊥, A ⊢ ¬B

Round(x) ⊨ ¬Cube(x)Home(clara) && InTheLibrary(clara) ⊨ LivesInTheLibrary(clara)

Page 17: Truth, deduction, computation   lecture 9

Soundness of FT

(do we really need to prove it?)

● FT - a subsystem of F that consists of intro/elim for ¬, ∨, ∧, →, ↔, and ⊥.

● P1..P

n ⊢

T Q - a proof exists for Q from premises P

1..P

n

Soundness Theorem for FT. If P

1,...,P

n ⊢

T S then S is a tautological consequence of P

1,...,

Pn.

Page 18: Truth, deduction, computation   lecture 9

Completeness of FT

Is FT complete, really?!

Page 19: Truth, deduction, computation   lecture 9

An Interesting Example

Page 20: Truth, deduction, computation   lecture 9

That’s it for today