3

Im using the pure implicational logic with detachment, substituition and the following two axioms:

  • $(A) \Rightarrow [(B) \Rightarrow (A)]$
  • $\{(A) \Rightarrow [(B) \Rightarrow (C)]\} \Rightarrow \{[(A) \Rightarrow (B)] \Rightarrow [(A) \Rightarrow (C)]\}$

Im going through the book Logic, Mathematics, and Computer Science from Yves Nievergelt.

After presenting a collection of proofs in and about pure implicational logic, the author give a list of formulae to the reader show if it is a Theorem in pure implicational logic, but he states that some formulae with implications cant be proved inside this system.

An example is the Peirce Law $\{[(P)\Rightarrow(Q)]\Rightarrow (P)\} \Rightarrow (P)$, I tried very hard to derive this from the Axioms and using all the presented theorems, later I just did a search and the book itself says its not possible inside the implicational calculus.

Then I got stucked in the next formulae which is $[(P) \Rightarrow (R)] \Rightarrow [\{[(P) \Rightarrow(Q)] \Rightarrow (R)\} \Rightarrow (R)]$, I have no idea how can I deduce if its provable with the given axioms or no, then its becoming very frustrating, as Im just in the first collection of exercises it is somekind boring to skip.

I want to know if there is a way to determine if a given well-formed formula is unprovable inside the implicational logic, and as a newcomer to logics I wonder if its a common pratice in other books to give hidden unprovable formulae as exercises.

The author commented a preliminary version of Deduction Theorem, but even with this some formulae still unprovable for example the Peirce Law again. What I have been doing is to derive the proved Theorems in the book(the most basic ones) for myself, then I try to apply substituitions in a way that similar sub-formulas to one im trying to prove appears, so I can try to reduce to the goal.

All tips on learning logic are welcome.

  • Sorry, I added it using the same name as the author uses in the book – Paulo Henrique L. Amorim Nov 18 '20 at 17:56
  • Good, I hope it gets some useful attention. – David K Nov 18 '20 at 20:51
  • 1
    The interesting thing is, I know in some logic systems there is no decision procedure that can always tell you whether a statement is provable, but I think it is possible in some logic systems. My hope is that someone who knows more than I do about it will recognize your system and know the answer to your question. – David K Nov 18 '20 at 20:53

1 Answers1

4

Remember that in the end, formal logic is just that: a formal, i.e. purely syntactical system of symbols, where rules like the ones you state merely say: "If you have a statement that looks that [this string of symbols], then you write down [this other string of symbols]"

The point is: the system itself has no understanding what the symbols are supposed to mean ... and in fact we could interpret the symbols completely differently from what they were intended to capture.

Indeed, suppose that the expressions in out system are not assigned one of two truth-values, but instead one of three values: $1$, $2$, or $3$. Like truth-functional logic, however, we will assume that the value of larger expressions is a function of the values of smaller expressions when combined using the $\to$ operator, and it all works in accordance to the table below (which is not no longer a truth-table ... but, for lack of a better word, a "$1,2,3$-table" ... anyway, it just specific how $\to$ works as a function):

\begin{array}{cc|c} P&Q&P \to Q\\ \hline 1&1&1\\ 1&2&2\\ 1&3&3\\ 2&1&1\\ 2&2&1\\ 2&3&3\\ 3&1&1\\ 3&2&1\\ 3&3&1\\ \end{array}

Now: For yourself, please work out the "$1,2,3$-tables" of $A \to (B \to A)$ and $(A \to (B \to C)) \to ((A \to B) \to (A \to C))$ (yes, for that second one you'll get $27$ rows!)

You should find that in all rows, both statements evaluate to $1$, without exception. We could therefore call them "$1$-tautologies"

Next, consider your only rule of inference, Modus Ponens. Observe from the table above that when $P$ is $1$, and $P \to Q$ is $1$, then the value of $Q$ has to be $1$ as well. This means that if you apply Modus Ponens to two $1$-tautologies, the result will be a $1$-tautology as well.

OK, but now finally observe that when $P$ has the value of $2$, and $Q$ the value of $3$, then $((P \to Q) \to P) \to P$ evaluates to $((2 \to 3) \to 2) \to 2 = (3 \to 2) \to 2 = 1 \to 2 = 2$

So, $((P \to Q) \to P) \to P$ is not a $1$-tautology!

What this all means is that in your system of logic, when what you are doing is interpreted from this persepctive, you can only write down $1$-tautologies using your axioms, and infer further $1$-tautologies from that, but you'll never be able to to derive $((P \to Q) \to P) \to P$, since that is not a $1$-tautology. So that's why it is not provable.

Now, how did I come up with this non-standard interpretation? Well, I just use a little computer program that systematically searches for these. You can try and find them by hand, of course, and sometimes you'll be able to find them, but there are also times where the only way to demonstrate that some specific sentence is not provable from a set of axioms and inference rules, is to use interpretations where the expressions can take on one of four possible values, or even more.

Now, what I actually don't know is if there is a decision procedure for such provability. That is, while my computer program is able to find these 'counter-models' for certain specific cases, I know for a fact that my program will sometimes stop without giving any answer. So: is there an algorithm that will always be able to tell whether some sentence is provable from some finite set of axioms and finite inference rules or not? I expect there is not, for you can presumably reduce that to the Halting Problem... but I am not sure.

Bram28
  • 100,612
  • 6
  • 70
  • 118
  • Sorry for taking all this time to accept the answer and giving some comment, I got busy with other things and dont managed to check all this things untill today. I did a simple code to verify your claims and as expected I found out the same result and noticed that using your interpretation the Peirce's Law give 2 as a result in two other cases.

    Another curious thing as that search from the last possible case is a bit faster in this specific case, as I dont know if its good or ok to post code in this site, I will put my code and the output in other links, I will link it in the next comment.

    – Paulo Henrique L. Amorim Nov 20 '20 at 21:30
  • This is the implementation(in common lisp) I started to make to play with Implicational Calculus: https://pastebin.com/g6Z0wgV4 Im not able yet to generate and search for those cases like you described, thus I almost just checked your claims hardcoding the implementation you used in your answer, and this is the output the program: https://pastebin.com/qQGtvRyG I will just try a few interpretations in the next formulae I got stucked, I hope you enjoy the code, its not very well written because lack of time, but it worked for our purpose here. Last but not least, Thanks for the help – Paulo Henrique L. Amorim Nov 20 '20 at 21:44
  • There is not other two cases, my fault.. I just tested the Peirce's Law using triples and got some duplicated results, but I just fixed and resposted the correct output in the last comment, but It still a bit "faster" if we search backwards, now the great question which still is that one you stated "there is a decision procedure for such provability?" This one seems to be a great one! But for the moment I will try to implement a program like the one you have. Thanks again. – Paulo Henrique L. Amorim Nov 20 '20 at 21:50
  • 1
    @PauloHenriqueL.Amorim Good luck with that program! :) – Bram28 Nov 20 '20 at 22:52
  • 1
    Regarding your last paragraph, it is impossible to computably decide provability of a given sentence over a given finite set of FOL axioms, even if there is only a single binary function-symbol and no other non-logical symbols, because TC is essentially incomplete but finitely axiomatized. I'm not sure whether that is what you meant though. But even for fragments of PL rather than FOL, it is still undecidable for finitely many axiom templates (i.e. you can substitute each atom) since the word problem for groups is undecidable. CC @PauloHenrique – user21820 Nov 22 '20 at 06:27