April 17th, 2017
In the previous class we analyzed propositions about Things
and we discussed how to know the truth value of some complex phrases
Now we want to speak also about Attributes and understand the truth value of phrases like
A phrase stating if a Thing has (or hasn’t) an Attribute
Predicates are either TRUE or FALSE. That is called the truth value of the predicate
To speak in general, we abstract and we say that
We can use logic connectors to combine simple predicates and make complex logic phrases
A logic phrase is a sentence that is either TRUE or FALSE
Two predicates are equivalent when they have the same truth table
\(P(x)\) | \(Q(y)\) | \(P(x)\) AND \(Q(y)\) | \(Q(y)\) AND \(P(x)\) |
---|---|---|---|
TRUE | TRUE | TRUE | TRUE |
TRUE | FALSE | FALSE | FALSE |
FALSE | TRUE | FALSE | FALSE |
FALSE | FALSE | FALSE | FALSE |
Equivalence is also a logic connector
P IMPLIES Q
IF P is true THEN Q is true
Q is true IF P is true
Q is NECESSARY for P
P is SUFFICIENT for Q
P is true ONLY IF Q is true
Equivalence means “equal value”. \(P(x)\) is equivalent to \(Q(y)\) when \[P(x)\text{ is true IF AND ONLY IF }Q(y)\text{ is true}\]
\(P(x)\) | \(Q(y)\) | \(P(x)\) EQUIVALENT TO \(Q(y)\) |
---|---|---|
TRUE | TRUE | TRUE |
TRUE | FALSE | FALSE |
FALSE | TRUE | FALSE |
FALSE | FALSE | TRUE |
P is true IF AND ONLY IF Q is true
(P is true IF Q is true) AND (P is true ONLY IF Q is true)
(Q IMPLIES P) AND (P IMPLIES Q)
P is NECESSARY AND SUFFICIENT for Q
Also helps to avoid ambiguity and errors
Complex Phrase | Notation |
---|---|
\(P(x)\) AND \(Q(y)\) | \(P(x) \,\&\, Q(y)\) |
\(P(x)\) OR \(Q(y)\) | \(P(x) \,\vert\, Q(y)\) |
NOT \(P(x)\) | \(\neg P(x\)) |
IF \(P(x)\) THEN \(Q(y)\) | \(P(x) \Rightarrow Q(y)\) |
\(P(x)\) EQUIVALENT TO \(Q(y)\) | \(P(x) \Leftrightarrow Q(y)\) |
There is no short notation for \(P(x)\) XOR \(Q(y)\)
To make phrases about Attributes we have to speak about the Things having these attributes
We have two key words, called quantifiers:
For example
Formal means “writing the phrase in the correct form”
Helps to be clear and precise
“All things are natural”
“Some things are too expensive”
“Not all things are natural” means “There are some things that are not natural”
“Nothing is too expensive” means “All things are not too expensive”
These are the same
These are the same
In the previous class we saw how to evaluate the truth value of a logical phrase depending on the specific cases of \(P(x)\) and \(Q(Y)\)
Now we care about the truth of the phrase in general
If a predicate \(P(x)\) is TRUE for all \(x\), we say it is a TAUTOLOGY
“a statement that is true by necessity or by virtue of its logical form”
If a predicate \(P(x)\) is FALSE for all \(x\), we say it is a CONTRADICTION
NOT (P(x) AND Q(x)) EQUIVALENT (NOT P(x) OR NOT Q(x))
\[\neg(P(x)\,\&\, Q(x)) \Leftrightarrow (\neg P(x) \,|\, Q(x))\]
Now we can understand better the meaning of “IMPLIES”
“If you are at Istanbul then you are in Turkey”
This phrase is a TAUTOLOGY
That means that the argument is correct, in the logic sense
An argument is a phrase saying that IF several predicates (called premises) are true, THEN another predicate (called conclusion) must also be true
All the premises are connected by AND
\[(P(x)\text{ AND }Q(x))\Rightarrow R(x)\]
The argument is valid if it is a tautology
If the argument is not correct, we say it is a fallacy
\[(OwnHonda(e)\vert OwnToyota(e)) \&\neg OwnHonda(e)) \Rightarrow OwnToyota(e)\]
\[(P(x)\vert Q(x)) \&\neg P(x)) \Rightarrow Q(x)\]
Notice that the argument is valid even if Elizabeth as no car
\[\begin{matrix}(\forall x, Toaster(x) \Rightarrow Gold(x)) \& (\forall x,Gold(x)\Rightarrow TimeMachine(x))\\ \Rightarrow (\forall x, Toaster(x) \Rightarrow TimeMachine(x))\end{matrix}\] \[(P(x)\vert Q(x)) \,\&\,\neg P(x)) \Rightarrow Q(x)\]
The first two propositions are not true. Nevertheless if they were true, the third proposition is necessarily true
An argument may be valid even if the premises are never true
A argument is sound if and only if it is both valid, and all of its premises are actually true.
Reference: http://www.iep.utm.edu/val-snd/
We saw that, for all x \[(P(x)\vert Q(x)) \,\&\,\neg P(x)) \Rightarrow Q(x)\] \[(P(x)\Rightarrow Q(x)) \,\&\, (Q(x)\Rightarrow R(x))\Rightarrow (P(x)\Rightarrow R(x))\] We also have “modus ponens” \[(P(x)\Rightarrow Q(x)) \,\&\, P(x))\Rightarrow Q(x)\] and “modus tollens” \[(P(x)\Rightarrow Q(x)) \,\&\, \neg Q(x))\Rightarrow \neg P(x)\]
If being rich makes you happy and you are rich, then you are happy
IF you being rich IMPLIES you being happy AND you are rich THEN you are happy
IF \(Rich(x)\Rightarrow Happy(x)\) AND \(Rich(x)\), THEN \(Happy(x)\)
\((P(x)\Rightarrow Q(x)) \,\&\, P(x))\Rightarrow Q(x)\)
If being rich makes you happy and you are unhappy, then you are not rich
IF you being rich IMPLIES you being happy AND you are not happy THEN you are not rich
IF \(Rich(x)\Rightarrow Happy(x)\) AND \(\neg Happy(x)\), THEN \(\neg Rich(x)\)
\((P(x)\Rightarrow Q(x)) \,\&\, \neg Q(x))\Rightarrow \neg P(x)\)
For all things \(x\), IF \(x\) is Man, THEN \(x\) is Mortal, AND socrates is Man, THEN socrates is mortal
For all \(x\), (\(Man(x)\) IMPLIES \(Mortal(x)\)) AND \(Man(socrates)\), THEN \(Mortal(socrates)\)
\((\forall x, Man(x)\Rightarrow Mortal(x))\,\&\,Man(socrates) \Rightarrow Mortal(socrates)\)
IF someone is at Istanbul THEN that person is on Turkey