Statements

Example 7 : A triangle has three sides.

Example 8 : The square of a real number is nonnegative.

Example 10 : Some even numbers are multiples of 3.

Example 11 : Some real numbers are irrational.

Example 14 : A real-valued function \(f(x)\) is bounded on the closed interval \([a,b]\) if \(f(x)\) is defined on \([a,b]\) and \(\exists\) a positive real number \(M\) such that \(|f(x)|\leq M\) \(\forall x\in[a,b]\)

Example 15 a : \(\forall\) real numbers \(x\), \(\exists\) a real number \(y\in y^3 =x\).

Example 15 b : \(\exists\) a real number \(y\in \forall\) real numbers\(x\), \(y^3 =x\).

Definition 1.1.3 If P is a statement, the negation of P, written \(\neg P\) (and read “not P”), is the statement “P is false”.

Example 22 P : If n is an even integer, then \(n^2\) is even. ; \(\neg P\): It is not true that if n is an even integer, then \(n^2\) is even.

OR

P : For all integers n, if n is even, then \(n^2\) is even.

\(\neg P\) : There exists an even interger n such that \(n^2\) is odd.

Rule 1 : the negation of “For all x, P(x)” is “For some x, \(\neg P(x)\).

Rule 2 : the negation of “For somex, P(x)” is “For all x, \(\neg P(x)\).

Example 26 : P: There is a real nuber whose square is negative.

\(\neg P\) : The square of every real number is not negative

Example 29 : P: There is a continuous real-valued function \(f(x)\) such that \(f(x)\) is not differentiable at any real number c. 

\(\neg P\): For every continuous real-valued function \(f(x)\) , there is a real number c such that \(f(x)\) is differentiable at c. 

Compound Statements

Definition 1.2.1 Let P and Q be statements.

  1. The conjunction of P and Q , written \(P\land Q\) (and read “P and Q”) is the statement “Both P and Q are true.”
  2. The disjunction of P and Q, written \(P\lor Q\) (and read “P or Q”) is the statement “P is true or Q is true”.

Example 9

P: Everyday this week was sunny or hot

\(\neg P\) : Some day this week was not sunny and not hot

Example 10

P : There is a real number x such that \(x>4\) and \(x<10\)

\(\neg P\) : If x is a real number, then \((\neg P) \lor (\neg Q)\)

Example 11

P : Every multiple of 6 is even and is not a multiple of 4.

\(\neg P\) : There is a multiple of 6 that is odd or is a multiple of 4.

Example 12 : There was a day this week that was sunny or hot

Example 13 : here is a real number x such that \(x>2\) or \(x<5\)

Example 14 : According to today’s weather forecast, tomorrow will be cold and cloudy or cold and rainy.

Let P, Q, and R be the statements

P : Tomorrow will be cold.

Q : Tomorrow will be cloudy.

R : Tomorrow will be rainy.

\(\Leftrightarrow\) According to today’s weather forecast, \((P\lor Q)\land (P\lor R)\).

\(\Leftrightarrow\) According to today’s weather forecast, tomorrow will be cold and it will be cloudy or rainy.

\(\Leftrightarrow\) According to todays’s weather forecast, \(P\land (Q\lor R)\).


Implications

Definition 1.3.1 : Let P and Q be statements. The implication \(P\Rightarrow Q\) (read “P implies Q”) is the statement “If P is true, then Q is true”.

Example 1

P : \(3+2=5\)

Q : \(3+1+1=5\)

\(P\Rightarrow Q\) : If \(3+2=5\), then \(3+1+1=5\)

Example 5

P : Gerald Ford was vice President under Jimmy Carter.

Q : 2 < 7

Example 8

P : The function \(f(x)=x^{2}\) is differentiable at 0.

Q : The function \(f(x)=x^{2}\) is continuous at 0.

Example 9

P : The function \(f(x)=x^{2}\) is continuous at 0.

Q : The function \(f(x)=x^{2}\) is differentiable at 0.


Example 11 Prove or disprove S : “If n and m are odd integers, then n + m must be even.”

Reworded : “For all integers n and m, \(P\Rightarrow Q\)

Where P is the open sentence “n and m are odd integers” and Q is the open sentence “n+m is even”.

Proof :

Let n and m be odd integers.

This means we can rewrite n as \(2t+1\) and m as \(2s+1\). Where t and s are integers.

Thus , \(n+m=(2t+1)+(2s+1)=2t+2s+2=2(t+s+1)\)

Since \(t+s+1\) is an integer, \(n+m\) is even.

QED.


Example 13 Consider the statement : “The sum of two perfect square is perfect.”


Example 14 Let x be a real number. Let P be the statement “\(x>5\)” and Q be the statement “\(x>0\)

Contrapositive and Converse

Example 1 Let P be “Aurora lives in Boston” and Q be “Aurora lives in Massachusetts”.

Definition 1.4.1 : The statement \(\neg Q \Rightarrow \neg P\) is called the contrapositive of the statement \(P\Rightarrow Q\).

Example 2 Implication : If it rained today, then the game was canceled.

Contrapositive : If the game was not cancelled, then it did not rain today.

Example 4 Prove that if n is an integer and \(n^2\) is even, then n is an even integer.

Write \(n=2t+1\), and square both sides giving

\(n^{2} =(2t+1)^{2}=4t^{2}+4t+1=2(2t^{2}+2t)+1\)

Thus because \((2t^{2}+2t)\) is an integer, it follows that \(n^{2}\) is odd. QED.


Definition 1.4.2 : The statement \(Q \Rightarrow P\) is called the converse of the statement \(P\Rightarrow Q\).

Example 5 Implication : If it rained today, then the game was canceled.

Converse : If the game was canceled, then it rained today.

Definition 1.4.3 : Let P and Q be statements. The statement \(P \Leftrightarrow Q\) (or P iff Q, read P if and only if Q) is the statement \((P\Rightarrow Q)\land (Q\Rightarrow P)\). The symbol \(\Leftrightarrow\) is called the biconditional.

Theorem 1.4.4 : Let n be an integer. Then n is even if and only if \(n^{2}\) is even.

Theorem 1.4.5 : Let n be an integer.Then the following are equivalent statements: 1. n is even. 2. \(n^{2}\) is even.

Theorem 1.4.6 : Let n be an integer. Then n is odd if and only if \(n^{2}\) is odd.


Theorem 1.4.7 : Let S be a statement and C be a false statement. Then the statment \(\neg S \Rightarrow C\) is logically equivalent to S.

Example 8 Prove that there are no integers x and y such that \(x^{2}=4y+2\)

Assume that the statement above is false, meaning \(\exists\) integers x and y, \(x^{2}= 4y+2\)

Since \(x^{2}= 4y+2=2(2y+1)\) is even, by Theorem 1.4.4 x can be rewritten as \(x=2n\), making \(x^{2}=4n^{2}=4y+2\).

\(\Rightarrow 4(n^{2}-y)=2\) or \(n^{2}-y=\frac{1}{2}\).

Since \(\frac{1}{2}\) is not an integer, the false assumption of the above statement lead to a false statement, therefore the above statement must be true by way of contradiction. QED.