The Mathematical Foundation of Multi-Space Learning Theory