1

Suppose $\phi$ is a formula of L. Give a proof in L of the formula $(\phi \rightarrow \phi)$ explaining each step of the proof.

I have the axioms

(A1) $(\phi \rightarrow ( \psi \rightarrow \phi))$

(A2) $((\phi \rightarrow (\psi \rightarrow \chi)) \rightarrow ((\phi \rightarrow \psi) \rightarrow (\psi \rightarrow \chi)))$

(A3) $(((\lnot\phi) \rightarrow (\lnot\psi)) \rightarrow (\psi \rightarrow \phi))$

I really struggle to see how to construct a proof like this. I can follow an example but I do not know how to begin my own.

Thanks

ZZS14
  • 819
  • 3
    You can see Elliott Mendelson, Introduction to mathematical logic (4ed - 1997), page 36 : Lemma 1.8. In the proof, only axioms (A1) and (A2) are used. You can see also my answer to this post. – Mauro ALLEGRANZA Apr 23 '14 at 11:35
  • This is probably really stupid Q but why is everything written on the right hand side to the ⊢? Could you talk me through it? How would I spot that I should start with A2? – ZZS14 Apr 23 '14 at 11:53
  • because it works... and because we have found it on the textbook. If you want to know how to find the right starting-point, it really hard to say : you have to practice. – Mauro ALLEGRANZA Apr 23 '14 at 12:00
  • and I assume it is just a direct substitution of $\chi$ for A/$\phi$ in the Axiom 2? Why then do we use axiom 1 next? – ZZS14 Apr 23 '14 at 12:02
  • Prove the law of Clavius CCNppp, CCpqCCqrCpr, and CpCNpq. After two more condensed detachments and Cpp will follow. Prove CCCpqrCpr and Perice's law CCCpqpp. Use CCCpqrCpr as the major premise and CCCpqpp as the minor premise and perform that condensed detachment and Cpp will follow. Prove CCpqCCqrCpr, CCCpNppp, and CpCqp, perform two condensed detachments and Cpp will follow. Prove CpCCpqq and CCpqCCqrCpr, and Cpp will follow by a few condensed detachments. I know... that probably isn't helpful, but this is a comment, not an answer. :) – Doug Spoonwood Apr 23 '14 at 22:21

2 Answers2

2

(A1) and (A2) are in Elliott Mendelson, Introduction to mathematical logic (4ed - 1997).

This is a copy of Lemma 1.8. : $⊢\varphi → \varphi$ [see Mendelson, page 36] :

(1) $⊢[A→((B→A)→A)]→[(A→(B→A))→(A→A)]$ --- Ax2, with the following substitutions : $A$ in place of $\varphi$, $B→A$ in place of $\psi$ and $A$ in place of $\chi$.

(2) $⊢A→((B→A)→A)$ --- Ax1, with the following substitutions : $A$ in place of $\varphi$ and $B→A$ in place of $\psi$.

(3) $⊢(A→(B→A))→(A→A)$ --- from (1) and (2) by modus ponens

(4) $⊢A→(B→A)$ --- Ax1, with the following substitutions : $A$ in place of $\varphi$ and $B$ in place of $\psi$.

(5) $⊢A→A$ --- from (3) and (4) by modus ponens.

This is schematic; replace $A$ with a formula $\varphi$ whatever, and you will get the following instance of the theorem :

$\vdash \varphi \rightarrow \varphi$.

  • could you explain step 3? – ZZS14 Apr 23 '14 at 12:17
  • @ZZS14 - really ? Do you know about modus ponens ? It is a rule of inference which says that from $\varphi \rightarrow \psi$ and $\varphi$, we may infer $\psi$. In step 3), we apply it with $A→((B→A)→A)$ as $\varphi$ and $(A→(B→A))→(A→A)$ as $\psi$, where $\varphi \rightarrow \psi$ is : $[A→((B→A)→A)]→[(A→(B→A))→(A→A)]$. – Mauro ALLEGRANZA Apr 23 '14 at 12:24
  • oh i see now, sorry the A's were confusing me – ZZS14 Apr 23 '14 at 12:26
  • exactly how/why do you then disregard the final part of 3 (A $\rightarrow$ A) when you move from 3. to 4. Or is it just because it is looking similar to A1 we assume A1? – ZZS14 Apr 23 '14 at 12:29
  • @ZZS14 - again, 5) is obtained by mp from 3) and 4), where $\varphi$ is $A→(B→A)$ and $\varphi \rightarrow \psi$ is $(A→(B→A))→(A→A)$; thus we conclude $\psi$, that is $(A→A)$. – Mauro ALLEGRANZA Apr 23 '14 at 12:34
  • but where did 4. come from? – ZZS14 Apr 23 '14 at 12:39
  • okay so is 4. just stating A1 with our A and B substitutions? if so I get it! sorry I'm so dumb at this :( my exam is next thursday :( – ZZS14 Apr 23 '14 at 12:43
  • This answer is correct, but I dislike this proof, and I don't know why it seems to come as common as it does. Specifically, a more general formula could have gotten obtained in step 3 than got obtained here. (by "more general formula" I mean that from substitution alone one can derive the less general formula (3) listed above from the more general formula I have in mind). – Doug Spoonwood Apr 23 '14 at 22:17
0

To begin on your own:

It usually helps to take two theorems and derive the most general theorem from those theorems first before trying to look for substitution instances of those theorems. To clarify the term "most general", (p→(q→p)) is more general than (p→(p→p)) since you can derive (p→(p→p)) from (p→(q→p)) just by substitution, but you can't derive (p→(q→p)) from (p→(p→p)) just by substitution. You have 3 theorems to start with, and thus you have 3$^2$=9 nine ordered pairs of theorems to start with, each of which may help lead to a theorem. They are:

  1. [(p→(q→p)), ((p→(q→r))→((p→q)→(p→r)))]
  2. [(p→(q→p)), (((¬p)→(¬q))→(q→p))]
  3. [(p→(q→p)), (p→(q→p))]
  4. [((p→(q→r))→((p→q)→(p→r))), (p→(q→p))]
  5. [((p→(q→r))→((p→q)→(p→r))), ((p→(q→r))→((p→q)→(p→r)))]
  6. [((p→(q→r))→((p→q)→(p→r))), (((¬p)→(¬q))→(q→p))]
  7. [(((¬p)→(¬q))→(q→p)), (p→(q→p))]
  8. [(((¬p)→(¬q))→(q→p)), (((¬p)→(¬q))→(q→p))]
  9. [(((¬p)→(¬q))→(q→p)), ((p→(q→r))→((p→q)→(p→r)))]

What do you do with one of these 9 pairs of formulas? Well, let's try to substitute the right formula into the antecedent of the left formula while making sure to apply all substitution of variables uniformly throughout the formula. If we can do that, the rule of detachment or modus ponens immediately allows us to detach a theorem. If we can't perform such a substitution, let's try and find a substitution instance of the right formula and the left formula such that we can substitute the (substitution instance of the) right formula into the (substitution instance of the) left formula. Also, let's keep track of all variables in the consequent which are not in the antecedent. If we have a variable in the consequent of the left formula which is NOT it's in antecedent, we can freely change it to another variable to get more general formulas.

For example, let's look at pair 3. [(p→(q→p)), (p→(q→p))] We can substitute p with (p→(q→p)), thus putting the right formula into the antecedent of the left. We can also substitute q with r. Performing these substitutions we obtain

(((p→(q→p))→(r→(p→(q→p)))). Then since (p→(q→p)) is a theorem, we can detach

(r→(p→(q→p))).

More specifically, with respect to this problem, let's look at 4. Can we substitute (p→(q→p)) or some substitution instance of it into the antecedent of ((p→(q→r))→((p→q)→(p→r)))?

The antecedent of ((p→(q→r))→((p→q)→(p→r))). The antecedent (p→(q→r)) is a more general formula than (p→(q→p)), since if we substitute r with p in (p→(q→r)) we obtain (p→(q→p)). Thus, we can substitute (p→(q→p)) into the antecedent of ((p→(q→r))→((p→q)→(p→r))), which along with keeping in mind that such a substitution entails substituting "r" with "p" throughout the entire formula, yields

((p→(q→p))→((p→q)→(p→p))). Since the antecedent of ((p→(q→p))→((p→q)→(p→p))) is also a theorem, we now can detach the consequent

((p→q)→(p→p)).

Now can we find a formula (p→q) OR a substitution instance of (p→q) which is a theorem such that it's antecedent is a single variable? Well, we had (r→(p→(q→p))) above. So, that formula would work, and so would (p→(q→p)). If you've followed how we derived (r→(p→(q→p))) rather carefully, you hopefully would see that we could derive (s→(r→(p→(q→p)))) or even (a→(b→(c→(d→(e→(f→(g→(r→(p→(q→p)))))))))) and put any of those formulas into the antecedent of ((p→q)→(p→p)), and then deduce (p→p) from any of them.