Give E a topology, with a base as follows. Establish a finite set of elements of V and call this T1. Establish another finite set of elements of V and call this T2. The set of endomorphisms that map T1 to T2 is a base open set. If two base open sets intersect in a function f, that maps T1 to T2 and U1 to U2 simultaneously, then all the functions that map T1 to T2, and U1 to U2, form a base open set that is contained in the two original base open sets. The base criterion is satisfied, and we have a valid topology.
Negate the endomorphisms in a base open set to show addditive inverse is continuous. Combine this with the above, and subtraction is continuous.
Multiplication in the ring E is really function composition. Let a base open set in the product map T to W. A point in the preimage is two endomorphisms, mapping T to U and U to W. Put everything in a base open set, and the preimage is open cross open. Thus multiplication is continuous, and E is a topological ring.
Apply the same topology to the unit subspace of E, and map each endomorphism to its inverse. Consider all the functions that take T to U, and select a particular function in the preimage, that takes U to T. This establishes a base open set that is also in the preimage. Thus multiplicative inverse, and division by a unit, is continuous.
All this continuity is not necessary for the density theorem, but it's pretty.
Let W be a summand of V as an R module. There is then a projection p(V) that preserves W and kills the rest of V. Note that p is an element of S.
Let f be an element of E, whence (f*W)*p = f*(W*p) = f*W. Thus f maps W into W. View V as an E module, and W becomes an E submodule of V.
If V is a semisimple R module, then V is the direct sum of simple R modules, and V, as an E module, is the direct sum of E submodules. Each summand is a simple R module, and since E includes the action of R, each summand is a simple E module. Therefore V is a semisimple E module, with the same simple decomposition.
Let f be a member of E that maps a set of n elements T to another set of elements U. Then build a new R module V′, the direct sum of n copies of V. This is a semisimple R module. Let S′ be the ring of endomorphisms of V′. Such an endomorphism is given by its actions on components, projected to components, or an n×n matrix over S. Similarly, E′ consists of n×n matrices over E. This works because V′ is a direct sum of E modules, just as it is a direct sum of R modules.
Let f′ be the diagonal map that applies f to each component of V′. We need to show f′ is an S′ endomorphism. Apply a matrix from S′ to the right of a column vector in V′, then apply f′ on the left. Consider the ith component, which comes from the ith row of the matrix on the right. The column vector consists of elements of V, then various R endomorphisms from S are applied, and the results are added together. Then f is applied. Taking things in the other order, f is applied to each entry in the column vector, then this is dotted with the ith row of the matrix. These are the aforementioned R endomorphisms from S. Since f can be applied to V before or after these endomorphisms, and since f respects addition, the result is the same. Therefore f′ is an S′ endomorphism of V′, and a member of E′.
Let C be the cyclic left R module generated by the elements of T, one element per component of V′. The finite list of elements T has been spread out into a column vector, a member of V′. Since V′ is semisimple, C is a summand. That makes C a summand as an E module. Therefore, f′*C lies in C. Apply f′ to the generator of C, i.e. the elements in T, and get the corresponding elements of U. Remember that this lies in C. Thus there is some x in R that accomplishes the same thing. Therefore, R acts densly on V.
Further assume V is a finitely generated S module. Now f, an arbitrary S module homomorphism in E, is completely defined by its image on n generators. If xV agrees with f(V) on these generators, then they are the same function. Therefore, φ(R) maps onto E.
The Z endomorphisms of Q are isomorphic to Q, determined by the image of 1. That builds S on the right.
Since Q has become a right Q vector space, the endomorphisms of Q on the left follow 1, and are isomorphic to Q. We have E = Q, and R = Z, and since nothing in R kills V, R embeds in E. However, R does not act densely. Let f divide Q by 2. There is no x in R that can accomplish this, for any set of points in V.