I'm reading this book How to Read and Do Proofs. In "Preface to the Student" and "Preface to the Instructor", the author claims to keep the material simple and easy to be followed by students. I was so exciting until I have reached to this example
Suppose, for example, that your friend made the statement, If $\underbrace{\text{you study hard}}_{A}$, then $\underbrace{\text{you will get a good grade}}_{B}$. To determine when this statement “A implies B” is false, ask yourself in which of the four foregoing cases you would be willing to call your friend a liar. In the first case—that is, when you study hard (A is true) and you get a good grade (B is true)—your friend has told the truth. In the second case, you studied hard, and yet you did not get a good grade, as your friend said you would. Here your friend has not told the truth. In cases 3 and 4, you did not study hard. You would not want to call your friend a liar in these cases because your friend said that something would happen only when you did study hard.
Now cases 1 and 2 are clear but I didn't understand why cases 3 and 4 are true? To me at least cases 3 and 4 are unknown or there is no conclusion we can draw from the given info. Can anyone explain to me what does the author mean by the following sentence
You would not want to call your friend a liar in these cases because your friend said that something would happen only when you did study hard.
The idea is that $A\rightarrow B$ is automatically true when $A$ is false, regardless of the truth value of $B$.
For this specific example, the friend didn't say anything about what would happen should you not study hard, only when you did study hard, so you can't say that he lied.
Another example that might make this a little more clear is this: "If the traffic signal turns green, then the cars will go." We wouldn't say that this statement is false if we'd only encountered the situations in which the traffic signal hadn't turned green, since it only talks about when the signal is green, and not any other situation.