Suppose for a contradiction that . Compose the given injective module homomorphism with the standard injection that appends zero coordinates. This gives an injective endomorphism of the finite free module whose matrix has a zero final row.
Its characteristic polynomial has zero constant term, so the Cayley-Hamilton theorem gives
Injectivity lets us cancel . Repeating this argument eventually gives the identity endomorphism equal to zero. That would imply , contrary to . Hence . This proves the rank inequality for an injection of finite free modules.
An -module is a flat module when the tensor functor preserves injections, equivalently when it is exact.
Suppose first that is flat. For any nonzero , tensor the injection with . The resulting map is injective, so implies . Thus is a torsion-free module.
Conversely, suppose is torsion-free over the principal ideal domain . Every finitely generated submodule of is a finitely generated torsion-free module over a PID, hence a finite free module and therefore flat. The module is the filtered colimit of these submodules. Tensor products commute with filtered colimits, and filtered colimits of modules preserve exact sequences, so is flat. This proves that a torsion-free module over a principal ideal domain is flat.