Mathematical Proof/Logic
Template:Nav As discussed in the [[../|introduction]], logical statements are different from common English. We will discuss concepts like "or," "and," "if," "only if." (Here I would like to point out that in most mathematical papers it is acceptable to use the term "we" when referring to oneself. This is considered polite by not commanding the audience to do something nor excluding them from the discussion.)
Truth and statement
We encounter Template:Colored em frequently in mathematics. Template:Colored definition Template:Colored example Template:Colored exercise For the sentences that are not statements, there is a special type of sentences among them, namely Template:Colored em. Template:Colored definition Template:Colored remark Template:Colored example To express all possible combinations of Template:Colored em of some statements, we usually list them in a table, called a Template:Colored em. Template:Colored example Template:Colored example Template:Colored remark
Conjunction, disjunction and negation
In this section, we will discuss some ways (conjunction and disjunction) to combine two statements into one statement, which is analogous to [[../Introduction to Set Theory#Set operations]], in which two sets are combined into one set. Also, we will discuss a way (negation) to change a statement to another one.
Conjunctions
Template:Colored definition Template:Colored remark Template:Colored example
Disjunctions
Template:Colored definition Template:Colored remark Template:Colored example
Negations
Template:Colored definition
Template:Colored remark
Template:Colored example
To negate a statement, we usually add the word "not" into a statement, or delete it from a statement.
For example, the negation of the statement "The number 4 is even." is "The number 4 is Template:Colored em even.", and the negation of the statement "The number 1 is not prime." is "The number 1 is not prime."
Template:Colored exercise
Template:Colored exercise
Template:Colored exercise
Conditionals
Apart from the above ways to form a new statement, we also have another very common way, namely the "if-then combination". The statement formed using the "if-then combination" is called a Template:Colored em. Template:Colored definition Template:Colored example To understand more intuitively why the conditional is always true when the hypothesis is false, consider the following example. Template:Colored example
Converse and biconditionals
After discussing Template:Colored em of and , we will discuss Template:Colored em of and . As suggested by its name, there are Template:Colored em conditionals involved. The conditional involved, in addition to , is , which is called the Template:Colored em of the conditional .
In mathematics, given that the conditional is true, we are often interested in knowing whether its Template:Colored em is true as well [1].
Template:Colored example Template:Colored definition Template:Colored remark Template:Colored example
Implication and logical equivalence
When the conditional is Template:Colored em, we can say " Template:Colored em ", denoted by . On the other hand, when does Template:Colored em imply , i.e. is Template:Colored em, we denote this by .
We have some other equivalently ways to say " implies ", namely
- is a Template:Colored em for (or is sufficient for in short)
- We call to be Template:Colored em for since when implies , then " is true" is Template:Colored em to deduce " is true".
- is a Template:Colored em for (or is necessary for in short)
- We call to be Template:Colored em for since when implies , the hypothesis cannot be possibly true when the consequent is false (or else the conditional will be false). This explains the Template:Colored em of " is true".
When , we are often interested knowing whether the Template:Colored em of is true or not, i.e. whether we have or not [2].
In the case where but , we have multiple equivalent ways to express this:
- is Template:Colored em for .
- From the previous interpretation, when we say is necessary for , we mean . Hence, when is Template:Color but Template:Color for , we mean and .
- is a Template:Colored em than (or is Template:Colored em than in short).
In the case where and as well, the biconditional is also true, and we denote this by . There are also multiple equivalent ways to express this:
- is Template:Colored em .
- We say they are Template:Colored em equivalent since they always have the same truth values (because is true), which is related to Template:Colored em.
- " Template:Colored em " (is true).
- Recall that we also use " if and only if " to express the Template:Colored em . Thus, technically, we should write " if and only if " is true in the case where . However, we rarely write this in practice, and usually omit the phrase "is true" since it makes the expression more complicated. So, when we write " if and only if " in this context, we mean that the biconditional is true without saying it explicitly.
- Usually, when we just write " if and only if ", we have the meaning of the logical equivalence , rather than the statement . If we really want to have the latter meaning, we should specify that " if and only if " refers to a Template:Colored em.
- is Template:Colored em for .
- Following the previous interpretation, is Template:Color and Template:Color for means and .
Proof. They can be shown using truth tables.
Template:Colored remark Template:Colored theorem
Proof. It can be shown using the following truth table:
Proof. Using the bridge between conditional and disjunction and some other laws, it can be shown as follows:
Tautologies and contradictions
Before defining what tautologies and contradictions are, we need to introduce some terms first. In the previous sections, we have discussed the meaning of the symbols and . These symbols are sometimes called Template:Colored em, and we can use Template:Colored em to make some complicated statements. Such statements, which are composed of at least one given (or component) statements (usually denoted by etc.) and at least one logical connective, are called Template:Colored em.
Template:Colored definition Template:Colored remark Template:Colored example Template:Colored example Template:Colored theorem
Proof. They can be shown using truth tables.
Quantifiers
Recall that an Template:Colored em is a sentence whose truth values depends on the input of certain variable. In this section, we will discuss a way to change an open statement into a statement, by "restricting the input" using quantifiers, and such statement made is called an quantified statement. For example, consider the statement "The square of each real number is nonnegative.". It can be rephrased as "For each real number , ." We can let be the Template:Colored em "". Then, it can be further rephrased as "For each real number , ." In this case, we can observe how an open statement () is converted to a statement (For each real number , ), and the phrase "for each" is a type of the Template:Colored em. Other phrases that are also universal quantifiers include "for every", "for all" and "whenever". The universal quantifier is usually denoted by (an inverted "A"). After introducing this notation, the statement we mention can be further rephrased as "" (we also use some set notations here).
In general, we can use the universal quantifier to change an open statement to a statement, which is "" in which is a (universal) set (or domain) which restricts the input .
Apart from the universal quantifier, another way to convert an open statement into a statement is using an Template:Colored em. Each of the phrases "there exists", "there is", "there is at least one", "for some" [3], "for at least one" is referred to as an Template:Colored em, and is denoted by (an inverted "E"). For example, we can rewrite the statement "The square of some real number is negative." as "" (which is false).
In general, we can use the existential quantifier to change an open statement to a statement, which is "" in which is a (universal) set (or domain) which restricts the input .
Another quantifier that is related to Template:Colored em quantifier is the Template:Colored em. Each of the phrases "there exists a unique", "there is exactly one", "for a unique", "for exactly one" is referred to as Template:Colored em, which is denoted by . For example, we can rewrite the statement "There exists a unique real number such that ." as "." We can express the unique existential quantifier in terms of existential and universal quantifiers, by Template:Colored em "" as where the left bracket is the existence part, and the right bracket is the uniqueness part. In words, the expression means
- There exists such that , AND for every , if and , then (i.e., and are actually referring to the same thing, so there is Template:Colored em such that ).
In general, we need to separate the existence and uniqueness part as above to prove statements involving unique existential quantifier.
Negation of quantified statements
Template:Colored example From this example, we can see that the negation of the statement "" is logically equivalent to "". Now, it is natural for us to want to know also the negation of the statement ". Consider this: when it is not the case that is true for each , it means that is false for Template:Colored em . In other words, . Hence, we know that the negation of the statement "" is logically equivalent to .
Quantified statements with more than one quantifier
A quantified statement may contain more than one quantifier. When only one type of quantifier is used in such quantified statement, the situation is simpler. For example, consider the statement "For each real number and for each real number , is a real number." It can be written as "". When we interchange "" and "", the meaning of the statement is not affected (the statement still means "The product of two arbitrary real numbers is a real number.") Because of this, we can simply write the statement as "" without any ambiguity.
For an example that involve two existential quantifiers, consider the statement "There exists an real number and an real number such that is a real number." It can be written as "." Similarly, interchanging "" and "" does not affect the meaning of the statement (the statement still means "For at least one pair of real numbers and , is a real number.") Because of this, we can simply write the statement as "" without any ambiguity.
However, when both types of quantifier are used in such quantified statement, things get more complicated. For example, consider the statement "For each integer , there exists an integer such that ." This can also be written as "". It means that for each integer, we can find a (strictly) smaller one, and we can see that this is a true statement. For instance, if you choose , I can choose or . Indeed, for the integer chosen by you, I can always choose my as so that .
Let's see what happen if we interchange "" and "". The statement becomes , meaning that there exists an integer such that it is (strictly) smaller than Template:Colored em integer ! This is false, since, for example, there is no integer that is (strictly) smaller than itself (which is an integer). In this example, we can see that interchanging the positions of universal quantifier and existential quantifier can change the meaning of the statement. Hence, it is very important to understand clearly the meaning of a quantified statement with both universal and existential quantifiers. To ease the understanding, here is a tips for reading such statement:
- For the variable associated to the quantifier , it Template:Colored em depend on the variable(s) introduced earlier in the statement, but Template:Colored em be independent from the variable(s) introduced later in the statement.
What does it mean? For example, consider the above example. Template:Colored em, we have . Then, since the variable appears Template:Colored em than the variable which associated to , Template:Colored em on (This is similar to the case in English. In a sentence, a thing may depend on other things mentioned earlier.). For instance, when you choose , and I choose . Then, . However, if you change your choice to , then my does not work, and I need to change my to, say, 8 so that . Then, we can see that depends on in this case. Template:Colored em, we have . In this case, the variable appears Template:Colored em than the variable . Hence, the variable must be independent from . That is, when such is determined, it needs to satisfy for each chosen, and the cannot change depend on what is. Indeed, cannot Template:Colored em depend on , since is supposed to be determined when is not even introduced!
Exercises
In the following questions, are statements.
A. Construct the truth tables for each the following statements, and also give its converse and contrapositive:
B. Negate the following statements:
- ↑ It is not necessary for to be true when is true. For example, when is false and is true, is (vacuously) true, but is false.
- ↑ It is not necessary for when . See, for example, the third row of the above truth table for , in which is true while is false. Indeed, it is a common mistake to think that we must also have when .
- ↑ "Some" in mathematics always means "at least one".