Provided we have this truth table where “$p\implies q$” means “if $p$ then $q$”:
$$\begin{array}{|c|c|c|}
\hline
p&q&p\implies q\\ \hline
T&T&T\\
T&F&F\\
F&T&T\\
F&F&T\\\hline
\end{array}$$
My understanding is that “$p\implies q$” means “when there is $p$, there is q”. The second row in the truth table where $p$ is true and $q$ is false would then contradict “$p\implies q$” because there is no $q$ when $p$ is present.
Why then, does the third row of the truth table not contradict “$p\implies q$”? If $q$ is true when $p$ is false, then $p$ is not a condition of $q$.
I have not taken any logic class so please explain it in layman’s terms.
Administrative note. You may experience being directed here even though your question was actually about line 4 of the truth table instead. In that case, see the companion question In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? And even if your original worry was about line 3, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.
If you don’t put any money into the soda-pop machine, and it gives you a bottle of soda anyway, do you have grounds for complaint? Has it violated the principle, “if you put money in, then a soda comes out”? I wouldn’t think you have grounds for complaint. If the machine gives a soda to every passerby, then it is still obeying the principle that if one puts money in, one gets a soda out.
Similarly, the only grounds for complaint against $p\to q$ is the situation where $p$ is true, but $q$ is false. This is why the only F entry in the truth table occurs in this row.
If you imagine putting an F on the row to which you refer, the truth table becomes the same as what you would expect for $p\iff q$, but we don’t expect that “if p, then q” has the same meaning as “p if and only if q”.
$p\Rightarrow q$ is an assertion that says something about situations where $p$ is true, namely that if we find ourselves in a world where $p$ is true, then $q$ will be true (or otherwise $p\Rightarrow q$ lied to us).
However, if we find ourselves in a world where $p$ is false, then it turns out that $p\Rightarrow q$ did not actually promise us anything. Therefore it can’t possibly have lied to us — you could complain about it being irrelevant in that situation, but that doesn’t make it false. It has delivered everything it promised, because it turned out that it actually promised nothing.
As an everyday example, it is true that “If John jumps into a lake, then John will get wet”. The truth of this is not affected by the fact that there are other ways to get wet. If, on investigating, we discover that John didn’t jump in to the lake, but merely stood in the rain and now is wet, that doesn’t mean that it is no longer true that people who jump into lakes get wet.
However, one should note that these arguments are ultimately not the reason why $\Rightarrow$ has the truth table it has. The real reason is because that truth table is the definition of $\Rightarrow$. Expressing $p\Rightarrow q$ as “If $p$, then $q$” is not a definition of $\Rightarrow$, but an explanation of how the words “if” and “then” are used by mathematicians, given that one already knows how $\Rightarrow$ works. The intuitive explanations are supposed to convince you (or not) that it is reasonable to use those two English words to speak about logical implication, not that logical implication ought to work that way in the first place.
To understand why this table is the way it is, consider the following example:
“If you get an A, then I’ll give you a dollar.”
The statement will be true if I keep my promise and false if I don’t.
Suppose it’s true that you get an A and it’s true that I give you a dollar. Since I kept my promise, the implication is true. This corresponds to the first line in the table.
Suppose it’s true that you get an A but it’s false that I give you a dollar. Since I didn’t keep my promise, the implication is false. This corresponds to the second line in the table.
What if it’s false that you get an A? Whether or not I give you a dollar, I haven’t broken my promise. Thus, the implication can’t be false, so (since this is a two-valued logic) it must be true. This explains the last two lines of the table.
@attribution: http://www.millersville.edu/~bikenaga/math-proof/truth-tables/truth-tables.html
From the other answers, the most convincing and reasonable explanation why logic implication is defined the way it is, is the idea of sufficient (versus “necessary”) condition for something to be true.
NOTE: I don’t buy the answer/argument that “if-then” is not an equivalent definition of “$\implies$”; it is just that we tend to have a different notion of “if-then” in everyday life, that of a necessary one.
In short:
Any if-then statement that would “break” only when the conclusion is false while the condition is true is a logic implication.
The following are examples of statements that are logical implications.
“if (it is raining), then (there are clouds in the sky)”
“if (I find my room not the way I left it), then (someone was in my room)”
Consider an example in the field of medical diagnosis. The basic (and ideal) premise of diagnosis from symptoms is to derive valid, sufficient rules that can safely conclude a diagnosis of an illness over other illnesses based on symptom observations. Let’s say some medical scientist studies illness A and proposes the following diagnostic rule:
“IF (symptom B and symptom C are observed) THEN (–for sure– the patient is under illness A).”
He then goes through all the documented cases of the illness (or conducts a new study) and tries to see whether that rule is valid:
If a patient in the records had the symptoms and he was also found to have illness A (1st row of the truth table), then so far so good.
If a patient is found to have the symptoms but not the illness, that breaks or falsifies the rule (2nd row in the truth table), and the rule has to be reconsidered and revised because it simply does not work; the rule, as a logic implication, is false.
If some patient is found to have illness C but not the symptoms (3rd row in the truth table), that does not reduce the validity of the rule in any way as a way of making a safe conclusion; it only reduces its usefulness, depending on how many cases it may miss.
If some patient is found not to have the symptoms nor the illness (4th row in the truth table), that is irrelevant to the validity of the rule.
So, if the scientist finds only records of the 1st, 3rd, and 4th case, then he has a valid rule. Moreover, the potential of the rule to break in the 2nd case makes it a logic implication.
From the above, you can see that the way logic implication is defined (with the third and fourth rows being True) finds extensive use in math and science and, eventually, is what makes sense.
its the the table for logical implication…
To understand why this table is the way it is, consider the following example:
P-“If you get an A”, Q-“then I’ll give you a dollar.”
The statement will be true if I keep my promise and false if I don’t.
Suppose it’s true that you get an A and it’s true that I give you a dollar. Since I kept my promise, the implication is {\it true}. This corresponds to the first line in the table.
Suppose it’s true that you get an A but it’s false that I give you a dollar. Since I didn’t keep my promise, the implication is false. This corresponds to the second line in the table.
What if it’s false that you get an A? Whether or not I give you a dollar, I haven’t broken my promise. Thus, the implication can’t be false, so (since this is a two-valued logic) it must be true. This explains the last two lines of the table.
p->q If I have chocolate, then I am happy.
T T -> T If I have chocolate, then I am happy. As initially stated.
T F -> F If I have chocolate, then I cannot be not happy, by the initial statement.
…………..That’s why this is false.
F T -> T If I do not have chocolate, I could still be happy
…………..
(perhaps because I have a cookie).
…………..
This is the one you asked about. Nobody said that p is a
…………..
NECESSARY condition for q, just that it is a SUFFICIENT condition.
F F -> T If I do not have chocolate, then I could also be not happy
…………..(because nothing else is making me happy).
@user701510
Conditional ($\Rightarrow$) also known as “material implication”, “material consequence”, or simply “implication” follows the condition ‘if…then’
| p | q | p -> q |
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
$p \Rightarrow q$ in the best and most simple way I understand it is by giving a situation. For example, in checking a test paper.
First row implies that “If the given statement or question is right, and you gave the right answer, then you are correct.”
Second row: “If the given statement or question is right, but you gave the wrong answer, then you are definitely incorrect.”
Third row: “If the given statement or question is wrong (e.g. ‘partially and grammatically incorrect by its sense’), but you gave the right answer (e.g. ‘you get the point’, ‘you comprehend on the thought of what is being asked’), then you are correct.”
Fourth row: “If the given statement or question is wrong (completely wrong), whatever your answer might fail, then it may be a bonus point.
I asked my professor in Discrete Structures (Mathematics), I just applied on the given condition.
I thought to extract (partially) from this excellent intuitive explanation from Philosophy SE, which I rewrite marginally, but I do not use blockquotes which may aggravate readability:
P → Q
), consider the truth-valuation and how upset you might be given the values of P and Q.So suppose I claim P->Q
, where:
P
= “it rains tonight”
Q
= “I will go to the movies with you”.
For each of the following 4 cases, how upset will you be and how trustworthy do you think I am?
$\Large{1.}$ P
is true and Q
is true:
You won’t be upset at all, it’s what you’d expect. If P
occurs you’d expect Q
to occur.
$\Large{2.}$ P
is true and Q
is false:
You’d be very upset. If P
happens, you expect Q
to happen, and when it doesn’t, you should think I lied (it’s raining and I didn’t go to the movies with you means I’m an untrustworthy liar).
$\Large{3.}$ P
is false and Q
is true:
Hmmm…weird: so we went to the movies without it raining. I didn’t say what I would do if it did not rain; so going to the movies is just fine, I haven’t lied about it.
$\Large{4.}$ P
is false and Q
is false:
Also weird, but same reasoning as 3. I didn’t make any claims about what would happen if it did not rain; so not going, though not great, doesn’t make me a liar.
The article on implication written by Timothy Gowers in his blog should be a nice (and helpful) reference to have here.
P implies Q means that Q is true when ever P is; it does not mean in addition that Q is false when ever P is…otherwise as a net result Q will equate to P………No.
The sentiment here is causation and in that : P is a sufficient condition for Q and there may be other as well.
Therefore when P is false Q can be both true and false in the truth table (where such entries are accepted as true) the exact value of Q depending on other sufficient conditions.
Intuitive/Sample based on answer may not be precise/convinced.
You still need to know the back-end logic.
Here is my answer :
Formula $P\implies{Q}$ is abbreviation for :$\neg{P}\vee{Q}$.
So, take this as an example : $P\implies{\neg{P}}$.
If P is false , then $\neg{P}$ is true. Hence we get $F\implies{T}$ is $T$.
Another one is the “$F\implies{F}$” is $T$. which will answer the question In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? ,but i can not edit .
$P\implies{P}$ will be true for the case of P is false.
So, the trueth table make sense now.
As Henning Makholm states in his answer, the ⇒ operator is not equivalent to the usual definition of “implies”.
I will add another way of looking at it. In classical logic a statement must resolve to true or false (the truth table). But using the usual definition of implies, in a couple of cases the statement will resolve to “don’t know” or “unproven”. So not only are the classical logic and usual definitions not equivalent, there was never any possibility for them to match.
I describe p ⇒ q using usual definitions as, “the values of p and q are consistent with the statement that p implies q”.
Every logical statement must be either true or false, so we must pick only one definite value for the statements $ F \implies T$ or $F \implies F$. It’s important to note that in logick we are dealing with the whole statement and things go wrong when there is contradiction with truth within the statement.
Since there are many cases when $ F \implies T$, e.g. “$3$ is even implies that $2 \times 3$ is even”, we can say that the outcome is not a contradiction with the premise and we are forced to conclude that it’s a true statement.
And there are many cases when $ F \implies F$, e.g. “$3$ is even implies that $3 \times 3$ is even”, we can say that the outcome is not a contradiction with the premise and we are forced to conclude that it’s a true statement.
In natural language statements can be vague and we don’t force logical robustness upon them:
“The logical statement $p \implies q$ is nothing else than $\lnot p \lor q$” $\space \space \space$ – Hermann Weyl