In the accepted answer of this question it is stated in the comments section that $CA$ is not a right inverse of $B$ (even if $CA$ is a left inverse of $B$) when $A$ and $B$ are not square matrices.
But why is this the case? Isn't always the case that if you have a left inverse then it is always a right inverse?
I read in In Apostol's Calculus II this theorem which causes me this confusion :
A function $T : V \to W$ can have at most one left inverse. If $T$ has a left inverse $S$, then $S$ is also a right inverse.
I'm surely not understanding the connection between functions and matrices, can someone clarify?
I'm not referring to inverses in a strict sense. Say for example $A$ is $ n \times m$ and $B$ is $m \times n$, if $AB = I_n$ and $BA = I_m$ for me it is fine and I think also in the comment section of the answer it was understood this way.
In the book It is given this definition at the start of the section on inverses :
Given two sets $V$ and $W$ and a function $T : V \to W$. A function $S : T(V) \to V $ is called a left inverse of $T$ if $S[T(x)] = x$ for all $x$ in $V$, that is, if $ST = I_V$, where $I_V$ is the identity transformation on $V$. A function $R : T(V) \to V$ is called a right inverse of $T$ if $T[R(y)] = y$ for all $y$ in $T(v)$, that is, if $TR= I_{T(V)}$ where $I_{T(V)}$ is the identity transformation on $T(V)$.
After this definition and an example It is stated the theorem I mentioned, is it wrong?