A book I'm reading states that when constructing a proof by contradiction we create the conditional ¬R ⟹ C, where R is the statement we are trying to prove, and C is the contradiction. To explain why R must be true, it says that C is considered false but the conditional is true, and therefore R must be true as well, since the only way a conditional can be true with a false consequent is if the antecedent (¬R) is false.
It does not explain how or why the conditional is said to be considered "true" though. Shouldn't the truth-value of the conditional be based on the truth-value of the antecedent and consequent, not the other way around? What is the real justification for being able to say that proof by contradiction can prove a statement R to be true?