I'm taking an introductory course in logic and have stumbled upon a question which to me seems more subtle than I first expected. I hope this is the correct place to ask.
The question is (true/false): Can an arbitrary formula A be a logical consequence of any contradiction B? (*)
By logical consequence I mean that A is true whenever B is true.
By contradiction I mean any rule that always outputs false. An example is $\lnot ( p \rightarrow p) $, where $p$ can take the usual logic values $0$ or $1$. The expression always gives zero as the output, as can be seen by constructing the truth table. To specify: In this context a contradiction is often said to be the opposite of a tautology, where all outputs are true.
With the definition in mind my immediate answer is that the statement (*) is false since the contradiction never is true. However, I have some doubts because I'm vaguely aware of "the principle of explosion" that loosely states that anything can be proven if one starts from a contradiction. In addition, the contradiction is never actually true, so it seems unclear how the definition should be applied.
In short: I believe the statement (*) above is false, but I'm not entirely confident. Can anyone shed some light on the issue.