My textbook says "Let $X$ and $Y$ be sets. We say $X$ and $Y$ have the same cardinality if there is a bijection $f: X \to Y$."
I was wondering why the text does not say "if and only if." A bijection implies same cardinality, but does cardinality imply bijection? I would imagine so.
it depends on your definition of cardinality, you can take that as a definition, or if you define $|A|\leq|B|$ iff the is an injective function $A\rightarrow B$, then it is a deep theorem that $|A|\leq|B|$ and $|B|\leq|A|$ then there is a bijective function between them, so "up to bijection" this defines an order.