



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some logical statements are guaranteed to always be true. These are tautologies. Here are two tautologies that involve converses and contrapositives: • (A if ...
Typology: Lecture notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Logical Statements. A logical statement is a mathematical statement that is either true or false. Here we denote logical statements with capital letters A, B. Logical statements be combined to form new logical statements as follows:
Name Notation Conjunction A and B Disjunction A or B Negation not A ¬A Implication A implies B if A, then B A ⇒ B Equivalence A if and only if B A ⇔ B
Here are some examples of conjunction, disjunction and negation:
x > 1 and x < 3: This is true when x is in the open interval (1, 3). x > 1 or x < 3: This is true for all real numbers x. ¬(x > 1): This is the same as x ≤ 1.
Here are two logical statements that are true:
x > 4 ⇒ x > 2. x^2 = 1 ⇔ (x = 1 or x = −1).
Note that “x = 1 or x = −1” is usually written x = ±1.
Converses, Contrapositives, and Tautologies. We begin with converses and contrapositives:
Thus the statement “x > 4 ⇒ x > 2” has:
Some logical statements are guaranteed to always be true. These are tautologies. Here are two tautologies that involve converses and contrapositives:
There are many other tautologies. Some are pretty obvious, such as
(A or B) ⇔ (B or A)
(similarly for “and”), while others take a bit of thought, such as the following:
Statement Equivalent statement Description A or (B and C) (A or B) and (A or C) “or” distributes over “and” A and (B or C) (A and B) or (A and C) “and” distributes over “or” ¬(A or B) ¬A and ¬B De Morgan’s law for “or” ¬(A and B) ¬A or ¬B De Morgan’s law for “and” A ⇒ (B ⇒ C) (A and B) ⇒ C conditional proof
In a course that discusses mathematical logic, one uses truth tables to prove the above tautologies.
A set is a collection of objects, which are called elements or members of the set. Two sets are equal when they have the same elements.
Common Sets. Here are some important sets:
Another important set is the set of natural numbers, denoted N. In our book,
N = { 1 , 2 , 3 ,.. .},
However, you should be aware that in some other books, N = { 0 , 1 , 2 , 3 ,.. .}.
Often we are working with elements of a fixed set. In calculus, this fixed set is often the real numbers R or an interval [a, b] ⊆ R. In linear algebra, the fixed set is often Rn, Cn^ or an abstract vector space V (all of these terms will eventually be defined). In the discussion that follows, this fixed set will be denoted U. A variable such as x represents some unspecified element from the fixed set U. Example: If Z is the fixed set, then “x is even” is a statement that involves the variable x, and “x > y” involves x and y. When a logical statement contains one or more variables, then the truth of the statement depends on which particular members of the fixed set are plugged in for the variables. We combine quantifiers with statements involving variables to form statements about members of the fixed set U. If P (x) is a statement depending on the variable x from the fixed set U , then there are two basic types of quantifiers:
Statements with Variables and Sets. A statement depending on a variable, such as P (x), is often used to describe a set in terms of the set-builder notation
S = {x ∈ U | P (x)}.
This means that the set S consists of all elements x of the fixed set for which the statement P (x) is true. Example: The definition S = {n ∈ Z | n > 5 } means n ∈ S if and only if n is an integer greater than 5. If the fixed set is assumed to be Z, it can be left out of the definition, so that S = {n | n > 5 }. We can recast set inclusions using quantifiers. Thus S ⊆ T is equivalent to ∀x (x ∈ S ⇒ x ∈ T ) is equivalent to ∀x ∈ S (x ∈ T ) As a general rule, we prove things about sets by working with the statements that define them. We will see later that the equivalences for S ⊆ T lead to a useful proof strategy. As with the case of quantifiers and statements, proving S ⊆ T means working with one element at a time.
Negations of Quantifiers. It is important to understand how negation interacts with quantifiers. Here are the basic rules.
Example: For the fixed set is R, we can understand ¬∀x (x > 0) as follows:
¬∀x (x > 0) is equivalent to ∃x (¬(x > 0)) is equivalent to ∃x (x ≤ 0).
The last statement is clearly true (take x = −1, for example), hence our original statement is true.
A proof starts with a list of hypotheses and ends with a conclusion. The proof shows the step-by-step chain of reasoning from hypotheses to conclusion. Every step needs to be justified. You can use any of the reasons below to justify a step in your proof:
it. Then show that x must also be an element of T using the membership strategy described above. Remember that you can assume that x satisfies the defining properties of S.
Here we give two simple proofs to illustrate various proof strategies.
Proof 1. Let A, B, C be sets. Prove the distribution law for ∪ over ∩, which states A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
Proof. The proof has two parts because we want to prove two sets are equal. To prove A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C), take x ∈ A ∪ (B ∩ C). Then we have a series of implications:
x ∈ A ∪ (B ∩ C) implies x ∈ A or x ∈ B ∩ C Def ∪ implies x ∈ A or (x ∈ B and x ∈ C) Def ∩ implies (x ∈ A or x ∈ B) and (x ∈ A or x ∈ C) Dist implies x ∈ A ∪ B and x ∈ A ∪ C Def ∪ implies x ∈ (A ∪ B) ∩ (A ∪ C) Def ∩.
This shows that A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C). For the opposite inclusion (A∪B)∩(A∪C) ⊆ A∪(B∩C), take x ∈ (A∪B)∩(A∪C). The implications in the first part of the proof are reversible, so that x ∈ A ∪ (B ∩ C). This proves (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C), and equality follows. QED
Proof 2. Prove that ∀n ∈ Z (n is even ⇔ n^2 is even).
Proof. Fix an arbitrary n ∈ Z. Then we need to prove that n is even ⇔ n^2 is even. The proof has two parts because we want to prove an equivalence. Proof that n is even ⇒ n^2 is even: Take n ∈ Z and assume n is even. By the definition of even, this means n = 2m for some m ∈ Z. Then
n^2 = (2m)^2 = (2m)(2m) = 2(2m^2 ),
which shows that n^2 is even. Proof that n^2 is even ⇒ n is even: Now take n ∈ Z and assume n^2 is even. We prove that n is even by contradiction. So assume n is not even, i.e., n is odd. This means n = 2m + 1 for some m ∈ Z. Then
n^2 = (2m + 1)^2 = (2m + 1)(2m + 1) = 4m^2 + 4m + 1 = 2(2m^2 + 2m) + 1,
which shows that n^2 is odd. This contradicts our assumption that n^2 is even, and it follows that n must be even. QED