Nah that is just not a good definition for beginners. It shouldn’t be somebody’s first introduction to compactness. There are other definitions that are less general but more intuitive, such as sequential compactness: every sequence has a subsequence that converges to a limit in the space. For beginners working only in metric spaces, there’s no difference anyways.
Directly teaching the most general definition misses the steps it took mathematicians to arrive at this definition and is unhelpful. In set theory classes nobody starts by teaching ZFC; instead we start by the general comprehension principle, discover paradoxes and then introduce ZFC.
That’s also the reason high schoolers taking an introduction to calculus class aren’t immediately taught the epsilon delta definition. Start with something more intuitive. Rigor can come later. Newton and Leibniz didn’t start with rigor either.
Exactly! I think this is a general problem in math, where we have this very "advanced" in some sense, definition of compactness. And mathematicians love such definitions, in the sense that it's quite easy to state and it covers a very general case. But it's simultaneously very unhelpful to actually understand why it's even interesting to talk about that concept, if all one knows is the most general definition.
I think rigor should be part of it from the beginning, but it's often best to start with the least general definition and then just explain each generalization step-by-step, and make it feel motivated and sensible.