Equivalence of Definitions of Generated Submodule

Theorem
Let $R$ be a ring.

Let $M$ be an $R$-module.

Let $S\subset M$ be a subset.