← Back
CSNotes

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.

  1. Tampa is a city in the state of Florida
    1. This is TRUE
  2. 2 + 1 = 5
    1. This is obviously false…
  3. The moon is made of blue cheese
    1. Well… obv… it is false
  4. The digit in the 105th decimal place in the decimal expansion of 3\sqrt{3} is 7
    1. 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

  1. Come to our party!
    1. This is obv not a statement, because we cannot ask the age old question “is this true or false”
  2. How are you today?
    1. 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 3\sqrt{3} 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 p,q,rp,q,r, 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:

  1. NOT connective, denoted as ¬\neg
  2. AND connective, denoted as ∧\land
  3. OR connective, denoted as ∨\lor
  4. IF…THEN connective, denoted as ⟶\longrightarrow
  5. IFF connective, denoted as   ⟺  \iff

NEGATION:

Let pp be some proposition. The NEGATION of pp, denoted as ¬p\neg p, is basically saying “it is not the case that pp”, or simply “the opposite of pp”. The proposition ¬p\neg p is read as “not pp”.

So, basically, if pp had a truth value of true, ¬p\neg p would have a truth value of false, it is just the opposite of p.

There are also other ways to write down ¬p\neg p, such as ~pp, pˉ\bar{p}, −p-p, p′p', NpNp, and !p!p, but we typically just stick to ¬p\neg p, but if there ever comes a time where you see NpNp, just know it means “not pp”, dont be a baby and get lost

The truth table of negation would be:

p~p
TF
FT

So, if I were to give a more concrete example, if we had the proposition pp, which is defined as p=This is an easy coursep = \text{This is an easy course}, then, the negation of pp would be:

¬p=This is NOT an easy course\neg p =\text{This is NOT an easy course}

CONJUNCTION:

Let pp and qq be two distinct propositions. The CONJUNCTION of pp and qq, denoted as p∧qp\land q, is the proposition “pp and qq”. Conjunction is also known as the AND connective, obviously, the more formal name is simply “conjunction”

The conjunction p∧qp\land q is true when BOTH pp and qq are true, and false otherwise

The truth table for conjunction:

pqp AND q
TTT
TFF
FTF
FFF

To give a more concrete example, if we had two propositions p=It is rainingp = \text{It is raining} and q=The ground is wetq=\text{The ground is wet}, the propositions p∧qp\land q is defined as:

p∧q=It is raining and the ground is wetp\land q =\text{It is raining and the ground is wet}.

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

¬[(¬p)∧(¬q)]\neg[(\neg p)\land (\neg q)], construct a truth table for this statement

if you say “errrrrrmmmm do i really have to make columns for ¬p\neg p and ¬q\neg q” NO you don’t have to, this is for clarity

DISJUNCTION:

Let pp and qq be two distinct propositions. The DISJUNCTION of pp and qq, denoted as p∨qp\lor q, is the proposition “pp or qq”. The disjunction p∨qp\lor q is false ONLY when BOTH propositions are FALSE, otherwise, it is true.

The truth table:

pqp OR q
TTT
TFT
FTT
FFF

To give a sentence example, if we had two propositions p=The sun is outp=\text{The sun is out} and q=The moon is shiningq=\text{The moon is shining}, then, the propositions

p∨q=The sun is out or the moon is shiningp\lor q=\text{The sun is out or the moon is shining}

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)∨(p∧r)(p\land q)\lor (p\land r)

pqr(p AND q)(p AND r)(p AND q) OR (p AND r)
111111
110101
101011
100000
011000
010000
001000
000000

IF…THEN:

Suppose a statement is: if it rains, then we don’t play

Let: A:It is rainingA: \text{It is raining} and B:we will not playB:\text{we will not play}.

  • 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 pp and qq be two propositions. The CONDITIONAL statement p⟶qp\longrightarrow q is the proposition “if pp, then qq”. In the conditional statement p⟶qp\longrightarrow q, we call pp the hypothesis (or antecedent/premise) and we call qq the conclusion (or consequence)

The truth table for this bad boy:

pqIF p THEN q
TTT
TFF
FTT
FFT

There is a lot of terminology used to express p⟶qp\longrightarrow q. Here they are:

Example:

Show that p→qp\rightarrow q is equivalent to ¬(p∧¬q)\neg (p\land \neg q) using a truth table

pq!qp → q!(p AND !q)
11011
10100
01011
00111

Since they have the same truth valuation for every combination of p and q, then they are equivalent

IFF:

Let pp and qq be two distinct propositions. The BICONDITIONAL statement p  ⟺  qp\iff q is the proposition “pp if and only if qq”. The biconditional statement is true ONLY when pp and qq 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:

pqp IFF q
TTT
TFF
FTF
FFT

These are the main connectives that we use, but we also have something called equivalent and XOR

EQUIVALENT:

When two statements PP and QQ (simple or compound), have the same truth values in EACH of all the logical possibilities, then PP is said to be LOGICALLY EQUIVALENT (or equivalent) to QQ, and we denote this as P≡QP\equiv Q

So, for example, show that:

p⟶qp\longrightarrow q is equivalent to ¬(p∧(¬q))\neg(p\land (\neg q))

Let us refer to P=p⟶qP=p\longrightarrow q and Q=¬(p∧(¬q))Q=\neg(p\land(\neg q)), even though they are two different formulas, since they have the same truth value for each logic possibility, we can say that P≡QP\equiv Q

EXCLUSIVE OR:

Let pp and qq be propositions. The EXCLUSIVE OR of pp and qq, denoted by p⊕qp\oplus q (which is also referred to as p⊕qp\oplus q), 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

pqp XOR q
TTF
TFT
FTT
FFF

^ 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 p→qp \rightarrow q, the converse of this proposition is q→pq\rightarrow p

It is important to note that p→qp\rightarrow q IS NOT EQUIVALENT TO q→pq\rightarrow p (do the truth table, you’ll see they aren’t)

CONTRAPOSITIVE**:**

If we had a proposition p→qp\rightarrow q, the contrapositive of this proposition is ¬q→¬p\neg q\rightarrow \neg p

HERE, we can say that p→q≡¬q→¬pp\rightarrow q \equiv \neg q \rightarrow \neg p

We can use a truth table to prove this

pq!q!pp → q!q → !p
110011
101000
010111
001111

Clearly, they are equivalent

INVERSE:

If we had a proposition p→qp\rightarrow q, it’s inverse is ¬p→¬q\neg p \rightarrow \neg q

PRECEDENCE:

ohhhh who doesn’t love precedence….

We evaluate logical operators in this order (from left to right)

¬ , ∧ , ∨ , → ,   ⟺  \neg \text{ , }\land \text{ , }\lor \text{ , }\rightarrow \text{ , } \iff

So, if we had: ¬p∧q\neg p\land q, if we wanted to add parenthesis to this: (¬p)∧q(\neg p)\land q, since we said negation has the highest precedence

If we had: p∨q∧rp\lor q\land r, how would you evaluate this? p∨(q∧r)p\lor (q \land r), since the conjunction has higher precedence than disjunction

Is it true that (a∧b)∧c≡a∧(b∧c)(a\land b)\land c\equiv a\land (b\land c)?

Let us make a truth table:

abc(a AND b) AND ca AND (b AND c)
11111
11000
10100
10000
01100
01000
00100
00000

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 p∨¬pp \lor \neg p a tautology? To prove this, like we always do, we construct a truth table

p!pp OR !p
101
011

Since the result of p∨¬pp\lor \neg p 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 p∧¬pp\land \neg p a contradiction? Once again, our best friend, truth table

p!pp AND !p
100
010

Since the result of p∧¬pp\land\neg p 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:

¬p→q≡¬(¬p)∨q ≡p∨q\neg p \rightarrow q\\ \equiv\neg(\neg p)\lor q\\\ \equiv p\lor q

i mean kinda obvious

We also have logical equivalences involving biconditional statements:

You can further simplify the first one:

(p→q)∧(q→p) ≡(¬p∨q)∧(¬q∨p)(p\rightarrow q)\land (q\rightarrow p)\\\ \equiv (\neg p \lor q)\land (\neg q \lor p)

Let us give an example:

Without using a truth table, show that ¬(p∨(¬p∧q))\neg(p\lor (\neg p\land q)) and ¬p∧¬q\neg p\land \neg q are logically equivalent

¬(p∨(¬p∧q)) ≡¬p∧¬(¬p∧q) ≡¬p∧(¬(¬p)∨¬q) ≡¬p∧(p∨¬q) ≡(¬p∧p)∨(¬p∧¬q) ≡F∨(¬p∧¬q) ≡¬p∧¬q\neg(p\lor (\neg p\land q))\\\ \equiv \neg p \land \neg(\neg p\land q)\\\ \equiv\neg p \land (\neg(\neg p)\lor \neg q)\\\ \equiv\neg p \land (p\lor \neg q)\\\ \equiv (\neg p \land p)\lor (\neg p \land \neg q)\\\ \equiv F\lor (\neg p \land \neg q)\\\ \equiv \neg p \land \neg q

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:

  1. (p∨¬q)∧(q∨¬r)∧(r∨¬p)(p \lor \neg q)\land (q \lor \neg r)\land (r \lor \neg p)
  2. (p∨q∨r)∧(¬p∨¬q∨¬r)(p\lor q\lor r)\land (\neg p\lor \neg q\lor \neg r)
  3. (p∨¬q)∧(q∨¬r)∧(r∨¬p)∧(p∨q∨r)∧(¬p∨¬q∨¬r)(p \lor \neg q)\land (q \lor \neg r)\land (r \lor \neg p)\land (p\lor q\lor r)\land (\neg p\lor \neg q\lor \neg r)

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)

  • p=1,q=1,r=1p=1,q=1,r=1 would make the equation satisfiable

For number 2, once again, trial and error:

  • p=1,q=0,r=1p=1,q=0,r=1 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:

For all x in the universe, x is mortal\text{For all x in the universe, x is mortal}

The phrase “for all x in the universe” is called a UNIVERSAL QUANTIFIER, and is symbolized as ∀x\forall x. 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 p(x)p(x). Using these new symbols, we can rewrite “All humans are mortals” as

∀xp(x)\forall x p(x)

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

There exists at least one x such that x is mortal\text{There exists at least one x such that x is mortal}

The phrase “there exists at least one x” is called a EXISTENTIAL QUANTIFER, and is symbolized as ∃x\exists x. 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 p(x)p(x). Then, we can rewrite “some humans are mortal” as

∃xp(x)\exists x p(x)

In general, suppose we have a domain of discourse UU and a general statement p(x)p(x), called a propositional predicate (we usually refer to quantifier as predicate logic), whose “variable” x ranges over UU. Then, (∀x)(p(x))(\forall x)(p(x)) asserts that FOR ALL X THAT IS IN U, the statement p(x)p(x) about x is true.

For (∃x)(p(x))(\exists x)(p(x)) means that there EXISTS AT LEAST ONE X IN U, such that p(x)p(x) is true

NEGATION OF QUANTIFIERS:

What happens if we were to negate these two quantifiers? The negation of the statement p(x) is true for every x in Up(x) \text{ is true for every }x \text{ in }U → ¬[(∀x)(p(x))]\neg[(\forall x)(p(x))] is considered to be the same as the assertion “there exists at least one x in U for which p(x) is false\text{there exists at least one } x \text{ in } U \text{ for which } p(x) \text{ is false}” So, this can be rewritten as

¬[(∀x)(p(x))]≡(∃x)(¬p(x))\neg[(\forall x)(p(x))]\equiv (\exist x)(\neg p(x))

Similarly, the negation of the statement “p(x) is true for at least one x in Up(x)\text{ is true for at least one } x \text{ in } U” → ¬[(∃x)(p(x))]\neg[(\exist x)(p(x))] is considered to be the same as the assertion “there is not a single x in U such that p(x) is true\text{there is not a single } x\text{ in }U\text{ such that }p(x)\text{ is true}”. So, this can be rewritten as

¬[(∃x)(p(x))]≡(∀x)(¬p(x))\neg[(\exist x)(p(x))] \equiv (\forall x)(\neg p(x))

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”?

  1. All snakes are not poisonous
  2. Some snakes are poisonous
  3. Some snakes are not poisonous

What are the negations of the statements ∀x(x2>x)\forall x(x^2>x) and ∃x(x2=2)\exists x(x^2=2)

¬(∀x(x2>x))≡∃x¬(x2>x)≡∃x(x2≤x)\neg(\forall x (x^2>x))\\\equiv\exists x \neg(x^2>x)\\\equiv \exists x(x^2\leq x)

I think its kinda obvious that the negation of x2>xx^2>x is x2≤xx^2\leq x… If we are saying “it is not true that x2>xx^2>x”, then this means that x2≤xx^2\leq x

¬(∃x(x2=2))≡∀z¬(x2=2)≡∀x(x2≠2)\neg(\exists x(x^2=2))\\\equiv\forall z\neg(x^2=2)\\\equiv\forall x(x^2\neq 2)

NESTED QUANTIFIERS:

One quantifier is within the scope of another, such that:

∀x∃y(x+y=0)\forall x \exist y(x+y=0)

This statement is claiming that for any xx, there exists at least one yy such that x+y=0x+y=0. 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 x=3x=3 and y=−3y=-3, then 3−3=03-3=0, so our statement is TRUE

What about if we had this statement

∃x∀y(x+y=0)\exist x\forall y(x+y=0)

This statement is claiming that “there exists at least one x such that for all y x+y=0x+y=0”. Is this true? Absolutely not. We are saying that “for one singular integer x, every single integer y, it must be true that x+y=0x+y=0” does this even sound right? No bro, if I choose x=1x=1, 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 y=2y=2, 1+2=3≠01+2=3\neq 0, so obviously this statement is FALSE

What if we had this statement:

∃x∀y(x.y=0)\exist x\forall y(x.y=0)

This statement is claiming that “there exist at least one x such that for all y, xy=0xy=0”. is this true? Yes. Why though? Well, if we find at least one xx that’ll make this statement true, then this becomes true. If we were to take x=0x=0, it is true that every yy in the universe multiplied by x(x=0)x(x=0), will be 0. So, our statement is TRUE

What if we had the statement:

∃x∃y(xy>0)\exist x\exist y(xy>0)

This statement is claiming that “there exist at least one x, there exist at least one y such that xy>0xy>0”. Is this true? Yes, if you take x=1x=1 and y=2y=2, you have 1×2=21\times2=2, 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:

∀x∀y(xy>0)\forall x\forall y(xy>0)

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 x=−2x=-2 and y=1y=1, we end up with (−2)(1)=−2<0(-2)(1)=-2<0, so clearly, we at least one x and one y such that xy<0xy<0. 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

∀x∃y(x≠0→xy=1)\forall x\exist y(x\neq 0 \rightarrow xy = 1)

Since “there exist y” is also used in the second half of the statement, we can also rewrite this as

∀x(x≠0→∃y(xy=1))\forall x(x\neq 0\rightarrow \exist y(xy=1))

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

∀x(C(x)∨∃y(C(y)∧F(x,y)))\forall x(C(x)\lor \exist y(C(y)\land F(x,y)))

into English, such that C(x)=x has a computerC(x)=x \text{ has a computer}, F(x,y)=x and y are friendsF(x,y)= x\text{ and }y\text{ are friends}, 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”