Counting a module along the range and the kernel of a linear map #
For a linear map f : M →ₗ[R] N the first isomorphism theorem identifies M ⧸ ker f with
range f, so the cardinality of M is the product of the cardinalities of the range and of the
kernel. Both sides are Nat.card, which is 0 on an infinite type, so no finiteness hypothesis
is needed: the statement also says that M is infinite exactly when the range or the kernel is.
The second result records that the range of a linear map depends only on the map up to an isomorphism of arrows: two linear maps intertwined by linear equivalences on the source and on the target have ranges of the same cardinality.
Both are the counting steps of an exact-sequence argument, where a term is compared with the image of the map leaving it and the image of the map entering it.
The cardinality of the source of a linear map is the product of the cardinalities of its range and of its kernel.
Linear maps intertwined by linear equivalences on the source and on the target have ranges of the same cardinality.