You are here

Formal inference rules and proofs

16 June, 2015 - 16:50
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/383d4b87-2d7b-454e-99fe-2eaa43eae8ff@20.20

Recall the syllogisms from a previous lecture. The general form of a syllogism is

  1. x :(P (x) ⇒ Q (x)) [major premise]
  2. P (c) [minor premise]
  3. Q (c) [conclusion]

In our system, we don't have syllogism as a separate rule of inference, but it's easy to see how to translate any syllogism into our system: (for specific relations P and Q, and a specific constant c).

1

\forall x:(p(x)\Rightarrow Q(x))

Premise

2

P (c)

Premise

3

P (c) \Rightarrow Q (c)

∀Elim, by line 1, with x = c

4

Q (c)

⇒Elim, by lines 2,3, with φ = P = c and ψ = Q = c

Eliminating a quantifer via ∀Elim and ∃Elim is often merely an intermediate step, where the quantifer will be reintroduced later. This moves the quantifcation from being explicit to implicit, so that we can use other inference rules on the body of the formula. When this is done, it is very important to pay attention to the restrictions on ∀Intro, so that we don't accidentally "prove" anything too strong.

Example 4.13

\exists x:(\forall y:(\phi ))\vdash \forall y:(\exists x:(\phi ))
, for the particular case of φ = R (x, y) (other cases all similar).

1

\exists x:(\forall y:(R(x,y)))

Premise

2

\forall y:(R(x,y))

∃Elim, line 1

3

R (p, q)

∀Elim, line 2

4

\exists x:(R(x,q))

∃Intro, line 3

5

\forall y:(\exists x:(R(x,y)))

∀Intro, line 4

Remember that in line 5, for ∀Intro, we must verify that q is arbitrary. It is, since it was introduced in line 3 by ∀Elim, and there hasn't been an intervening ∃Elim between lines 3 and 5.

We cannot instead conclude in line 4 that ∀x :(R (x, q)) by ∀Intro, since variable p was introduced by ∃Elim in line 2, and therefore not arbitrary.

Exercise 4.3.1.1

Let's reverse the previous proof goal: \forall y:(\exists x:(\phi ))\vdash \exists x:(\forall y:(\phi ))for the particular case of φ = R (x, y) (other cases all similar). This statement does not hold in general. So, what's the problem with the following "proof"?

1

\forall y:(\exists x:(R(x,y)))

Premise

2

\exists x:(R(x,q))

∀Elim, line 1

3

R (p, q)

∃Elim, line 2

4

\forall y:(R(p,y))

∀Intro, line 3

5

\exists x:(\forall y:(R(x,y)))

∃Intro, line 4

The ∀Intro principle is actually very familiar. For instance, after having shown \dashv \left ( a\wedge b \right )\vdash \dashv a\vee \dashv b,we then claimed this was really true for arbitrary propositions instead of just a,b. (We actually went a bit further, generalizing individual propositions to entire (arbitrary) WFFs φ,ψ. This could only be done because in any particular interpretation, a formula φ will either be true or false, so replacing it by a proposition still preserves the important part of the proof-of-equivalence.)

The ∀Intro is also used in many informal proofs. Consider: "If a number n is prime, then ...". This translates to "prime (n) ⇒ ...", where n is arbitrary. We are entirely used to thinking of this as "∀n : (prime (n) ⇒ ...)" even though "n" was introduced as if it were a particular number.