Dual Lanczos vector space. I. A formal and numerical framework for the theoretical investigation of relaxation processes