Propositional Logic: Introduction
Reasoning in everyday life
Logic is widely used in daily life.
Restaurant example Suppose you are in a restaurant with a friend and he ordered fish and you ordered poultry. The waiter comes with two plates. What is happening?
The following scenario will not seem strange: The waiter asks who ordered fish and puts the plate in the right place at the table. Without further questioning, the waiter will also put the plate with poultry in the right place. The answer to the question was enough for the waiter to decide where the poultry plate should go. The argument scheme used by the waiter, with the special notation of \(f\) for "fish" and \(p\) for "poultry", can be written as: \[f\text{ or } p, \text{not }f\text{. So: }p\text.\] This notation of the inference, written even more formally in logic language as \(\bigl((f \lor p)\land \neg\, f\bigl)\rightarrow p\), not only describes the waiter's pattern of reasoning, but applies to many more situations because it does not matter much what the letters \(f\) and \(p\) symbolise. An example of a similar logical reasoning: a computer screen fails down if the connection cable is not working properly or the screen is broken. If the connection cable functions properly, then the screen must be broken.
But there is more going on in this restaurant example: the waiter asks a question in order to reach a conclusion based on the answer. The inference is a form of computing on information states. Initially there are two possible ways in which the two dishes can be divided between two people, indicated by ( \(fp\) and \(pf\) ). The answer to the waiter's question reduces this to only one possibility and the waiter knows what to do.
Sudoku Many people try to solve a sudoku puzzle every day. The easiest is a \(3\times 3\) sudoku. In this puzzle you have a block of three times three squares. Each square box should contain a number from 1 to 3. You must complete a given block in such a way that the digits 1 to 3 appear once in each row and each column. Logical reasoning leads to the unique solution.
How can such a puzzle be constructed? Logic helps with this too! Start with a correctly completed block. Now choose any box and delete the number in it. The remaining numbers still determine which number in the open box must necessarily be filled in; we say "that is logical!", but in fact filling in the missing number follows from logically valid reasoning. Now go on: choose a random square box, empty it and check whether the remaining numbers can lead to only one answer by logical reasoning. Repeat this until you cannot empty any more boxes. You have now found a minimal puzzle and since you obviously do not tell how you came up with this block, it has indeed become a logical puzzle for someone else.
Patterns in logical reasoning Inferences have a typical global form: there are one or more assumptions, usually called hypotheses and premises, followed by a conclusion. In the restaurant example, the text "Thus:" indicates that a conclusion is being drawn. A second example: \[\begin{array}{ll} \text{premise:} & \text{When your bicycle has been stolen, you raise your voice.}\\ \text{Premise:} & \text{You do not raise your voice.}\\ \text{Conclusion:} & \text{So: your bicycle has not been stolen.} \end{array}\] The pattern of reasoning is symbolised by \(\bigl((p\rightarrow q) \land \neg\, q\bigr)\vDash\neg\, p\), where "your bicycle has been stolen" and "you raise your voice" are replaced by the letters \(p\) and \(q\). The symbol \(\vDash\) indicates that the formula to the right of this follows logically from the formula to the left; \(\neg\,\) denotes a negation of a statement ("not" in a natural language); the symbols \(\lor\) and \(\land\) represent "or" and "and" in natural languages, respectively, and allow compound statements to be made. In this way the inference has been reduced to a clearer abstract form.
A variant of this example is: \[\begin{array}{ll} \text{Premise:} & \text{When your bicycle has been stolen, you aren't speaking at normal volume.}\\ \text{Premise:} & \text{You are speaking at normal volume.}\\ \text{Conclusion:} & \text{So: your bicycle has not been stolen.} \end{array}\] The reasoning scheme is now \(\bigl((p\rightarrow \neg\, q) \land q\bigr)\vDash \neg\, p\), where \(p\) and \(q\) are in this case letters that symbolise "your bicycle has been stolen" and "you are speaking at normal volume", respectively.
In the examples so far, we have been very precise about the nature of the assumptions and the conclusion: for each statement, it can be determined objectively whether it is true or false ; we exclude a third possibility (say perhaps true or false, partially true or unknown ). In the restaurant example, there has been an order, so it should be clear who gets the fish or poultry. In the last example, raising your voice is observable (at least if the observer knows you well) and you either do it or not. However, a natural language allows for statements that cannot easily be said to be true or false. It is not possible for a third party to objectively determine whether the statement "you are angry" is true or false; you may be feigning anger or, vice versa, you are angry, but do not express this in any way.
Proposition and Truth
We speak of a proposition when it is a statement or assertion, expressed in a meaningful sentence that conveys a fact, which can be objectively determined to be true or false .
Often, this implicitly refers to a context.
Examples and counterexamples
- The door is open (a true proposition)
- \(x+1=0\) (not a proposition: it depends on the value of \(x\) whether it is true or false)
- \(a^2+b^2=c^2\) (not a proposition: truth depends on \(a\), \(b\) and \(c\), or on the context.
- \(4\) is a prime number (a false proposition)
- Is Jan a boy's name? (not a proposition because not a statement, but a question)
Validity of an argument Propositional logic is concerned, among other things, with checking whether an argument is logically valid (on short: valid), meaning that in every situation where all premises are assumed to be true, the conclusion must necessarily be assumed to be true as well. An alternative but equivalent definition is: an argument is correct if there are no counterexamples, i.e. situations in which all premises are true, but the conclusion is still false..
Please note: validity is about the logical correctness of the reasoning, not about the truth of the premises or the conclusion. Two examples: \[\begin{array}{ll} \text{Premise:} & \text{A human being is immortal.}\\ \text{Premise:} & \text{Madonna is a human being}\\ \text{Conclusion:} & \text{Madonna is immortal}\end{array}\] This argument is logically valid, but the first premise is false. \[\begin{array}{ll} \text{Premise:} & \text{The calculated exam result is 5.5 or more.}\\ \text{Premise:} & \text{If your calculated exam result is 5.5 or more, then you pass the course.}\\ \text{Conclusion:} & \text{You pass the course.}\end{array}\] If you have received a pass mark, you know that your calculated result is at least 5.5. If you do not have a calculated result greater than or equal to 5.5, then you basically do not know whether or not you have received a pass mark; there may be all sorts of reasons why the teacher gave a pass mark after all. If your calculated exam result is at least 5.5, but you still didn't get a pass mark, then you feel cheated and you start complaining.
In the case of a valid reasoning \(p\vDash q\), which holds in the situation described last, you can therefore only say the following:
- \(p, p\rightarrow q\vDash q\): If \(p\) is true, then the conclusion \(q\) is also true.
- \(\neg\,q, p\rightarrow q\vDash \neg\,p\): If the conclusion is false, then \(p\) is also false.
Reasoning in natural language Finding precise wording to accurately convey a thought or reasoning is often far form simple. Moreover, everyone has their own sense of language, which can result in the speaker of a sentence interpreting it differently from the listener.
Suppose a father says to his child, "If you are good, you will get a candy." Does he mean "If you're not good, you won't get a candy"? How well-behaved does the child need to be in order to receive something? What if the child is just slightly misbehaving?
It becomes even more unclear when the father says to the child: "If you are good, you will get an ice cream or a soft drink." If the child is good, can the child have both an ice cream and a soft drink? Can the child choose between an ice cream or a soft drink? Can the child also get something if it is not well behaving, or is that out of the question?
We aim to avoid such ambiguities by extracting statements and forms of reasoning from natural languages and formalising them into symbolic or formal logic.
Finally, in logical reasoning, many believe that you keep adding statements the given premises until you can justify the conclusion. But just as important as application is the refutation of an argument. This involves demonstrating that a false statement follows from the reasoning and undermines the inference. A false conclusion does not mean that all premises are false, just that at least one of the premises is false. Determining which premise is false can still require a significant amount of work.
Exercise Suppose that each individual inference below, with lowercase letters representing propositions, is valid. \[\begin{array}{l} &a\land b\land c\rightarrow d\\ &a\rightarrow d\\ &e\rightarrow f\\ & a\rightarrow b\\ & e\land f\land b\rightarrow g\end{array}\] From a reliable source, you know that proposition \(a\) is true and proposition \(g\) is false. Which statement can you determine to be true or false?
Solution
It follows from \(a\rightarrow b\) that the proposition \(b\) is true. Suppose proposition \(c\) is true, then it follows from \(a\land b\land c\rightarrow d\) that proposition \(d\) is true. Then it follows from \(a\land d\rightarrow e\) that proposition \(e\) is true. But if \(e\) is true, then according to \(e\rightarrow f\) the conclusion\(f\) is also true. Since \(e\), \(f\) and \(b\) are true statements, it follows from \(e\land f\land b\rightarrow g\) that proposition \(g\) is true. But we already knew from a reliable source that \(g\) is false. This cannot be both. So: either the reliable source is not so reliable after all, or proposition \(c\) must be false. But then proposition \(d\) is false too and consequently proposition \(e\) is false. The sub-conclusion \(f\) is then true or false; that's all we know. For the rest we know that \(a\) and \(b\) are true propositions and that propositions \(d\), \(d\), \(e\), and \(g\) are false.