$\require{AMScd}$
I recently read the chapter 10 on Completions in Atiyah-MacDonald. They describe the $\mathfrak{a}$-adic completion $\hat{M}$ of an $A$-module $M$ as the inverse limit of an inverse system. They make a remark on page 109, that the function $M \mapsto \hat{M}$ is the object function of a funtor which is not neccessarily right exact in general.
I want to understand the arrow function of this functor and how composition works.
I'm thinking of an inverse system in the following manner, we start with a category $I$ of ordinals which can be viewed as $$ 0 \rightarrow 1 \rightarrow 2 \rightarrow \cdots $$ An inverse system associated to the $\mathfrak{a}$-adic completion of $M$ is the functor $M/{\mathfrak{a}^{i}}M: I^{op} \rightarrow A-Mod.$ Whose image can be viewed as $$ \cdots \rightarrow M/\mathfrak{a}^{2}M \rightarrow M/\mathfrak{a}M \rightarrow 0 $$ My guess on the arrow function is the following:
Given an arrow $p: M \rightarrow M''$, we can associate the fundamental system of neighborhoods of $M$ $$ M \supseteq \mathfrak{a}M \supseteq \mathfrak{a}^{2}M \supseteq \cdots $$ we can associate a similar fundamental system of neighborhoods on $M''$, namely $$ pM \supseteq p(\mathfrak{a}M) \supseteq p(\mathfrak{a}^{2}M) \supseteq \cdots $$ This gives an inverse system $M''/p(\mathfrak{a}^{i}M)$ associated to $M''$ which can be viewed as $$ \cdots \rightarrow M''/p(\mathfrak{a}^{2}M) \rightarrow M''/p(\mathfrak{a}M) \rightarrow 0 $$
This inverse system has an inverse limit $\hat{M''}$.
Skipping some details, this implies a natural transformation $\tau: M/\mathfrak{a}^{i}M \rightarrow M''/p(\mathfrak{a}^{i}M'')$, which is a map of inverse systems. The natural transformation, gives us a map $\hat{p}: \hat{M} \rightarrow \hat{M}''$.
The issue I have with this guess is that it does not seem to be independent of $M$, for example in the event of a sequence of arrows $M' \rightarrow M \rightarrow M''$. There is the Artin-Rees lemma to consider, but these maps may not be injective. I'm confused.