STATEMENT:
What is a statement? A statement/proposition is a sentence that is either completely true or completely false, but NOT BOTH.
Example time (who misses this):
Each of the below sentences is a statement, indicate whether they are true or false.
- Tampa is a city in the state of Florida
- This is TRUE
- 2 + 1 = 5
- This is obviously false…
- The moon is made of blue cheese
- Well… obv… it is false
- The digit in the 105th decimal place in the decimal expansion of is 7
- Well, if you wanted to google this, the answer would be false
NONE of the following is a statement because it makes NO SENSE to ask if any of them are true or false
- Come to our party!
- This is obv not a statement, because we cannot ask the age old question “is this true or false”
- How are you today?
- Are you feeling false or true? Clearly, this is not a statement
The first 4 examples provided are known as simple/atomic statements. They are known to be the most basic building block for building an argument. So, something like “the sky is blue” would be considered an atomic statement.
A combination of two or more simple statements is a compound statement. So, something like “2 + 1 is 5 AND the digit in the 105th decimal place in the decimal expansion of is 7” is considered a compound statement, this is because you connected two atomic statements “2 + 1 is 5” along with “the digit in the 105th…” together with an AND
As a side note, we usually use letters to represent statements, we typically use , which may refer to either a simple statement or a compound statement (though usually, they are used to mainly represent simple statements)
There are many other ways to connect simple statements to form compound statements, but we mainly use 5:
- NOT connective, denoted as
- AND connective, denoted as
- OR connective, denoted as
- IF…THEN connective, denoted as
- IFF connective, denoted as
NEGATION:
Let be some proposition. The NEGATION of , denoted as , is basically saying “it is not the case that ”, or simply “the opposite of ”. The proposition is read as “not ”.
So, basically, if had a truth value of true, would have a truth value of false, it is just the opposite of p.
There are also other ways to write down , such as ~, , , , , and , but we typically just stick to , but if there ever comes a time where you see , just know it means “not ”, dont be a baby and get lost
The truth table of negation would be:
| p | ~p |
|---|---|
| T | F |
| F | T |
So, if I were to give a more concrete example, if we had the proposition , which is defined as , then, the negation of would be:
CONJUNCTION:
Let and be two distinct propositions. The CONJUNCTION of and , denoted as , is the proposition “ and ”. Conjunction is also known as the AND connective, obviously, the more formal name is simply “conjunction”
The conjunction is true when BOTH and are true, and false otherwise
The truth table for conjunction:
| p | q | p AND q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
To give a more concrete example, if we had two propositions and , the propositions is defined as:
.
Here, we combined two atomic statements, then made it a compound statement by connecting the two propositions with a conjunction
So, let us say we have this compound statement
, construct a truth table for this statement
if you say “errrrrrmmmm do i really have to make columns for and ” NO you don’t have to, this is for clarity
DISJUNCTION:
Let and be two distinct propositions. The DISJUNCTION of and , denoted as , is the proposition “ or ”. The disjunction is false ONLY when BOTH propositions are FALSE, otherwise, it is true.
The truth table:
| p | q | p OR q |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
To give a sentence example, if we had two propositions and , then, the propositions
Here, we combined two atomic statements, then made it a compound statement by connecting the two propositions with a disjunction
An example:
Construct the truth table for
| p | q | r | (p AND q) | (p AND r) | (p AND q) OR (p AND r) |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 |
IF…THEN:
Suppose a statement is: if it rains, then we don’t play
Let: and .
- If A is true, that is, it IS actually raining, and B is false, meaning, we WILL play, then, the statement A implies B is false.
- If A is false, meaning it is not raining, and B is true, meaning we will not play, the statement is true. As long as A is false, we do not care about the truth value of B. Kind of like saying “as long as it is not raining, we can do whatever we want”
- Naturally, if A is true, meaning it is raining, and B is true, meaning we will not play, then A implies B is true
Let and be two propositions. The CONDITIONAL statement is the proposition “if , then ”. In the conditional statement , we call the hypothesis (or antecedent/premise) and we call the conclusion (or consequence)
The truth table for this bad boy:
| p | q | IF p THEN q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
There is a lot of terminology used to express . Here they are:
Example:
Show that is equivalent to using a truth table
| p | q | !q | p → q | !(p AND !q) |
|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 |
Since they have the same truth valuation for every combination of p and q, then they are equivalent
IFF:
Let and be two distinct propositions. The BICONDITIONAL statement is the proposition “ if and only if ”. The biconditional statement is true ONLY when and have the same truth values (so either both are true OR both are false), it is false otherwise. Biconditional statements are also called “bi-implications”
Truth table:
| p | q | p IFF q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
These are the main connectives that we use, but we also have something called equivalent and XOR
EQUIVALENT:
When two statements and (simple or compound), have the same truth values in EACH of all the logical possibilities, then is said to be LOGICALLY EQUIVALENT (or equivalent) to , and we denote this as
So, for example, show that:
is equivalent to
Let us refer to and , even though they are two different formulas, since they have the same truth value for each logic possibility, we can say that
EXCLUSIVE OR:
Let and be propositions. The EXCLUSIVE OR of and , denoted by (which is also referred to as ), this proposition is true ONLY IF ONE OF THE PROPOSITIONS is true, false otherwise. It is essentially saying “one or the other, but not both”
The truth table for this bad boy
| p | q | p XOR q |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
^ both cannot be true or false at the same time and lead to a true value, it has to be one is true and the other is false
CONVERSE:
If we had a proposition , the converse of this proposition is
It is important to note that IS NOT EQUIVALENT TO (do the truth table, you’ll see they aren’t)
CONTRAPOSITIVE**:**
If we had a proposition , the contrapositive of this proposition is
HERE, we can say that
We can use a truth table to prove this
| p | q | !q | !p | p → q | !q → !p |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 |
Clearly, they are equivalent
INVERSE:
If we had a proposition , it’s inverse is
PRECEDENCE:
ohhhh who doesn’t love precedence….
We evaluate logical operators in this order (from left to right)
So, if we had: , if we wanted to add parenthesis to this: , since we said negation has the highest precedence
If we had: , how would you evaluate this? , since the conjunction has higher precedence than disjunction
Is it true that ?
Let us make a truth table:
| a | b | c | (a AND b) AND c | a AND (b AND c) |
|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 0 | 0 | 0 |
clearly they are equivalent.. forehead
TAUTOLOGY:
A statement is considered a tautology if all its truth valuations are TRUE regardless of what the truth valuations of the smaller propositions are.
To make sense of this, I will provide an example so hopefully it will make more sense
Is the statement a tautology? To prove this, like we always do, we construct a truth table
| p | !p | p OR !p |
|---|---|---|
| 1 | 0 | 1 |
| 0 | 1 | 1 |
Since the result of is always T (1) no matter what p or !p is, we call the statement a tautology
CONTRADICTION:
Let us put 2 and 2 together.. we can establish what contradiction means
A statement is considered a contradiction if all its truth valuations are FALSE regardless of what the truth valuation for the smaller propositions are
Example…
Is a contradiction? Once again, our best friend, truth table
| p | !p | p AND !p |
|---|---|---|
| 1 | 0 | 0 |
| 0 | 1 | 0 |
Since the result of is always F (0), we call this statement a contradiction
EQUIVALENCES:
We have some important equivalences we should know
Some of these are kinda a no shit sherlock..
We also have logical equivalences involving conditional statements:
You can use the above equivalences to prove some of these. For example, to prove the 3rd one, we basically do:
i mean kinda obvious
We also have logical equivalences involving biconditional statements:
You can further simplify the first one:
Let us give an example:
Without using a truth table, show that and are logically equivalent
This is what we called using deductive reasoning
SATISFIABILITY:
A compound proposition is considered satisfiable if there is an assignment of truth values to its variables that make it true. So, as long as the compound proposition evaluates to true at least ONCE, then the proposition is satisfiable. It is unsatisfiable when ALL truth values are False
Note:
- A compound proposition is unsatisfiable IF AND ONLY IF its negation is true for all assignments of truth values to the variables (meaning the negation is a tautology)
Examples:
Determine whether each of the compound propositions:
is satisfiable
For number 1, using trial and error would probably be our best bet (there are proof methods that i will discuss next set of slides)
- would make the equation satisfiable
For number 2, once again, trial and error:
- would make the equation satisfiable (mind you, this solution isn’t unique)
For number 3, we do something called proof by case
(image of explanation will be inserted here someday lol cause i want to draw this out)
QUANTIFIER:
Whenever we talk about literally anything, we have in mind a specific universe or domain of discourse, which is a collection of objects whose properties are under consideration. For example, when we say “All humans are mortal”, the universe is the collection of ALL HUMANS. Now that we know what a universe is, the statement “all humans are mortal” can be also expressed as:
The phrase “for all x in the universe” is called a UNIVERSAL QUANTIFIER, and is symbolized as . The variable x in this sentence is essentially “humans”. So, if we were to substitute the word humans in the above sentence, we would end up with “for all humans in the universe, human is mortal”, which is basically another way of saying “all humans are mortal”. Hopefully it makes sense!
The sentence “x is mortal” says something about x; so we can symbolize this as . Using these new symbols, we can rewrite “All humans are mortals” as
Now, consider the statement “Some humans are mortal”. Here, the universe/domain is still the same here. However, we are no longer referring to ALL humans, we are referring to SOME humans. So, we can rephrase the sentence “some humans are mortal” as
The phrase “there exists at least one x” is called a EXISTENTIAL QUANTIFER, and is symbolized as . The variable x, once again, is sill referring to humans. So, if we were to substitute human in the above sentence we would get “there exists at least one human such that human is mortal”. The reason we are using “there exists” rather than “for all” is because in the sentence we are given, we are told that SOME humans are mortal. In other words, we are saying there exists AT LEAST one individual who is mortal. So, similar to the above example, “x is mortal” can be rewritten as . Then, we can rewrite “some humans are mortal” as
In general, suppose we have a domain of discourse and a general statement , called a propositional predicate (we usually refer to quantifier as predicate logic), whose “variable” x ranges over . Then, asserts that FOR ALL X THAT IS IN U, the statement about x is true.
For means that there EXISTS AT LEAST ONE X IN U, such that is true
NEGATION OF QUANTIFIERS:
What happens if we were to negate these two quantifiers? The negation of the statement → is considered to be the same as the assertion “” So, this can be rewritten as
Similarly, the negation of the statement “” → is considered to be the same as the assertion “”. So, this can be rewritten as
Let us do some examples so this makes more sense:
Which of the following statement is equivalent to the negation of the statement ‘All snakes are poisonous”?
- All snakes are not poisonous
- Some snakes are poisonous
- Some snakes are not poisonous
What are the negations of the statements and
I think its kinda obvious that the negation of is … If we are saying “it is not true that ”, then this means that
NESTED QUANTIFIERS:
One quantifier is within the scope of another, such that:
This statement is claiming that for any , there exists at least one such that . Is this true? Well it does depend on our domain, but if we consider our domain “all integers”, then this statement is true. Why? Well think about it. We are saying FOR EVERY INTEGER X, THERE EXISTS AT LEAST A SINGULAR INTEGER Y SUCH THAT X + Y = 0. So, if we can find ONE condition where this is true, then the whole statement is true. If we take and , then , so our statement is TRUE
What about if we had this statement
This statement is claiming that “there exists at least one x such that for all y ”. Is this true? Absolutely not. We are saying that “for one singular integer x, every single integer y, it must be true that ” does this even sound right? No bro, if I choose , is it true that if you add all of the other integers in the world to 1 it will give you 0? No, if you take , , so obviously this statement is FALSE
What if we had this statement:
This statement is claiming that “there exist at least one x such that for all y, ”. is this true? Yes. Why though? Well, if we find at least one that’ll make this statement true, then this becomes true. If we were to take , it is true that every in the universe multiplied by , will be 0. So, our statement is TRUE
What if we had the statement:
This statement is claiming that “there exist at least one x, there exist at least one y such that ”. Is this true? Yes, if you take and , you have , which is most definitely greater than 0. So, since we found at least one x and y, that when you multiply them you get a number greater than 0, this statement is TRUE
What if we had the statement:
This statement is saying (I say for the 50th time) that “for every single integer x, and for every single integer y, x times y is greater than 0”. Is this true? No, because we are making the ballsiest assumption that all integers x and all integers y is always going to be greater than 0 when you multiply them. If I were to take and , we end up with , so clearly, we at least one x and one y such that . Therefore, our statement is FALSE
So, to sum it up in a table:
Translate the statement “the sum of two positive integers is always positive” into a logical statement. Note, you can use logical expressions like conjunction and whatnot normally.
Translate the statement “Every real number except zero has a multiplicative inverse” (a multiplicative inverse of a real number x is a real number y such that xy = 1)
Essentially, this is saying for all real numbers x, there exists at least one real number y such that if x ≠ 0, then, xy = 1
Since “there exist y” is also used in the second half of the statement, we can also rewrite this as
Both of these are correct, but since the scope of y is only on the consequence of the if.. then, we can simply only write it in the consequence. But, for all x has to be written in the start because the scope of x is the entire statement.
TRANSLATING NESTED QUANTIFIERS:
Translate the statement
into English, such that , , and the domain of both x and y consists of all students in you school
For all students in the school, all students have a computer or there exist at least one student such that that student has a computer and x and y are both friends.
In order to make this statement a bit more.. prettier, we can rewrite this as:
“All students in the school has a computer or has a friend with a computer”