To maximize the probability that a hypothesis generalizes, it is necessary and sufficient to infer the weakest valid hypothesis, rather than the shortest hypothesis.