This is not my current situation. However I've heard similar stories from different people (along with my own past experience) a few times. Therefore I want to ask a general question(the title).
For example, suppose you're a graduate student in one of the following scenarios
- You believe you prove a theorem but later find out it's wrong because one of the lemma/theorem you cite from another published paper is wrong.
- You spend long time setting up experiments and finding out an published experiment result is not reproducible and is likely to be wrong.
- You rely on co-workers' code to run simulations but it turns out that there are errors in the code that makes the simulation inaccurate, therefore the conclusion based on that is wrong.
and let's further assume you find out those problems when it's closed to advancement or dissertation time of graduate study. You've spent a few years, only to get a faulty result that is not likely to advance you to the next stage of a researcher.
Q. Are these scenarios hopeless (i.e. a student in that scenario must terminate graduate study)? Should the student be the only one responsible for the issue?
If not, what's the best thing one can do in those scenarios?
If so, how to prevent them? (You can still answer this question even if your answer to Q. is no.)
Highly appreciated if anyone can discuss this from either student's or advisor's point of view.