Presentation is loading. Please wait.

Presentation is loading. Please wait.

Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:

Similar presentations


Presentation on theme: "Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:"— Presentation transcript:

1 Metalogic Soundness and Completeness

2 Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability: From the premises, the conclusion can be derived by the rules of inference of the system.

3 Two Notions of Logical Consequence Symbol for validity: ⊨ Example: Q ⊨ (P → Q) Symbol for provability: ⊢ Example: Q ⊢ (P → Q)

4 Two Questions about Equivalence Soundness: Is it always true that if φ ⊢ ψ, then φ ⊨ ψ ? Completeness: Is it always true that if φ ⊨ ψ, then φ ⊢ ψ ?

5 Soundness

6 Soundness: Is it always true that if φ ⊢ ψ, then φ ⊨ ψ ? Why are we interested in soundness? (What’s wrong with a system that proves false things from true premises?)

7 Proving Soundness It’s not possible to prove that all logical systems are sound. Sometimes (as with arithmetic) we just assume they are. But it’s nice to have a proof!

8 The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any WFF we want to. That WFF only depends on itself. For example, on line 57 we might write: 5757. (((P ↔ (A & B)) → ~~~R)A

9 Turnstile The proper way to read this is “line 57 is provable from line 57” or “On the assumption that (((P ↔ (A & B)) → ~~~R) it can be proved that (((P ↔ (A & B)) → ~~~R).” We can re-write any line to state preciesely what we have proved. Line 57 would be: (((P↔(A & B))→~~~R) Ⱶ (((P↔(A & B))→~~~R)

10 Proving Assumption is Sound A sound rule is one where the truth of the premises guarantees the truth of the conclusion. Is it always true that if φ ⊢ φ, then φ ⊨ φ ?

11 &-Elimination: &E &E is also a very easy-to-learn rule. If we have proved (φ & ψ) on some line, then on any future line we may write down φ, and on any future line we may write down ψ. The result depends on everything (φ & ψ) depended on.

12 Moving Pieces The &E rule introduces a new feature: dependencies. To get the soundness proof correct, we have to track them.

13 &E So what does this mean: “If we have proved (φ & ψ) on some line…” ? It means that some line of our proof looks like this: χ1, χ2,…, χn ⊢ (φ & ψ)

14 &E And this means? “then on any future line we may write down φ, and on any future line we may write down ψ. The result depends on everything (φ & ψ) depended on.”

15 &E It means that these are allowable future lines: χ1, χ2,…, χn ⊢ φ χ1, χ2,…, χn ⊢ ψ

16 &E So here’s our rule again: When we have proved: χ1, χ2,…, χn ⊢ (φ & ψ) Then we can prove: χ1, χ2,…, χn ⊢ φ χ1, χ2,…, χn ⊢ ψ

17 Mathematical Induction In mathematical induction we prove that 0 has some property. Then we prove that if every number before x has that property, then x has that property too. Then we conclude that all numbers have that property.

18 Mathematical Induction When you begin a proof (on line 0), the only possible thing to write down are your assumptions. All the other rules require that you’ve already proved something. But we know that line 0 is sound, because we’ve already shown assumption is sound.

19 Mathematical Induction We know that line 0 is sound. We assume that all lines before x are sound. We prove that x then must be sound as well. We conclude that all lines are sound.

20 &E So here’s our rule again: When we have proved: χ1, χ2,…, χn ⊢ (φ & ψ) Then we can prove: χ1, χ2,…, χn ⊢ φ χ1, χ2,…, χn ⊢ ψ Assume this line (and those before it) are sound. Prove that future lines like these are sound.

21 &E So here’s our rule again: When we have proved: χ1, χ2,…, χn ⊢ (φ & ψ) Then we can prove: χ1, χ2,…, χn ⊢ φ χ1, χ2,…, χn ⊢ ψ Assume that if χ1, χ2,…, χn are all true, then (φ & ψ) is. Prove that if χ1, χ2,…, χn are all true, then φ is.

22 Soundness for &E Prove that if χ1, χ2,…, χn are all true, then φ is. OK, assume for conditional proof that χ1, χ2,…, χn are all true. Now, since we are also assuming that if χ1, χ2,…, χn are all true, then (φ & ψ) is. Thus it follows that (φ & ψ) is true.

23 Conjunction φψ(φ & ψ) TTT TFF FTF FFF

24 Finish the Induction We have to do similar proofs for all the rules, because we have to show on any future allowable line, it’s still sound if all the earlier ones were.

25 →I If on some line you have assumed φ, And on some other line you have proved ψ, And ψ depends on your assumption φ, Then on any future line you may write (φ → ψ), Depending on everything ψ depended on Except φ.

26 →I When we have assumed: φ ⊢ φ And we have proved χ1, χ2,…, χn, φ ⊢ ψ Then we can prove: χ1, χ2,…, χn ⊢ ( φ → ψ) Assume these lines (and those before them) are sound. Prove this line is sound.

27 Soundness for →I Prove that if χ1, χ2,…, χn are all true, then (φ → ψ) is. OK, assume for conditional proof that χ1, χ2,…, χn are all true. We are also assuming that if χ1, χ2,…, χn and φ are all true, then ψ is. That is, it can’t be true that χ1, χ2,…, χn AND that φ, but not-ψ.

28 The Material Conditional φψ(φ → ψ) TTT TFF FTT FFT

29 The Material Conditional φψ(φ → ψ) TTT TFF FTT FFT

30 ~I I won’t cover all the rules in class. But let’s look at one more, ~I. If on some line you have proved (φ & ~φ), And it depends on ψ, Then on any future line you may write ~ψ, Depending on everything (φ & ~φ) depended on, Except ψ.

31 ~I When have proved: χ1, χ2,…, χn, ψ ⊢ ( φ & ~φ) Then we can prove: χ1, χ2,…, χn ⊢ ~ψ

32 Assume that if χ1, χ2,…, χn, ψ are all true, then ( φ & ~φ) is also true. Prove that if χ1, χ2,…, χn are all true, ~ψ is true. Assume χ1, χ2,…, χn are all true. Then if ψ is true, then ( φ & ~φ) is also true. But ( φ & ~φ) is never true. So ψ must be false.

33 Negation φ~φ~φ TF FT

34 Soundness of 1 st Order Logic Another logic for which soundness is provable is 1 st order logic (or predicate logic). This is a more expressive logic. There are valid arguments in English that don’t come out as valid in the propositional calculus.

35 Examples Premise: Every chicken is a bird. Premise: Every bird is an animal. Conclusion: Every chicken is an animal. Premise: No one comes to class on Saturday. Conclusion: Michael doesn’t come to class on Saturday.

36 First-Order Logic Individual constants: a, b, c, … Variables: x, y, z, … Predicate letters: F, G, H, … Sentential connectives: ~, &, v,,→, ↔ Quantifiers: ∃ and ∀

37 First-Order Logic Syntax Definition of TERMs: If ξ is an individual constant or a variable, then ξ is a TERM. Nothing else is a TERM.

38 First-Order Logic Syntax Definition of WFFs. If ξ1, ξ2, … ξn are all TERMs, and Π is a predicate letter, then Πξ1ξ2…ξn is a WFF. If φ is a WFF and ξ is a variable, then ∃ ξφ and ∀ ξφ are WFFs. If φ and ψ are WFFs, then (φ & ψ), (φ v ψ), (φ → ψ), (φ ↔ ψ) are also WFFs. Nothing else is a WFF.

39 First-Order Logic Semantics We introduce a domain (“universe”) D of individuals. We introduce an assignment function ƒ with the following feature: For any variable ν, ƒ(ν) ϵ D.

40 First-Order Logic Semantics We introduce an interpretation function μ with the following features: 1. For any individual constant α, μ(α) ϵ D. 2. For any variable ν, μ(ν) = ƒ(ν) 3. For any 1-ary predicate Π, μ(Π) ⊆ D 4. For any 2-ary predicate Π, μ(Π) ⊆ D x D …

41 First-Order Logic Semantics We introduce an interpretation function μ with the following features: 5. For any WFF of the form Πξ1ξ2…ξn, μ(Πξ1ξ2…ξn) = true iff ϵ μ(Π) 6. For any conjunction (φ & ψ), μ(φ & ψ) = true iff μ(φ) = true and μ(ψ) = true. …

42 First-Order Logic Semantics We introduce an interpretation function μ with the following features: 6. For any expression of the form ∀ ξφ: μ( ∀ ξφ) = true iff for every interpretation function μ* that coincides completely with μ with the possible exception that μ*(ξ) ≠ μ(ξ) μ*(φ) = true.

43 Satisfaction Definition M, ƒ ⊨ φ iff μ(φ) = true

44 Example Let’s consider a model M = where: Suppose D = { Michael, Joe } μ(m) = Michael μ(j) = Joe μ(F) = { Michael } μ(G) = { Michael, Joe }

45 Consider the formula: ∀ x(Fx & Gx) We want to evaluate it with our model: M, ƒ ⊨ ∀ x(Fx & Gx)

46 iff μ( ∀ x(Fx & Gx)) = true iff for every interpretation function μ* that coincides completely with μ with the possible exception that μ*(x) ≠ μ(x), μ*(Fx & Gx) = true. iff for every interpretation function μ* that coincides completely with μ with the possible exception that μ*(x) ≠ μ(x), μ*(Fx) = true and μ*(Gx) = true

47 iff for every interpretation function μ* that coincides completely with μ with the possible exception that μ*(x) ≠ μ(x), μ*(x) ϵ μ*(F) and μ*(x) ϵ μ*(G) iff for every interpretation function μ* that coincides completely with μ with the possible exception that μ*(x) ≠ μ(x), μ*(x) ϵ { Michael } and μ*(x) ϵ { Michael, Joe }

48 But consider some relevant μ* where μ*(x) = Joe. It’s not true that Joe ϵ { Michael } So it’s not true that M, ƒ ⊨ ∀ x(Fx & Gx)

49 Sample 1 st Order Rule If on some line you have proven: χ1, χ2,…, χn ⊢ ∀ ξφ Then on any future line you may write: χ1, χ2,…, χn ⊢ φ[α⁄ ξ] Where φ[α⁄ ξ] is the result of replacing every occurrence of ξ in φ with the individual constant α.

50 Soundness Here we’ll make things simple and just show that if ∀ ξφ is true, then φ[α⁄ ξ] is true (where φ[α⁄ ξ] is the result of replacing every occurrence of ξ in φ with the individual constant α). (Verbal proof.)

51 Circularity?

52 Soundness for &E Prove that if χ1, χ2,…, χn are all true, then φ is. OK, assume for conditional proof that χ1, χ2,…, χn are all true. Now, since we are also assuming that if χ1, χ2,…, χn are all true, then (φ & ψ) is. Thus it follows that (φ & ψ) is true.

53 Soundness for &E Prove that if χ1, χ2,…, χn are all true, then φ is. OK, assume for conditional proof that χ1, χ2,…, χn are all true. Now, since we are also assuming that if χ1, χ2,…, χn are all true, then (φ & ψ) is. Thus it follows that (φ & ψ) is true.

54 Circularity In order to prove that our logic rules are correct, we seem to be using those very same rules (albeit not formally stated, and not in a rigorous formal system). Can logic really justify itself?

55 Completeness

56 Completeness: Is it always true that if φ ⊨ ψ, then φ ⊢ ψ ? Notice that this isn’t the same as saying every valid argument is provable, because that’s impossible. (Why?)

57 Completeness Why do we want completeness in a system? We know we don’t need anymore rules!

58 Proving Completeness The Lemmon way, for decidable logics: use the decision procedure as a proof-constructing tool.

59 Proving Completeness Notice that whenever: φ ⊨ ψ, there is no model M and variable assignment ƒ such that M, ƒ ⊨ (φ & ~ψ). We say then that (φ & ~ψ) is unsatisfiable. Further whenever: φ ⊢ ψ, then: φ, ~ψ ⊢ (χ & ~χ). We say that { φ, ~ψ } is inconsistent. So completeness says: if (φ & ~ψ) is unsatisfiable, then { φ, ~ψ } is inconsistent.

60 Proving Completeness But this is the same thing as showing that if { φ, ~ψ } is consistent, then (φ & ~ψ) is satisfiable. So standard completeness proofs start with the assumption that { φ, ~ψ } is consistent (for conditional proof), and then try to construct a model that makes (φ & ~ψ) true. General idea: keep adding consistent extensions to { φ, ~ψ }, and use the result as a “model” of itself.


Download ppt "Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:"

Similar presentations


Ads by Google