A common result is that finitely generated modules over a PID $R$ are projective iff they are free.
Is the same true that an arbitrary projective module over a PID is free? I can't find this fact anywhere, so I suspect it is false, but I can't construct an example.
Does anyone have an example of a projective module over a PID which is not free? Thank you.
The truth is (to me) quite surprising: Kaplansky showed that an infinitely generated projective module over any Dedekind domain $D$ is free! (The corresponding statement for finitely generated projective modules is equivalent to $D$ having trivial class group.) This is referenced, for example, here.