Let $R$ be a non-zero commutative (unital) ring, such that the direct product $R^X$ is a free $R$-module, for any set $X$. What can be said on $R$ ? For instance, does it have to be a field / artinian / local … ? What happens if we assume that $R$ is an integral domain ?
Notice that I'm not imposing any condition on the rank of the free $R$-module $R^X$. (See here for the case where $R$ is a field). When $R = \Bbb Z$, it is well-known that $R^{\Bbb N}$ is not a free $\Bbb Z$-module. Also, if any unital $R$-module is free, then $R$ is a field.
I saw this question, which tells us that $R$ is a coherent ring. The literature calls "$F$-rings" the rings I'm looking for, see this very relevant paper When a Ring Is an F-Ring by John D. O'Neill and this other source. O'Neill's paper gives a complete characterization in Corollary 3.2, but the conditions are a bit complicated. Even the example 3.7 does not answer completely my question: if $R$ is an integral domain, then is $R$ necessarily a field? Otherwise, what would be some concrete (explicit) counter-examples?
Thank you for your comments and remarks.
By the results in the paper of O'Neill, any $F$-ring is semiprimary, so the Jacobson radical $J(R)$ is nilpotent (thus $J(R)=\operatorname{nil}(R)$ if $R$ is commutative) and $R/J(R)$ is semisimple. Commutative semisimple rings are finite products of fields, so in particular they are zero-dimensional. Since quotienting out the nilradical doesn't change the dimension, any commutative semiprimary ring is zero-dimensional and thus any commutative semiprimary domain is a field.
To give an example of a commutative ring that is an $F$-ring, but not a domain, note that by example 3.7 and theorem 4.2 in O'Neill's paper, if $R/J(R)$ is simple Artinian (so a field in the commutative case), then $R$ is an $F$-ring iff $R$ is right Artinian, so we can take for example $k[x]/(x^2)$ for a field $k$.