Let $V$ be a vector space and $A,B\in\mathcal L(V)$, the set of linear operators on $V$. Suppose $AB=I$. Must $BA=I$? In other words, do left and right inverses coincide? If not, do conditions of finite-dimensionality of $V$ or boundedness of $A$ and $B$ change anything?
I am asking because I know that for a group, the existence of left inverses or right inverses alone guarantees existence of the other, with both coinciding. But the set of operators with, say, left inverses, doesn't automatically form a group, so I am not sure whether this applies. But I can't think of any example of square matrices with different left and right inverses.