Mathematical Proof/Logic

From testwiki
Jump to navigation Jump to search

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 P and Q, we will discuss Template:Colored em of P and Q. As suggested by its name, there are Template:Colored em conditionals involved. The conditional involved, in addition to PQ, is QP, which is called the Template:Colored em of the conditional PQ.

In mathematics, given that the conditional PQ is true, we are often interested in knowing whether its Template:Colored em QP is true as well [1].

Template:Colored example Template:Colored definition Template:Colored remark Template:Colored example

Implication and logical equivalence

When the conditional PQ is Template:Colored em, we can say "P Template:Colored em Q", denoted by PQ. On the other hand, when P does Template:Colored em imply Q, i.e. PQ is Template:Colored em, we denote this by PQ.

We have some other equivalently ways to say "P implies Q", namely

  • We call Q to be Template:Colored em for P since when P implies Q, the hypothesis cannot be possibly true when the consequent Q is false (or else the conditional PQ will be false). This explains the Template:Colored em of "Q is true".

When PQ, we are often interested knowing whether the Template:Colored em of PQ is true or not, i.e. whether we have QP or not [2].

In the case where PQ but QP, we have multiple equivalent ways to express this:

  • From the previous interpretation, when we say P is necessary for Q, we mean QP. Hence, when P is Template:Color but Template:Color for Q, we mean PQ and QP.

In the case where PQ and QP as well, the biconditional PQ is also true, and we denote this by PQ. There are also multiple equivalent ways to express this:

  • Recall that we also use "P if and only if Q" to express the Template:Colored em PQ. Thus, technically, we should write "P if and only if Q" is true in the case where PQ. 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 "P if and only if Q" in this context, we mean that the biconditional is true without saying it explicitly.
  • Usually, when we just write "P if and only if Q", we have the meaning of the logical equivalence PQ, rather than the statement PQ. If we really want to have the latter meaning, we should specify that "P if and only if Q" refers to a Template:Colored em.

Template:Colored theorem

Proof. They can be shown using truth tables.

Template:Colored remark Template:Colored theorem

Proof. It can be shown using the following truth table: PQPPQ(P)QTTFTTTFFFFFTTTTFFTTT

Template:Colored theorem

Proof. Using the bridge between conditional and disjunction and some other laws, it can be shown as follows: PQ(P)QQ(P)((Q))(P)(Q)(P).

Template:Colored remark

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 P,Q,R 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 x, x20." We can let P(x) be the Template:Colored em "x20". Then, it can be further rephrased as "For each real number x, P(x)." In this case, we can observe how an open statement (P(x)) is converted to a statement (For each real number x, P(x)), 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 "x,x20" (we also use some set notations here).

In general, we can use the universal quantifier to change an open statement P(x) to a statement, which is "xS,P(x)" in which S is a (universal) set (or domain) which restricts the input x.

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 "x,x2<0." (which is false).

In general, we can use the existential quantifier to change an open statement P(x) to a statement, which is "xS,P(x)" in which S is a (universal) set (or domain) which restricts the input x.

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 x such that 2x=0." as "!x,2x=0." We can express the unique existential quantifier in terms of existential and universal quantifiers, by Template:Colored em "!xS,P(x)" as (xS,P(x))(x1,x2S,P(x1)P(x2)x1=x2) where the left bracket is the existence part, and the right bracket is the uniqueness part. In words, the expression means

There exists xS such that P(x), AND for every x1,x2S, if P(x1) and P(x2), then x1=x2 (i.e., x1 and x2 are actually referring to the same thing, so there is Template:Colored em x such that P(x)).

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 "xS,P(x)" is logically equivalent to "xS,P(x)". Now, it is natural for us to want to know also the negation of the statement "xS,P(x). Consider this: when it is not the case that P(x) is true for each xS, it means that P(x) is false for Template:Colored em xS. In other words, xS,P(x). Hence, we know that the negation of the statement "xS,P(x)" is logically equivalent to xS,P(x).

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 x and for each real number y, xy is a real number." It can be written as "x,y,xy". When we interchange "x" and "y", 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 "x,y,xy" without any ambiguity.

For an example that involve two existential quantifiers, consider the statement "There exists an real number x and an real number y such that xy is a real number." It can be written as "x,y,xy." Similarly, interchanging "x" and "y" does not affect the meaning of the statement (the statement still means "For at least one pair of real numbers x and y, xy is a real number.") Because of this, we can simply write the statement as "x,y,xy" 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 x, there exists an integer y such that y<x." This can also be written as "x,y,y<x". 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 x=13, I can choose y=99,0 or 12. Indeed, for the integer x chosen by you, I can always choose my y as x1 so that y<x.

Let's see what happen if we interchange "x" and "y". The statement becomes y,x,y<x, meaning that there exists an integer y such that it is (strictly) smaller than Template:Colored em integer x! 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 x,y,y<x.. Then, since the variable x appears Template:Colored em than the variable y which associated to , y Template:Colored em on x (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 x=13, and I choose y=12. Then, y<x. However, if you change your choice to x=9, then my y=12 does not work, and I need to change my y to, say, 8 so that y<x. Then, we can see that y depends on x in this case. Template:Colored em, we have y,xZ,y<x. In this case, the variable x appears Template:Colored em than the variable y. Hence, the variable y must be independent from x. That is, when such y is determined, it needs to satisfy y<x for each x chosen, and the y cannot change depend on what x is. Indeed, y cannot Template:Colored em depend on x, since y is supposed to be determined when x is not even introduced!

Exercises

In the following questions, P,Q,R,S are statements.

A. Construct the truth tables for each the following statements, and also give its converse and contrapositive:

  1. PQ
  2. P(Q)
  3. (PQ)R
  4. (PQ)(RS)
  5. (RS)(PQ)

B. Negate the following statements:

  1. PQ
  2. (PQ)(RS)
  3. (PQ)(RS)

Template:Nav Template:BookCat

  1. It is not necessary for QP to be true when PQ is true. For example, when P is false and Q is true, PQ is (vacuously) true, but QP is false.
  2. It is not necessary for QP when PQ. See, for example, the third row of the above truth table for PQ, in which PQ is true while QP is false. Indeed, it is a common mistake to think that we must also have QP when PQ.
  3. "Some" in mathematics always means "at least one".