Title: Algebraic Theory of Generalized Inverses