Now that we know what statements qualify as a proposition in a mathematical sense, we will define operations to construct new propositions from existing ones. These operations are so-called logical operations, and they are indicated by logical operators. We will look at three types of logical operators. First we consider the operator that reverses the assignment of true or false to a proposition.
The negation of a proposition is the opposite of the original proposition. The negation is true exactly when the original proposition is false, and false exactly when the original proposition is true.
Negation is denoted by the not-operator: . So, if stands for a proposition then its negation is denoted by .
Example
The negation of the proposition is given by .
If is true, then is false.
If is false, then is true.
Operator notation:
Brackets are used to group parts of statements in such a way that it becomes clear to which parts operators apply. So, if stands for a proposition then its negation can also be written as .
In the proposition the brackets make clear that the reach of is the whole statement rather than only the first part, as in . Of course, the double quotes also help in this case.
The example shows that some insight is needed where to insert the word "not" in the statement to get the negation. But there is an automatic way to change the proposition to its negation: simply put the words in front of the proposition. Thus, negating the proposition would lead to . The proposition can be seen as a shorter version of it.
The use of still requires some caution. The proposition has the negation . But this can simplify to either or . Brackets are a good way to deal with these ambiguities.
We often use letters for propositions in order to make concise statements. When saying that stands for a proposition, we interpret as the shorthand for a proposition.
Later we will go into greater detail about variables.
Next we consider the composition of two propositions corresponding to the usual conjunctive "and".
The conjunction of two propositions is a proposition that is true exactly when both original propositions are true. If at least one of these propositions is false, the conjunction is also false.
Conjunction is denoted by the and-operator: . So, if and stand for propositions, then their conjunction is denoted .
Example
The conjunction is precisely true when the propositions and are both true.
If at least one of them is false, then is false.
Operator notation: .
The and-operator, , is what is known as an infix operator.
We say that an operator is infix if it is written in between the arguments. The most common way of writing an operator on two arguments and is , but by saying that the operator is infix we mean that we will write the effect of on and as . Here, with , the result becomes .
Other examples of infix operators are the usual "" and "" from arithmetic.
Brackets help to group parts of statements in such a way that it becomes clear to which parts operators apply. For instance, can be written as
where the brackets make clear what the arguments of the
and-operator are. By taking out the
not-operator from the two arguments we obtain that our conjunction can be written as
The first
not-operator applies to and it leaves proposition out of its scope. The second
not-operator comes from the word ``no" in and it applies to . Thus, the arguments of the
and-operator are and where is and is . Formally, we can write the conjunction as .
We must be careful when placing brackets and understanding the scope of the logical operator. We don't want to confuse our initial conjunction with another one expressing something different (for instance ). When we introduce
priorities we will obtain a unique way of placing brackets.
As could be expected, next we consider the composition of two propositions which corresponds to the usual disjunctive "or".
The disjunction of two propositions is a proposition that is true when at least one of the original propositions is true. The disjunction is only false when exactly both original propositions are false.
Disjunction is denoted by the or-operator: . So, if and stand for propositions, then their disjunction is denoted .
Example
The disjunction is true when at least one of the propositions or is true. If both of the propositions are false, the proposition is false.
Operator notation: .
As for "and", the operator "or" is usually put between the two propositions to which the operator is applied. This makes "or" also an infix operator.
The proposition that results from combining two propositions by "or" is true when at least one of the original propositions is true. In particular, if and are true, then also is true.
The fact that is true when both and are true, means that the "or" we use is not exclusive.
The exclusive or-operator is often denoted by the infix operator , also known as and . The proposition is true when precisely one of and is true. In particular is false when both and are true.
In our daily language, we often ask questions with the operator "or". However, the meaning in our daily language is different from the use in mathematics.
In normal language, when we ask ?, we expect the response to be either or .
In mathematics, the answer will be "true" or "false", depending on whether or not at least one of and is true.
For instance, in normal language, the answer to the question
could be or "".
In mathematics, however, the answer would be , since at least one of the expressions and has to be true.
The need for brackets becomes clearer now that we have more operators. For instance, is ambiguous as it can be as eitheror
The two interpretations represent propositions which are
inequivalent; this means that there is a situation where one is true while the other is false. Indeed, if it is not raining, there is sunshine and it is warm, then the first interpretation is true while the second is false.
Later we will provide a solution by imposing
priorities, an order of operations, which will lead to a unique way of placing brackets.
Which logical operation is used in the following proposition?
Conjunction
The proposition "I will travel by train and by bike" contains a conjunction. The two parts are "I will travel by train" and "I will travel by bike", and these two parts are connected by the and-operator.
There is no negation and no disjunction here.