Let $A$ be a PID. Then, an $A$-module $Q$ is injective iff $Q=rQ$ for every $r\neq 0$ in $A$.
My question is, where is the property "A is a domain" used in the proof of the above? Can someone please provide a suitable proof to point this out?
Let $A$ be a PID. Then, an $A$-module $Q$ is injective iff $Q=rQ$ for every $r\neq 0$ in $A$.
My question is, where is the property "A is a domain" used in the proof of the above? Can someone please provide a suitable proof to point this out?
Suppose $R$ is not a domain. Then $rQ=Q$ cannot hold for all $r\ne0$, unless $Q=\{0\}$.
Indeed, if $r,s\in R$ are nonzero with $rs=0$, we have $$ \{0\}=0Q=rsQ=rQ=Q $$
On the other hand, it's a standard result of module theory that every module can be embedded in an injective module.
In general, a module $Q$ over a commutative ring $R$ is called divisible if, for every nonzero-divisor $r\in R$, we have $rQ=Q$ (note that $0$ is a zero-divisor). Every injective module is divisible: indeed, if $r$ is a nonzero-divisor and $x\in Q$, the homomorphism $rR\to Q$ defined by $rs\mapsto sx$ is well defined and it extends to a homomorphism $R\to Q$. If the image of $1$ is $y$, then it's clear that $ry=x$. Therefore $rQ=Q$.
On the other hand, being divisible does not generally imply that the module is injective even over domains, see Divisible module which is not injective
This is an extension of the comments I left on your post.
Let $R$ a PID and $M$ a divisible $R$-module. We invoke Baer's criterion to show that $M$ is injective. Given any homomorphism $\phi: I \rightarrow M$ where $I$ is an ideal of $R$, we need to show that $\phi$ extends to a homomorphism $R \rightarrow M$. But $I = aR$ for some $a \in R$. We know that $M = aM$, so we find $m \in M$ such that $\phi(a) = am$. Then the map $\phi': R \rightarrow M$ defined by $\phi'(r) = rm$ extends $\phi$.
Where did $R$ being a domain come into this? To be able to use Baer's criterion, we needed to be able to work with an arbitrary ideal $I$. If $R$ was just a Principal Ideal Ring, then we might have $I = aR$ for a zero-divisor $a$. As egreg pointed out, the condition that $M = aM$ for all $0 \not= a \in R$ is ridiculous for rings with zero divisors, because it forces $M = 0$. So we usually generalize the notion of "divisible" modules to mean something like $M = IM$ for every ideal $I$ that contains a non-zerodivisor — in any case if we focus on principal ideal rings most reasonable notions of module divisibility will converge.
So how to move past the domain case? Let's show that things still work out fine when $R$ is a reduced principal ideal ring. Then $\operatorname{Ann}(I) \cap I = 0$ for every ideal $I$, and given a homomorphism $\phi: I \rightarrow M$ we can extend it to a homomorphism $\phi^*: (I, \operatorname{Ann}(I)) \rightarrow M$ by defining $\phi(\operatorname{Ann}(I) = 0$. If $R$ is a Principal Ideal Ring then $(I, \operatorname{Ann}(I)) = aR$ for $a$ necessarily not a zerodivisor, and we can proceed as above.
More generally, there is the following result:
Let $R$ be a ring such that $T(R)$, the total ring of fractions of $R$, is a finite product of fields. $R$ is hereditary iff divisible $R$-modules are injective.
This is I think due to Levy in Torsion-free and divisible modules over non-integral domains (1963), and can be generalized to noncommutative rings just as well.